Skip to content

[SymbolGraph] add sourceOrigin for synthesized symbols even if no docs exist #37248

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

Merged
merged 1 commit into from
May 7, 2021

Conversation

QuietMisdreavus
Copy link
Contributor

Resolves rdar://77205889

When emitting sourceOrigin fields for synthesized symbols, the current implementation looks for decls that have docs. However, if the upstream symbol doesn't have docs to inherit, it currently skips adding the sourceOrigin field. This PR changes that behavior to always include the field for synthesized symbols, even if the upstream implementation doesn't have a doc comment to inherit.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please smoke test

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please build toolchain macOS platform

@swift-ci
Copy link
Contributor

swift-ci commented May 4, 2021

macOS Toolchain
Download Toolchain
Git Sha - d81d5d5

Install command
tar -zxf swift-PR-37248-963-osx.tar.gz --directory ~/

@QuietMisdreavus QuietMisdreavus merged commit 4b068ac into main May 7, 2021
@QuietMisdreavus QuietMisdreavus deleted the QuietMisdreavus/synthesized-sourceOrigin branch May 7, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants