[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) {} : Cache(Cache) {}
void setAnnotateResult(bool flag) { CurrentResults.annotateResult = flag; } 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. /// Allocate a string owned by the code completion context.
StringRef copyString(StringRef Str); StringRef copyString(StringRef Str);

View File

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

View File

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