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