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

Method newline

tools/inspector_protocol/jinja2/compiler.py:402–407  ·  view source on GitHub ↗

Add one or more newlines before the next write.

(self, node=None, extra=0)

Source from the content-addressed store, hash-verified

400 self.write(x)
401
402 def newline(self, node=None, extra=0):
403 """Add one or more newlines before the next write."""
404 self._new_lines = max(self._new_lines, 1 + extra)
405 if node is not None and node.lineno != self._last_line:
406 self._write_debug_info = node.lineno
407 self._last_line = node.lineno
408
409 def signature(self, node, frame, extra_kwargs=None):
410 """Writes a function call to the stream for the current node.

Callers 9

writelineMethod · 0.95
visit_FromImportMethod · 0.95
visit_MacroMethod · 0.95
visit_WithMethod · 0.95
visit_ExprStmtMethod · 0.95
visit_OutputMethod · 0.95
visit_AssignMethod · 0.95
visit_AssignBlockMethod · 0.95
visit_OutputMethod · 0.45

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected