CombinedCallGraphNode
Bases: CallGraphNode
Class for combined call graph nodes.
A CombinedCallGraphNode represents a combined cycle of functions in the call graph.
Attributes:
| Name | Type | Description |
|---|---|---|
combines |
dict[NodeID, CallGraphNode]
|
A dictionary of all nodes that are combined into this node. This is later used for transferring the reasons of the combined node to the original nodes. |
Source code in src/library_analyzer/processing/api/purity_analysis/model/_call_graph.py
combines: dict[NodeID, CallGraphNode] = field(default_factory=dict)
class-attribute
instance-attribute
¶
__hash__()
¶
__init__(symbol, reasons, children=dict(), combines=dict())
¶
__repr__()
¶
__str__()
¶
separate()
¶
Separate the node.
After the purity of a combined node is inferred, the reasons of the combined node are transferred to the original nodes.
Returns:
| Type | Description |
|---|---|
dict[NodeID, CallGraphNode]
|
The original nodes with the transferred reasons. |