MCPcopy Create free account
hub / github.com/araddon/qlbridge / writeToString

Method writeToString

expr/node.go:1438–1451  ·  view source on GitHub ↗
(w DialectWriter, negate string)

Source from the content-addressed store, hash-verified

1436
1437}
1438func (m *BooleanNode) writeToString(w DialectWriter, negate string) {
1439 if len(negate) > 0 {
1440 io.WriteString(w, negate)
1441 }
1442 io.WriteString(w, m.Operator.V)
1443 io.WriteString(w, " ( ")
1444 for i, n := range m.Args {
1445 if i != 0 {
1446 io.WriteString(w, ", ")
1447 }
1448 n.WriteDialect(w)
1449 }
1450 io.WriteString(w, " )")
1451}
1452func (m *BooleanNode) Collapse() Node {
1453 if len(m.Args) == 1 {
1454 if m.Negated() {

Callers 2

WriteNegateMethod · 0.95
WriteDialectMethod · 0.95

Calls 1

WriteDialectMethod · 0.65

Tested by

no test coverage detected