mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Separate the DeclContexts for different pattern binding entries in a pattern binding decl.
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user