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

Function namesOwnConfigModule

src/resolution/import-resolver.ts:1771–1774  ·  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

1769 * a package the manifest leaves out than a module still to come.
1770 */
1771function namesOwnConfigModule(importPath: string, fromFile: string, language: Language, context: ResolutionContext): boolean {
1772 return context.isDeclaredPackage?.(importPath, fromFile) === false &&
1773 resolveImportPath(importPath, fromFile, language, context) !== null;
1774}
1775
1776/**
1777 * 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