mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user