class Prism::LexResult
这是 ‘lex` 和 `lex_file` 方法的特定结果。
属性
从源代码解析的 token 列表。
公共类方法
源代码
# File lib/prism/parse_result.rb, line 769 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::new
公共实例方法
源代码
# File lib/prism/parse_result.rb, line 775 def deconstruct_keys(keys) super.merge!(value: value) end
为 LexResult
实现哈希模式匹配接口。