Skip to content

Commit b4a5ba8

Browse files
committed
fix: set_node! should set to children
1 parent 90fe177 commit b4a5ba8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Node.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,7 @@ function set_node!(tree::AbstractExpressionNode, new_tree::AbstractExpressionNod
398398
end
399399
else
400400
tree.op = new_tree.op
401-
tree.l = new_tree.l
402-
if new_tree.degree == 2
403-
tree.r = new_tree.r
404-
end
401+
tree.children = new_tree.children
405402
end
406403
return nothing
407404
end

0 commit comments

Comments
 (0)