@@ -5937,6 +5937,14 @@ class VarDecl : public AbstractStorageDecl {
5937
5937
Bits.VarDecl .IsDebuggerVar = IsDebuggerVar;
5938
5938
}
5939
5939
5940
+ // / Visit all auxiliary declarations to this VarDecl.
5941
+ // /
5942
+ // / An auxiliary declaration is a declaration synthesized by the compiler to support
5943
+ // / this VarDecl, such as synthesized property wrapper variables.
5944
+ // /
5945
+ // / \note this function only visits auxiliary decls that are not part of the AST.
5946
+ void visitAuxiliaryDecls (llvm::function_ref<void (VarDecl *)>) const ;
5947
+
5940
5948
// / Is this the synthesized storage for a 'lazy' property?
5941
5949
bool isLazyStorageProperty () const {
5942
5950
return Bits.VarDecl .IsLazyStorageProperty ;
@@ -5945,6 +5953,9 @@ class VarDecl : public AbstractStorageDecl {
5945
5953
Bits.VarDecl .IsLazyStorageProperty = IsLazyStorage;
5946
5954
}
5947
5955
5956
+ // / Retrieve the backing storage property for a lazy property.
5957
+ VarDecl *getLazyStorageProperty () const ;
5958
+
5948
5959
// / True if this is a top-level global variable from the main source file.
5949
5960
bool isTopLevelGlobal () const { return Bits.VarDecl .IsTopLevelGlobal ; }
5950
5961
void setTopLevelGlobal (bool b) { Bits.VarDecl .IsTopLevelGlobal = b; }
@@ -6052,17 +6063,6 @@ class VarDecl : public AbstractStorageDecl {
6052
6063
// / wrapper that has storage.
6053
6064
bool hasStorageOrWrapsStorage () const ;
6054
6065
6055
- // / Visit all auxiliary declarations to this VarDecl.
6056
- // /
6057
- // / An auxiliary declaration is a declaration synthesized by the compiler to support
6058
- // / this VarDecl, such as synthesized property wrapper variables.
6059
- // /
6060
- // / \note this function only visits auxiliary decls that are not part of the AST.
6061
- void visitAuxiliaryDecls (llvm::function_ref<void (VarDecl *)>) const ;
6062
-
6063
- // / Retrieve the backing storage property for a lazy property.
6064
- VarDecl *getLazyStorageProperty () const ;
6065
-
6066
6066
// / Whether the memberwise initializer parameter for a property with a
6067
6067
// / property wrapper type uses the wrapped type. This will occur, for example,
6068
6068
// / when there is an explicitly-specified initializer like:
0 commit comments