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

Method resolveModuleFile

src/resolution/index.ts:3694–3696  ·  view source on GitHub ↗

The project file a module specifier written in `fromFile` names, as its import resolves it; null when none.

(specifier: string, fromFile: string, language: Language)

Source from the content-addressed store, hash-verified

3692
3693 /** The project file a module specifier written in `fromFile` names, as its import resolves it; null when none. */
3694 resolveModuleFile(specifier: string, fromFile: string, language: Language): string | null {
3695 return resolveImportPath(specifier, fromFile, language, this.context);
3696 }
3697
3698 /**
3699 * What `ref` resolves to against the graph as it is now, writing nothing:

Callers

nothing calls this directly

Calls 1

resolveImportPathFunction · 0.90

Tested by

no test coverage detected