Commit 6811463
[messages] Fix analyzer unit test failure output.
When an analyzer unit test fails due to unexpected diagnostic errors,
the failure message contains text like this:
To accept the current state, expect:
error(<diagnostic code>, <offset>, <length>),
...
This change fixes the "diagnostic code" part of the output so that it
uses the new `diag` prefix, rather than trying to refer to static
constants in `DiagnosticCode`-derived classes, e.g.:
To accept the current state, expect:
error(diag.missingConstFinalVarOrType, 50, 1),
error(diag.expectedToken, 50, 1),
This paves the way for removing the `DiagnosticCode`-derived classes
entirely.
Change-Id: I6a6a6964176a29fa7c50bc06be5b79898da538b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/462520
Commit-Queue: Paul Berry <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent ef9a322 commit 6811463
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | | - | |
505 | | - | |
| 504 | + | |
506 | 505 | | |
507 | 506 | | |
508 | 507 | | |
0 commit comments