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:
John McCall
2018-06-14 15:40:16 -04:00
parent aea6f069bb
commit 9022b5152f
38 changed files with 748 additions and 607 deletions

View File

@@ -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.