()
| 1491 | } |
| 1492 | } |
| 1493 | func (m *BooleanNode) Expr() *Expr { |
| 1494 | fe := &Expr{Op: strings.ToLower(m.Operator.V)} |
| 1495 | if len(m.Args) > 0 { |
| 1496 | fe.Args = ExprsFromNodes(m.Args) |
| 1497 | } |
| 1498 | if m.negated { |
| 1499 | return &Expr{Op: "not", Args: []*Expr{fe}} |
| 1500 | } |
| 1501 | return fe |
| 1502 | } |
| 1503 | func (m *BooleanNode) FromExpr(e *Expr) error { |
| 1504 | if e.Op == "" { |
| 1505 | return fmt.Errorf("unrecognized BooleanNode op") |
nothing calls this directly
no test coverage detected