class Prism::LexResult
This is a result specific to the lex and lex_file methods.
Attributes
The list of tokens that were parsed from the source code.
Public Class Methods
(Array[[Token, Integer]] value, Array[Comment] comments, Array[MagicComment] magic_comments, Location? data_loc, Array[ParseError] errors, Array[ParseWarning] warnings, bool continuable, Source source) → void
Source
# File lib/prism/parse_result.rb, line 1061 def initialize(value, comments, magic_comments, data_loc, errors, warnings, continuable, source) @value = value super(comments, magic_comments, data_loc, errors, warnings, continuable, source) end
Create a new lex result object with the given values.
Calls superclass method
Prism::Result::new