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

Function isJsPathImportRef

src/resolution/import-resolver.ts:2855–2857  ·  view source on GitHub ↗
(ref: UnresolvedRef)

Source from the content-addressed store, hash-verified

2853 * has no import node of that name to pass it.
2854 */
2855export function isJsPathImportRef(ref: UnresolvedRef): boolean {
2856 return ref.referenceKind === 'imports' && ESM_IMPORT_LANGUAGES.has(ref.language) && isJsPathSpecifier(ref.referenceName);
2857}
2858
2859/**
2860 * A JS/TS `imports` reference to the module of an import named by one bare

Callers 3

resolveOneInnerMethod · 0.90
resolveFunction · 0.90
jsModuleFileFunction · 0.85

Calls 2

isJsPathSpecifierFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected