| 101 | }; |
| 102 | |
| 103 | struct null_predicate : bool_expr { |
| 104 | virtual ~null_predicate() { } |
| 105 | const char *negate; |
| 106 | shared_ptr<value_expr> expr; |
| 107 | null_predicate(prod *p) : bool_expr(p) { |
| 108 | negate = ((d6()<4) ? "not " : ""); |
| 109 | expr = value_expr::factory(this); |
| 110 | } |
| 111 | virtual void out(std::ostream &out) { |
| 112 | out << *expr << " is " << negate << "NULL"; |
| 113 | } |
| 114 | virtual void accept(prod_visitor *v) { |
| 115 | v->visit(this); |
| 116 | expr->accept(v); |
| 117 | } |
| 118 | }; |
| 119 | |
| 120 | struct exists_predicate : bool_expr { |
| 121 | shared_ptr<struct query_spec> subquery; |
nothing calls this directly
no outgoing calls
no test coverage detected