Skip to content

Commit 6c6035e

Browse files
committed
Drop TypeCheckers out of TypeCheckStmt
1 parent c42cf3d commit 6c6035e

File tree

3 files changed

+143
-106
lines changed

3 files changed

+143
-106
lines changed

lib/IDE/ExprContextAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void typeCheckContextImpl(DeclContext *DC, SourceLoc Loc) {
7474

7575
case DeclContextKind::AbstractFunctionDecl: {
7676
auto *AFD = cast<AbstractFunctionDecl>(DC);
77-
typeCheckAbstractFunctionBodyUntil(AFD, Loc);
77+
swift::typeCheckAbstractFunctionBodyUntil(AFD, Loc);
7878
break;
7979
}
8080

lib/Sema/CSApply.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5604,7 +5604,7 @@ ClosureExpr *ExprRewriter::coerceClosureExprToVoid(ClosureExpr *closureExpr) {
56045604
cs.getType(singleExpr)->getWithoutSpecifierType());
56055605

56065606
cs.setExprTypes(singleExpr);
5607-
tc.checkIgnoredExpr(singleExpr);
5607+
TypeChecker::checkIgnoredExpr(singleExpr);
56085608

56095609
SmallVector<ASTNode, 2> elements;
56105610
elements.push_back(singleExpr);
@@ -5643,7 +5643,7 @@ ClosureExpr *ExprRewriter::coerceClosureExprFromNever(ClosureExpr *closureExpr)
56435643
auto singleExpr = returnStmt->getResult();
56445644

56455645
cs.setExprTypes(singleExpr);
5646-
tc.checkIgnoredExpr(singleExpr);
5646+
TypeChecker::checkIgnoredExpr(singleExpr);
56475647

56485648
SmallVector<ASTNode, 1> elements;
56495649
elements.push_back(singleExpr);

0 commit comments

Comments
 (0)