SwitchScope
Properties
Link copied to clipboard
Link copied to clipboard
The list of child scopes.
Link copied to clipboard
Returns the GlobalScope of this scope by traversing its parents upwards.
Link copied to clipboard
Link copied to clipboard
In some languages, the lookup scope of a symbol that is being resolved (e.g. of a Reference) can be adjusted through keywords (such as global
in Python or PHP).
Link copied to clipboard
FQN Name currently valid
Link copied to clipboard
A map of symbols and their respective Declaration nodes that declare them.
Link copied to clipboard
A map of typedefs keyed by their alias name. This is still needed as a bridge until we completely redesign the alias / typedef system.
Link copied to clipboard
Link copied to clipboard
A list of ImportDeclaration nodes that have ImportDeclaration.wildcardImport set to true.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Adds a declaration with the defined symbol.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun lookupSymbol(symbol: Symbol, thisScopeOnly: Boolean = false, replaceImports: Boolean = true, predicate: (Declaration) -> Boolean? = null): List<Declaration>
Looks up a list of Declaration nodes for the specified symbol. Optionally, predicate can be used for additional filtering.