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:
@@ -185,7 +185,7 @@ printTypeInterface(ModuleDecl *M, StringRef TypeUSR, ASTPrinter &Printer,
|
||||
Printer, TypeName, Error);
|
||||
}
|
||||
|
||||
void swift::ide::printModuleInterface(Module *M, Optional<StringRef> Group,
|
||||
void swift::ide::printModuleInterface(ModuleDecl *M, Optional<StringRef> Group,
|
||||
ModuleTraversalOptions TraversalOptions,
|
||||
ASTPrinter &Printer,
|
||||
const PrintOptions &Options,
|
||||
@@ -210,7 +210,7 @@ static void adjustPrintOptions(PrintOptions &AdjustedOptions) {
|
||||
}
|
||||
|
||||
ArrayRef<StringRef>
|
||||
swift::ide::collectModuleGroups(Module *M, std::vector<StringRef> &Scratch) {
|
||||
swift::ide::collectModuleGroups(ModuleDecl *M, std::vector<StringRef> &Scratch) {
|
||||
for (auto File : M->getFiles()) {
|
||||
File->collectAllGroups(Scratch);
|
||||
}
|
||||
@@ -255,7 +255,7 @@ swift::ide::findGroupNameForUSR(ModuleDecl *M, StringRef USR) {
|
||||
}
|
||||
|
||||
void swift::ide::printSubmoduleInterface(
|
||||
Module *M,
|
||||
ModuleDecl *M,
|
||||
ArrayRef<StringRef> FullModuleName,
|
||||
ArrayRef<StringRef> GroupNames,
|
||||
ModuleTraversalOptions TraversalOptions,
|
||||
|
||||
Reference in New Issue
Block a user