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

Method parse_as_name

Lib/_pyrepl/_module_completer.py:445–449  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

443 self.parse_as_name()
444
445 def parse_as_name(self) -> None:
446 self.tokens.pop_name()
447 if self.tokens.peek_string('as'):
448 self.tokens.pop()
449 self.tokens.pop_name()
450
451
452class ParseError(Exception):

Callers 1

parse_as_namesMethod · 0.95

Calls 3

pop_nameMethod · 0.80
peek_stringMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected