mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Add type for ModuleDecl::getImplicitImports()
This doesn’t really change the design yet.
This commit is contained in:
@@ -487,14 +487,13 @@ ModuleDecl::ModuleDecl(Identifier name, ASTContext &ctx,
|
||||
Bits.ModuleDecl.HasIncrementalInfo = 0;
|
||||
}
|
||||
|
||||
ArrayRef<ImplicitImport> ModuleDecl::getImplicitImports() const {
|
||||
ImplicitImportList ModuleDecl::getImplicitImports() const {
|
||||
auto &evaluator = getASTContext().evaluator;
|
||||
auto *mutableThis = const_cast<ModuleDecl *>(this);
|
||||
return evaluateOrDefault(evaluator, ModuleImplicitImportsRequest{mutableThis},
|
||||
{});
|
||||
}
|
||||
|
||||
|
||||
void ModuleDecl::addFile(FileUnit &newFile) {
|
||||
// If this is a LoadedFile, make sure it loaded without error.
|
||||
assert(!(isa<LoadedFile>(newFile) &&
|
||||
|
||||
Reference in New Issue
Block a user