mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Surface group names via cursor info query.
This commit is contained in:
@@ -1533,7 +1533,7 @@ Optional<BriefAndRawComment> ModuleFile::getCommentForDecl(const Decl *D) {
|
||||
}
|
||||
|
||||
Optional<StringRef> ModuleFile::getGroupNameById(unsigned Id) {
|
||||
if(GroupNamesMap || GroupNamesMap->count(Id) == 0)
|
||||
if(!GroupNamesMap || GroupNamesMap->count(Id) == 0)
|
||||
return None;
|
||||
auto Group = (*GroupNamesMap)[Id];
|
||||
if (Group.empty())
|
||||
|
||||
Reference in New Issue
Block a user