(self, out:CWriter)
| 178 | endif: lx.Token |
| 179 | |
| 180 | def print(self, out:CWriter) -> None: |
| 181 | out.emit(self.condition) |
| 182 | for stmt in self.body: |
| 183 | stmt.print(out) |
| 184 | if self.else_body is not None: |
| 185 | out.emit("#else\n") |
| 186 | for stmt in self.else_body: |
| 187 | stmt.print(out) |
| 188 | |
| 189 | def accept(self, visitor: Visitor) -> None: |
| 190 | visitor(self) |