MCPcopy Index your code
hub / github.com/python/cpython / emit

Method emit

Parser/asdl_c.py:119–128  ·  view source on GitHub ↗
(self, s, depth, reflow=True)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

reflow_linesFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected