@@ -73,7 +73,7 @@ function from_parent_dims(::Type{R}) where {T,N,S,A,R<:ReinterpretArray{T,N,S,A}
73
73
end
74
74
75
75
from_parent_dims (x, dim) = from_parent_dims (typeof (x), dim)
76
- @aggressive_constprop function from_parent_dims (:: Type{T} , dim:: Int ):: Int where {T}
76
+ @constprop :aggressive function from_parent_dims (:: Type{T} , dim:: Int ):: Int where {T}
77
77
if dim > ndims (T)
78
78
return static (ndims (parent_type (T)) + dim - ndims (T))
79
79
elseif dim > 0
@@ -127,7 +127,7 @@ function to_parent_dims(::Type{R}) where {T,N,S,A,R<:ReinterpretArray{T,N,S,A}}
127
127
end
128
128
129
129
to_parent_dims (x, dim) = to_parent_dims (typeof (x), dim)
130
- @aggressive_constprop function to_parent_dims (:: Type{T} , dim:: Int ):: Int where {T}
130
+ @constprop :aggressive function to_parent_dims (:: Type{T} , dim:: Int ):: Int where {T}
131
131
if dim > ndims (T)
132
132
return static (ndims (parent_type (T)) + dim - ndims (T))
133
133
elseif dim > 0
@@ -200,7 +200,7 @@ function to_dims(::Type{T}, dim::StaticSymbol) where {T}
200
200
end
201
201
return i
202
202
end
203
- @aggressive_constprop function to_dims (:: Type{T} , dim:: Symbol ) where {T}
203
+ @constprop :aggressive function to_dims (:: Type{T} , dim:: Symbol ) where {T}
204
204
i = find_first_eq (dim, map (Symbol, dimnames (T)))
205
205
if i === nothing
206
206
throw_dim_error (T, dim)
@@ -227,7 +227,7 @@ order_named_inds(x::Tuple, ::NamedTuple{(),Tuple{}}) = ()
227
227
function order_named_inds (x:: Tuple , nd:: NamedTuple{L} ) where {L}
228
228
return order_named_inds (x, static (Val (L)), Tuple (nd))
229
229
end
230
- @aggressive_constprop function order_named_inds (
230
+ @constprop :aggressive function order_named_inds (
231
231
x:: Tuple{Vararg{Any,N}} ,
232
232
nd:: Tuple ,
233
233
inds:: Tuple
0 commit comments