Copy a InterpolatedRegularExpressionNode
node
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
Create a new ItLocalVariableReadNode
node.
Create a new LocalVariableAndWriteNode
node.
Create a new LocalVariableOrWriteNode
node.
class << self; end ^^^^^^^^^^^^^^^^^^
class << self; end ^^^^^^^^^^^^^^^^^^
foo.bar += baz ^^^^^^^^^^^^^^^
Foo += bar ^^^^^^^^^^^
foo += baz ^^^^^^^^^^^^^^^
Compile a ClassVariableOperatorWriteNode
node
Compile a ConstantPathOperatorWriteNode
node
Compile a GlobalVariableOperatorWriteNode
node
Compile a InstanceVariableOperatorWriteNode
node
@@foo += bar
becomes
@@foo = @@foo + bar
$foo += bar
becomes
$foo = $foo + bar
@foo += bar
becomes
@foo = @foo + bar
Dispatch enter and leave events for ClassVariableOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for ConstantPathOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for GlobalVariableOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for InstanceVariableOperatorWriteNode
nodes and continue walking the tree.