Skip to content

Commit e843a16

Browse files
authored
Merge pull request #33935 from brentdax/these-imports-are-testing-my-patience
Add -testable-import-module frontend flag (+ refactoring)
2 parents adbcd6a + 944ad88 commit e843a16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+843
-590
lines changed

include/swift/AST/ASTTypeIDZone.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SWIFT_TYPEID(BodyInitKindAndExpr)
2222
SWIFT_TYPEID(CtorInitializerKind)
2323
SWIFT_TYPEID(FunctionBuilderBodyPreCheck)
2424
SWIFT_TYPEID(GenericSignature)
25-
SWIFT_TYPEID(ImplicitImport)
25+
SWIFT_TYPEID(ImplicitImportList)
2626
SWIFT_TYPEID(ImplicitMemberAction)
2727
SWIFT_TYPEID(ParamSpecifier)
2828
SWIFT_TYPEID(PropertyWrapperBackingPropertyInfo)

include/swift/AST/ASTTypeIDs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class GenericTypeParamType;
4242
class InfixOperatorDecl;
4343
class IterableDeclContext;
4444
class ModuleDecl;
45-
struct ImplicitImport;
45+
struct ImplicitImportList;
4646
class NamedPattern;
4747
class NominalTypeDecl;
4848
class OperatorDecl;

include/swift/AST/FileUnit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,12 @@ class FileUnit : public DeclContext {
235235
/// \p filter controls whether public, private, or any imports are included
236236
/// in this list.
237237
virtual void
238-
getImportedModules(SmallVectorImpl<ModuleDecl::ImportedModule> &imports,
238+
getImportedModules(SmallVectorImpl<ImportedModule> &imports,
239239
ModuleDecl::ImportFilter filter) const {}
240240

241241
/// \see ModuleDecl::getImportedModulesForLookup
242242
virtual void getImportedModulesForLookup(
243-
SmallVectorImpl<ModuleDecl::ImportedModule> &imports) const {
243+
SmallVectorImpl<ImportedModule> &imports) const {
244244
return getImportedModules(imports, ModuleDecl::ImportFilterKind::Exported);
245245
}
246246

0 commit comments

Comments
 (0)