foo, = 1 ^^^^^^^^
“foo #{bar}” ^^^^^^^^^^^^
:“foo #{bar}” ^^^^^^^^^^^^^
foo #{bar}
^^^^^^^^^^^^
-> { it } ^^^^^^^^^
foo(bar: baz) ^^^^^^^^
foo in bar ^^^^^^^^^^
foo => bar ^^^^^^^^^^
/(?<foo>foo)/ =~ bar ^^^^^^^^^^^^^^^^^^^^
-> { 1 + 2 } ^^^^^^^^^^^^^^
def foo(bar); end ^^^
LINE ^^^^^^^^
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.
Interpolate substitution vars in the arg (i.e. $(DEFFILE))
Returns the octet string representation of the elliptic curve point.
conversion_form specifies how the point is converted. Possible values are:
:compressed
:uncompressed
:hybrid
In a percent array, certain whitespace can be preceeded with a backslash, causing the following characters to be part of the previous element.
def foo((bar, baz)); end ^^^^^^^^^^
Pattern
constants get wrapped in another layer of :const.