class Prism::LexCompat::Result - Documentation for Ruby 4.1
Description: class Prism::LexCompat::Result: A result class specialized for holding tokens produced by the lexer.
Keywords: ruby,class,Prism::LexCompat::Result

🔍

No recent searches

# class Prism::LexCompat::Result

A result class specialized for holding tokens produced by the lexer.

### Attributes

value [R]

The list of tokens that were produced by the lexer.

### Public Class Methods

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

    # File lib/prism/lex_compat.rb, line 53
    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 compat result object with the given values.

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