Skip to content

Commit ecfd369

Browse files
committed
[CodeCompletion] Typo: 'getAnnnoateResult' -> 'getAnnotateResult'
1 parent 7086ffb commit ecfd369

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/swift/IDE/CodeCompletion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ class CodeCompletionContext {
889889
: Cache(Cache) {}
890890

891891
void setAnnotateResult(bool flag) { CurrentResults.annotateResult = flag; }
892-
bool getAnnnoateResult() { return CurrentResults.annotateResult; }
892+
bool getAnnotateResult() { return CurrentResults.annotateResult; }
893893

894894
/// Allocate a string owned by the code completion context.
895895
StringRef copyString(StringRef Str);

lib/IDE/CodeCompletion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6239,7 +6239,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
62396239
AccessLevel::Internal, TheModule,
62406240
SourceFile::ImportQueryKind::PrivateOnly),
62416241
Ctx.LangOpts.CodeCompleteInitsInPostfixExpr,
6242-
CompletionContext.getAnnnoateResult(),
6242+
CompletionContext.getAnnotateResult(),
62436243
};
62446244

62456245
using PairType = llvm::DenseSet<swift::ide::CodeCompletionCache::Key,
@@ -6443,7 +6443,7 @@ void SimpleCachingCodeCompletionConsumer::handleResultsAndModules(
64436443
if (!V.hasValue()) {
64446444
// No cached results found. Fill the cache.
64456445
V = context.Cache.createValue();
6446-
(*V)->Sink.annotateResult = context.getAnnnoateResult();
6446+
(*V)->Sink.annotateResult = context.getAnnotateResult();
64476447
lookupCodeCompletionResultsFromModule(
64486448
(*V)->Sink, R.TheModule, R.Key.AccessPath,
64496449
R.Key.ResultsHaveLeadingDot, DCForModules);

tools/SourceKit/lib/SwiftLang/SwiftCompletion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void SwiftLangSupport::codeComplete(
213213
}
214214

215215
SKConsumer.setReusingASTContext(info.completionContext->ReusingASTContext);
216-
SKConsumer.setAnnotatedTypename(info.completionContext->getAnnnoateResult());
216+
SKConsumer.setAnnotatedTypename(info.completionContext->getAnnotateResult());
217217
});
218218

219219
std::string Error;
@@ -1236,7 +1236,7 @@ void SwiftLangSupport::codeCompleteOpen(
12361236
typeContextKind = completionCtx.typeContextKind;
12371237
mayUseImplicitMemberExpr = completionCtx.MayUseImplicitMemberExpr;
12381238
consumer.setReusingASTContext(completionCtx.ReusingASTContext);
1239-
consumer.setAnnotatedTypename(completionCtx.getAnnnoateResult());
1239+
consumer.setAnnotatedTypename(completionCtx.getAnnotateResult());
12401240
completions =
12411241
extendCompletions(results, sink, info, nameToPopularity, CCOpts);
12421242
});

0 commit comments

Comments
 (0)