Skip to content

Commit 7673bfa

Browse files
committed
Initial Commit for Issue #61601
1 parent 8ac71b1 commit 7673bfa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4635,7 +4635,9 @@ void PrintAST::visitPostfixOperatorDecl(PostfixOperatorDecl *decl) {
46354635
});
46364636
}
46374637

4638-
void PrintAST::visitModuleDecl(ModuleDecl *decl) { }
4638+
void PrintAST::visitModuleDecl(ModuleDecl *decl) {
4639+
4640+
}
46394641

46404642
void PrintAST::visitMissingDecl(MissingDecl *missing) {
46414643
Printer << "missing_decl";
@@ -4785,7 +4787,13 @@ void PrintAST::visitErrorExpr(ErrorExpr *expr) {
47854787
Printer << "<error>";
47864788
}
47874789

4788-
void PrintAST::visitTernaryExpr(TernaryExpr *expr) {}
4790+
void PrintAST::visitTernaryExpr(TernaryExpr *expr) {
4791+
if (expr->getCondExpr()) {
4792+
visit(expr->getThenExpr());
4793+
} else {
4794+
visit(expr->getElseExpr());
4795+
}
4796+
}
47894797

47904798
void PrintAST::visitIsExpr(IsExpr *expr) {
47914799
}

0 commit comments

Comments
 (0)