mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ParameterTypeFlags] Incorporate review feedback
This commit is contained in:
@@ -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 = 268; // Last change: parameter type flags
|
||||
const uint16_t VERSION_MINOR = 269; // Last change: parameter type flags
|
||||
|
||||
using DeclID = PointerEmbeddedInt<unsigned, 31>;
|
||||
using DeclIDField = BCFixed<31>;
|
||||
@@ -571,8 +571,10 @@ namespace decls_block {
|
||||
|
||||
using ParenTypeLayout = BCRecordLayout<
|
||||
PAREN_TYPE,
|
||||
TypeIDField, // inner type
|
||||
BCFixed<ParameterTypeFlags::NumBits> // vararg?, autoclosure?, escaping?
|
||||
TypeIDField, // inner type
|
||||
BCFixed<1>, // vararg?
|
||||
BCFixed<1>, // autoclosure?
|
||||
BCFixed<1> // escaping?
|
||||
>;
|
||||
|
||||
using TupleTypeLayout = BCRecordLayout<
|
||||
@@ -581,9 +583,11 @@ namespace decls_block {
|
||||
|
||||
using TupleTypeEltLayout = BCRecordLayout<
|
||||
TUPLE_TYPE_ELT,
|
||||
IdentifierIDField, // name
|
||||
TypeIDField, // type
|
||||
BCFixed<ParameterTypeFlags::NumBits> // vararg?, autoclosure?, escaping?
|
||||
IdentifierIDField, // name
|
||||
TypeIDField, // type
|
||||
BCFixed<1>, // vararg?
|
||||
BCFixed<1>, // autoclosure?
|
||||
BCFixed<1> // escaping?
|
||||
>;
|
||||
|
||||
using FunctionTypeLayout = BCRecordLayout<
|
||||
|
||||
Reference in New Issue
Block a user