mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mark imported @completionHandlerAsync attrs as implicit
Mark imported `@completionHandlerAsync` attrs as implicit, which avoids printing them in generated interfaces. And for the sake of completion, serialize the implicit bit in case it's used elsewhere in the future. To make sure we continue to print `@completionHandlerAsync` attributes explicitly written by the user in Swift, add a SourceKit interface test. Resolves rdar://76685011
This commit is contained in:
@@ -56,7 +56,7 @@ const uint16_t SWIFTMODULE_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 SWIFTMODULE_VERSION_MINOR = 610; // async initializers for nominal types
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 611; // implicit bit for CompletionHandlerAsyncAttr
|
||||
|
||||
/// A standard hash seed used for all string hashes in a serialized module.
|
||||
///
|
||||
@@ -1930,6 +1930,7 @@ namespace decls_block {
|
||||
|
||||
using CompletionHandlerAsyncDeclAttrLayout = BCRecordLayout<
|
||||
CompletionHandlerAsync_DECL_ATTR,
|
||||
BCFixed<1>, // Implicit flag.
|
||||
BCVBR<5>, // Completion handler index
|
||||
DeclIDField // Mapped async function decl
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user