Print exprList in printOperatorExpression

This commit is contained in:
Nan Xiao 2017-08-03 14:28:29 +08:00
parent e7c2833e43
commit 165583a60b
1 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,11 @@ namespace hsql {
break; break;
} }
printExpression(expr->expr, numIndent + 1); printExpression(expr->expr, numIndent + 1);
if (expr->expr2 != nullptr) printExpression(expr->expr2, numIndent + 1); if (expr->expr2 != nullptr) {
printExpression(expr->expr2, numIndent + 1);
} else if (expr->exprList != nullptr) {
for (Expr* e : *expr->exprList) printExpression(e, numIndent + 1);
}
} }
void printExpression(Expr* expr, uintmax_t numIndent) { void printExpression(Expr* expr, uintmax_t numIndent) {