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

Method parse_expression

tools/inspector_protocol/jinja2/parser.py:426–433  ·  view source on GitHub ↗

Parse an expression. Per default all expressions are parsed, if the optional `with_condexpr` parameter is set to `False` conditional expressions are not parsed.

(self, with_condexpr=True)

Source from the content-addressed store, hash-verified

424 return target
425
426 def parse_expression(self, with_condexpr=True):
427 """Parse an expression. Per default all expressions are parsed, if
428 the optional `with_condexpr` parameter is set to `False` conditional
429 expressions are not parsed.
430 """
431 if with_condexpr:
432 return self.parse_condexpr()
433 return self.parse_or()
434
435 def parse_condexpr(self):
436 lineno = self.stream.current.lineno

Callers 15

compile_expressionMethod · 0.95
parse_forMethod · 0.95
parse_withMethod · 0.95
parse_autoescapeMethod · 0.95
parse_extendsMethod · 0.95
parse_includeMethod · 0.95
parse_importMethod · 0.95
parse_fromMethod · 0.95
parse_signatureMethod · 0.95
parse_call_blockMethod · 0.95
parse_printMethod · 0.95
parse_tupleMethod · 0.95

Calls 2

parse_condexprMethod · 0.95
parse_orMethod · 0.95

Tested by

no test coverage detected