Merge pull request #25869 from xedin/access-member-on-wrapper-type-diagnostic

[Diagnostics] Add property wrapper diagnostic for unnecessary $/'_' in member acces
This commit is contained in:
Pavel Yaskevich
2019-06-28 17:43:01 -07:00
committed by GitHub
10 changed files with 289 additions and 68 deletions

View File

@@ -5552,6 +5552,10 @@ VarDecl *VarDecl::getPropertyWrapperBackingProperty() const {
return getPropertyWrapperBackingPropertyInfo().backingVar;
}
VarDecl *VarDecl::getPropertyWrapperStorageWrapper() const {
return getPropertyWrapperBackingPropertyInfo().storageWrapperVar;
}
VarDecl *VarDecl::getLazyStorageProperty() const {
auto &ctx = getASTContext();
auto mutableThis = const_cast<VarDecl *>(this);