Commit 9117097
[messages] Update parameter names for more analyzer diagnostics.
In the following analyzer diagnostics, updates the placeholder
parameter names `p0`, `p1`, `p2`, etc. with descriptive parameter
names, and updates the call sites that use those diagnostic messages
to use the new literate diagnostic reporting API:
- `ambiguousExport`
- `ambiguousExtensionMemberAccessTwo`
- `ambiguousExtensionMemberAccessThreeOrMore`
- `ambiguousImport`
- `assignmentToFinal`
- `assignmentToFinalLocal`
- `assignmentToFinalNoSetter`
- `augmentationModifierExtra`
- `augmentationModifierMissing`
- `augmentationOfDifferentDeclarationKind`
- `augmentedExpressionNotOperator`
- `builtInIdentifierAsType`
- `caseExpressionTypeImplementsEquals`
Only the `messages.yaml` changes were done manually; the changes to
`dart` code were produced either by the diagnostic message code
generator or by the script `use_literate_api_in_analyzer.dart`.
Change-Id: I6a6a69642fea2a18e0a661c4aadbbc434aba7e77
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467685
Commit-Queue: Paul Berry <[email protected]>
Reviewed-by: Johnni Winther <[email protected]>1 parent b888cb7 commit 9117097
File tree
9 files changed
+216
-177
lines changed- pkg/analyzer
- lib/src
- dart
- constant
- resolver
- diagnostic
- error
- fasta
- generated
9 files changed
+216
-177
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
Lines changed: 23 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments