API reference
python:astx:astx.Argument
class Argument
Argument(name: str, type_: DataType, mutability: MutabilityKind = MutabilityKind.constant, default: Expr = UNDEFINED, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/callables.py:31
Declared as: python:astx:astx.callables.Argument
AST class for argument definition.
Attributes
-
kind — Type: ASTKind
-
mutability — Type: MutabilityKind
-
name — Type: str
-
type_ — Type: DataType
-
default — Type: Expr
Methods
-
__init__ — Initialize the VarExprAST instance.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the AST structure of the object.