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

Function isNixPathImportRef

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

Source from the content-addressed store, hash-verified

49};
50
51export function isNixPathImportRef(ref: UnresolvedRef): boolean {
52 return (
53 ref.language === 'nix' &&
54 ref.referenceKind === 'imports' &&
55 (ref.referenceName.startsWith('./') || ref.referenceName.startsWith('../')) &&
56 !/[\s{}()[\];"'<>$]/.test(ref.referenceName)
57 );
58}
59
60/**
61 * Resolve an import path to an actual file

Callers 2

resolveOneMethod · 0.90
resolveViaImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected