API reference
python:astx:astx.operators.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:171
Initialize the VarExprAST instance.
Parameters
-
name — Name identifying the declaration or operation.; Type: str
-
value — Value to process.; Type: Expr
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None