API reference
python:astx:astx.Identifier.__init__
method __init__
__init__(name: str, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/data.py:198
Declared as: python:astx:astx.data.Identifier.__init__
Initialize the Identifier instance.
Parameters
-
name โ Name identifying the declaration or operation.; Type: str
-
loc โ Source coordinates associated with the node.; Type: SourceLocation
-
parent โ Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None