-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.5] [SymbolGraph] add sourceOrigin info for all protocol implementations #37815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.5] [SymbolGraph] add sourceOrigin info for all protocol implementations #37815
Conversation
@swift-ci Please test |
@swift-ci Please build toolchain macOS platform |
Build failed |
@swift-ci Please test macOS platform |
Ditto for the toolchain build. @swift-ci Please build toolchain macOS platform |
Toolchain build failed again in the SwiftPM tests:
@swift-ci Please build toolchain macOS platform |
This is known issue, and it was resolved with this PR #37823 |
@swift-ci Please build toolchain macOS platform |
macOS Toolchain Install command |
Resolves rdar://78680450
This PR ports #37777 to the
release/5.5
branch.Change Information
sourceOrigin
information for symbols that implement protocol requirements when the protocol and the implementation are in the same module.sourceOrigin
field in the symbol graph's relationships only appears when a symbol is synthesized, or when the protocol being implemented was defined in a different module. When a symbol is implementing a locally-defined protocol and also inherits docs, there is currently no way to relate the implementation to the symbol that defined the docs it's inheriting.