| 9 | } |
| 10 | |
| 11 | std::unique_ptr<Statement> Transformer::transformRegularQuery( |
| 12 | CypherParser::OC_RegularQueryContext& ctx) { |
| 13 | auto regularQuery = std::make_unique<RegularQuery>(transformSingleQuery(*ctx.oC_SingleQuery())); |
| 14 | for (auto unionClause : ctx.oC_Union()) { |
| 15 | regularQuery->addSingleQuery(transformSingleQuery(*unionClause->oC_SingleQuery()), |
| 16 | unionClause->ALL()); |
| 17 | } |
| 18 | return regularQuery; |
| 19 | } |
| 20 | |
| 21 | SingleQuery Transformer::transformSingleQuery(CypherParser::OC_SingleQueryContext& ctx) { |
| 22 | auto singleQuery = |
nothing calls this directly
no test coverage detected