@@ -32,7 +32,7 @@ Base.@propagate_inbounds Base.getindex(x::ComponentArray, idx...) = getindex(x,
3232@inline Base. getindex (x:: ComponentArray , idx:: Val... ) = _getindex (x, idx... )
3333
3434# Set ComponentArray index
35- Base . @propagate_inbounds Base. setindex! (x:: ComponentArray , v, idx:: FlatIdx... ) = setindex! (getdata (x), v, idx... )
35+ @inline Base. setindex! (x:: ComponentArray , v, idx:: FlatIdx... ) = setindex! (getdata (x), v, idx... )
3636Base. @propagate_inbounds Base. setindex! (x:: ComponentArray , v, :: Colon ) = setindex! (getdata (x), v, :)
3737Base. @propagate_inbounds Base. setindex! (x:: ComponentArray , v, idx... ) = setindex! (x, v, toval .(idx)... )
3838@inline Base. setindex! (x:: ComponentArray , v, idx:: Val... ) = _setindex! (x, v, idx... )
@@ -53,14 +53,14 @@ Base.@propagate_inbounds Base.setindex!(x::ComponentArray, v, idx...) = setindex
5353 axs = map (i -> i. ax, ci)
5454 axs = remove_nulls (axs... )
5555 # the index must be valid after computing `ci`
56- :(Base. @_inline_meta ; @inbounds ComponentArray (Base. maybeview (getdata (x), $ inds... ), $ axs... ))
56+ :(Base. @_inline_meta ; ComponentArray (Base. maybeview (getdata (x), $ inds... ), $ axs... ))
5757end
5858
5959@generated function _setindex! (x:: ComponentArray , v, idx... )
6060 ci = getindex .(getaxes (x), getval .(idx))
6161 inds = map (i -> i. idx, ci)
6262 # the index must be valid after computing `ci`
63- return :(Base. @_inline_meta ; @inbounds setindex! (getdata (x), v, $ inds... ))
63+ return :(Base. @_inline_meta ; setindex! (getdata (x), v, $ inds... ))
6464end
6565
6666Base. @propagate_inbounds Base. view (x:: ComponentArray , idx:: ComponentArrays.FlatIdx... ) = view (getdata (x), idx... )
0 commit comments