API reference
python:astx:astx.VariableAssignment.__init__
method __init__
__init__(name: str, value: Expr, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/operators.py:195
Declared as: python:astx:astx.operators.VariableAssignment.__init__
Initialize the VarExprAST instance.
Parameters
-
name — Type: str
-
value — Type: Expr
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]