MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / toStringInternal

Method toStringInternal

src/binder/expression/case_expression.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace binder {
5
6std::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

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected