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
983
983
// / \p filter controls whether public, private, or any imports are included
984
984
// / in this list.
985
985
void getImportedModules (SmallVectorImpl<ImportedModule> &imports,
986
- ImportFilter filter = ImportFilterKind::Exported ) const ;
986
+ ImportFilter filter) const ;
987
987
988
988
// / Looks up which external macros are defined by this file.
989
989
void getExternalMacros (SmallVectorImpl<ExternalMacroPlugin> ¯os) const ;
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ ImportDepth::ImportDepth(ASTContext &context,
64
64
65
65
// Add imports to the worklist.
66
66
SmallVector<ImportedModule, 16 > imports;
67
- module ->getImportedModules (imports);
67
+ module ->getImportedModules (imports, ModuleDecl::ImportFilterKind::Exported );
68
68
for (auto &import : imports) {
69
69
uint8_t next = std::max (depth, uint8_t (depth + 1 )); // unsigned wrap
70
70
Original file line number Diff line number Diff line change @@ -2091,12 +2091,8 @@ void IndexSwiftASTWalker::collectRecursiveModuleImports(
2091
2091
return ;
2092
2092
}
2093
2093
2094
- ModuleDecl::ImportFilter ImportFilter;
2095
- ImportFilter |= ModuleDecl::ImportFilterKind::Exported;
2096
- ImportFilter |= ModuleDecl::ImportFilterKind::Default;
2097
- // FIXME: ImportFilterKind::ShadowedByCrossImportOverlay?
2098
2094
SmallVector<ImportedModule, 8 > Imports;
2099
- TopMod.getImportedModules (Imports);
2095
+ TopMod.getImportedModules (Imports, ModuleDecl::ImportFilterKind::Exported );
2100
2096
2101
2097
for (auto Import : Imports) {
2102
2098
collectRecursiveModuleImports (*Import.importedModule , Visited);
You can’t perform that action at this time.
0 commit comments