Compile a RationalNode
node
attr_reader binary_operator_loc
: Location
attr_reader binary_operator_loc
: Location
Dispatch enter and leave events for ParenthesesNode
nodes and continue walking the tree.
Dispatch enter and leave events for RationalNode
nodes and continue walking the tree.
Inspect a ParenthesesNode
node.
Inspect a RationalNode
node.
Delegates to the end_character_offset
of the associated location object.
Delegates to the start_character_column
of the associated location object.
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 }
Represents the location of the binary operator.
foo.bar += value ^^
The character offset from the beginning of the source where this location ends.
The column number in characters where this location ends from the start of the line.