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
- .new ⇒ Debug constructor
::RuboCop::AST::NodePattern::Compiler - Inherited
::RuboCop::SimpleForwardable - Extended
Instance Attribute Summary
- #node_ids readonly
::RuboCop::AST::NodePattern::Compiler - Inherited
Instance Method Summary
::RuboCop::AST::NodePattern::Compiler - Inherited
| #compile_as_atom, #compile_as_node_pattern, #compile_sequence, | |
| #each_union | Enumerates |
| #freeze, #named_parameter, #next_capture, #parser, #positional_parameter, | |
| #with_temp_variables | Utilities. |
| #enforce_same_captures, #new_capture | |
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