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

Method WriteNegate

expr/node.go:1834–1840  ·  view source on GitHub ↗
(w DialectWriter)

Source from the content-addressed store, hash-verified

1832 return w.String()
1833}
1834func (m *IncludeNode) WriteNegate(w DialectWriter) {
1835 if !m.negated { // double negation
1836 io.WriteString(w, "NOT")
1837 }
1838 io.WriteString(w, " INCLUDE ")
1839 m.Identity.WriteDialect(w)
1840}
1841func (m *IncludeNode) Validate() error { return nil }
1842func (m *IncludeNode) Negated() bool { return m.negated }
1843func (m *IncludeNode) Collapse() Node { return m }

Callers 1

StringNegateMethod · 0.95

Calls 1

WriteDialectMethod · 0.65

Tested by

no test coverage detected