mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] CursorInfo: The result of cursor info for a module name starts to include group names in that module.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user