| 1929 | |
| 1930 | |
| 1931 | class WhileStmt(Statement): |
| 1932 | __slots__ = ("expr", "body", "else_body") |
| 1933 | |
| 1934 | __match_args__ = ("expr", "body", "else_body") |
| 1935 | |
| 1936 | expr: Expression |
| 1937 | body: Block |
| 1938 | else_body: Block | None |
| 1939 | |
| 1940 | def __init__(self, expr: Expression, body: Block, else_body: Block | None) -> None: |
| 1941 | super().__init__() |
| 1942 | self.expr = expr |
| 1943 | self.body = body |
| 1944 | self.else_body = else_body |
| 1945 | |
| 1946 | def accept(self, visitor: StatementVisitor[T]) -> T: |
| 1947 | return visitor.visit_while_stmt(self) |
| 1948 | |
| 1949 | |
| 1950 | class ForStmt(Statement): |
no outgoing calls
no test coverage detected
searching dependent graphs…