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

Method skip_if

tools/inspector_protocol/jinja2/lexer.py:345–347  ·  view source on GitHub ↗

Like :meth:`next_if` but only returns `True` or `False`.

(self, expr)

Source from the content-addressed store, hash-verified

343 return next(self)
344
345 def skip_if(self, expr):
346 """Like :meth:`next_if` but only returns `True` or `False`."""
347 return self.next_if(expr) is not None
348
349 def __next__(self):
350 """Go one token ahead and return the old one.

Callers 11

parseMethod · 0.45
parse_statementsMethod · 0.45
parse_setMethod · 0.45
parse_forMethod · 0.45
parse_blockMethod · 0.45
parse_fromMethod · 0.45
parse_signatureMethod · 0.45
parse_condexprMethod · 0.45
parse_orMethod · 0.45
parse_andMethod · 0.45
parse_compareMethod · 0.45

Calls 1

next_ifMethod · 0.95

Tested by

no test coverage detected