mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Index] Add index support for cross import overlays.
Resolves rdar://problem/59445445
This commit is contained in:
@@ -912,12 +912,9 @@ static bool passCursorInfoForDecl(SourceFile* SF,
|
||||
if (SF) {
|
||||
// In a source file we map the imported overlays to the underlying
|
||||
// modules they shadow.
|
||||
while (MD->getNameStr().startswith("_")) {
|
||||
auto *Underlying = SF->getModuleShadowedBySeparatelyImportedOverlay(MD);
|
||||
if (!Underlying)
|
||||
break;
|
||||
auto *Underlying = SF->getModuleShadowedBySeparatelyImportedOverlay(MD);
|
||||
if (Underlying)
|
||||
MD = Underlying;
|
||||
}
|
||||
} else if (MainModule) {
|
||||
// In a module interface we need to map the declared overlays of the main
|
||||
// module (which are included in its generated interface) back to the main
|
||||
|
||||
Reference in New Issue
Block a user