@@ -68,24 +68,24 @@ AvailabilityRange AvailabilityRange::forRuntimeTarget(const ASTContext &Ctx) {
68
68
}
69
69
70
70
PlatformKind AvailabilityConstraint::getPlatform () const {
71
- return attr .getPlatform ();
71
+ return getAttr () .getPlatform ();
72
72
}
73
73
74
74
std::optional<AvailabilityRange>
75
75
AvailabilityConstraint::getRequiredNewerAvailabilityRange (
76
76
ASTContext &ctx) const {
77
- switch (kind ) {
77
+ switch (getKind () ) {
78
78
case Kind::AlwaysUnavailable:
79
79
case Kind::RequiresVersion:
80
80
case Kind::Obsoleted:
81
81
return std::nullopt;
82
82
case Kind::IntroducedInNewerVersion:
83
- return attr .getIntroducedRange (ctx);
83
+ return getAttr () .getIntroducedRange (ctx);
84
84
}
85
85
}
86
86
87
87
bool AvailabilityConstraint::isConditionallySatisfiable () const {
88
- switch (kind ) {
88
+ switch (getKind () ) {
89
89
case Kind::AlwaysUnavailable:
90
90
case Kind::RequiresVersion:
91
91
case Kind::Obsoleted:
@@ -96,10 +96,10 @@ bool AvailabilityConstraint::isConditionallySatisfiable() const {
96
96
}
97
97
98
98
bool AvailabilityConstraint::isActiveForRuntimeQueries (ASTContext &ctx) const {
99
- if (attr .getPlatform () == PlatformKind::none)
99
+ if (getAttr () .getPlatform () == PlatformKind::none)
100
100
return true ;
101
101
102
- return swift::isPlatformActive (attr .getPlatform (), ctx.LangOpts ,
102
+ return swift::isPlatformActive (getAttr () .getPlatform (), ctx.LangOpts ,
103
103
/* forTargetVariant=*/ false ,
104
104
/* forRuntimeQuery=*/ true );
105
105
}
0 commit comments