cpg-core
6.0.0
cpg-core
/
de.fraunhofer.aisec.cpg.helpers
/
SubgraphWalker
/
IterativeGraphWalker
Iterative
Graph
Walker
open
class
IterativeGraphWalker
Functions
Properties
Functions
clear
Callbacks
Link copied to clipboard
open
fun
clearCallbacks
(
)
get
Todo
Link copied to clipboard
open
fun
getTodo
(
)
:
Deque
<
Node
>
iterate
Link copied to clipboard
open
fun
iterate
(
root
:
Node
)
The core iterative AST traversal algorithm: In a depth-first way we descend into the tree, providing callbacks for graph modification.
register
On
Node
Visit
Link copied to clipboard
open
fun
registerOnNodeVisit
(
callback
:
Consumer
<
Node
>
)
register
On
Node
Visit2
Link copied to clipboard
open
fun
registerOnNodeVisit2
(
callback
:
BiConsumer
<
Node
,
Node
>
)
register
On
Scope
Exit
Link copied to clipboard
open
fun
registerOnScopeExit
(
callback
:
Consumer
<
Node
>
)
Properties
backlog
Link copied to clipboard
open
val
backlog
:
Deque
<
Node
>