Skip to content

Commit

Permalink
Rename internal _make to applymake
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Oct 4, 2024
1 parent 4d99f50 commit 1662d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StructUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ struct MakeClosure{F}
f::F
end

@inline (f::MakeClosure)(style::S, ::Type{T}, source::V, tags) where {S,T,V} = _make(f.f, style, T, source, tags)
@inline (f::MakeClosure)(style::S, ::Type{T}, source::V, tags) where {S,T,V} = applymake(f.f, style, T, source, tags)

@inline function make(style::StructStyle, ::Type{T}, source, tags=(;)) where {T}
vc = ValueClosure{T}()
Expand All @@ -867,7 +867,7 @@ end
# assume choosetype has been applied to T
# f is function to be applied to made value
# returns state from applyeach if any
function _make(f::F, style::StructStyle, ::Type{T}, source, tags=(;)) where {F,T}
function applymake(f::F, style::StructStyle, ::Type{T}, source, tags=(;)) where {F,T}
if dictlike(style, T)
x = initialize(style, T)
st = applyeach(style, DictClosure(style, x), source)
Expand Down

0 comments on commit 1662d85

Please sign in to comment.