Generate an implicit 'materializeForSet' accessor

along with getters and setters.

Just generate it for now.

Swift SVN r22011
This commit is contained in:
John McCall
2014-09-17 08:08:03 +00:00
parent c734630dc3
commit 75050f8166
36 changed files with 933 additions and 212 deletions

View File

@@ -100,7 +100,8 @@ enum OperatorKind : uint8_t {
Prefix,
Postfix
};
using OperatorKindField = BCFixed<2>;
// This is currently required to have the same width as AccessorKindField.
using OperatorKindField = BCFixed<3>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.
@@ -108,9 +109,10 @@ enum AccessorKind : uint8_t {
Getter = 0,
Setter,
WillSet,
DidSet
DidSet,
MaterializeForSet,
};
using AccessorKindField = BCFixed<2>;
using AccessorKindField = BCFixed<3>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.
@@ -734,6 +736,7 @@ namespace decls_block {
TypeIDField, // interface type
DeclIDField, // getter
DeclIDField, // setter
DeclIDField, // materializeForSet
DeclIDField, // willset
DeclIDField, // didset
DeclIDField, // overridden decl