@@foo ||= bar
becomes
defined?(@@foo) ? @@foo : @@foo = bar
$foo ||= bar
becomes
defined?($foo) ? $foo : $foo = bar
@foo &&= bar
becomes
@foo && @foo = bar
foo.bar ||= baz ^^^^^^^^^^^^^^^
Foo &&= bar ^^^^^^^^^^^^
Foo::Bar = 1 ^^^^^^^^^^^^
Foo::Foo, Bar::Bar = 1 ^^^^^^^^ ^^^^^^^^
Foo::Bar, = baz ^^^^^^^^
foo ||= baz ^^^^^^^^^^^^^^^^
@foo = 1 ^^^^^^^^
def foo(**nil); end ^^^^^
def foo(bar: baz); end ^^^^^^^^
if /foo/ then end ^^^^^
Create parser string nodes from a single prism node. The parser gem “glues” strings together when a line continuation is encountered.
foo.bar ||= baz ^^^^^^^^^^^^^^^
Foo &&= bar ^^^^^^^^^^^^
Foo::Bar = 1 ^^^^^^^^^^^^ Foo::Foo, Bar::Bar = 1 ^^^^^^^^ ^^^^^^^^