Skip to content

Commit c4e0c96

Browse files
committed
ASTDumper: Better dumping of the thrown error type of a function type
1 parent 5b23b23 commit c4e0c96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4224,16 +4224,16 @@ namespace {
42244224
printFlag(T->isAsync(), "async");
42254225
printFlag(T->isThrowing(), "throws");
42264226
}
4227-
if (Type thrownError = T->getThrownError()) {
4228-
printFieldQuoted(thrownError.getString(), "thrown_error");
4229-
}
42304227
if (Type globalActor = T->getGlobalActor()) {
42314228
printFieldQuoted(globalActor.getString(), "global_actor");
42324229
}
42334230

42344231
printClangTypeRec(T->getClangTypeInfo(), T->getASTContext());
42354232
printAnyFunctionParamsRec(T->getParams(), "input");
42364233
printRec(T->getResult(), "output");
4234+
if (Type thrownError = T->getThrownError()) {
4235+
printRec(thrownError, "thrown_error");
4236+
}
42374237
}
42384238

42394239
void visitFunctionType(FunctionType *T, StringRef label) {

0 commit comments

Comments
 (0)