Skip to content

Commit e45c0d4

Browse files
committed
AST: Re-organize VarDecl methods in a more logical order
1 parent b2ffac5 commit e45c0d4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

include/swift/AST/Decl.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5937,6 +5937,14 @@ class VarDecl : public AbstractStorageDecl {
59375937
Bits.VarDecl.IsDebuggerVar = IsDebuggerVar;
59385938
}
59395939

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+
59405948
/// Is this the synthesized storage for a 'lazy' property?
59415949
bool isLazyStorageProperty() const {
59425950
return Bits.VarDecl.IsLazyStorageProperty;
@@ -5945,6 +5953,9 @@ class VarDecl : public AbstractStorageDecl {
59455953
Bits.VarDecl.IsLazyStorageProperty = IsLazyStorage;
59465954
}
59475955

5956+
/// Retrieve the backing storage property for a lazy property.
5957+
VarDecl *getLazyStorageProperty() const;
5958+
59485959
/// True if this is a top-level global variable from the main source file.
59495960
bool isTopLevelGlobal() const { return Bits.VarDecl.IsTopLevelGlobal; }
59505961
void setTopLevelGlobal(bool b) { Bits.VarDecl.IsTopLevelGlobal = b; }
@@ -6052,17 +6063,6 @@ class VarDecl : public AbstractStorageDecl {
60526063
/// wrapper that has storage.
60536064
bool hasStorageOrWrapsStorage() const;
60546065

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-
60666066
/// Whether the memberwise initializer parameter for a property with a
60676067
/// property wrapper type uses the wrapped type. This will occur, for example,
60686068
/// when there is an explicitly-specified initializer like:

0 commit comments

Comments
 (0)