Paul Berry
c9b692e8d9
Add a temporary analyzer error to work around #28515
...
Analyzer summaries do not yet support generic function-typed
parameters. To avoid user confusion, generate an error if the user
tries to use a generic function-typed parameter.
The error can be worked around by using a typedef or changing generic
types to `dynamic`.
R=brianwilkerson@google.com , scheglov@google.com
Review-Url: https://codereview.chromium.org/2656303004 .
2017-01-29 07:35:03 -08:00
Janice Collins
93c3a194ad
Better error message for missing async with await
...
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2662483003 .
2017-01-27 10:48:27 -08:00
Konstantin Shcheglov
919d70d0cb
Issue 28100. Implement new strong mode instantiate to bound rules in analyzer.
...
R=leafp@google.com , brianwilkerson@google.com
BUG= https://github.com/dart-lang/sdk/issues/28100
Review-Url: https://codereview.chromium.org/2640143007 .
2017-01-23 10:12:32 -08:00
Konstantin Shcheglov
c7487dfaea
Issue 28100. In strong mode verify that TypeParameter bound has required type arguments.
...
R=brianwilkerson@google.com , leafp@google.com
BUG= https://github.com/dart-lang/sdk/issues/28100
Review-Url: https://codereview.chromium.org/2641213002 .
2017-01-19 13:25:48 -08:00
Brian Wilkerson
d06a2326f1
Add parser support for covariant parameters
...
R=scheglov@google.com
Review-Url: https://codereview.chromium.org/2639883005 .
2017-01-19 09:38:35 -08:00
Brian Wilkerson
e22a2b4626
Enable messages in asserts by default
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2557513008 .
2016-12-07 12:23:00 -08:00
Brian Wilkerson
6ce2f220e3
Add an error when a type parameter from a generic function is used in an is test
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2479293004 .
2016-11-09 07:47:54 -08:00
Brian Wilkerson
562c2be184
Convert generic method errors to hints
...
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/2487583002 .
2016-11-08 11:06:42 -08:00
Jennifer Messerly
68f290c9d8
fix #27764 , split STATIC_TYPE_ERROR into more detailed ones
...
R=leafp@google.com
Review URL: https://codereview.chromium.org/2482573002 .
2016-11-04 17:04:00 -07:00
Brian Wilkerson
0455420e4e
Fix typos in correction messages
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2471483002 .
2016-11-01 10:37:02 -07:00
Lasse R.H. Nielsen
1322877f5b
Adapt analyzer to new warnings around switch-case fallthrough.
...
Fixes issue #27664 .
BUG= http://dartbug.com/27664
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2446093003 .
2016-10-26 10:51:50 +02:00
Brian Wilkerson
9f0e4e1162
Split out error codes into separate files
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2442463002 .
2016-10-20 08:40:36 -07:00
Brian Wilkerson
0464279ec1
More correction messages
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2428733005 .
2016-10-18 12:22:17 -07:00
Brian Wilkerson
724ac40b8d
Improve error messages and add many corrections
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2426583003 .
2016-10-17 10:40:43 -07:00
Konstantin Shcheglov
26cc95d8b4
Issue 27515. Report DUPLICATE_PART when the same library contains two part directives with the same URI.
...
R=brianwilkerson@google.com , paulberry@google.com
BUG= https://github.com/dart-lang/sdk/issues/27515
Review URL: https://codereview.chromium.org/2401463004 .
2016-10-06 11:28:05 -07:00
Konstantin Shcheglov
0223b08a34
Issue 27300. Report HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE. (Land again)
...
The pkg/analysis_server/test/integration/analysis/error_test was fixed.
R=brianwilkerson@google.com , paulberry@google.com
BUG= https://github.com/dart-lang/sdk/issues/27300
Review URL: https://codereview.chromium.org/2366963002 .
2016-09-23 10:21:21 -07:00
Paul Berry
fe2c152ee2
Revert "Issue 27300. Report HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE."
...
This broke the analyzer bots. See for example https://build.chromium.org/p/client.dart/builders/analyzer-mac10.11-release-be/builds/337/steps/analysis%20server%20unit%20tests/logs/stdio
This reverts commit 77ba5fd087 .
TBR=scheglov@google.com
Review URL: https://codereview.chromium.org/2361393002 .
2016-09-23 05:24:53 -07:00
John Messerly
adc71ab396
re-land fix #27110 with proper DDC side of changes
...
R=leafp@google.com
Review URL: https://codereview.chromium.org/2362563004 .
2016-09-22 15:47:55 -07:00
Konstantin Shcheglov
77ba5fd087
Issue 27300. Report HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE.
...
There are no positives in analyzer/server, dev_compiler or dart2js.
R=brianwilkerson@google.com
BUG= https://github.com/dart-lang/sdk/issues/27300
Review URL: https://codereview.chromium.org/2364733002 .
2016-09-22 14:27:47 -07:00
Brian Wilkerson
3c865fa6b5
Remove use of shared messages
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2346803005 .
2016-09-20 08:25:55 -07:00
Brian Wilkerson
ecc84b26a4
Break up another large file
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2342733002 .
2016-09-15 07:49:27 -07:00
Brian Wilkerson
23b02bc351
Add support to the task model for the @required annotation
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/1977903002 .
2016-05-13 11:11:48 -07:00