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

Class Printer

deps/v8/tools/grokdump.py:1147–1167  ·  view source on GitHub ↗

Printer with indentation support.

Source from the content-addressed store, hash-verified

1145
1146
1147class Printer(object):
1148 """Printer with indentation support."""
1149
1150 def __init__(self):
1151 self.indent = 0
1152
1153 def Indent(self):
1154 self.indent += 2
1155
1156 def Dedent(self):
1157 self.indent -= 2
1158
1159 def Print(self, string):
1160 print("%s%s" % (self._IndentString(), string))
1161
1162 def PrintLines(self, lines):
1163 indent = self._IndentString()
1164 print("\n".join("%s%s" % (indent, line) for line in lines))
1165
1166 def _IndentString(self):
1167 return self.indent * " "
1168
1169
1170ADDRESS_RE = re.compile(r"0x[0-9a-fA-F]+")

Callers 6

dump_regionFunction · 0.85
InterpretMemoryMethod · 0.85
do_display_objectMethod · 0.85
do_do_descMethod · 0.85
do_do_mapMethod · 0.85
do_do_transMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…