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

Function isNixPathImportRef

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

Source from the content-addressed store, hash-verified

85};
86
87export function isNixPathImportRef(ref: UnresolvedRef): boolean {
88 return (
89 ref.language === 'nix' &&
90 ref.referenceKind === 'imports' &&
91 (ref.referenceName.startsWith('./') || ref.referenceName.startsWith('../')) &&
92 !/[\s{}()[\];"'<>$]/.test(ref.referenceName)
93 );
94}
95
96/**
97 * Resolve an import path to an actual file

Callers 2

resolveOneInnerMethod · 0.90
resolveViaImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected