mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename accessor kinds from IsGetter -> IsGet, etc.
Introduce some metaprogramming of accessors and generally prepare for storing less-structured accessor lists. NFC except for a change to the serialization format.
This commit is contained in:
@@ -568,16 +568,14 @@ private:
|
||||
/// Populates TopLevelIDs for name lookup.
|
||||
void buildTopLevelDeclMap();
|
||||
|
||||
struct AccessorRecord {
|
||||
SmallVector<serialization::DeclID, 8> IDs;
|
||||
};
|
||||
|
||||
/// Sets the accessors for \p storage based on \p rawStorageKind.
|
||||
void configureStorage(AbstractStorageDecl *storage,
|
||||
unsigned rawStorageKind,
|
||||
serialization::DeclID getter,
|
||||
serialization::DeclID setter,
|
||||
serialization::DeclID materializeForSet,
|
||||
serialization::DeclID addressor,
|
||||
serialization::DeclID mutableAddressor,
|
||||
serialization::DeclID willSet,
|
||||
serialization::DeclID didSet);
|
||||
AccessorRecord &accessors);
|
||||
|
||||
public:
|
||||
/// Loads a module from the given memory buffer.
|
||||
|
||||
Reference in New Issue
Block a user