Skip to content

Conversation

@bnbarham
Copy link
Contributor

Custom attributes were being skipped as their attribute name started with a "". Underscored attributes are typically unstable and thus shouldn't be printed, but "" is not being used for that purpose in the case of "_custom".

Rather than checking for "_" or "__", just use UserInaccessible. This property is used for attributes that shouldn't be shown to users in eg. completion/printing/etc.

Resolves rdar://99029554.

Custom attributes were being skipped as their attribute name started
with a "_". Underscored attributes are typically unstable and thus
shouldn't be printed, but "_" is not being used for that purpose in the
case of "_custom".

Rather than checking for "_" or "__", just use `UserInaccessible`. This
property is used for attributes that shouldn't be shown to users in eg.
completion/printing/etc.

Resolves rdar://99029554.
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

bnbarham commented Nov 1, 2022

@swift-ci please test macOS platform

Copy link
Contributor

@QuietMisdreavus QuietMisdreavus left a comment

Choose a reason for hiding this comment

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

This is really nice, thanks!

@bnbarham bnbarham merged commit 1526cfa into swiftlang:main Nov 1, 2022
@bnbarham bnbarham deleted the symbol-graph-should-print-custom-attrs branch November 1, 2022 18:35
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