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

Method parse_dotted_as_name

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

Source from the content-addressed store, hash-verified

404 return from_name
405
406 def parse_dotted_as_name(self) -> str:
407 self.tokens.pop_name()
408 if self.tokens.peek_string('as'):
409 self.tokens.pop()
410 with self.tokens.save_state():
411 return self.parse_dotted_name()
412
413 def parse_dotted_name(self) -> str:
414 name = []

Callers 1

parse_importMethod · 0.95

Calls 5

parse_dotted_nameMethod · 0.95
pop_nameMethod · 0.80
peek_stringMethod · 0.80
save_stateMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected