API reference
python:astx:astx.Argument.__init__
method __init__
__init__(name: str, type_: DataType, mutability: MutabilityKind = MutabilityKind.constant, default: Expr = UNDEFINED, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/callables.py:51
Declared as: python:astx:astx.callables.Argument.__init__
Initialize the VarExprAST instance.
Parameters
-
name — Name identifying the declaration or operation.; Type: str
-
type_ — Type expression to process.; Type: DataType
-
mutability — Mutability.; Type: MutabilityKind
-
default — Default used when no value is supplied.; Type: Expr
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None