mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Completely replace Module with ModuleDecl
The typedef `swift::Module` was a temporary solution that allowed `swift::Module` to be renamed to `swift::ModuleDecl` without requiring every single callsite to be modified. Modify all the callsites, and get rid of the typedef.
This commit is contained in:
@@ -515,9 +515,6 @@ public:
|
||||
unsigned Alignment = alignof(ModuleDecl));
|
||||
};
|
||||
|
||||
/// FIXME: Helper for the Module -> ModuleDecl migration.
|
||||
typedef ModuleDecl Module;
|
||||
|
||||
/// A container for module-scope declarations that itself provides a scope; the
|
||||
/// smallest unit of code organization.
|
||||
///
|
||||
@@ -656,7 +653,7 @@ public:
|
||||
getImportedModules(SmallVectorImpl<ModuleDecl::ImportedModule> &imports,
|
||||
ModuleDecl::ImportFilter filter) const {}
|
||||
|
||||
/// \see Module::getImportedModulesForLookup
|
||||
/// \see ModuleDecl::getImportedModulesForLookup
|
||||
virtual void getImportedModulesForLookup(
|
||||
SmallVectorImpl<ModuleDecl::ImportedModule> &imports) const {
|
||||
return getImportedModules(imports, ModuleDecl::ImportFilter::Public);
|
||||
@@ -681,7 +678,7 @@ public:
|
||||
|
||||
bool
|
||||
forAllVisibleModules(llvm::function_ref<void(ModuleDecl::ImportedModule)> fn) {
|
||||
return forAllVisibleModules([=](Module::ImportedModule import) -> bool {
|
||||
return forAllVisibleModules([=](ModuleDecl::ImportedModule import) -> bool {
|
||||
fn(import);
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user