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.



254
255
256
257
258
# File 'lib/syntax_tree/index.rb', line 254

def initialize
  @results = []
  @nesting = []
  @statements = nil
end

Instance Attribute Details

#nestingObject (readonly)

Returns the value of attribute nesting.



252
253
254
# File 'lib/syntax_tree/index.rb', line 252

def nesting
  @nesting
end

#resultsObject (readonly)

Returns the value of attribute results.



252
253
254
# File 'lib/syntax_tree/index.rb', line 252

def results
  @results
end

#statementsObject (readonly)

Returns the value of attribute statements.



252
253
254
# File 'lib/syntax_tree/index.rb', line 252

def statements
  @statements
end