mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Add a new query to collect all group names from a module.
Input: Request Id: 'source.request.module.groups' Required field: 'key.modulename' Output: Array of group names in that module, if any.
This commit is contained in:
@@ -494,6 +494,11 @@ SerializedASTFile::getGroupNameForDecl(const Decl *D) const {
|
||||
return File.getGroupNameForDecl(D);
|
||||
}
|
||||
|
||||
void
|
||||
SerializedASTFile::collectAllGroups(std::vector<StringRef> &Names) const {
|
||||
File.collectAllGroups(Names);
|
||||
};
|
||||
|
||||
void
|
||||
SerializedASTFile::getTopLevelDecls(SmallVectorImpl<Decl*> &results) const {
|
||||
File.getTopLevelDecls(results);
|
||||
|
||||
Reference in New Issue
Block a user