Skip to content

Fix-it for var parameter doesn't delete enough whitespace #24025

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

Closed
wants to merge 1 commit into from
Closed

Fix-it for var parameter doesn't delete enough whitespace #24025

wants to merge 1 commit into from

Conversation

maveric94
Copy link

Resolves SR-10293.

@CodaFi
Copy link
Contributor

CodaFi commented Apr 14, 2019

Hi, thanks for the patch. A few notes

  1. We don’t usually change the diagnostic engine by teaching it about non-whitespace parts of the language. You’ll want to edit the place where we emit the diagnostic itself.
  2. Please re-run the tests. I’m sure at least one has changed with this patch.
  3. Please add an integration test from that SR.

@CodaFi
Copy link
Contributor

CodaFi commented Apr 14, 2019

Come to think of it, this diagnostic is from Swift 2-3 and we no longer support that mode. You can probably refactor the “invalid parameter attribute” diagnostic to instead detect keywords and insert some `` quotes.

@sl
Copy link
Contributor

sl commented Apr 17, 2019

I'm picking up work on this pull request in #24059. There's some further discussion of the issue there.

@sl
Copy link
Contributor

sl commented Apr 29, 2019

This was resolved in #24059. Closing this for now. If there's something in here that was missed though feel free to reopen 🙂

@sl sl closed this Apr 29, 2019
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