Class: SyntaxTree::Index::ParserBackend::IndexVisitor

Inherits:
Visitor show all
Defined in:
lib/syntax_tree/index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BasicVisitor

valid_visit_methods, #visit, #visit_all, #visit_child_nodes, visit_method, visit_methods

Constructor Details

#initializeIndexVisitor

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

#nestingObject (readonly)

Returns the value of attribute nesting.



468
469
470
# File 'lib/syntax_tree/index.rb', line 468

def nesting
  @nesting
end

#resultsObject (readonly)

Returns the value of attribute results.



468
469
470
# File 'lib/syntax_tree/index.rb', line 468

def results
  @results
end

#statementsObject (readonly)

Returns the value of attribute statements.



468
469
470
# File 'lib/syntax_tree/index.rb', line 468

def statements
  @statements
end