API reference
python:astx:astx.CaseStmt.__init__
method __init__
__init__(body: Block, condition: Optional[Expr] = None, default: bool = False, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/flows.py:1082
Declared as: python:astx:astx.flows.CaseStmt.__init__
Initialize the CaseStmt instance.
Parameters
-
body — Type: Block
-
condition — Type: Optional[Expr]
-
default — Type: bool
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]