mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The Clang attribute allows one to state that a particular enumeration type describes an error, and associates it with a particular domain constant. However, due to lack of API notes support, this attribute wasn't actually getting used. Instead, we had a number of explicit extensions to enum types to make them conform to the _BridgedNSError protocol explicitly. Now that we have API notes, use them to make these enums into error enums with the appropriate domain, so that the Clang importer will synthesize the _BridgedNSError conformances. Then, remove all of the explicit conformances---and with them, the overlays for 12 frameworks. There is a small fix to more eagerly consider these conformances as "used" if an expression is formed with the error enum as a value type. This better ensures that the conformances will be available at runtime when needed. This cleanup is needed to implement SE-0112 (NSError bridging), although it is useful by itself.
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
---
|
|
Name: CloudKit
|
|
Classes:
|
|
- Name: CKDatabase
|
|
Methods:
|
|
- Selector: 'fetchRecordWithID:completionHandler:'
|
|
MethodKind: Instance
|
|
SwiftName: 'fetch(withRecordID:completionHandler:)'
|
|
- Selector: 'deleteRecordWithID:completionHandler:'
|
|
MethodKind: Instance
|
|
SwiftName: 'delete(withRecordID:completionHandler:)'
|
|
- Selector: 'fetchRecordZoneWithID:completionHandler:'
|
|
MethodKind: Instance
|
|
SwiftName: 'fetch(withRecordZoneID:completionHandler:)'
|
|
- Selector: 'deleteRecordZoneWithID:completionHandler:'
|
|
MethodKind: Instance
|
|
SwiftName: 'delete(withRecordZoneID:completionHandler:)'
|
|
- Selector: 'fetchSubscriptionWithID:completionHandler:'
|
|
MethodKind: Instance
|
|
SwiftName: 'fetch(withSubscriptionID:completionHandler:)'
|
|
- Selector: 'deleteSubscriptionWithID:completionHandler:'
|
|
MethodKind: Instance
|
|
SwiftName: 'delete(withSubscriptionID:completionHandler:)'
|
|
- Name: CKFetchRecordsOperation
|
|
Methods:
|
|
- Selector: 'fetchCurrentUserRecordOperation'
|
|
MethodKind: Class
|
|
SwiftName: 'fetchCurrentUserRecordOperation()'
|
|
- Name: CKFetchRecordZonesOperation
|
|
Methods:
|
|
- Selector: 'fetchAllRecordZonesOperation'
|
|
MethodKind: Class
|
|
SwiftName: 'fetchAllRecordZonesOperation()'
|
|
- Name: CKFetchSubscriptionsOperation
|
|
Methods:
|
|
- Selector: 'fetchAllSubscriptionsOperation'
|
|
MethodKind: Class
|
|
SwiftName: 'fetchAllSubscriptionsOperation()'
|
|
- Name: CKRecord
|
|
Methods:
|
|
- Selector: 'setParentReferenceFromRecord:'
|
|
MethodKind: Instance
|
|
SwiftName: 'setParent(_:)'
|
|
- Selector: 'setParentReferenceFromRecordID:'
|
|
MethodKind: Instance
|
|
SwiftName: 'setParent(_:)'
|
|
Tags:
|
|
- Name: CKErrorCode
|
|
NSErrorDomain: CKErrorDomain
|