Skip to content

Commit ae7f9b1

Browse files
don't use the extended graph if the extension came from a re-exported module
1 parent 604f299 commit ae7f9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SymbolGraphGen/SymbolGraphASTWalker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ bool SymbolGraphASTWalker::walkToDeclPre(Decl *D, CharSourceRange Range) {
230230
if (const auto *ExtendedNominal = Extension->getExtendedNominal()) {
231231
auto ExtendedModule = ExtendedNominal->getModuleContext();
232232
auto ExtendedSG = getModuleSymbolGraph(ExtendedNominal);
233-
if (ExtendedModule != &M) {
233+
if (ExtendedModule != &M && !isExportedImportedModule(ExtendedModule)) {
234234
ExtendedSG->recordNode(Symbol(ExtendedSG, VD, nullptr));
235235
return true;
236236
}

0 commit comments

Comments
 (0)