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

Method parse_list

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

Source from the content-addressed store, hash-verified

742 return nodes.Tuple(args, "load", lineno=lineno)
743
744 def parse_list(self) -> nodes.List:
745 token = self.stream.expect("lbracket")
746 items: t.List[nodes.Expr] = []
747 while self.stream.current.type != "rbracket":
748 if items:
749 self.stream.expect("comma")
750 if self.stream.current.type == "rbracket":
751 break
752 items.append(self.parse_expression())
753 self.stream.expect("rbracket")
754 return nodes.List(items, lineno=token.lineno)
755
756 def parse_dict(self) -> nodes.Dict:
757 token = self.stream.expect("lbrace")

Callers 1

parse_primaryMethod · 0.95

Calls 3

parse_expressionMethod · 0.95
expectMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected