Visit a destructured positional parameter node.
class << self; end ^^^^^^^^^^^^^^^^^^
__ENCODING__ ^^^^^^^^^^^^
This integer returns the current initial length of the buffer.
This sets the initial length of the buffer to length
, if length
> 0, otherwise its value isn’t changed.
A node that is missing from the syntax tree. This is only used in the case of a syntax error. The parser gem doesn’t have such a concept, so we invent our own here.
Wonky heredoc tab/spaces rules. github.com/ruby/prism/blob/v1.3.0/src/prism.c#L16528-L16545
A node that is missing from the syntax tree. This is only used in the case of a syntax error. The parser gem doesn’t have such a concept, so we invent our own here.
def foo((bar, baz)); end
^^^^^^^^^^
if /foo #{bar}/ then end
^^^^^^^^^^^^
if /foo #{bar}/ then end
^^^^^^^^^^^^
@@foo &&= bar
becomes
@@foo && @@foo = bar
@@foo ||= bar
becomes
defined?(@@foo) ? @@foo : @@foo = bar
@@foo += bar
becomes
@@foo = @@foo + bar
$foo ||= bar
becomes
defined?($foo) ? $foo : $foo = bar
$foo += bar
becomes
$foo = $foo + bar