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

Method uops

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

Source from the content-addressed store, hash-verified

520 return None
521
522 def uops(self) -> list[UOp] | None:
523 if uop := self.uop():
524 uop = cast(UOp, uop)
525 uops = [uop]
526 while self.expect(lx.PLUS):
527 if uop := self.uop():
528 uop = cast(UOp, uop)
529 uops.append(uop)
530 else:
531 raise self.make_syntax_error("Expected op name or cache effect")
532 return uops
533 return None
534
535 @contextual
536 def uop(self) -> UOp | None:

Callers 1

macro_defMethod · 0.95

Calls 5

uopMethod · 0.95
expectMethod · 0.95
make_syntax_errorMethod · 0.95
castFunction · 0.90
appendMethod · 0.45

Tested by

no test coverage detected