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

Function inFile

src/resolution/import-resolver.ts:3744–3744  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3742 context: ResolutionContext
3743): Node | undefined {
3744 const inFile = (): Node | undefined => (file ? findExportedSymbol(file, want, ref.language, context, new Set()) : undefined);
3745 const declared = isBareModuleSpecifier(source, ref.language) ? findAmbientModuleExport(source, want, ref, context) : undefined;
3746 if (!declared) return inFile();
3747 return (isRepositoryModule(source, file, ref, context) ? inFile() : undefined) ?? declared;

Callers 2

findImportedExportFunction · 0.85

Calls 1

findExportedSymbolFunction · 0.85

Tested by

no test coverage detected