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

Method line

ark/schema/shared/compile.ts:129–132  ·  view source on GitHub ↗
(statement: string)

Source from the content-addressed store, hash-verified

127 }
128
129 line(statement: string): this {
130 this.lines.push(`${" ".repeat(this.indentation)}${statement}\n`)
131 return this
132 }
133
134 const(identifier: string, expression: CoercibleValue): this {
135 this.line(`const ${identifier} = ${expression}`)

Callers 15

writeUnitFunction · 0.95
constMethod · 0.95
letMethod · 0.95
setMethod · 0.95
blockMethod · 0.95
returnMethod · 0.95
compileMethod · 0.80
jsAllowsMethod · 0.80
checksMethod · 0.80
jsIndiscMethod · 0.80
jsTfMethod · 0.80
jsElemTfsMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected