ScopedWalker
class ScopedWalker
This class traverses the graph in a similar way as the IterativeGraphWalker, but with the added feature, that a ScopeManager is populated with the scope information of the current node. This way, we can call functions on the supplied scopeManager and emulate that we are currently in the scope of the "consumed" node in the callback. This can be useful for resolving declarations or other scope-related tasks.
Functions
Link copied to clipboard
Link copied to clipboard
Wraps IterativeGraphWalker to handle declaration scopes.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun SubgraphWalker.ScopedWalker.replaceCallWithCast(type: Type, parent: Node, call: CallExpression, pointer: Boolean)
Link copied to clipboard
fun SubgraphWalker.ScopedWalker.replaceCallWithConstruct(type: ObjectType, parent: Node, call: CallExpression)