NewBooleanNode Create a boolean node @operator = AND, OR @args = nodes
(operator lex.Token, args ...Node)
| 1406 | // @operator = AND, OR |
| 1407 | // @args = nodes |
| 1408 | func NewBooleanNode(operator lex.Token, args ...Node) *BooleanNode { |
| 1409 | //u.Debugf("NewBinaryNode: %v %v %v", lhArg, operator, rhArg) |
| 1410 | return &BooleanNode{Args: args, Operator: operator} |
| 1411 | } |
| 1412 | func (m *BooleanNode) NodeType() string { return "Boolean" } |
| 1413 | func (m *BooleanNode) ReverseNegation() bool { |
| 1414 | m.negated = !m.negated |