Serialization: Add support for generic subscripts

This commit is contained in:
Slava Pestov
2017-02-19 20:26:50 -08:00
parent 880803aaba
commit cc54361b2a
3 changed files with 19 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
/// in source control, you should also update the comment to briefly
/// 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.
const uint16_t VERSION_MINOR = 318; // Last change: SIL open_exist. access kind
const uint16_t VERSION_MINOR = 319; // Last change: generic subscripts
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;
@@ -976,6 +976,7 @@ namespace decls_block {
BCFixed<1>, // implicit?
BCFixed<1>, // objc?
StorageKindField, // StorageKind
GenericEnvironmentIDField, // generic environment
TypeIDField, // interface type
DeclIDField, // getter
DeclIDField, // setter
@@ -988,7 +989,9 @@ namespace decls_block {
AccessibilityKindField, // accessibility
AccessibilityKindField, // setter accessibility, if applicable
BCArray<IdentifierIDField> // name components
// The indices pattern trails the record.
// Trailed by:
// - generic parameters, if any
// - the indices pattern
>;
using ExtensionLayout = BCRecordLayout<