Query on the Foundation API notes.

Hello

Command-Click shows the Swift representation of Objective-C API in Xcode.

I understand that Darwin overlay which defines the Foundation APIs is here:

https://github.com/apple/swift/tree/master/stdlib/public/SDK/Foundation

Also, there is: https://github.com/apple/swift/blob/master/apinotes/Foundation.apinotes that has information on the API naming.

But, I observe that the API information on both these locations are not complete. For example: API information for URLSession, HTTPCookieStorage, Bundle etc., is not found.

Could someone point me to the files from where the API information is picked up for these files?

Thank you.

Regards

Mamatha

Hi Mamatha,

As part of the development of iOS 11 / macOS 10.13, we actually moved these API note files into the SDK instead of being part of the compiler, to allow framework authors to update them as they changed their headers, rather than requiring compiler changes.

- Tony

ยทยทยท

On Jun 19, 2017, at 10:45 PM, Mamatha Busi via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

Hello

Command-Click shows the Swift representation of Objective-C API in Xcode.
I understand that Darwin overlay which defines the Foundation APIs is here:
https://github.com/apple/swift/tree/master/stdlib/public/SDK/Foundation

Also, there is: https://github.com/apple/swift/blob/master/apinotes/Foundation.apinotes that has information on the API naming.

But, I observe that the API information on both these locations are not complete. For example: API information for URLSession, HTTPCookieStorage, Bundle etc., is not found.

Could someone point me to the files from where the API information is picked up for these files?

Thank you.

Regards
Mamatha

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev