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

Function namesOwnConfigModule

src/resolution/import-resolver.ts:1710–1713  ·  view source on GitHub ↗

* Whether a bare specifier names one of the project's files through the * importing app's own config: its `paths` or `baseUrl` map it to a file the * index holds, and no package the app declares goes by it * (`layout/MainLayout` under `"baseUrl": "src"`). Not a name that maps to * nothing yet: u

(importPath: string, fromFile: string, language: Language, context: ResolutionContext)

Source from the content-addressed store, hash-verified

1708 * a package the manifest leaves out than a module still to come.
1709 */
1710function namesOwnConfigModule(importPath: string, fromFile: string, language: Language, context: ResolutionContext): boolean {
1711 return context.isDeclaredPackage?.(importPath, fromFile) === false &&
1712 resolveImportPath(importPath, fromFile, language, context) !== null;
1713}
1714
1715/**
1716 * The Clang compilation databases a project can have, relative to its root,

Callers 1

importBindingTailFunction · 0.85

Calls 2

resolveImportPathFunction · 0.85
isDeclaredPackageMethod · 0.80

Tested by

no test coverage detected