@@ -13,12 +13,12 @@ using ..NodeModule:
1313 default_allocator,
1414 with_type_parameters,
1515 leaf_copy,
16- leaf_copy !,
16+ leaf_copy_into !,
1717 leaf_convert,
1818 leaf_hash,
1919 leaf_equal,
2020 branch_copy,
21- branch_copy !,
21+ branch_copy_into !,
2222 branch_convert,
2323 branch_hash,
2424 branch_equal,
@@ -264,10 +264,10 @@ function _check_leaf_copy(tree::AbstractExpressionNode)
264264 tree. degree != 0 && return true
265265 return leaf_copy (tree) isa typeof (tree)
266266end
267- function _check_leaf_copy ! (tree:: AbstractExpressionNode{T} ) where {T}
267+ function _check_leaf_copy_into ! (tree:: AbstractExpressionNode{T} ) where {T}
268268 tree. degree != 0 && return true
269269 new_leaf = constructorof (typeof (tree))(; val= zero (T))
270- ret = leaf_copy ! (new_leaf, tree)
270+ ret = leaf_copy_into ! (new_leaf, tree)
271271 return new_leaf == tree && ret === new_leaf
272272end
273273function _check_leaf_convert (tree:: AbstractExpressionNode )
@@ -292,16 +292,16 @@ function _check_branch_copy(tree::AbstractExpressionNode)
292292 return branch_copy (tree, tree. l, tree. r) isa typeof (tree)
293293 end
294294end
295- function _check_branch_copy ! (tree:: AbstractExpressionNode{T} ) where {T}
295+ function _check_branch_copy_into ! (tree:: AbstractExpressionNode{T} ) where {T}
296296 if tree. degree == 0
297297 return true
298298 end
299299 new_branch = constructorof (typeof (tree))(; val= zero (T))
300300 if tree. degree == 1
301- ret = branch_copy ! (new_branch, tree, copy (tree. l))
301+ ret = branch_copy_into ! (new_branch, tree, copy (tree. l))
302302 return new_branch == tree && ret === new_branch
303303 else
304- ret = branch_copy ! (new_branch, tree, copy (tree. l), copy (tree. r))
304+ ret = branch_copy_into ! (new_branch, tree, copy (tree. l), copy (tree. r))
305305 return new_branch == tree && ret === new_branch
306306 end
307307end
@@ -373,12 +373,12 @@ ni_components = (
373373 ),
374374 optional = (
375375 leaf_copy = " copies a leaf node" => _check_leaf_copy,
376- leaf_copy ! = " copies a leaf node in-place" => _check_leaf_copy !,
376+ leaf_copy_into ! = " copies a leaf node in-place" => _check_leaf_copy_into !,
377377 leaf_convert = " converts a leaf node" => _check_leaf_convert,
378378 leaf_hash = " computes the hash of a leaf node" => _check_leaf_hash,
379379 leaf_equal = " checks equality of two leaf nodes" => _check_leaf_equal,
380380 branch_copy = " copies a branch node" => _check_branch_copy,
381- branch_copy ! = " copies a branch node in-place" => _check_branch_copy !,
381+ branch_copy_into ! = " copies a branch node in-place" => _check_branch_copy_into !,
382382 branch_convert = " converts a branch node" => _check_branch_convert,
383383 branch_hash = " computes the hash of a branch node" => _check_branch_hash,
384384 branch_equal = " checks equality of two branch nodes" => _check_branch_equal,
@@ -419,7 +419,7 @@ ni_description = (
419419 [Arguments ()]
420420)
421421@implements (
422- NodeInterface{all_ni_methods_except ((:leaf_copy ! , :branch_copy ! ))},
422+ NodeInterface{all_ni_methods_except ((:leaf_copy_into ! , :branch_copy_into ! ))},
423423 GraphNode,
424424 [Arguments ()]
425425)
0 commit comments