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

Link copied to clipboard
Link copied to clipboard
fun ScopedWalker(scopeManager: ScopeManager)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun iterate(root: Node)

Wraps IterativeGraphWalker to handle declaration scopes.