fix missing effects specifiers on eff props in swiftinterface

I missed the case where the body is also being printed in the
interface file.
This commit is contained in:
Kavon Farvardin
2021-04-29 17:36:38 -07:00
parent c236f85039
commit c1f48c6855
2 changed files with 38 additions and 0 deletions

View File

@@ -3490,6 +3490,10 @@ void PrintAST::visitAccessorDecl(AccessorDecl *decl) {
});
}
// handle effects specifiers before the body
if (decl->hasAsync()) Printer << " async";
if (decl->hasThrows()) Printer << " throws";
printBodyIfNecessary(decl);
}