dart-sdk/pkg/test_runner
Robert Nystrom 073eb9b806 Change StaticError to represent a single error for a single front end.
Before, the data model collapsed errors for different front-ends at the
same location into a single StaticError object which tracked different
messages for each front end. The idea was to move towards a world where
they really are the "same" error with eventually the same message.

But this adds a lot of complexity with things like merging errors and
doesn't reflect the reality that each error from each front end is
basically its own thing. Also, critically, it makes it much harder to
attach context messages to a specific front end's error object.

This changes it so that an instance of StaticError represents a single
error for a single front end. The test file syntax is unchanged and the
updated tool behaves the same. In a static error test, multiple
expectations can still share the same "//   ^^^" marker line. They are
just expanded to multiple StaticError objects at parse time.

This eliminates all of the complexity around merging and simplifying
errors.

Change-Id: I1d55a6e885e12cc9c438f928297fc0db7dd5ce85
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193280
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2021-03-30 16:30:21 +00:00
..
bin Don't crash on --help, --find-configurations, or --list-configurations. 2021-03-30 00:20:54 +00:00
lib Change StaticError to represent a single error for a single front end. 2021-03-30 16:30:21 +00:00
test Change StaticError to represent a single error for a single front end. 2021-03-30 16:30:21 +00:00
tool Change StaticError to represent a single error for a single front end. 2021-03-30 16:30:21 +00:00
.gitignore
analysis_options.yaml Turn on the "isEmpty" and "isNotEmpty" lints and fix violations. 2020-08-31 18:33:48 +00:00
pubspec.yaml Reland "Reland "update Glob in the sdk, also adds package:file to the sdk"" 2020-11-30 21:58:44 +00:00