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

Implement assert() messages behind a flag in analyzer #24217

Closed
munificent opened this issue Aug 26, 2015 · 9 comments
Closed

Implement assert() messages behind a flag in analyzer #24217

munificent opened this issue Aug 26, 2015 · 9 comments
Assignees
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Milestone

Comments

@munificent
Copy link
Member

This is the analyzer-specific issue for #24213. That issue has the details.

@munificent munificent added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Aug 26, 2015
@stereotype441
Copy link
Member

https://codereview.chromium.org/1309543011/ adds support to the analysis engine. Once that has been reviewed and landed, we will need to make a separate (trivial) changes to analyzer_cli and analysis_server to add the flag.

@sethladd
Copy link
Contributor

sethladd commented Sep 2, 2015

Thanks!

Should I open a new issue to track the other plumbing?

Update: I just did :)

@munificent
Copy link
Member Author

And you added tests. 🤘

@mit-mit mit-mit added this to the 1.13 milestone Sep 3, 2015
@bwilkerson bwilkerson modified the milestone: 1.13 Sep 28, 2015
@sethladd
Copy link
Contributor

The DEP met today, and decided that the type annotation on the optional param should be String. Does the CL reflect that?

@stereotype441
Copy link
Member

IIRC, the CL does reflect that. However I can't verify right now since codereview.chromium.org appears to be down due to certificate errors. I will check back tomorrow to confirm.

@sethladd
Copy link
Contributor

Thanks Paul.

@stereotype441
Copy link
Member

I just double-checked, and yes, the CL is consistent with the proposed spec change. It requires the optional assertion message param to be assignable to String, or a warning is issued.

@sethladd
Copy link
Contributor

sethladd commented Oct 1, 2015

Thanks @stereotype441 for checking!

@bwilkerson
Copy link
Member

Messages in asserts is now enabled by default in analyzer (https://codereview.chromium.org/2557513008/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

7 participants