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

Class ExprStmtExtension

tools/inspector_protocol/jinja2/ext.py:406–415  ·  view source on GitHub ↗

Adds a `do` tag to Jinja2 that works like the print statement just that it doesn't print the return value.

Source from the content-addressed store, hash-verified

404
405
406class ExprStmtExtension(Extension):
407 """Adds a `do` tag to Jinja2 that works like the print statement just
408 that it doesn't print the return value.
409 """
410 tags = set(['do'])
411
412 def parse(self, parser):
413 node = nodes.ExprStmt(lineno=next(parser.stream).lineno)
414 node.node = parser.parse_tuple()
415 return node
416
417
418class LoopControlExtension(Extension):

Callers

nothing calls this directly

Calls 1

setFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…