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

Function _handle_unresolved

Tools/c-analyzer/c_analyzer/analyze.py:207–236  ·  view source on GitHub ↗
(unresolved, types, analyze_decl)

Source from the content-addressed store, hash-verified

205
206
207def _handle_unresolved(unresolved, types, analyze_decl):
208 #raise NotImplementedError(unresolved)
209
210 dump = True
211 dump = False
212 if dump:
213 print()
214 for decl in types: # Preserve the original order.
215 if decl not in unresolved:
216 assert types[decl] is not None, decl
217 if types[decl] in (UNKNOWN, IGNORED):
218 unresolved.add(decl)
219 if dump:
220 _dump_unresolved(decl, types, analyze_decl)
221 print()
222 else:
223 assert types[decl][0] is not None, (decl, types[decl])
224 assert None not in types[decl][0], (decl, types[decl])
225 else:
226 assert types[decl] is None
227 if dump:
228 _dump_unresolved(decl, types, analyze_decl)
229 print()
230 #raise NotImplementedError
231
232 for decl in unresolved:
233 types[decl] = ([_SKIPPED], None)
234
235 for decl in types:
236 assert types[decl]
237
238
239def _dump_unresolved(decl, types, analyze_decl):

Callers

nothing calls this directly

Calls 2

_dump_unresolvedFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…