class Arborist::ExprCallTree
- Arborist::ExprCallTree
- Reference
- Object
Direct Known Subclasses
Defined in:
expression_call_tree.crConstructors
Instance Method Summary
-
#append_child(expr_call : ExprCall, root_memoization_scope : RootMemoizationScope)
returns the newly created child tree node
-
#append_child(child_tree : ExprCallTree)
returns the child tree node
- #children : Array(ExprCallTree)
- #children=(children : Array(ExprCallTree))
- #delete_child(child_tree : ExprCallTree)
- #expr_call : ExprCall
- #expr_call=(expr_call : ExprCall)
-
#hash(hasher)
See
Object#hash(hasher)
- #parent : ExprCallTree | Nil
- #parent=(parent : ExprCallTree | Nil)
- #parent_apply_node : ApplyCallTree | Nil
- #parent_apply_node=(parent_apply_node : ApplyCallTree | Nil)
- #postorder_traverse(&blk : ExprCallTree -> )
- #prune_tree!
-
#self_and_descendants
This method returns a list of nodes in order of a postorder traversal of nodes in the tree rooted at
- #sever_from_parent!
Constructor Detail
def self.new(expr_call : Arborist::ExprCall, parent : Arborist::ExprCallTree | Nil, parent_apply_node : Nil | Arborist::ApplyCallTree)
#
Instance Method Detail
returns the newly created child tree node
def self_and_descendants
#
This method returns a list of nodes in order of a postorder traversal of nodes in the tree rooted at