Skip to content

[NFC] Add (better) dump methods for attributes #79970

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
Mar 13, 2025

Conversation

beccadax
Copy link
Contributor

@beccadax beccadax commented Mar 12, 2025

ASTDumper now has the ability to dump attributes in the usual S-expression format, but DeclAttribute::dump() and DeclAttributes::dump() are still using the printing infrastructure. Use ASTDumper for these functions instead to provide a more “raw” view of the attributes.

Extracted from #79466, but not critical for its functionality.

ASTDumper now has the ability to dump attributes in the usual S-expression format, but `DeclAttribute::dump()` and `DeclAttributes::dump()` are still using the printing infrastructure. Use ASTDumper for these functions instead to provide a more “raw” view of the attributes.
@beccadax beccadax force-pushed the these-attributes-are-a-dump branch from 95f1e9b to 11e2461 Compare March 12, 2025 22:27
@beccadax beccadax marked this pull request as ready for review March 12, 2025 22:27
@beccadax beccadax requested a review from allevato March 12, 2025 22:28
@beccadax
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@beccadax beccadax merged commit f6c9177 into swiftlang:main Mar 13, 2025
3 checks passed
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.

2 participants