BEGIN {} ^^^^^^^^
Ripper
gives back the escaped string content but strips out the common leading whitespace. Prism
gives back the unescaped string content and a location for the escaped string content. Unfortunately these don’t work well together, so here we need to re-derive the common leading whitespace.
Visit a heredoc node that is representing a string.
Visit a heredoc node that is representing an xstring.
Load extra data embed into binary format String
object.
Example:
x.foo ^^^^ x.foo(42) ^^^^ x&.foo ^^^^^ x[42] ^^^^ x.foo = 1 ^^^^^^ x[42] = 1 ^^^^^^ x + 1 ^ +x ^ foo(42) ^^^ foo 42 ^^^ foo ^^^
Example:
x.foo(42) ^^ x[42] ^^ x.foo = 1 ^ x[42] = 1 ^^^^^^^ x[] = 1 ^^^^^ x + 1 ^ foo(42) ^^ foo 42 ^^
Compile a InterpolatedRegularExpressionNode
node
Dispatch enter and leave events for InterpolatedRegularExpressionNode
nodes and continue walking the tree.
Dispatch enter and leave events for LocalVariableReadNode
nodes and continue walking the tree.
Dispatch enter and leave events for LocalVariableTargetNode
nodes and continue walking the tree.
Dispatch enter and leave events for LocalVariableWriteNode
nodes and continue walking the tree.
Inspect a InterpolatedRegularExpressionNode
node.