class Prism::LexCompat::Result
一个专门用于保存词法分析器生成的标记的结果类。
属性
词法分析器生成的标记列表。
公共类方法
源码
# File lib/prism/lex_compat.rb, line 19 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/lex_compat.rb, line 25 def deconstruct_keys(keys) super.merge!(value: value) end
为 Result
实现哈希模式匹配接口。