File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,6 @@ class FailureDiagnosis :public ASTVisitor<FailureDiagnosis, /*exprresult*/bool>{
221
221
validateContextualType (Type contextualType, ContextualTypePurpose CTP);
222
222
223
223
bool visitExpr (Expr *E);
224
- bool visitIdentityExpr (IdentityExpr *E);
225
224
bool visitTryExpr (TryExpr *E);
226
225
227
226
bool visitApplyExpr (ApplyExpr *AE);
@@ -1582,21 +1581,6 @@ visitRebindSelfInConstructorExpr(RebindSelfInConstructorExpr *E) {
1582
1581
return false ;
1583
1582
}
1584
1583
1585
- // / An IdentityExpr doesn't change its argument, but it *can* propagate its
1586
- // / contextual type information down.
1587
- bool FailureDiagnosis::visitIdentityExpr (IdentityExpr *E) {
1588
- auto contextualType = CS.getContextualType (E);
1589
-
1590
- // If we have a paren expr and our contextual type is a ParenType, remove the
1591
- // paren expr sugar.
1592
- if (contextualType)
1593
- contextualType = contextualType->getWithoutParens ();
1594
- if (!typeCheckChildIndependently (E->getSubExpr (), contextualType,
1595
- CS.getContextualTypePurpose (E)))
1596
- return true ;
1597
- return false ;
1598
- }
1599
-
1600
1584
// / A TryExpr doesn't change it's argument, nor does it change the contextual
1601
1585
// / type.
1602
1586
bool FailureDiagnosis::visitTryExpr (TryExpr *E) {
You can’t perform that action at this time.
0 commit comments