Skip to content

Remove The Last Vestiges of isInvalid from Parse #27820

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 2 commits into from
Oct 21, 2019

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Oct 21, 2019

isInvalid() is going to be a semantic question soon. In preparation, remove what few uses it has in Parse.

While I'm here, give a more accurate diagnostic and invalidate parameters a little earlier when users write

func foo(s t) {}
           ^ expected ':' following argument label and parameter name

Clean up uses of setInvalid() and remove uses of isInvalid() in preparation for that being a semantic accessor.
Diagnose the fact that we're missing a colon, not the fact that we're missing a type since that's actually what has gone wrong.
@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 21, 2019

@swift-ci please smoke test and merge

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