class Prism::LexResult

This is a result specific to the ‘lex` and `lex_file` methods.

def deconstruct_keys(keys)

Implement the hash pattern matching interface for LexResult.
def deconstruct_keys(keys)
  super.merge!(value: value)
end

def initialize(value, comments, magic_comments, data_loc, errors, warnings, source)

Create a new lex result object with the given values.
def initialize(value, comments, magic_comments, data_loc, errors, warnings, source)
  @value = value
  super(comments, magic_comments, data_loc, errors, warnings, source)
end