mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Allow module references to be indexed (#19243)
Module references get indexed as a 'module' symbol; they get USRs similar to how clang would assign a USR for a module reference. JIRA: https://bugs.swift.org/browse/SR-8677
This commit is contained in:
committed by
Argyrios Kyrtzidis
parent
bb36ddfc17
commit
bf84b297f8
@@ -583,6 +583,9 @@ UIdent SwiftLangSupport::getUIDForSymbol(SymbolInfo sym, bool isRef) {
|
||||
llvm_unreachable("missing extension sub kind");
|
||||
}
|
||||
|
||||
case SymbolKind::Module:
|
||||
return KindRefModule;
|
||||
|
||||
default:
|
||||
// TODO: reconsider whether having a default case is a good idea.
|
||||
return UIdent();
|
||||
|
||||
Reference in New Issue
Block a user