(self, visitor: Visitor)
| 187 | stmt.print(out) |
| 188 | |
| 189 | def accept(self, visitor: Visitor) -> None: |
| 190 | visitor(self) |
| 191 | for stmt in self.body: |
| 192 | stmt.accept(visitor) |
| 193 | if self.else_body is not None: |
| 194 | for stmt in self.else_body: |
| 195 | stmt.accept(visitor) |
| 196 | |
| 197 | def tokens(self) -> Iterator[lx.Token]: |
| 198 | yield self.condition |