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

Function group_by_kinds

Tools/c-analyzer/c_parser/match.py:171–177  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

169
170
171def group_by_kinds(items):
172 # Collate into kind groups (decl, type, etc.).
173 collated = {_KIND.get_group(k): [] for k in _KIND}
174 for item in items:
175 group = _KIND.get_group(item.kind)
176 collated[group].append(item)
177 return collated

Callers 1

analyze_declsFunction · 0.90

Calls 2

get_groupMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…