API reference
python:astx:astx.AST.__init__
method __init__
__init__(loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/base.py:266
Declared as: python:astx:astx.base.AST.__init__
Initialize the AST instance.
Parameters
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None