Skip to content

CombinedSymbol

Bases: Symbol

Represents a combined symbol.

A combined symbol is used to represent a combined node in the call graph. Since the node for a combined node does not exist, it is set to None.

Attributes:

Name Type Description
node None
Source code in src/library_analyzer/processing/api/purity_analysis/model/_module_data.py
@dataclass
class CombinedSymbol(Symbol):
    """Represents a combined symbol.

    A combined symbol is used to represent a combined node in the call graph.
    Since the node for a combined node does not exist, it is set to None.


    Attributes
    ----------
    node :

    """

    node: None

    def __hash__(self) -> int:
        return hash(str(self))

    def __str__(self) -> str:
        return f"{self.__class__.__name__}.{self.name}"

node: None instance-attribute

__hash__()

Source code in src/library_analyzer/processing/api/purity_analysis/model/_module_data.py
def __hash__(self) -> int:
    return hash(str(self))

__init__(node, id, name)

__str__()

Source code in src/library_analyzer/processing/api/purity_analysis/model/_module_data.py
def __str__(self) -> str:
    return f"{self.__class__.__name__}.{self.name}"