mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] CursorInfo: The result of cursor info for a module name starts to include group names in that module.
This commit is contained in:
@@ -581,6 +581,11 @@ static bool passCursorInfoForModule(ModuleEntity Mod,
|
||||
if (auto IFaceGenRef = IFaceGenContexts.find(Info.ModuleName, Invok))
|
||||
Info.ModuleInterfaceName = IFaceGenRef->getDocumentName();
|
||||
Info.IsSystem = Mod.isSystemModule();
|
||||
std::vector<StringRef> Groups;
|
||||
if (auto MD = Mod.getAsSwiftModule()) {
|
||||
Info.ModuleGroupArray = ide::collectModuleGroups(const_cast<ModuleDecl*>(MD),
|
||||
Groups);
|
||||
}
|
||||
Receiver(Info);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user