mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CleanUp] Use DC as the abbreviation of DeclContext.
Swift SVN r30804
This commit is contained in:
@@ -698,10 +698,10 @@ class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks {
|
||||
SmallVector<StringRef, 3> ParsedKeywords;
|
||||
|
||||
void addSuperKeyword(CodeCompletionResultSink &Sink) {
|
||||
auto *D = CurDeclContext->getInnermostTypeContext();
|
||||
if (!D)
|
||||
auto *DC = CurDeclContext->getInnermostTypeContext();
|
||||
if (!DC)
|
||||
return;
|
||||
Type DT = D->getDeclaredTypeInContext();
|
||||
Type DT = DC->getDeclaredTypeInContext();
|
||||
if (DT.isNull() || DT->is<ErrorType>())
|
||||
return;
|
||||
OwnedResolver TypeResolver(createLazyResolver(CurDeclContext->getASTContext()));
|
||||
|
||||
Reference in New Issue
Block a user