API reference
python:astx:astx.AliasExpr.__init__
method __init__
__init__(name: str, asname: str = '', loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/packages.py:255
Declared as: python:astx:astx.packages.AliasExpr.__init__
Initialize the alias expression.
Parameters
-
name — Name identifying the declaration or operation.; Type: str
-
asname — Asname.; Type: str
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None