MCPcopy Create free account
hub / github.com/apache/qpid-proton / parse_list

Function parse_list

c/tools/codec-generator/generate.py:260–266  ·  view source on GitHub ↗
(format: str)

Source from the content-addressed store, hash-verified

258
259
260def parse_list(format: str) -> Tuple[List[ASTNode], str]:
261 rest = format
262 list = []
263 while not rest[0] == ']':
264 i, rest, = parse_item(rest)
265 list.append(i)
266 return list, rest
267
268
269def parse_item(format: str) -> Tuple[ASTNode, str]:

Callers 1

parse_itemFunction · 0.85

Calls 2

parse_itemFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected