API reference
python:astx:astx.callables.KeywordArgument
class KeywordArgument
KeywordArgument(name: str, value: DataType, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/callables.py:142
One named call argument, preserving its source expression.
Attributes
-
name — Name identifying this declaration.; Type: str
-
value — Stored value.; Type: DataType
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
Methods
-
__init__ — Initialize a named argument.
-
get_struct — Render the named argument and its value.