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

Method loop

ark/schema/shared/compile.ts:174–179  ·  view source on GitHub ↗
(prefix: string, body: (self: this) => this)

Source from the content-addressed store, hash-verified

172
173 loopDepth = 0
174 loop(prefix: string, body: (self: this) => this): this {
175 this.loopDepth++
176 this.block(prefix, body)
177 this.loopDepth--
178 return this
179 }
180
181 block(prefix: string, contents: (self: this) => this, suffix = ""): this {
182 this.line(`${prefix} {`)

Callers 7

forMethod · 0.95
forInMethod · 0.95
callOnceFunction · 0.80
timeBatchFunction · 0.80
validate.tsFile · 0.80
compileMethod · 0.80
jsKeyCountMethod · 0.80

Calls 1

blockMethod · 0.95

Tested by

no test coverage detected