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

Method resolve

Tools/c-analyzer/c_parser/parser/_info.py:116–121  ·  view source on GitHub ↗
(self, kind, data, name, parent=None)

Source from the content-addressed store, hash-verified

114 self._clear(start)
115
116 def resolve(self, kind, data, name, parent=None):
117 # "field" isn't a top-level kind, so we leave it as-is.
118 if kind and kind != 'field':
119 kind = KIND._from_raw(kind)
120 fileinfo = FileInfo(self.filename, self._start)
121 return ParsedItem(fileinfo, kind, parent, name, data)
122
123 def done(self):
124 self._set_ready()

Callers 9

root_relative_pathFunction · 0.45
_parse_next_local_staticFunction · 0.45
parse_bodyFunction · 0.45
_parse_struct_nextFunction · 0.45
parse_bodyFunction · 0.45
parse_enum_bodyFunction · 0.45
_parse_nextFunction · 0.45
parse_bodyFunction · 0.45

Calls 3

FileInfoClass · 0.85
ParsedItemClass · 0.85
_from_rawMethod · 0.80

Tested by

no test coverage detected