class Prism::ParseLexResult
This is a result specific to the ‘parse_lex` and `parse_lex_file` methods.
Attributes
A tuple of the syntax tree and the list of tokens that were parsed from the source code.
Public Class Methods
Source
# File lib/prism/parse_result.rb, line 787 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.
Calls superclass method
Prism::Result::new
Public Instance Methods
Source
# File lib/prism/parse_result.rb, line 793 def deconstruct_keys(keys) super.merge!(value: value) end
Implement the hash pattern matching interface for ParseLexResult
.
Calls superclass method
Prism::Result#deconstruct_keys