Skip to content

Commit e6ce361

Browse files
committed
[CodeCompletion] Rename typeCheckContextUntil to typeCheckContextAt
1 parent 36123a7 commit e6ce361

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/IDE/CodeCompletion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5734,7 +5734,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
57345734
CurDeclContext = DC;
57355735
}
57365736

5737-
typeCheckContextUntil(
5737+
typeCheckContextAt(
57385738
CurDeclContext,
57395739
ParsedExpr
57405740
? ParsedExpr->getLoc()

lib/IDE/ConformingMethodList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void ConformingMethodListCallbacks::doneParsing() {
6767
if (!ParsedExpr)
6868
return;
6969

70-
typeCheckContextUntil(CurDeclContext, ParsedExpr->getLoc());
70+
typeCheckContextAt(CurDeclContext, ParsedExpr->getLoc());
7171

7272
Type T = ParsedExpr->getType();
7373

lib/IDE/ExprContextAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ using namespace swift;
3737
using namespace ide;
3838

3939
//===----------------------------------------------------------------------===//
40-
// typeCheckContextUntil(DeclContext, SourceLoc)
40+
// typeCheckContextAt(DeclContext, SourceLoc)
4141
//===----------------------------------------------------------------------===//
4242

4343
namespace {
@@ -99,7 +99,7 @@ void typeCheckContextImpl(DeclContext *DC, SourceLoc Loc) {
9999
}
100100
} // anonymous namespace
101101

102-
void swift::ide::typeCheckContextUntil(DeclContext *DC, SourceLoc Loc) {
102+
void swift::ide::typeCheckContextAt(DeclContext *DC, SourceLoc Loc) {
103103
while (isa<AbstractClosureExpr>(DC))
104104
DC = DC->getParent();
105105

lib/IDE/ExprContextAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ enum class SemanticContextKind;
2828

2929
/// Type check parent contexts of the given decl context, and the body of the
3030
/// given context until \c Loc if the context is a function body.
31-
void typeCheckContextUntil(DeclContext *DC, SourceLoc Loc);
31+
void typeCheckContextAt(DeclContext *DC, SourceLoc Loc);
3232

3333
/// From \p DC, find and returns the outer most expression which source range is
3434
/// exact the same as \p TargetRange. Returns \c nullptr if not found.

lib/IDE/TypeContextInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void ContextInfoCallbacks::doneParsing() {
8888
if (!ParsedExpr)
8989
return;
9090

91-
typeCheckContextUntil(CurDeclContext, ParsedExpr->getLoc());
91+
typeCheckContextAt(CurDeclContext, ParsedExpr->getLoc());
9292

9393
ExprContextInfo Info(CurDeclContext, ParsedExpr);
9494

0 commit comments

Comments
 (0)