[SourceKit] CursorInfo: The result of cursor info for a module name starts to include group names in that module.

This commit is contained in:
Xi Ge
2016-03-21 16:29:18 -07:00
parent acdf28f440
commit 3dd149ab99
8 changed files with 55 additions and 1 deletions

View File

@@ -1649,3 +1649,10 @@ bool ModuleEntity::isBuiltinModule() const {
return SwiftMod->isBuiltinModule();
return false;
}
const ModuleDecl* ModuleEntity::getAsSwiftModule() const {
assert(!Mod.isNull());
if (auto SwiftMod = Mod.dyn_cast<const Module*>())
return SwiftMod;
return nullptr;
}