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

Method _advance

Parser/asdl.py:365–374  ·  view source on GitHub ↗

Return the value of the current token and read the next one into self.cur_token.

(self)

Source from the content-addressed store, hash-verified

363 return quantifiers
364
365 def _advance(self):
366 """ Return the value of the current token and read the next one into
367 self.cur_token.
368 """
369 cur_val = None if self.cur_token is None else self.cur_token.value
370 try:
371 self.cur_token = next(self._tokenizer)
372 except StopIteration:
373 self.cur_token = None
374 return cur_val
375
376 _id_kinds = (TokenKind.ConstructorId, TokenKind.TypeId)
377

Callers 8

parseMethod · 0.95
_parse_moduleMethod · 0.95
_parse_definitionsMethod · 0.95
_parse_typeMethod · 0.95
_parse_fieldsMethod · 0.95
_matchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected