Revert "[CodeCompletion] Add the initial support for code completing import declaration."

This reverts r30957 because it broke the following tests on Jenkins:

    SourceKit :: CodeComplete/complete_open.swift
    SourceKit :: CodeComplete/complete_test.swift

<rdar://problem/22120345> swift-incremental-RA #8289 failed to build

Swift SVN r30961
This commit is contained in:
Chris Willmore
2015-08-03 21:04:46 +00:00
parent cd947e397b
commit e4d1ac9c24
6 changed files with 1 additions and 69 deletions

View File

@@ -2085,15 +2085,8 @@ ParserResult<ImportDecl> Parser::parseDeclImport(ParseDeclOptions Flags,
DeclAttributes &Attributes) {
SourceLoc ImportLoc = consumeToken(tok::kw_import);
if (Tok.is(tok::code_complete)) {
if (CodeCompletion) {
CodeCompletion->completeImportDecl();
}
return makeParserCodeCompletionStatus();
}
DebuggerContextChange DCC (*this);
if (!DCC.movedToTopLevel() && !(Flags & PD_AllowTopLevel)) {
diagnose(ImportLoc, diag::decl_inner_scope);
return nullptr;