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

Method definition

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

Source from the content-addressed store, hash-verified

332class Parser(PLexer):
333 @contextual
334 def definition(self) -> AstNode | None:
335 if macro := self.macro_def():
336 return macro
337 if family := self.family_def():
338 return family
339 if pseudo := self.pseudo_def():
340 return pseudo
341 if inst := self.inst_def():
342 return inst
343 if label := self.label_def():
344 return label
345 return None
346
347 @contextual
348 def label_def(self) -> LabelDef | None:

Callers 3

parse_srcFunction · 0.95
parse_filesFunction · 0.95
parsing.pyFile · 0.80

Calls 5

macro_defMethod · 0.95
family_defMethod · 0.95
pseudo_defMethod · 0.95
inst_defMethod · 0.95
label_defMethod · 0.95

Tested by 1

parse_srcFunction · 0.76