class SyntaxTree::Index::ParserBackend
supported on all runtimes.
It is not as fast as using the instruction sequences directly, but is
This backend creates the index using the Syntax Tree parser and a visitor.
def index(source)
def index(source) SyntaxTree.parse(source).accept(IndexVisitor.new) end
def index_file(filepath)
def index_file(filepath) index(SyntaxTree.read(filepath)) end