class SyntaxTree::Index::ParserBackend::ConstantNameVisitor

Public Instance Methods

visit_const_path_ref(node) click to toggle source
# File lib/syntax_tree/index.rb, line 458
def visit_const_path_ref(node)
  visit(node.parent) << node.constant.value.to_sym
end
visit_const_ref(node) click to toggle source
# File lib/syntax_tree/index.rb, line 454
def visit_const_ref(node)
  [node.constant.value.to_sym]
end
visit_var_ref(node) click to toggle source
# File lib/syntax_tree/index.rb, line 462
def visit_var_ref(node)
  [node.value.value.to_sym]
end