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

Method blockvisit

tools/inspector_protocol/jinja2/compiler.py:371–380  ·  view source on GitHub ↗

Visit a list of nodes as block in a frame. If the current frame is no buffer a dummy ``if 0: yield None`` is written automatically.

(self, nodes, frame)

Source from the content-addressed store, hash-verified

369 self.end_write(frame)
370
371 def blockvisit(self, nodes, frame):
372 """Visit a list of nodes as block in a frame. If the current frame
373 is no buffer a dummy ``if 0: yield None`` is written automatically.
374 """
375 try:
376 self.writeline('pass')
377 for node in nodes:
378 self.visit(node, frame)
379 except CompilerExit:
380 pass
381
382 def write(self, x):
383 """Write a string into the output stream."""

Callers 9

macro_bodyMethod · 0.95
visit_TemplateMethod · 0.95
visit_ForMethod · 0.95
visit_IfMethod · 0.95
visit_FilterBlockMethod · 0.95
visit_WithMethod · 0.95
visit_AssignBlockMethod · 0.95
visit_ScopeMethod · 0.95
visit_OverlayScopeMethod · 0.95

Calls 2

writelineMethod · 0.95
visitMethod · 0.45

Tested by

no test coverage detected