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

Method parse_list

tools/inspector_protocol/jinja2/parser.py:641–651  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

639 return nodes.Tuple(args, 'load', lineno=lineno)
640
641 def parse_list(self):
642 token = self.stream.expect('lbracket')
643 items = []
644 while self.stream.current.type != 'rbracket':
645 if items:
646 self.stream.expect('comma')
647 if self.stream.current.type == 'rbracket':
648 break
649 items.append(self.parse_expression())
650 self.stream.expect('rbracket')
651 return nodes.List(items, lineno=token.lineno)
652
653 def parse_dict(self):
654 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