[CodeCompletion] Typo: 'getAnnnoateResult' -> 'getAnnotateResult'

This commit is contained in:
Rintaro Ishizaki
2020-05-12 10:33:45 -07:00
parent 7086ffb79f
commit ecfd369f35
3 changed files with 5 additions and 5 deletions

View File

@@ -889,7 +889,7 @@ public:
: Cache(Cache) {}
void setAnnotateResult(bool flag) { CurrentResults.annotateResult = flag; }
bool getAnnnoateResult() { return CurrentResults.annotateResult; }
bool getAnnotateResult() { return CurrentResults.annotateResult; }
/// Allocate a string owned by the code completion context.
StringRef copyString(StringRef Str);

View File

@@ -6239,7 +6239,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
AccessLevel::Internal, TheModule,
SourceFile::ImportQueryKind::PrivateOnly),
Ctx.LangOpts.CodeCompleteInitsInPostfixExpr,
CompletionContext.getAnnnoateResult(),
CompletionContext.getAnnotateResult(),
};
using PairType = llvm::DenseSet<swift::ide::CodeCompletionCache::Key,
@@ -6443,7 +6443,7 @@ void SimpleCachingCodeCompletionConsumer::handleResultsAndModules(
if (!V.hasValue()) {
// No cached results found. Fill the cache.
V = context.Cache.createValue();
(*V)->Sink.annotateResult = context.getAnnnoateResult();
(*V)->Sink.annotateResult = context.getAnnotateResult();
lookupCodeCompletionResultsFromModule(
(*V)->Sink, R.TheModule, R.Key.AccessPath,
R.Key.ResultsHaveLeadingDot, DCForModules);

View File

@@ -213,7 +213,7 @@ void SwiftLangSupport::codeComplete(
}
SKConsumer.setReusingASTContext(info.completionContext->ReusingASTContext);
SKConsumer.setAnnotatedTypename(info.completionContext->getAnnnoateResult());
SKConsumer.setAnnotatedTypename(info.completionContext->getAnnotateResult());
});
std::string Error;
@@ -1236,7 +1236,7 @@ void SwiftLangSupport::codeCompleteOpen(
typeContextKind = completionCtx.typeContextKind;
mayUseImplicitMemberExpr = completionCtx.MayUseImplicitMemberExpr;
consumer.setReusingASTContext(completionCtx.ReusingASTContext);
consumer.setAnnotatedTypename(completionCtx.getAnnnoateResult());
consumer.setAnnotatedTypename(completionCtx.getAnnotateResult());
completions =
extendCompletions(results, sink, info, nameToPopularity, CCOpts);
});