This is a result specific to the parse_lex and parse_lex_file methods.
Attributes
Read
A tuple of the syntax tree and the list of tokens that were parsed from the source code.
Class Methods
4.0
View on GitHub
# File tmp/rubies/ruby-4.0.0/lib/prism/parse_result.rb, line 792
def initialize(value, comments, magic_comments, data_loc, errors, warnings, source)
@value = value
super(comments, magic_comments, data_loc, errors, warnings, source)
end
Create a new parse lex result object with the given values.
Instance Methods
4.0
View on GitHub
# File tmp/rubies/ruby-4.0.0/lib/prism/parse_result.rb, line 798
def deconstruct_keys(keys)
super.merge!(value: value)
end
Implement the hash pattern matching interface for ParseLexResult.