@@ -73,7 +73,7 @@ function from_parent_dims(::Type{R}) where {T,N,S,A,R<:ReinterpretArray{T,N,S,A}
7373end
7474
7575from_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}
7777 if dim > ndims (T)
7878 return static (ndims (parent_type (T)) + dim - ndims (T))
7979 elseif dim > 0
@@ -127,7 +127,7 @@ function to_parent_dims(::Type{R}) where {T,N,S,A,R<:ReinterpretArray{T,N,S,A}}
127127end
128128
129129to_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}
131131 if dim > ndims (T)
132132 return static (ndims (parent_type (T)) + dim - ndims (T))
133133 elseif dim > 0
@@ -200,7 +200,7 @@ function to_dims(::Type{T}, dim::StaticSymbol) where {T}
200200 end
201201 return i
202202end
203- @aggressive_constprop function to_dims (:: Type{T} , dim:: Symbol ) where {T}
203+ @constprop :aggressive function to_dims (:: Type{T} , dim:: Symbol ) where {T}
204204 i = find_first_eq (dim, map (Symbol, dimnames (T)))
205205 if i === nothing
206206 throw_dim_error (T, dim)
@@ -227,7 +227,7 @@ order_named_inds(x::Tuple, ::NamedTuple{(),Tuple{}}) = ()
227227function order_named_inds (x:: Tuple , nd:: NamedTuple{L} ) where {L}
228228 return order_named_inds (x, static (Val (L)), Tuple (nd))
229229end
230- @aggressive_constprop function order_named_inds (
230+ @constprop :aggressive function order_named_inds (
231231 x:: Tuple{Vararg{Any,N}} ,
232232 nd:: Tuple ,
233233 inds:: Tuple
0 commit comments