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

Method writeLogicalOperand

parser/format.go:136–144  ·  view source on GitHub ↗
(formatter *Formatter, expr Expr)

Source from the content-addressed store, hash-verified

134}
135
136func (p *BinaryOperation) writeLogicalOperand(formatter *Formatter, expr Expr) {
137 if isLogicalBinaryOp(expr) {
138 formatter.WriteExpr(expr)
139 } else {
140 formatter.Indent()
141 formatter.WriteExpr(expr)
142 formatter.Dedent()
143 }
144}
145
146func (p *BinaryOperation) FormatSQL(formatter *Formatter) {
147 if p.isLogicalOp() && formatter.mode == FormatModeBeautify {

Callers 1

FormatSQLMethod · 0.95

Calls 4

isLogicalBinaryOpFunction · 0.85
WriteExprMethod · 0.80
IndentMethod · 0.80
DedentMethod · 0.80

Tested by

no test coverage detected