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

Method dump

deps/v8/third_party/jinja2/nodes.py:250–277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

248 return f"{type(self).__name__}({args_str})"
249
250 def dump(self) -> str:
251 def _dump(node: t.Union[Node, t.Any]) -> None:
252 if not isinstance(node, Node):
253 buf.append(repr(node))
254 return
255
256 buf.append(f"nodes.{type(node).__name__}(")
257 if not node.fields:
258 buf.append(")")
259 return
260 for idx, field in enumerate(node.fields):
261 if idx:
262 buf.append(", ")
263 value = getattr(node, field)
264 if isinstance(value, list):
265 buf.append("[")
266 for idx, item in enumerate(value):
267 if idx:
268 buf.append(", ")
269 _dump(item)
270 buf.append("]")
271 else:
272 _dump(value)
273 buf.append(")")
274
275 buf: t.List[str] = []
276 _dump(self)
277 return "".join(buf)
278
279
280class Stmt(Node):

Callers 15

write_cacheMethod · 0.45
SaveMethod · 0.45
RunStepsMethod · 0.45
mainFunction · 0.45
workbench.pyFile · 0.45
run_one.pyFile · 0.45
to_fileMethod · 0.45
setup_build_configFunction · 0.45
override_build_configFunction · 0.45
finishedMethod · 0.45

Calls 1

joinMethod · 0.45

Tested by 3

setup_build_configFunction · 0.36
override_build_configFunction · 0.36
test_splitMethod · 0.36