-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[AST] only recurse getDisplayDecls in SymbolGraphGen #41204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I've based this PR atop #41115, since the patch assumed that content but it has not been merged into |
@swift-ci Please test |
@swift-ci Please test source compatibility |
Build failed |
...apparently using a nonstandard base branch confuses the CI system, which tries to check out the base branch on several related repos. Then the script fails because (for example) |
I've re-targeted the PR to point directly to @swift-ci Please test |
@swift-ci Please test source compatibility |
@swift-ci Please test macOS |
Build failed |
@swift-ci Please test Linux |
a939350
to
cab1669
Compare
@swift-ci Please test |
This is a forward-port of part of #40866 from
release/5.6
tomain
, restricting the recursive parts ofModuleDecl::getDisplayDecls
(and the associated assertions) behind a (new, optional)recursive
parameter, which is only set totrue
when called from SymbolGraphGen. This restores the old "only this module" behavior for all other users ofgetDisplayDecls
, while allowing the symbol graph to include re-exported symbols.