MCPcopy Index your code
hub / github.com/nodejs/node / write

Method write

tools/inspector_protocol/jinja2/compiler.py:382–395  ·  view source on GitHub ↗

Write a string into the output stream.

(self, x)

Source from the content-addressed store, hash-verified

380 pass
381
382 def write(self, x):
383 """Write a string into the output stream."""
384 if self._new_lines:
385 if not self._first_write:
386 self.stream.write('\n' * self._new_lines)
387 self.code_lineno += self._new_lines
388 if self._write_debug_info is not None:
389 self.debug_info.append((self._write_debug_info,
390 self.code_lineno))
391 self._write_debug_info = None
392 self._first_write = False
393 self.stream.write(' ' * self._indentation)
394 self._new_lines = 0
395 self.stream.write(x)
396
397 def writeline(self, x, node=None, extra=0):
398 """Combination of newline and write."""

Callers 15

end_writeMethod · 0.95
simple_writeMethod · 0.95
writelineMethod · 0.95
signatureMethod · 0.95
macro_defMethod · 0.95
pop_assign_trackingMethod · 0.95
visit_ExtendsMethod · 0.95
visit_IncludeMethod · 0.95
visit_ImportMethod · 0.95
visit_FromImportMethod · 0.95
visit_ForMethod · 0.95
visit_IfMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected