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

Function NewTriNode

expr/node.go:1554–1556  ·  view source on GitHub ↗

Create a Tri node @arg1 [NOT] BETWEEN @arg2 AND @arg3

(operator lex.Token, arg1, arg2, arg3 Node)

Source from the content-addressed store, hash-verified

1552// @arg1 [NOT] BETWEEN @arg2 AND @arg3
1553//
1554func NewTriNode(operator lex.Token, arg1, arg2, arg3 Node) *TriNode {
1555 return &TriNode{Args: []Node{arg1, arg2, arg3}, Operator: operator}
1556}
1557func (m *TriNode) NodeType() string { return "Ternary" }
1558func (m *TriNode) ReverseNegation() bool {
1559 m.negated = !m.negated

Callers 1

cInnerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected