()
| 1618 | } |
| 1619 | } |
| 1620 | func (m *TriNode) Expr() *Expr { |
| 1621 | fe := &Expr{Op: strings.ToLower(m.Operator.V)} |
| 1622 | if len(m.Args) > 0 { |
| 1623 | fe.Args = ExprsFromNodes(m.Args) |
| 1624 | } |
| 1625 | if m.negated { |
| 1626 | return &Expr{Op: "not", Args: []*Expr{fe}} |
| 1627 | } |
| 1628 | return fe |
| 1629 | } |
| 1630 | func (m *TriNode) FromExpr(e *Expr) error { |
| 1631 | if e.Op == "" { |
| 1632 | return fmt.Errorf("unrecognized TriNode no op") |
nothing calls this directly
no test coverage detected