Import trees that come after this import.
An AST tree that encloses the according import statement.
Is symbol sym
imported by this import?
The range where symbols imported by this import are visible.
Returns an import statement, that imports sym
at position refPos
.
Returns an import statement, that imports sym
at position refPos
.
Returns None
if no import is found.
Searches in t
for all symbols that are not imported if the tree would be
inserted at refPos
and returns a list of the according imports statements.
Enables breadth-first traversing of ImportTrees.
Enables breadth-first traversing of ImportTrees.
Is symbol sym
imported by this tree or a subtree at position refPos
?
Is symbol sym
imported by this tree or a subtree at position refPos
?
object O{
import hello.World
// World is imported
}
// World is not imported
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Import trees represents a set of import statements and allows queries to determine if a symbol is imported at a certain position.
Import trees are constructed with
ImportTree.build()
.