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

Method getFileOutsideProject

ark/attest/ts7/server.ts:135–143  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

133
134 // e.g. benches excluded by tsconfig, which are only read for their syntax
135 private getFileOutsideProject(path: string): SourceFile | undefined {
136 if (!this.filesOutsideProject.has(path) && existsSync(path)) {
137 this.filesOutsideProject.set(
138 path,
139 this.api.createSourceFileFromFile(path).sourceFile
140 )
141 }
142 return this.filesOutsideProject.get(path)
143 }
144
145 private openProject(files: [path: string, contents: string][] = []): Project {
146 const snapshot = this.api.createSnapshot({

Callers 1

getSourceFileOrThrowMethod · 0.95

Calls 3

getMethod · 0.65
hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected