MCPcopy Index your code
hub / github.com/AfterShip/clickhouse-sql-parser / WriteString

Method WriteString

parser/format.go:57–61  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

55}
56
57func (f *Formatter) WriteString(s string) {
58 for i := 0; i < len(s); i++ {
59 f.WriteByte(s[i])
60 }
61}
62
63func (f *Formatter) WriteByte(b byte) {
64 if f.mode == FormatModeBeautify {

Callers 15

TestParser_FormatFunction · 0.80
validFormatSQLFunction · 0.80
TestVisitor_IdenticalFunction · 0.80
writeIndentIfNeededMethod · 0.80
FormatSQLMethod · 0.80
FormatSQLMethod · 0.80
FormatSQLMethod · 0.80
FormatSQLMethod · 0.80
FormatSQLMethod · 0.80
FormatSQLMethod · 0.80
FormatSQLMethod · 0.80

Calls 1

WriteByteMethod · 0.95

Tested by 4

TestParser_FormatFunction · 0.64
validFormatSQLFunction · 0.64
TestVisitor_IdenticalFunction · 0.64