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

Method parse_postfix

deps/v8/third_party/jinja2/parser.py:771–782  ·  view source on GitHub ↗
(self, node: nodes.Expr)

Source from the content-addressed store, hash-verified

769 return nodes.Dict(items, lineno=token.lineno)
770
771 def parse_postfix(self, node: nodes.Expr) -> nodes.Expr:
772 while True:
773 token_type = self.stream.current.type
774 if token_type == "dot" or token_type == "lbracket":
775 node = self.parse_subscript(node)
776 # calls are valid both after postfix expressions (getattr
777 # and getitem) as well as filters and tests
778 elif token_type == "lparen":
779 node = self.parse_call(node)
780 else:
781 break
782 return node
783
784 def parse_filter_expr(self, node: nodes.Expr) -> nodes.Expr:
785 while True:

Callers 2

parse_unaryMethod · 0.95
parse_testMethod · 0.95

Calls 2

parse_subscriptMethod · 0.95
parse_callMethod · 0.95

Tested by

no test coverage detected