MCPcopy Create free account
hub / github.com/arktypeio/arktype / pathOf

Function pathOf

ark/aot/scan.ts:88–89  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

86 (string | undefined)[] | ScanResolution[]
87> {
88 const pathOf = (id: string) =>
89 isAbsolute(id) ? printablePathOf(host.cwd, id) : id.replace(/^\0/, "")
90 const modules: Record<string, ScannedModule> = {}
91 const targets: Record<string, Record<string, string>> = {}
92 const arkImports: Record<string, string[]> = {}

Callers 6

renderDiagnosticsFunction · 0.70
programStepsFunction · 0.70
unreadAtFunction · 0.70
programAsBuiltFunction · 0.70
unseenProblemOfFunction · 0.70
unfoldedCallProblemOfFunction · 0.70

Calls 3

printablePathOfFunction · 0.90
fileOfFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected