mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] ParamDecl: Extract write of type-checked default expr into its own method
This commit is contained in:
@@ -370,7 +370,7 @@ class Traversal : public ASTVisitor<Traversal, Expr*, Stmt*,
|
||||
if (auto *E = P->getStructuralDefaultExpr()) {
|
||||
auto res = doIt(E);
|
||||
if (!res) return true;
|
||||
P->setDefaultExpr(res, /*isTypeChecked*/ (bool)res->getType());
|
||||
P->setDefaultExpr(res);
|
||||
}
|
||||
|
||||
if (!Walker.shouldWalkAccessorsTheOldWay()) {
|
||||
|
||||
Reference in New Issue
Block a user