class Prism::ParseLexResult
This is a result specific to the parse_lex and parse_lex_file methods.
This is a result specific to the parse_lex and parse_lex_file methods.
Attributes
value
[R]
[ ProgramNode, Array[Token] ]
A tuple of the syntax tree and the list of tokens that were parsed from the source code.
A tuple of the syntax tree and the list of tokens that were parsed from the source code.
Public Class Methods
([ProgramNode, Array[Token]] value, Array[MagicComment] magic_comments, Location? data_loc, Array[ParseError] errors, Array[ParseWarning] warnings, bool continuable, Source source) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/lib/prism/parse_result.rb, line 1086 def initialize(value, magic_comments, data_loc, errors, warnings, continuable, source) @value = value super(magic_comments, data_loc, errors, warnings, continuable, source) end
Create a new parse lex result object with the given values.
Create a new parse lex result object with the given values.
: ([ProgramNode, Array] value, Array magic_comments, Location? data_loc, Array errors, Array warnings, bool continuable, Source source) -> void
Calls superclass method
Prism::Result::new
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/parse_result.rbs, line 783
def deconstruct_keys: (Array[Symbol]? keys) -> Hash[Symbol, untyped]
Implement the hash pattern matching interface for ParseLexResult.
: (Array? keys) -> Hash[Symbol, untyped]