Skip to content
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

[SR-5978] [SourceKit] Provide AccessLevel range in structure #48537

Closed
marcelofabri opened this issue Sep 25, 2017 · 1 comment
Closed

[SR-5978] [SourceKit] Provide AccessLevel range in structure #48537

marcelofabri opened this issue Sep 25, 2017 · 1 comment
Assignees

Comments

@marcelofabri
Copy link
Contributor

Previous ID SR-5978
Radar None
Original Reporter @marcelofabri
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Improvement
Assignee @marcelofabri
Priority Medium

md5: 7d9d081e0a3927e88ad0a28206cd79df

Issue Description:

It'd be useful to have the range of key.accessibility for declarations.

This would make possible for tools like SwiftLint to validate the order of "modifiers" (private, mutating, final, etc) of declarations.

One ideia would be adding new attributes like key.accessibilityoffset and key.accessibilitylength. Another approach would be adding AccessControl to key.attributes. This second approach seems better to me, as it can also be extended to handle setter accessibility.

@marcelofabri
Copy link
Contributor Author

#12086

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant