Import trees that come after this import.
Import trees that come after this import.
An AST tree that encloses the according import statement.
An AST tree that encloses the according import statement.
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.
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 import?
Is symbol sym
imported by this import?
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
The range where symbols imported by this import are visible.
The range where symbols imported by this import are visible.
(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.
(Since version 2.10.0) use fold instead