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-12714] Explicit self. #329
Comments
It does not support trimming implicit |
Adding or removing explicit It might be possible to approximate it by tracking symbols in their lexical scopes and use that to determine which symbol is being referred to, we wouldn't have access to the compiler |
FYI SwiftLint has a semantic version of this https://github.com/realm/SwiftLint/#configuration and SwiftFormat has a best effort version where it inserts and removes only ones it's confident about AFAIUI |
Closing this as not planned, since we would need semantic information to do this correctly, and I prefer not to implement a syntax-only version that is incomplete. |
Additional Detail from JIRA
md5: 0eee30a579bfbe4ae0442eb637819834
Issue Description:
AFAIK,
swift-format
doesn't support adding explicitself.
everywhere. It would be great if it could do that.The text was updated successfully, but these errors were encountered: