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

Method inst_def

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

Source from the content-addressed store, hash-verified

359
360 @contextual
361 def inst_def(self) -> InstDef | None:
362 if hdr := self.inst_header():
363 block = self.block()
364 return InstDef(
365 hdr.annotations,
366 hdr.kind,
367 hdr.name,
368 hdr.inputs,
369 hdr.outputs,
370 block,
371 )
372 return None
373
374 @contextual
375 def inst_header(self) -> InstHeader | None:

Callers 1

definitionMethod · 0.95

Calls 3

inst_headerMethod · 0.95
blockMethod · 0.95
InstDefClass · 0.85

Tested by

no test coverage detected