(self, s, depth, reflow=True)
| 117 | super(EmitVisitor, self).__init__() |
| 118 | |
| 119 | def emit(self, s, depth, reflow=True): |
| 120 | # XXX reflow long lines? |
| 121 | if reflow: |
| 122 | lines = reflow_lines(s, depth) |
| 123 | else: |
| 124 | lines = [s] |
| 125 | for line in lines: |
| 126 | if line: |
| 127 | line = (" " * TABSIZE * depth) + line |
| 128 | self.file.write(line + "\n") |
| 129 | |
| 130 | @property |
| 131 | def metadata(self): |
nothing calls this directly
no test coverage detected