MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / getUsages

Method getUsages

src/utils/usage-tracker.ts:92–100  ·  view source on GitHub ↗

* Find all files that import a given source * This is "Find Usages" - the key value

(importSource: string)

Source from the content-addressed store, hash-verified

90 * This is "Find Usages" - the key value
91 */
92 getUsages(importSource: string): ComponentUsageInfo {
93 const normalized = this.normalizeSource(importSource) || importSource;
94 const usages = this.usages.get(normalized) || [];
95
96 return {
97 usedIn: usages,
98 usageCount: usages.length
99 };
100 }
101
102 /**
103 * Get full usage stats for all tracked imports

Callers

nothing calls this directly

Calls 2

normalizeSourceMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected