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

Function parse_body

Tools/c-analyzer/c_parser/parser/_compound_decl_body.py:77–90  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

75 f'{kind} {name}',
76 )
77 def parse_body(source):
78 _parse_body = DECL_BODY_PARSERS[kind]
79
80 data = [] # members
81 ident = f'{kind} {name}'
82 for item in _parse_body(source, anon_name, ident):
83 if item.kind == 'field':
84 data.append(item)
85 else:
86 yield item
87 # XXX Should "parent" really be None for inline type decls?
88 yield srcinfo.resolve(kind, data, name, parent=None)
89
90 srcinfo.resume()
91 yield parse_body
92
93 else:

Callers 1

parse_struct_bodyFunction · 0.70

Calls 3

appendMethod · 0.45
resolveMethod · 0.45
resumeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…