-
Notifications
You must be signed in to change notification settings - Fork 93
Description
This issue is to add more builtin declarations to the ones already existing in the swift2objc tool:
A few of the main categories of declarations to add are here
Inbuilt Protocols
Swift has a set of inbuilt Core Protocols that can be used by classes, structs, other protocols and generics in type constraints. A few common ones are: Hashable, Numeric, Collection, Error etc.
When making use of such protocols in classes, the protocol implementations are not automatically added to the symbol graph (although they are present, like other inbuilt types like String), and so would need to be added as a builtin declaration.
More Inbuilt Types
A few more types may need to be added, like Dictionary, Array, Set, Slice, etc. Some of these types also make use of generics
Hopefully by the end of this issue a good amount of the builtin declarations will be present.
A full list of the builtin types in the swift standard library can be found here: https://developer.apple.com/documentation/swift/swift-standard-library