MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / importPathKeys

Function importPathKeys

src/db/reference-tail.ts:129–137  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

127 * `ui/index.ts`, `pkg` → `pkg/__init__.py`) or as a Go package.
128 */
129export function importPathKeys(filePath: string): string[] {
130 const parts = filePath.split('/');
131 const keys = new Set<string>();
132 for (const name of parts.slice(-2)) {
133 keys.add(name);
134 keys.add(fileNameStem(name));
135 }
136 return [...keys];
137}
138
139/**
140 * The keys a module reference the file at `filePath` could satisfy is parked

Callers 2

moduleReferenceKeysFunction · 0.85

Calls 2

fileNameStemFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected