class Prism::ParseLexResult
这是 parse_lex 和 parse_lex_file 方法特有的结果。
属性
一个元组,包含语法树和从源代码解析出的令牌列表。
Public Class Methods
Source
# File lib/prism/parse_result.rb, line 792 def initialize(value, comments, magic_comments, data_loc, errors, warnings, source) @value = value super(comments, magic_comments, data_loc, errors, warnings, source) end
使用给定的值创建一个新的解析词法结果对象。
调用超类方法
Prism::Result::newPublic Instance Methods
Source
# File lib/prism/parse_result.rb, line 798 def deconstruct_keys(keys) super.merge!(value: value) end
为 ParseLexResult 实现哈希模式匹配接口。