[AST] Separate the DeclContexts for different pattern binding entries in a pattern binding decl.

This commit is contained in:
Doug Gregor
2016-09-01 15:27:52 -07:00
parent 4a24b069e0
commit 5e25d25c96
9 changed files with 83 additions and 42 deletions

View File

@@ -53,7 +53,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 = 264; // Last change: remove AllArchetypes
const uint16_t VERSION_MINOR = 265; // Last change: pattern binding initializer index
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;
@@ -1306,7 +1306,8 @@ namespace decls_block {
using PatternBindingInitializerLayout = BCRecordLayout<
PATTERN_BINDING_INITIALIZER_CONTEXT,
DeclIDField // parent pattern binding decl
DeclIDField, // parent pattern binding decl
BCVBR<3> // binding index in the pattern binding decl
>;
using DefaultArgumentInitializerLayout = BCRecordLayout<