(e *Expr)
| 1501 | return fe |
| 1502 | } |
| 1503 | func (m *BooleanNode) FromExpr(e *Expr) error { |
| 1504 | if e.Op == "" { |
| 1505 | return fmt.Errorf("unrecognized BooleanNode op") |
| 1506 | } |
| 1507 | m.Operator = lex.TokenFromOp(e.Op) |
| 1508 | if len(e.Args) == 0 { |
| 1509 | return fmt.Errorf("Invalid BooleanNode, expected args %+v", e) |
| 1510 | } |
| 1511 | args, err := NodesFromExprs(e.Args) |
| 1512 | if err != nil { |
| 1513 | return err |
| 1514 | } |
| 1515 | m.Args = args |
| 1516 | return nil |
| 1517 | } |
| 1518 | func (m *BooleanNode) Equal(n Node) bool { |
| 1519 | if m == nil && n == nil { |
| 1520 | return true |
nothing calls this directly
no test coverage detected