File tree Expand file tree Collapse file tree 4 files changed +0
-29
lines changed
tools/SourceKit/lib/SwiftLang Expand file tree Collapse file tree 4 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ enum class SymbolKind {
26
26
27
27
Module,
28
28
ClangModule, // FIXME: collapse into Module and use a separate Language field.
29
- SourceFile,
30
29
31
30
Enum,
32
31
Struct,
Original file line number Diff line number Diff line change @@ -410,10 +410,6 @@ bool IndexSwiftASTWalker::visitImports(
410
410
for (auto File : Mod->getFiles ()) {
411
411
switch (File->getKind ()) {
412
412
case FileUnitKind::Source:
413
- assert (ImportKind == SymbolKind::Unknown &&
414
- " cannot handle multi-file modules" );
415
- ImportKind = SymbolKind::SourceFile;
416
- break ;
417
413
case FileUnitKind::Builtin:
418
414
case FileUnitKind::Derived:
419
415
break ;
Original file line number Diff line number Diff line change 7
7
key.filepath: Swift.swiftmodule,
8
8
key.hash: <hash>,
9
9
key.is_system: 1
10
- },
11
- {
12
- key.kind: source.lang.swift.import.sourcefile,
13
- key.name: "ObjectiveC",
14
- key.filepath: ObjectiveC.swift,
15
- key.hash: <hash>,
16
- key.dependencies: [
17
- {
18
- key.kind: source.lang.swift.import.module.swift,
19
- key.name: "Swift",
20
- key.filepath: Swift.swiftmodule,
21
- key.hash: <hash>,
22
- key.is_system: 1
23
- },
24
- {
25
- key.kind: source.lang.swift.import.module.clang,
26
- key.name: "ObjectiveC",
27
- key.filepath: ObjectiveC.pcm,
28
- key.is_system: 1
29
- }
30
- ]
31
10
}
32
11
],
33
12
key.entities: [
Original file line number Diff line number Diff line change @@ -30,16 +30,13 @@ using namespace swift::index;
30
30
31
31
static UIdent KindImportModuleClang (" source.lang.swift.import.module.clang" );
32
32
static UIdent KindImportModuleSwift (" source.lang.swift.import.module.swift" );
33
- static UIdent KindImportSourceFile (" source.lang.swift.import.sourcefile" );
34
33
35
34
static UIdent getUIDForDependencyKind (SymbolKind depKind) {
36
35
switch (depKind) {
37
36
case SymbolKind::Module:
38
37
return KindImportModuleSwift;
39
38
case SymbolKind::ClangModule:
40
39
return KindImportModuleClang;
41
- case SymbolKind::SourceFile:
42
- return KindImportSourceFile;
43
40
default :
44
41
return UIdent ();
45
42
}
You can’t perform that action at this time.
0 commit comments