API reference
python:astx:astx.AsyncForRangeLoopStmt
class AsyncForRangeLoopStmt
AsyncForRangeLoopStmt(variable: InlineVariableDeclaration, start: Optional[Expr], end: Expr, step: Optional[Expr], body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/flows.py:601
Declared as: python:astx:astx.flows.AsyncForRangeLoopStmt
AST class for asynchronous For Range Statement.
Attributes
-
kind — Type: ASTKind
-
variable — Type: InlineVariableDeclaration
-
start — Type: Optional[Expr]
-
end — Type: Expr
-
step — Type: Optional[Expr]
-
body — Type: Block
Methods
-
__init__ — Initialize the AsyncForRangeLoopStmt instance.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the AST structure of the object.