Arborist::ExprCallTree
Inherits Reference / Object
Constructors
new(expr_call : Arborist::ExprCall, parent : Arborist::ExprCallTree | Nil, parent_apply_node : Nil | Arborist::ApplyCallTree)
SourceInstance methods
append_child(expr_call : ExprCall, root_memoization_scope : RootMemoizationScope)
returns the newly created child tree node
children
Sourcechildren=(children : Array(ExprCallTree))
Sourcedelete_child(child_tree : ExprCallTree)
Sourceexpr_call
Sourceexpr_call=(expr_call : ExprCall)
Sourceparent
Sourceparent=(parent : ExprCallTree | Nil)
Sourceparent_apply_node
Sourceparent_apply_node=(parent_apply_node : ApplyCallTree | Nil)
Sourcepostorder_traverse
Sourceprune_tree!
Sourceself_and_descendants
This method returns a list of nodes in order of a postorder traversal of nodes in the tree rooted at <self>
sever_from_parent!
Source