Add text as a line to the output. Args: text: string, Text to output.
(self, text)
| 200 | self.seen = seen |
| 201 | |
| 202 | def emit(self, text): |
| 203 | """Add text as a line to the output. |
| 204 | |
| 205 | Args: |
| 206 | text: string, Text to output. |
| 207 | """ |
| 208 | self.value.extend([" " * self.dent, text, "\n"]) |
| 209 | |
| 210 | def emitBegin(self, text): |
| 211 | """Add text to the output, but with no line terminator. |