[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:
Xi Ge
2016-03-23 17:25:53 -07:00
parent 41efb3d4d3
commit fda0751cae
20 changed files with 110 additions and 13 deletions

View File

@@ -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);