Skip to content

StringLiteral

Bases: Expression

Class for string literals.

Attributes:

Name Type Description
value str

The name of the string literal.

Source code in src/library_analyzer/processing/api/purity_analysis/model/_purity.py
@dataclass
class StringLiteral(Expression):
    """Class for string literals.

    Attributes
    ----------
    value :
        The name of the string literal.
    """

    value: str

    def __str__(self) -> str:
        return f"StringLiteral.{self.value}"

value: str instance-attribute

__init__(value)

__str__()

Source code in src/library_analyzer/processing/api/purity_analysis/model/_purity.py
def __str__(self) -> str:
    return f"StringLiteral.{self.value}"