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

Function analyze_decl

Tools/c-analyzer/c_analyzer/analyze.py:31–39  ·  view source on GitHub ↗
(decl, typespecs, knowntypespecs, types, knowntypes, *,
                 analyze_resolved=None)

Source from the content-addressed store, hash-verified

29
30
31def analyze_decl(decl, typespecs, knowntypespecs, types, knowntypes, *,
32 analyze_resolved=None):
33 resolved = resolve_decl(decl, typespecs, knowntypespecs, types)
34 if resolved is None:
35 # The decl is supposed to be skipped or ignored.
36 return None
37 if analyze_resolved is None:
38 return resolved, None
39 return analyze_resolved(resolved, decl, types, knowntypes)
40
41# This alias helps us avoid name collisions.
42_analyze_decl = analyze_decl

Callers 2

analyze_type_declsFunction · 0.70
_dump_unresolvedFunction · 0.70

Calls 2

resolve_declFunction · 0.85
analyze_resolvedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…