mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeCompletion] Typo: 'getAnnnoateResult' -> 'getAnnotateResult'
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user