MCPcopy
hub / github.com/arktypeio/arktype / write

Method write

ark/schema/shared/compile.ts:113–122  ·  view source on GitHub ↗
(name = "anonymous", indent: number = 0)

Source from the content-addressed store, hash-verified

111 }
112
113 write(name = "anonymous", indent: number = 0): string {
114 return `${name}(${this.argNames.join(", ")}) { ${
115 indent ?
116 this.body
117 .split("\n")
118 .map(l => " ".repeat(indent) + `${l}`)
119 .join("\n")
120 : this.body
121 } }`
122 }
123
124 compile(): compiledSignature {
125 return new DynamicFunction(...this.argNames, this.body) as never

Callers 15

renderMethod · 0.80
stopMethod · 0.80
traceFunction · 0.80
generateTraceDataFunction · 0.80
filterDurationEntriesFunction · 0.80
buildCallTreeFunction · 0.80
sortAndRankFunctionsFunction · 0.80
collectUngroupedStatsFunction · 0.80
displayIndividualSummaryFunction · 0.80
displayTableHeaderFunction · 0.80
displayGroupedSummaryFunction · 0.80

Calls 1

mapMethod · 0.65

Tested by 1

casesFunction · 0.64