Class: SyntaxTree::Index::ParserBackend::IndexVisitor
- Inherits:
-
Visitor
- Object
- BasicVisitor
- Visitor
- SyntaxTree::Index::ParserBackend::IndexVisitor
- Defined in:
- lib/syntax_tree/index.rb
Instance Attribute Summary collapse
-
#nesting ⇒ Object
readonly
Returns the value of attribute nesting.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Instance Method Summary collapse
-
#initialize ⇒ IndexVisitor
constructor
A new instance of IndexVisitor.
Methods inherited from BasicVisitor
valid_visit_methods, #visit, #visit_all, #visit_child_nodes, visit_method, visit_methods
Constructor Details
#initialize ⇒ IndexVisitor
Returns a new instance of IndexVisitor.
470 471 472 473 474 |
# File 'lib/syntax_tree/index.rb', line 470 def initialize @results = [] @nesting = [] @statements = nil end |
Instance Attribute Details
#nesting ⇒ Object (readonly)
Returns the value of attribute nesting.
468 469 470 |
# File 'lib/syntax_tree/index.rb', line 468 def nesting @nesting end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
468 469 470 |
# File 'lib/syntax_tree/index.rb', line 468 def results @results end |
#statements ⇒ Object (readonly)
Returns the value of attribute statements.
468 469 470 |
# File 'lib/syntax_tree/index.rb', line 468 def statements @statements end |