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

Class LoopControlExtension

tools/inspector_protocol/jinja2/ext.py:418–426  ·  view source on GitHub ↗

Adds break and continue to the template engine.

Source from the content-addressed store, hash-verified

416
417
418class LoopControlExtension(Extension):
419 """Adds break and continue to the template engine."""
420 tags = set(['break', 'continue'])
421
422 def parse(self, parser):
423 token = next(parser.stream)
424 if token.value == 'break':
425 return nodes.Break(lineno=token.lineno)
426 return nodes.Continue(lineno=token.lineno)
427
428
429class WithExtension(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…