MCPcopy
hub / github.com/microsoft/typescript-go / textWriter

Struct textWriter

internal/printer/textwriter.go:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12var _ EmitTextWriter = &textWriter{}
13
14type textWriter struct {
15 newLine string
16 indentSize int
17 builder strings.Builder
18 lastWritten string
19 indent int
20 lineStart bool
21 lineCount int
22 linePos int
23 hasTrailingCommentState bool
24}
25
26func (w *textWriter) Clear() {
27 *w = textWriter{newLine: w.newLine, indentSize: w.indentSize, lineStart: true}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected