| 87 | } |
| 88 | |
| 89 | NormalizedQueryPart Binder::bindQueryPart(const QueryPart& queryPart) { |
| 90 | auto normalizedQueryPart = NormalizedQueryPart(); |
| 91 | for (auto i = 0u; i < queryPart.getNumReadingClauses(); i++) { |
| 92 | normalizedQueryPart.addReadingClause(bindReadingClause(*queryPart.getReadingClause(i))); |
| 93 | } |
| 94 | for (auto i = 0u; i < queryPart.getNumUpdatingClauses(); ++i) { |
| 95 | normalizedQueryPart.addUpdatingClause(bindUpdatingClause(*queryPart.getUpdatingClause(i))); |
| 96 | } |
| 97 | auto boundWithClause = bindWithClause(*queryPart.getWithClause()); |
| 98 | normalizedQueryPart.setProjectionBody(boundWithClause.getProjectionBody()->copy()); |
| 99 | if (boundWithClause.hasWhereExpression()) { |
| 100 | normalizedQueryPart.setProjectionBodyPredicate(boundWithClause.getWhereExpression()); |
| 101 | } |
| 102 | return normalizedQueryPart; |
| 103 | } |
| 104 | |
| 105 | } // namespace binder |
| 106 | } // namespace lbug |
nothing calls this directly
no test coverage detected