Calls the function within the context of a cluster. Clusters are used for representing context managers and exceptions.
Clustered can be nested.
The type of the cluster.
The function to run in the context of the cluster.
Add a node to the CFG
The offset in the code for which the node is generated
Clones a node.
Useful for finally
blocks, where the "same" node exists in multiple paths.
The node to clone
Optional
overrides: { cluster: Cluster }Node attributes to override
Marks a given node.
This is currently only used for testing, to denote nodes of interest for reachability tests.
The node to mark
The desired marker
Adds an edge to the CFG
Source node
Target node
Edge type
Returns the current CFG
Sets node attributes if they are not yet set (make them default to a value).
The node to modify
Attributes to set
Constructs the CFG