Dispatch enter and leave events for CallOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for ConstantOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for IndexOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for InterpolatedRegularExpressionNode
nodes and continue walking the tree.
Dispatch enter and leave events for MatchLastLineNode
nodes and continue walking the tree.
Copy a InterpolatedRegularExpressionNode
node
Reset nil attributes to their default values to make the spec valid
Parses the most indented lines into blocks that are marked and added to the frontier
Returns the node id for the given backtrace location.
begin raise rescue => e loc = e.backtrace_locations.first RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location(loc) end # => 0
This method verifies that there are no (obvious) ambiguities with the provided col_sep
and strip
parsing options. For example, if col_sep
and strip
were both equal to \t
, then there would be no clear way to parse the input.
Compile a ClassVariableOperatorWriteNode
node
Compile a GlobalVariableOperatorWriteNode
node
Compile a InstanceVariableOperatorWriteNode
node
Compile a LocalVariableOperatorWriteNode
node
@@foo += bar
becomes
@@foo = @@foo + bar
$foo += bar
becomes
$foo = $foo + bar