mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user