MCPcopy Create free account
hub / github.com/AfterShip/clickhouse-sql-parser / writeIndentIfNeeded

Method writeIndentIfNeeded

parser/format.go:47–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (f *Formatter) writeIndentIfNeeded() {
48 if !f.lineStart {
49 return
50 }
51 for i := 0; i < f.indentLevel; i++ {
52 f.builder.WriteString(f.indent)
53 }
54 f.lineStart = false
55}
56
57func (f *Formatter) WriteString(s string) {
58 for i := 0; i < len(s); i++ {

Callers 1

WriteByteMethod · 0.95

Calls 1

WriteStringMethod · 0.80

Tested by

no test coverage detected