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

Function describe

ark/jetbrains/scripts/diffEngine.ts:133–140  ·  view source on GitHub ↗
(file: DumpedFile, line: number)

Source from the content-addressed store, hash-verified

131 let reported = 0
132 let record = 0
133 const describe = (file: DumpedFile, line: number) =>
134 JSON.stringify(
135 (file.lines?.[line] ?? []).map(([start, end, scopes]) => [
136 start,
137 end,
138 file.scopes![scopes].join(" ")
139 ])
140 )
141 const ours = createInterface({ input: createReadStream(ourFile) })
142 for await (const json of ours) {
143 const our: DumpedFile = JSON.parse(json)

Callers 3

diffEngine.tsFile · 0.70
matchesOracleMethod · 0.50
expectedLinesMethod · 0.50

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected