AST: Add DeclBaseName::Kind::Constructor

Not used yet.
This commit is contained in:
Slava Pestov
2018-03-13 01:51:01 -07:00
parent 4850d54613
commit 30dae65226
8 changed files with 46 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ const uint16_t VERSION_MAJOR = 0;
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
/// Don't worry about adhering to the 80-column limit for this line.
const uint16_t VERSION_MINOR = 402; // Last change: effects(releasenone)
const uint16_t VERSION_MINOR = 403; // Last change: `init` special name
using DeclIDField = BCFixed<31>;
@@ -380,6 +380,7 @@ using OptionalTypeKindField = BCFixed<2>;
enum class DeclNameKind: uint8_t {
Normal,
Subscript,
Constructor,
Destructor
};
@@ -394,6 +395,8 @@ enum SpecialIdentifierID : uint8_t {
OBJC_HEADER_MODULE_ID,
/// Special value for the special subscript name
SUBSCRIPT_ID,
/// Special value for the special constructor name
CONSTRUCTOR_ID,
/// Special value for the special destructor name
DESTRUCTOR_ID,