class Prism::ParseLexResult - Documentation for Ruby 4.1
Description: class Prism::ParseLexResult: This is a result specific to the `parse_lex` and `parse_lex_file` methods.
Keywords: ruby,class,Prism::ParseLexResult

🔍

No recent searches

# class Prism::ParseLexResult

This is a result specific to the `parse_lex` and `parse_lex_file` methods.

### Attributes

value [R]

A tuple of the syntax tree and the list of tokens that were parsed from the source code.

### Public Class Methods

new (value, comments, magic_comments, data_loc, errors, warnings, continuable, source)
Source

    # File lib/prism/parse_result.rb, line 1083
    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 parse lex result object with the given values.

Calls superclass method `Prism::Result::new`