Skip to content

Commit ff83bf3

Browse files
committed
AST: Consistently use SemanticAvailableAttr's getDomain() accessor.
This allows the storage of the AvailabilityDomain to change in the future.
1 parent 3f1491e commit ff83bf3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/AST/Attr.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3191,11 +3191,11 @@ class SemanticAvailableAttr final {
31913191

31923192
/// Returns the platform kind that the attribute applies to, or
31933193
/// `PlatformKind::none` if the attribute is not platform specific.
3194-
bool isPlatformSpecific() const { return domain.isPlatform(); }
3194+
bool isPlatformSpecific() const { return getDomain().isPlatform(); }
31953195

31963196
/// Returns the platform kind that the attribute applies to, or
31973197
/// `PlatformKind::none` if the attribute is not platform specific.
3198-
PlatformKind getPlatformKind() const { return domain.getPlatformKind(); }
3198+
PlatformKind getPlatformKind() const { return getDomain().getPlatformKind(); }
31993199

32003200
/// Whether this attribute has an introduced, deprecated, or obsoleted
32013201
/// version.
@@ -3205,12 +3205,12 @@ class SemanticAvailableAttr final {
32053205

32063206
/// Whether this is a language mode specific attribute.
32073207
bool isSwiftLanguageModeSpecific() const {
3208-
return domain.isSwiftLanguage() && isVersionSpecific();
3208+
return getDomain().isSwiftLanguage() && isVersionSpecific();
32093209
}
32103210

32113211
/// Whether this is a PackageDescription version specific attribute.
32123212
bool isPackageDescriptionVersionSpecific() const {
3213-
return domain.isPackageDescription() && isVersionSpecific();
3213+
return getDomain().isPackageDescription() && isVersionSpecific();
32143214
}
32153215

32163216
/// Returns the active version from the AST context corresponding to

0 commit comments

Comments
 (0)