Commit eb01627
[analyzer] Add name and token to ExpectedType enum.
Changes the analyzer's `ExpectedType` enum (which is used for runtime
type checks of parameters to diagnostic messages) so that it includes
the types `name` and `token`. These correspond with types used in
parser error reporting.
In a future CL, I will be adding `parameters` declarations to
`pkg/front_end/messages.yaml`, following a similar format to the
format used by `pkg/analyzer/messages.yaml`. When that happens, the
analyzer's diagnostic message code generator will start trying to
generate runtime type checking code for parameters of type `name` and
`token`. Landing this change now ensures that when the new runtime
type checking code gets generated, it will work properly.
Change-Id: I6a6a69648c2fdff63d93da5c5c39ba75f65edc9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448248
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Paul Berry <[email protected]>1 parent 1a8334d commit eb01627
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
0 commit comments