Johnni Winther
62f84880ef
[cfe] Report error on missing return from non-nullable function
...
Closes #40520
Closes #40948
Closes #40425
Change-Id: I0aa3cfa51b410c90dd0bea963846eeb6b2e73efb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140540
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com >
2020-03-24 08:21:36 +00:00
Ryan Macnak
081e2acf29
[test] Update copied mirrors tests for Dart 3.
...
Bug: https://github.com/dart-lang/sdk/issues/40045
Change-Id: Ic0f62843d61b613e61f434b72b9553dd1e6897af
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132441
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2020-01-23 18:09:37 +00:00
Ryan Macnak
00b2e580a3
[test] Fork mirrors tests.
...
Bug: https://github.com/dart-lang/sdk/issues/40045
Change-Id: I597259b38684de87016f1e136723d24f4ac05420
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132440
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2020-01-22 18:46:23 +00:00
Bob Nystrom
f6ca2c1d8f
Remove the Dart 1 tests.
...
This deletes:
tests/co19
tests/corelib
tests/html
tests/isolate
tests/language
tests/lib
It does not delete tests/standalone because apparently there are tests
in there that are not in standalone_2. (I assume they were added after
the test migration. I don't know why they were added there.)
I have tried to remove references to the old tests from various scripts
and tools but may have missed some. (As you can imagine, grepping for
"lib" does not have the best signal-to-noise ratio.)
"It was a pleasure to burn. It was a special pleasure to see things
eaten, to see things blackened and changed. With the brass nozzle in his
fists, with this great python spitting its venomous kerosene upon the
world, the blood pounded in his head, and his hands were the hands of
some amazing conductor playing all the symphonies of blazing and burning
to bring down the tatters and charcoal ruins of history."
- Ray Bradbury, Fahrenheit 451
Change-Id: If3db4a50e7a5ee25aff8058b1483e2ce8e68424e
Reviewed-on: https://dart-review.googlesource.com/c/75420
Commit-Queue: Bob Nystrom <rnystrom@google.com >
Auto-Submit: Bob Nystrom <rnystrom@google.com >
Reviewed-by: William Hesse <whesse@google.com >
Reviewed-by: Terry Lucas <terry@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2018-10-11 23:45:18 +00:00
Florian Loitsch
051f0f1267
Added new entries to the .gitattributes file.
...
Also updated the tests so that we don't forget in the future.
Change-Id: I0a998af306a0b6fa54b3c86cf164fdfe1f76340d
Reviewed-on: https://dart-review.googlesource.com/3624
Reviewed-by: William Hesse <whesse@google.com >
2017-09-06 18:05:57 +00:00
William Hesse
57765a8929
Ensure correct line endings for method_mirror_source tests.
...
R=whesse@google.com
BUG=
Review URL: https://codereview.chromium.org//1218813002 .
2015-06-29 13:43:57 +02:00
paulberry@google.com
81c933ca35
Fix static warning in lib/mirrors/method_mirror_source_test.
...
TBR=asiva@google.com
Review URL: https://codereview.chromium.org//1070833002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44976 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-08 17:00:02 +00:00
rmacnak@google.com
766df03b1b
Fix MethodMirror.source when the method is on the first line in a script.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//1066203004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44957 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-08 01:02:48 +00:00
rmacnak@google.com
5e310f4e31
Update mirror tests for removed API and other analyzer warnings.
...
BUG=http://dartbug.com/14695
R=gbracha@google.com
Review URL: https://codereview.chromium.org//64793003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30290 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-14 19:55:05 +00:00
iposva@google.com
1cae21b556
- Reverting mirror changes.
...
Review URL: https://codereview.chromium.org//62373008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30029 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 02:07:37 +00:00
iposva@google.com
a2d280501e
- Reverting mirror changes.
...
Review URL: https://codereview.chromium.org//63563003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30027 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:48:45 +00:00
rmacnak@google.com
bc897425e1
Cascaded mirror removal revert.
...
Review URL: https://codereview.chromium.org//63363003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30024 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 01:20:51 +00:00
rmacnak@google.com
1caa73df59
Remove implementations of mirror methods not in the API from the VM. Update tests.
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//63063002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30005 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 22:30:45 +00:00
rmacnak@google.com
56ce946cbf
Re-triage mirror test failures on the analyzer.
...
R=kustermann@google.com , regis@google.com
Review URL: https://codereview.chromium.org//49083004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29407 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 00:15:57 +00:00
rmacnak@google.com
306d474235
Use symbol literals in the mirror tests. (Except for void, the empty string and setters.)
...
R=mlippautz@google.com
Review URL: https://codereview.chromium.org//24239010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27773 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-23 16:17:13 +00:00
mlippautz@google.com
f937465cd6
Fix method_mirror_source test for analyzer.
...
BUG=
Review URL: https://codereview.chromium.org//22824048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26663 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 17:40:09 +00:00
mlippautz@google.com
b708a455d1
Fix Function.end_token_pos() and implement MethodMirror.source getter.
...
Move .source getter from ClosureMirror to MethodMirror (as the TODO already suggested) and provide an implementation.
BUG=
R=asiva@google.com , hausner@google.com
Review URL: https://codereview.chromium.org//23038010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26659 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-26 17:14:07 +00:00