Scoped Walker
class ScopedWalker
Handles declaration scope monitoring for iterative traversals. If this is not required, use IterativeGraphWalker for less overhead.
Declaration scopes are similar to de.fraunhofer.aisec.cpg.passes.scopes.ScopeManager scopes: ValueDeclarations located inside a scope (i.e. are children of the scope root) are visible to any children of the scope root. Scopes can be layered, where declarations from parent scopes are visible to the children but not the other way around.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getDeclarationForScope(scope: Node, predicate: Predicate<ValueDeclaration?>): Optional<out ValueDeclaration?>
Link copied to clipboard
Wraps IterativeGraphWalker to handle declaration scopes.
Link copied to clipboard