File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -983,7 +983,7 @@ class ModuleDecl
983983 // / \p filter controls whether public, private, or any imports are included
984984 // / in this list.
985985 void getImportedModules (SmallVectorImpl<ImportedModule> &imports,
986- ImportFilter filter = ImportFilterKind::Exported ) const ;
986+ ImportFilter filter) const ;
987987
988988 // / Looks up which external macros are defined by this file.
989989 void getExternalMacros (SmallVectorImpl<ExternalMacroPlugin> ¯os) const ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ ImportDepth::ImportDepth(ASTContext &context,
6464
6565 // Add imports to the worklist.
6666 SmallVector<ImportedModule, 16 > imports;
67- module ->getImportedModules (imports);
67+ module ->getImportedModules (imports, ModuleDecl::ImportFilterKind::Exported );
6868 for (auto &import : imports) {
6969 uint8_t next = std::max (depth, uint8_t (depth + 1 )); // unsigned wrap
7070
Original file line number Diff line number Diff line change @@ -2091,12 +2091,8 @@ void IndexSwiftASTWalker::collectRecursiveModuleImports(
20912091 return ;
20922092 }
20932093
2094- ModuleDecl::ImportFilter ImportFilter;
2095- ImportFilter |= ModuleDecl::ImportFilterKind::Exported;
2096- ImportFilter |= ModuleDecl::ImportFilterKind::Default;
2097- // FIXME: ImportFilterKind::ShadowedByCrossImportOverlay?
20982094 SmallVector<ImportedModule, 8 > Imports;
2099- TopMod.getImportedModules (Imports);
2095+ TopMod.getImportedModules (Imports, ModuleDecl::ImportFilterKind::Exported );
21002096
21012097 for (auto Import : Imports) {
21022098 collectRecursiveModuleImports (*Import.importedModule , Visited);
You can’t perform that action at this time.
0 commit comments