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

Method resolveModuleFile

src/resolution/index.ts:3424–3426  ·  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

3422
3423 /** The project file a module specifier written in `fromFile` names, as its import resolves it; null when none. */
3424 resolveModuleFile(specifier: string, fromFile: string, language: Language): string | null {
3425 return resolveImportPath(specifier, fromFile, language, this.context);
3426 }
3427
3428 /**
3429 * 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