only recurse getDisplayDecls in SymbolGraphGen

This commit is contained in:
Victoria Mitchell
2022-02-03 12:19:37 -07:00
parent 036d78f6ad
commit cab1669e09
14 changed files with 45 additions and 30 deletions

View File

@@ -57,7 +57,7 @@ symbolgraphgen::emitSymbolGraphForModule(ModuleDecl *M,
const SymbolGraphOptions &Options) {
SymbolGraphASTWalker Walker(*M, Options);
SmallVector<Decl *, 64> ModuleDecls;
swift::getTopLevelDeclsForDisplay(M, ModuleDecls);
swift::getTopLevelDeclsForDisplay(M, ModuleDecls, /*recursive*/true);
if (Options.PrintMessages)
llvm::errs() << ModuleDecls.size()