mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user