MCPcopy
hub / github.com/prisma/prisma / write

Method write

packages/ts-builders/src/File.ts:21–34  ·  view source on GitHub ↗
(writer: Writer<undefined>)

Source from the content-addressed store, hash-verified

19 }
20
21 write(writer: Writer<undefined>): void {
22 for (const moduleImport of this.imports) {
23 writer.writeLine(moduleImport)
24 }
25 if (this.imports.length > 0) {
26 writer.newLine()
27 }
28 for (const [i, declaration] of this.declarations.entries()) {
29 writer.writeLine(declaration)
30 if (i < this.declarations.length - 1) {
31 writer.newLine()
32 }
33 }
34 }
35}
36
37export function file(): File {

Callers

nothing calls this directly

Calls 3

writeLineMethod · 0.80
newLineMethod · 0.80
entriesMethod · 0.80

Tested by

no test coverage detected