scala.tools.refactoring.analysis.Indexes
Returns all defined symbols, i.
Returns all defined symbols, i.e. symbols of DefTrees.
Returns all symbols that are part of the index, either referenced or defined.
Returns all symbols that are part of the index, either referenced or defined. This also includes symbols from the Scala library that are used in the compilation units.
For a given Symbol, tries to find the tree that declares it.
For a given Symbol, tries to find the tree that declares it. The result tree can have an offset position.
For a given Symbol, returns all trees that reference or declare the symbol that have a range position.
From a position, returns the symbols that contain a tree reference to that position.
From a position, returns the symbols that contain a tree reference to that position.
This operation is expensive because it needs to scan all trees in the index.
For a given Symbol, returns all trees that directly reference the symbol.
For a given Symbol, returns all trees that directly reference the symbol. This does not include parents of trees that reference a symbol, e.g. for a method call, the Select tree is returned, but not its parent Apply tree.
Only returns trees with a range position.
Returns the root trees of the given trees that are part of this index.
Returns the root trees of the given trees that are part of this index.
The roots are typically PackageDefs, but this isn't necessarily true because an index can also be created for a smaller scope.
Returns a map that associates each defined symbol in the index with its DefTree.
Returns all Apply trees on method s
.
For the given Symbol - which is a class or object - returns a list of all sub- and super classes, in no particular order.
For the given Symbol - which is a package - returns a list of all sub- and super packages, in no particular order.
Returns all overrides of the symbol s.