Use designated/convenience initializer terminology throughout. NFC

Introduce CtorInitializerKind to describe the kind of an enum, rather
than a bool, to make way for more initializer kinds in the future.

Swift SVN r16525
This commit is contained in:
Doug Gregor
2014-04-18 15:10:13 +00:00
parent 0bfcd45eb7
commit 8bc2ea4ea1
19 changed files with 199 additions and 133 deletions

View File

@@ -109,6 +109,14 @@ enum AccessorKind : uint8_t {
};
using AccessorKindField = BCFixed<2>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.
enum CtorInitializerKind : uint8_t {
Designated = 0,
Convenience = 1
};
using CtorInitializerKindField = BCFixed<1>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.
enum class ParameterConvention : uint8_t {
@@ -648,7 +656,7 @@ namespace decls_block {
BCFixed<1>, // implicit?
BCFixed<1>, // objc?
BCFixed<1>, // transparent?
BCFixed<1>, // complete object init?
CtorInitializerKindField, // initializer kind
TypeIDField, // type (signature)
TypeIDField, // type (interface)
DeclIDField, // overridden decl