ModuleAnalysisResult
Class for module analysis results.
After the references of a module have been resolved, all necessary information for the purity analysis is available in this class.
Attributes:
| Name | Type | Description |
|---|---|---|
resolved_references |
dict[str, list[ReferenceNode]]
|
The dictionary of references. The key is the name of the reference node, the value is the list of ReferenceNodes. |
raw_reasons |
dict[NodeID, Reasons]
|
The dictionary of function references. The key is the NodeID of the function, the value is the Reasons for the function. |
classes |
dict[str, ClassScope]
|
All classes and their ClassScope. |
call_graph_forest |
CallGraphForest
|
The call graph forest of the module. |
module_id |
NodeID | None
|
The NodeID of the module which the analysis result belongs to. |