mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[index] Remove import.sourcefile kind from indexing
We don't support importing source files in source code, and they only showed up in the index under failure conditions.
This commit is contained in:
@@ -30,7 +30,6 @@ using namespace swift::index;
|
||||
|
||||
static UIdent KindImportModuleClang("source.lang.swift.import.module.clang");
|
||||
static UIdent KindImportModuleSwift("source.lang.swift.import.module.swift");
|
||||
static UIdent KindImportSourceFile("source.lang.swift.import.sourcefile");
|
||||
|
||||
static UIdent getUIDForDependencyKind(SymbolKind depKind) {
|
||||
switch (depKind) {
|
||||
@@ -38,8 +37,6 @@ static UIdent getUIDForDependencyKind(SymbolKind depKind) {
|
||||
return KindImportModuleSwift;
|
||||
case SymbolKind::ClangModule:
|
||||
return KindImportModuleClang;
|
||||
case SymbolKind::SourceFile:
|
||||
return KindImportSourceFile;
|
||||
default:
|
||||
return UIdent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user