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

Method parse_expression

deps/v8/third_party/jinja2/parser.py:513–520  ·  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: bool = True)

Source from the content-addressed store, hash-verified

511 return target # type: ignore
512
513 def parse_expression(self, with_condexpr: bool = True) -> nodes.Expr:
514 """Parse an expression. Per default all expressions are parsed, if
515 the optional `with_condexpr` parameter is set to `False` conditional
516 expressions are not parsed.
517 """
518 if with_condexpr:
519 return self.parse_condexpr()
520 return self.parse_or()
521
522 def parse_condexpr(self) -> nodes.Expr:
523 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
parseMethod · 0.95

Calls 2

parse_condexprMethod · 0.95
parse_orMethod · 0.95

Tested by

no test coverage detected