class Prism::ParseLexResult
这是 `parse_lex` 和 `parse_lex_file` 方法特有的结果。
属性
一个元组,包含语法树和从源代码解析出的标记列表。
公共类方法
源代码
# File lib/prism/parse_result.rb, line 787 def initialize(value, comments, magic_comments, data_loc, errors, warnings, source) @value = value super(comments, magic_comments, data_loc, errors, warnings, source) end
使用给定值创建一个新的 parse lex 结果对象。
调用父类方法
Prism::Result::new
公共实例方法
源代码
# File lib/prism/parse_result.rb, line 793 def deconstruct_keys(keys) super.merge!(value: value) end
为 ParseLexResult
实现哈希模式匹配接口。