Dispatch enter and leave events for ArgumentsNode
nodes and continue walking the tree.
Dispatch enter and leave events for FloatNode
nodes and continue walking the tree.
Dispatch enter and leave events for ImaginaryNode
nodes and continue walking the tree.
Dispatch enter and leave events for LambdaNode
nodes and continue walking the tree.
Dispatch enter and leave events for ProgramNode
nodes and continue walking the tree.
Dispatch enter and leave events for SplatNode
nodes and continue walking the tree.
Inspect a ArgumentsNode
node.
Inspect a FloatNode
node.
Inspect a ImaginaryNode
node.
Inspect a LambdaNode
node.
Inspect a ProgramNode
node.
Inspect a SplatNode
node.
Copy a FloatNode
node
Copy a LambdaNode
node
Copy a SplatNode
node
Returns the first node that matches the given block when visited in a depth-first search. This is useful for finding a node that matches a particular condition.
node.breadth_first_search { |node| node.node_id == node_id }
Returns an array of child nodes, excluding any ‘nil`s in the place of optional nodes that were not present.
Save the operator_loc
location using the given saved source so that it can be retrieved later.