mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
073eb9b806
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> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
test | ||
tool | ||
.gitignore | ||
analysis_options.yaml | ||
pubspec.yaml |