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

Function isNixPathImportRef

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

Source from the content-addressed store, hash-verified

89};
90
91export function isNixPathImportRef(ref: UnresolvedRef): boolean {
92 return (
93 ref.language === 'nix' &&
94 ref.referenceKind === 'imports' &&
95 (ref.referenceName.startsWith('./') || ref.referenceName.startsWith('../')) &&
96 !/[\s{}()[\];"'<>$]/.test(ref.referenceName)
97 );
98}
99
100/**
101 * 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