123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::AST::NodePattern::Compiler::Debug

Relationships & Source Files
Namespace Children
Modules:
Classes:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RuboCop::AST::NodePattern::Compiler
Defined in: lib/rubocop/ast/node_pattern/compiler/debug.rb

Overview

Variant of the Compiler with tracing information for nodes

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newDebug

[ GitHub ]

  
# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 118

def initialize
  super
  @node_ids = Hash.new { |h, k| h[k] = h.size }.compare_by_identity
end

Instance Attribute Details

#node_ids (readonly)

[ GitHub ]

  
# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 35

attr_reader :node_ids

Instance Method Details

#named_parameters

[ GitHub ]

  
# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 123

def named_parameters
  super << :trace
end

#parser

[ GitHub ]

  
# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 127

def parser
  @parser ||= Parser::WithMeta.new
end