Class: RuboCop::AST::NodePattern::Compiler::Debug
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
|
Classes:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Compiler
|
|
|
Instance Chain:
self,
Compiler
|
|
| Inherits: |
Compiler
|
| Defined in: | lib/rubocop/ast/node_pattern/compiler/debug.rb |
Overview
Variant of the Compiler with tracing information for nodes
Class Method Summary
- .new ⇒ Debug constructor
Instance Attribute Summary
- #node_ids readonly
Instance Method Summary
Constructor Details
.new ⇒ Debug
# 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