Build the parser gem tokens from the prism tokens.
Visit the string content of a particular node. This method is used to split into the various token types.
Returns whether RDoc
defines its own install hooks through a RubyGems plugin. This and whatever is guarded by it can be removed once no supported Ruby
ships with RDoc
older than 6.9.0.
Tells ‘scan_while` to look for mismatched keyword/end-s
When scanning up, if we see more keywords then end-s it will stop. This might happen when scanning outside of a method body. the first scan line up would be a keyword and this setting would trigger a stop.
When scanning down, stop if there are more end-s than keywords.
Quietly ensure the Gem
directory dir
contains all the proper subdirectories for handling default gems. If we can’t create a directory due to a permission problem, then we will silently continue.
If mode
is given, missing directories are created with this mode.
World-writable directories will never be created.
A block on a keyword or method call.
Wonky heredoc tab/spaces rules. github.com/ruby/prism/blob/v1.3.0/src/prism.c#L10548-L10558
Wonky heredoc tab/spaces rules. github.com/ruby/prism/blob/v1.3.0/src/prism.c#L16528-L16545
A block on a keyword or method call.
A block’s parameters.