The while visiting method for tirx. Parameters ---------- self : Parser The visiting parser. node : doc.While The doc AST while node.
(self: Parser, node: doc.While)
| 297 | |
| 298 | @dispatch.register(token="tirx", type_name="While") |
| 299 | def visit_while(self: Parser, node: doc.While) -> None: |
| 300 | """The while visiting method for tirx. |
| 301 | |
| 302 | Parameters |
| 303 | ---------- |
| 304 | self : Parser |
| 305 | The visiting parser. |
| 306 | |
| 307 | node : doc.While |
| 308 | The doc AST while node. |
| 309 | """ |
| 310 | with self.var_table.with_frame(): |
| 311 | cond = self.eval_expr(node.test) |
| 312 | with T.While(cond): |
| 313 | self.visit_body(node.body) |
| 314 | |
| 315 | |
| 316 | @dispatch.register(token="tirx", type_name="Break") |
nothing calls this directly
no test coverage detected
searching dependent graphs…