4d964c4804
This CL adds support to the test runner for the test outcome expectation syntax that uses `// [...]` to indicate which diagnostic we should expect with the given tool. Currently, `...` is `analyzer` when testing the analyzer and `cfe` when testing the common front end. After landing this CL, it also supports `// [spec_parser]`. This change would allow us to migrate several tests from the multi-test format (like `code; //# 01: compile-time error`) to the new format, in particular tests with intentional syntax errors. Change-Id: I5dd2560a873eb7433d3e07aa8f393e83c51b28e7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/501161 Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Erik Ernst <eernst@google.com>