A block’s parameters.
Foo::Bar ^^^^^^^^
-> { it } ^^^^^^^^^
-> { _1 + _2 } ^^^^^^^^^^^^^^
def foo(*bar); end
^^^^
def foo(*); end
^
A block’s parameters.
Foo::Bar ^^^^^^^^
-> { _1 + _2 } ^^^^^^^^^^^^^^
def foo(*bar); end
^^^^
def foo(*); end
^
Visit a constant path that is part of a write node.
Foo::Bar &&= baz ^^^^^^^^^^^^^^^^
Foo::Bar ||= baz ^^^^^^^^^^^^^^^^
Negate the value of a numeric node. This is a special case where you have a negative sign on one line and then a number on the next line. In normal Ruby, this will always be a method call. The parser gem, however, marks this as a numeric literal. We have to massage the tree here to get it into the correct form.
Parse a float from the string representation.
Like Enumerable#compact
, but chains operation to be lazy-evaluated.
Update the digest using given string and return self
.