Whether this RR is in AliasMode.
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
In a percent array, certain whitespace can be preceeded with a backslash, causing the following characters to be part of the previous element.
alias foo bar ^^^^^^^^^^^^^
if foo .. bar; end ^^^^^^^^^^
foo in bar ^^^^^^^^^^
ENCODING ^^^^^^^^^^^^
FILE ^^^^^^^^
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.
Parses the most indented lines into blocks that are marked and added to the frontier
Returns the node id for the given backtrace location.
begin raise rescue => e loc = e.backtrace_locations.first RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location(loc) end # => 0