MCPcopy
hub / github.com/prisma/prisma / newLine

Method newLine

packages/ts-builders/src/Writer.ts:74–83  ·  view source on GitHub ↗

* Flushes current line and starts a new line. New line starts at previously configured indentation level * @returns

()

Source from the content-addressed store, hash-verified

72 * @returns
73 */
74 newLine(): this {
75 this.lines.push(this.indentedCurrentLine())
76 this.currentLine = ''
77 this.marginSymbol = undefined
78
79 const afterNextNewLineCallback = this.afterNextNewLineCallback
80 this.afterNextNewLineCallback = undefined
81 afterNextNewLineCallback?.()
82 return this
83 }
84
85 /**
86 * Increases indentation level by 1, calls provided callback and then decreases indentation again.

Callers 6

writeWithContentsMethod · 0.80
writeWithItemsMethod · 0.80
writeMethod · 0.80
writeMethod · 0.80
Writer.test.tsFile · 0.80
writeLineMethod · 0.80

Calls 2

indentedCurrentLineMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected