MCPcopy Index your code
hub / github.com/python/cpython / _parse_optional_fields

Method _parse_optional_fields

Parser/asdl.py:342–346  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

340 return fields
341
342 def _parse_optional_fields(self):
343 if self.cur_token.kind == TokenKind.LParen:
344 return self._parse_fields()
345 else:
346 return None
347
348 def _parse_optional_attributes(self):
349 if self._at_keyword('attributes'):

Callers 1

_parse_typeMethod · 0.95

Calls 1

_parse_fieldsMethod · 0.95

Tested by

no test coverage detected