@@ -591,19 +591,19 @@ struct AttributedImport {
591591
592592 // / Location of the attribute that defined \c accessLevel. Also indicates
593593 // / if the access level was implicit or explicit.
594- SourceLoc accessLevelLoc ;
594+ SourceRange accessLevelRange ;
595595
596596 AttributedImport (ModuleInfo module , SourceLoc importLoc = SourceLoc(),
597597 ImportOptions options = ImportOptions(),
598598 StringRef filename = {}, ArrayRef<Identifier> spiGroups = {},
599599 SourceRange preconcurrencyRange = {},
600600 llvm::Optional<AccessLevel> docVisibility = llvm::None,
601601 AccessLevel accessLevel = AccessLevel::Public,
602- SourceLoc accessLevelLoc = SourceLoc ())
602+ SourceRange accessLevelRange = SourceRange ())
603603 : module (module ), importLoc(importLoc), options(options),
604604 sourceFileArg (filename), spiGroups(spiGroups),
605605 preconcurrencyRange(preconcurrencyRange), docVisibility(docVisibility),
606- accessLevel(accessLevel), accessLevelLoc(accessLevelLoc ) {
606+ accessLevel(accessLevel), accessLevelRange(accessLevelRange ) {
607607 assert (!(options.contains (ImportFlags::Exported) &&
608608 options.contains (ImportFlags::ImplementationOnly)) ||
609609 options.contains (ImportFlags::Reserved));
@@ -614,7 +614,7 @@ struct AttributedImport {
614614 : AttributedImport(module , other.importLoc, other.options,
615615 other.sourceFileArg, other.spiGroups,
616616 other.preconcurrencyRange, other.docVisibility,
617- other.accessLevel, other.accessLevelLoc ) { }
617+ other.accessLevel, other.accessLevelRange ) { }
618618
619619 friend bool operator ==(const AttributedImport<ModuleInfo> &lhs,
620620 const AttributedImport<ModuleInfo> &rhs) {
@@ -624,7 +624,7 @@ struct AttributedImport {
624624 lhs.spiGroups == rhs.spiGroups &&
625625 lhs.docVisibility == rhs.docVisibility &&
626626 lhs.accessLevel == rhs.accessLevel &&
627- lhs.accessLevelLoc == rhs.accessLevelLoc ;
627+ lhs.accessLevelRange == rhs.accessLevelRange ;
628628 }
629629
630630 AttributedImport<ImportedModule> getLoaded (ModuleDecl *loadedModule) const {
@@ -802,7 +802,7 @@ struct DenseMapInfo<swift::AttributedImport<ModuleInfo>> {
802802 a.spiGroups == b.spiGroups &&
803803 a.docVisibility == b.docVisibility &&
804804 a.accessLevel == b.accessLevel &&
805- a.accessLevelLoc == b.accessLevelLoc ;
805+ a.accessLevelRange == b.accessLevelRange ;
806806 }
807807};
808808}
0 commit comments