MCPcopy Create free account
hub / github.com/nodejs/node / parse_math1

Method parse_math1

deps/v8/third_party/jinja2/parser.py:584–593  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

582 return nodes.Compare(expr, ops, lineno=lineno)
583
584 def parse_math1(self) -> nodes.Expr:
585 lineno = self.stream.current.lineno
586 left = self.parse_concat()
587 while self.stream.current.type in ("add", "sub"):
588 cls = _math_nodes[self.stream.current.type]
589 next(self.stream)
590 right = self.parse_concat()
591 left = cls(left, right, lineno=lineno)
592 lineno = self.stream.current.lineno
593 return left
594
595 def parse_concat(self) -> nodes.Expr:
596 lineno = self.stream.current.lineno

Callers 1

parse_compareMethod · 0.95

Calls 2

parse_concatMethod · 0.95
nextFunction · 0.50

Tested by

no test coverage detected