@@ -157,29 +157,29 @@ AvailabilityContext::get(const AvailabilityRange &platformAvailability,
157157}
158158
159159AvailabilityRange AvailabilityContext::getPlatformRange () const {
160- return Info ->Platform .Range ;
160+ return storage ->Platform .Range ;
161161}
162162
163163std::optional<PlatformKind>
164164AvailabilityContext::getUnavailablePlatformKind () const {
165- if (Info ->Platform .IsUnavailable )
166- return Info ->Platform .UnavailablePlatform ;
165+ if (storage ->Platform .IsUnavailable )
166+ return storage ->Platform .UnavailablePlatform ;
167167 return std::nullopt ;
168168}
169169
170170bool AvailabilityContext::isUnavailableInEmbedded () const {
171- return Info ->Platform .IsUnavailableInEmbedded ;
171+ return storage ->Platform .IsUnavailableInEmbedded ;
172172}
173173
174174bool AvailabilityContext::isDeprecated () const {
175- return Info ->Platform .IsDeprecated ;
175+ return storage ->Platform .IsDeprecated ;
176176}
177177
178178void AvailabilityContext::constrainWithContext (const AvailabilityContext &other,
179179 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);
183183 }
184184}
185185
@@ -189,28 +189,28 @@ void AvailabilityContext::constrainWithDecl(const Decl *decl) {
189189
190190void AvailabilityContext::constrainWithPlatformRange (
191191 const AvailabilityRange &platformRange, ASTContext &ctx) {
192- PlatformInfo platformAvailability{Info ->Platform };
192+ PlatformInfo platformAvailability{storage ->Platform };
193193 if (!constrainRange (platformAvailability.Range , platformRange))
194194 return ;
195195
196- Info = Storage::get (platformAvailability, ctx);
196+ storage = Storage::get (platformAvailability, ctx);
197197}
198198
199199void AvailabilityContext::constrainWithDeclAndPlatformRange (
200200 const Decl *decl, const AvailabilityRange &platformRange) {
201- PlatformInfo platformAvailability{Info ->Platform };
201+ PlatformInfo platformAvailability{storage ->Platform };
202202 bool isConstrained = false ;
203203 isConstrained |= platformAvailability.constrainWith (decl);
204204 isConstrained |= constrainRange (platformAvailability.Range , platformRange);
205205
206206 if (!isConstrained)
207207 return ;
208208
209- Info = Storage::get (platformAvailability, decl->getASTContext ());
209+ storage = Storage::get (platformAvailability, decl->getASTContext ());
210210}
211211
212212bool AvailabilityContext::isContainedIn (const AvailabilityContext other) const {
213- if (!Info ->Platform .isContainedIn (other.Info ->Platform ))
213+ if (!storage ->Platform .isContainedIn (other.storage ->Platform ))
214214 return false ;
215215
216216 return true ;
0 commit comments