@@ -157,29 +157,29 @@ AvailabilityContext::get(const AvailabilityRange &platformAvailability,
157
157
}
158
158
159
159
AvailabilityRange AvailabilityContext::getPlatformRange () const {
160
- return Info ->Platform .Range ;
160
+ return storage ->Platform .Range ;
161
161
}
162
162
163
163
std::optional<PlatformKind>
164
164
AvailabilityContext::getUnavailablePlatformKind () const {
165
- if (Info ->Platform .IsUnavailable )
166
- return Info ->Platform .UnavailablePlatform ;
165
+ if (storage ->Platform .IsUnavailable )
166
+ return storage ->Platform .UnavailablePlatform ;
167
167
return std::nullopt;
168
168
}
169
169
170
170
bool AvailabilityContext::isUnavailableInEmbedded () const {
171
- return Info ->Platform .IsUnavailableInEmbedded ;
171
+ return storage ->Platform .IsUnavailableInEmbedded ;
172
172
}
173
173
174
174
bool AvailabilityContext::isDeprecated () const {
175
- return Info ->Platform .IsDeprecated ;
175
+ return storage ->Platform .IsDeprecated ;
176
176
}
177
177
178
178
void AvailabilityContext::constrainWithContext (const AvailabilityContext &other,
179
179
ASTContext &ctx) {
180
- PlatformInfo platformAvailability{Info ->Platform };
181
- if (platformAvailability.constrainWith (other.Info ->Platform )) {
182
- Info = Storage::get (platformAvailability, ctx);
180
+ PlatformInfo platformAvailability{storage ->Platform };
181
+ if (platformAvailability.constrainWith (other.storage ->Platform )) {
182
+ storage = Storage::get (platformAvailability, ctx);
183
183
}
184
184
}
185
185
@@ -189,28 +189,28 @@ void AvailabilityContext::constrainWithDecl(const Decl *decl) {
189
189
190
190
void AvailabilityContext::constrainWithPlatformRange (
191
191
const AvailabilityRange &platformRange, ASTContext &ctx) {
192
- PlatformInfo platformAvailability{Info ->Platform };
192
+ PlatformInfo platformAvailability{storage ->Platform };
193
193
if (!constrainRange (platformAvailability.Range , platformRange))
194
194
return ;
195
195
196
- Info = Storage::get (platformAvailability, ctx);
196
+ storage = Storage::get (platformAvailability, ctx);
197
197
}
198
198
199
199
void AvailabilityContext::constrainWithDeclAndPlatformRange (
200
200
const Decl *decl, const AvailabilityRange &platformRange) {
201
- PlatformInfo platformAvailability{Info ->Platform };
201
+ PlatformInfo platformAvailability{storage ->Platform };
202
202
bool isConstrained = false ;
203
203
isConstrained |= platformAvailability.constrainWith (decl);
204
204
isConstrained |= constrainRange (platformAvailability.Range , platformRange);
205
205
206
206
if (!isConstrained)
207
207
return ;
208
208
209
- Info = Storage::get (platformAvailability, decl->getASTContext ());
209
+ storage = Storage::get (platformAvailability, decl->getASTContext ());
210
210
}
211
211
212
212
bool AvailabilityContext::isContainedIn (const AvailabilityContext other) const {
213
- if (!Info ->Platform .isContainedIn (other.Info ->Platform ))
213
+ if (!storage ->Platform .isContainedIn (other.storage ->Platform ))
214
214
return false ;
215
215
216
216
return true ;
0 commit comments