API reference
python:astx:astx.ASTNodes.__init__
method __init__
__init__(name: str = 'entry', loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/base.py:424
Declared as: python:astx:astx.base.ASTNodes.__init__
Initialize the AST 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