class RuboCop::AST::NodePattern::Compiler::Debug

Variant of the Compiler with tracing information for nodes

Attributes

node_ids[R]

Public Class Methods

new() click to toggle source
# File lib/rubocop/ast/node_pattern/compiler/debug.rb, line 123
def initialize
  super
  @node_ids = Hash.new { |h, k| h[k] = h.size }.compare_by_identity
end

Public Instance Methods

named_parameters() click to toggle source
Calls superclass method
# File lib/rubocop/ast/node_pattern/compiler/debug.rb, line 128
def named_parameters
  super << :trace
end
parser() click to toggle source
# File lib/rubocop/ast/node_pattern/compiler/debug.rb, line 132
def parser
  @parser ||= Parser::WithMeta.new
end