| 32 | } |
| 33 | |
| 34 | SingleQuery Transformer::transformSinglePartQuery(CypherParser::OC_SinglePartQueryContext& ctx) { |
| 35 | auto singleQuery = SingleQuery(); |
| 36 | for (auto& readingClause : ctx.oC_ReadingClause()) { |
| 37 | singleQuery.addReadingClause(transformReadingClause(*readingClause)); |
| 38 | } |
| 39 | for (auto& updatingClause : ctx.oC_UpdatingClause()) { |
| 40 | singleQuery.addUpdatingClause(transformUpdatingClause(*updatingClause)); |
| 41 | } |
| 42 | if (ctx.oC_Return()) { |
| 43 | singleQuery.setReturnClause(transformReturn(*ctx.oC_Return())); |
| 44 | } |
| 45 | return singleQuery; |
| 46 | } |
| 47 | |
| 48 | QueryPart Transformer::transformQueryPart(CypherParser::IC_QueryPartContext& ctx) { |
| 49 | auto queryPart = QueryPart(transformWith(*ctx.oC_With())); |
nothing calls this directly
no test coverage detected