class Prism::LexCompat::Result
A result class specialized for holding tokens produced by the lexer.
:nodoc:
handling.
generally lines up. However, there are a few cases that require special
of cases, this is a one-to-one mapping of the token type. Everything else
converting those tokens to be compatible with Ripper. In the vast majority
This class is responsible for lexing the source using prism and then
def deconstruct_keys(keys)
def deconstruct_keys(keys) super.merge!(value: value) end
def initialize(value, comments, magic_comments, data_loc, errors, warnings, source)
def initialize(value, comments, magic_comments, data_loc, errors, warnings, source) @value = value super(comments, magic_comments, data_loc, errors, warnings, source) end