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
for settings’ keys
Compile a ClassVariableOperatorWriteNode
node
Compile a ConstantPathOperatorWriteNode
node
Compile a InstanceVariableOperatorWriteNode
node
Compile a InterpolatedMatchLastLineNode
node
@@foo += bar
becomes
@@foo = @@foo + bar
$foo ||= bar
becomes
defined?($foo) ? $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 GlobalVariableAndWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for GlobalVariableOrWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for InstanceVariableOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for InterpolatedMatchLastLineNode
nodes and continue walking the tree.