[CleanUp] Use DC as the abbreviation of DeclContext.

Swift SVN r30804
This commit is contained in:
Xi Ge
2015-07-30 17:16:28 +00:00
parent 33611bfe33
commit c5ebe153d1

View File

@@ -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()));