[Swift APIView] Decide how to handle protocol adoption #3089
Labels
APIView Priority 3
APIView
Client
This issue points to a problem in the data-plane of the library.
Swift
Related to: #2536
Here's a textbook example of protocol adoption from Apple's docs:
APIView will completely ignore the extension because it doesn't contain anything public. However, this line is very important for the public API because it means that
Hamster
can be used anywhereTextRepresentable
is accepted, but the APIView won't show that.Option 1
Render the extension within the Hamster definition, even though this is not accurate Swift syntax.
Option 2
Interpret the declaration and modify the struct definition, thus affecting how it is rendered:
The text was updated successfully, but these errors were encountered: