Merge pull request #59 from NanXiao/print-op-expr
Print exprList in printOperatorExpression
This commit is contained in:
commit
59140d573e
|
@ -81,7 +81,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) {
|
||||||
|
|
Loading…
Reference in New Issue