dart-sdk/pkg
Jens Johansen b9e005f4b9 [fasta] messages_test automatically wraps examples in part
Update the message_test to automatically create an example that wrappes
all already defined examples in a part.
For instance, if the example is

main.dart: main() { print("hello world"); }

create an additional example that is basically

main_wrapped.dart: part 'main.dart';
main.dart: part of 'main_wrapped.dart'; main() { print("hello world"); }
(as well as some additional comments to push any actual positions in the
main file ot of scope for valid positions in the wrapper file.

This doesn't work for everything, e.g. if the original main imports or
exports anything, the new test will fail. That's okay, the status file
has been updated accordingly.

The reason for adding it is that we currently have some bugs that causes
us to crash in situations like this, i.e. situations where a message is
coming from a position in a part where the same position doesn't exist
in the non-part file.
The status file has been updated for that too, although not in sorted order.

Change-Id: Ib67f85fca5e81e0b9e93cf2d79ab50c38cae4936
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106082
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2019-06-18 10:01:58 +00:00
..
analysis_server Filter LSP completion to exclude symbols already imported via another URI 2019-06-17 14:16:21 +00:00
analysis_server_client Fix wording in spec 2019-06-10 17:24:35 +00:00
analysis_tool Update the copyright year to 2019 before pushing DAS 1.26.0 version to the Dart plugin 2019-04-15 21:41:29 +00:00
analyzer Fix for naming constructor with missing name. 2019-06-18 03:43:38 +00:00
analyzer_cli Print the URLs associated with the diagnostics 2019-06-18 01:22:18 +00:00
analyzer_fe_comparison pkg:analyzer_fe_comparison, diagnostics, telemetry remove version info 2018-12-13 16:44:44 +00:00
analyzer_plugin Issue 131596231. Suggest names for SimpleFormalParameter(s). 2019-06-03 17:34:18 +00:00
async_helper Move async_minitest to package:async_helper. 2019-05-10 19:43:58 +00:00
build_integration dont fall back on the wrapped file system when the uri is the multi-uri scheme 2019-04-11 17:09:52 +00:00
compiler [dart2js] Emit code for checks 2019-06-18 02:38:18 +00:00
dart2js_tools dart2js_tools: remove version - no plan to publish (yet) 2018-12-13 17:09:15 +00:00
dart_internal [dart_internal] Bump SDK constraint upper-bound to <2.4.0 2019-04-20 00:58:51 +00:00
dartfix Add dartfix --server option 2019-06-18 03:07:58 +00:00
dev_compiler [dartdevc] Add top level function names to NSM error messages 2019-06-17 20:58:31 +00:00
diagnostic pkg:analyzer_fe_comparison, diagnostics, telemetry remove version info 2018-12-13 16:44:44 +00:00
expect Move async_minitest to package:async_helper. 2019-05-10 19:43:58 +00:00
front_end [fasta] messages_test automatically wraps examples in part 2019-06-18 10:01:58 +00:00
js [package:js] draft proposal to improve JS interop, see #35084 2019-02-05 01:44:32 +00:00
js_ast Support in-memory CodegenResult serialization/deserialization 2019-05-20 08:57:39 +00:00
kernel [Kernel] Add list of unused arguments to InstanceCreation nodes. 2019-06-13 09:42:26 +00:00
meta Fix http links to pub which has https. 2019-01-07 11:37:19 +00:00
modular_test Fix parsing of output-directory Uri in windows 2019-06-11 23:21:43 +00:00
nnbd_migration Migration: fix detection of variable/parameter reference inside parentheses. 2019-06-17 23:21:08 +00:00
smith Move the test runner (i.e. "test.dart"/"test.py") to pkg/. 2019-06-14 23:35:10 +00:00
sourcemap_testing Update pubspec for dev_compiler and sourcemap_testing 2019-02-04 20:34:59 +00:00
status_file Move the test runner (i.e. "test.dart"/"test.py") to pkg/. 2019-06-14 23:35:10 +00:00
telemetry pkg:analyzer_fe_comparison, diagnostics, telemetry remove version info 2018-12-13 16:44:44 +00:00
test_runner [vm/bytecode] Intermediate out.dill not needed anymore when testing bytecode. 2019-06-17 21:24:21 +00:00
testing Move the test runner (i.e. "test.dart"/"test.py") to pkg/. 2019-06-14 23:35:10 +00:00
vm [vm/bytecode] Intermediate out.dill not needed anymore when testing bytecode. 2019-06-17 21:24:21 +00:00
.gitignore
BUILD.gn
pkg.status Move the test runner (i.e. "test.dart"/"test.py") to pkg/. 2019-06-14 23:35:10 +00:00