mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] In interface-gen request, allow clients to send SourceKit an interested USR from which we can infer the group name.
This commit is contained in:
@@ -511,6 +511,11 @@ SerializedASTFile::collectAllGroups(std::vector<StringRef> &Names) const {
|
||||
File.collectAllGroups(Names);
|
||||
};
|
||||
|
||||
Optional<StringRef>
|
||||
SerializedASTFile::getGroupNameByUSR(StringRef USR) const {
|
||||
return File.getGroupNameByUSR(USR);
|
||||
}
|
||||
|
||||
void
|
||||
SerializedASTFile::getTopLevelDecls(SmallVectorImpl<Decl*> &results) const {
|
||||
File.getTopLevelDecls(results);
|
||||
|
||||
Reference in New Issue
Block a user