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

Method op

Tools/cases_generator/parsing.py:504–507  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

502
503 @contextual
504 def op(self) -> OpName | None:
505 if tkn := self.expect(lx.IDENTIFIER):
506 return OpName(tkn.text)
507 return None
508
509 @contextual
510 def macro_def(self) -> Macro | None:

Callers

nothing calls this directly

Calls 2

expectMethod · 0.95
OpNameClass · 0.85

Tested by

no test coverage detected