| 4 | namespace binder { |
| 5 | |
| 6 | std::string CaseExpression::toStringInternal() const { |
| 7 | std::string result = "CASE "; |
| 8 | for (auto& caseAlternative : caseAlternatives) { |
| 9 | result += "WHEN " + caseAlternative->whenExpression->toString() + " THEN " + |
| 10 | caseAlternative->thenExpression->toString(); |
| 11 | } |
| 12 | result += " ELSE " + elseExpression->toString(); |
| 13 | return result; |
| 14 | } |
| 15 | |
| 16 | } // namespace binder |
| 17 | } // namespace lbug |