Skip to content

[WIP][Parser][SR-711] Couple "expected declaration" Diagnose With A Note #1276

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

Conversation

dduan
Copy link
Contributor

@dduan dduan commented Feb 11, 2016

As reported in SR-711, when an (unexpected) statement appears in a type declaration, we note the beginning of the declaration in addiction to the existing diagnostic.

@jrose-apple
Copy link
Contributor

I don't actually think that message makes sense for these diagnostics, though.

@dduan dduan changed the title [Parser][SR-711] Couple "expected declaration" Diagnose With Note Its DeclContext [WIP][Parser][SR-711] Couple "expected declaration" Diagnose With Note Its DeclContext Feb 11, 2016
@dduan dduan changed the title [WIP][Parser][SR-711] Couple "expected declaration" Diagnose With Note Its DeclContext [WIP][Parser][SR-711] Couple "expected declaration" Diagnose With A Note Feb 11, 2016
@lattner
Copy link
Contributor

lattner commented Feb 12, 2016

It would also be great to expand the primary message from "expected declaration" to "expected declaration in body of type" or something like that.

[AST] rename some DeclContext isXXX methods to getAsXXX
@dduan dduan force-pushed the SR771_stmt_in_type_body branch from d9d5e3e to 7f3efd2 Compare February 12, 2016 06:01
@dduan dduan closed this Feb 12, 2016
@dduan dduan deleted the SR771_stmt_in_type_body branch December 23, 2019 21:48
MaxDesiatov added a commit that referenced this pull request Oct 19, 2020
[pull] swiftwasm from master
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.

4 participants