@@ -452,7 +452,7 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
452
452
IsStatic : 1
453
453
);
454
454
455
- SWIFT_INLINE_BITFIELD (VarDecl, AbstractStorageDecl, 2 +1 +1 +1 +1 +1 +1 ,
455
+ SWIFT_INLINE_BITFIELD (VarDecl, AbstractStorageDecl, 2 +1 +1 +1 +1 +1 +1 + 1 ,
456
456
// / Encodes whether this is a 'let' binding.
457
457
Introducer : 2 ,
458
458
@@ -472,6 +472,9 @@ class alignas(1 << DeclAlignInBits) Decl : public ASTAllocated<Decl> {
472
472
// / Whether this is a lazily top-level global variable from the main file.
473
473
IsTopLevelGlobal : 1 ,
474
474
475
+ // / Whether this variable has no attached property wrappers.
476
+ NoAttachedPropertyWrappers : 1 ,
477
+
475
478
// / Whether this variable has no property wrapper auxiliary variables.
476
479
NoPropertyWrapperAuxiliaryVariables : 1
477
480
);
@@ -6158,11 +6161,19 @@ enum class PropertyWrapperSynthesizedPropertyKind {
6158
6161
// / VarDecl - 'var' and 'let' declarations.
6159
6162
class VarDecl : public AbstractStorageDecl {
6160
6163
friend class NamingPatternRequest ;
6164
+ friend class AttachedPropertyWrappersRequest ;
6161
6165
friend class PropertyWrapperAuxiliaryVariablesRequest ;
6162
6166
6163
6167
NamedPattern *NamingPattern = nullptr ;
6164
6168
6165
- // / True if this is a top-level global variable from the main source file.
6169
+ bool hasNoAttachedPropertyWrappers () const {
6170
+ return Bits.VarDecl .NoAttachedPropertyWrappers ;
6171
+ }
6172
+
6173
+ void setHasNoAttachedPropertyWrappers () {
6174
+ Bits.VarDecl .NoAttachedPropertyWrappers = true ;
6175
+ }
6176
+
6166
6177
bool hasNoPropertyWrapperAuxiliaryVariables () const {
6167
6178
return Bits.VarDecl .NoPropertyWrapperAuxiliaryVariables ;
6168
6179
}
0 commit comments