API reference
python:astx:astx.FunctionAsyncDef
class FunctionAsyncDef
FunctionAsyncDef(prototype: FunctionPrototype, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/callables.py:633
Declared as: python:astx:astx.callables.FunctionAsyncDef
AST class for async function definition.
Attributes
-
kind — Type: ASTKind
-
prototype — Type: FunctionPrototype
-
body — Type: Block
Methods
-
__init__ — Initialize the FunctionAsync instance.
-
__str__ — Return a string that represent the object.
-
get_struct — Get the AST structure that represent the object.