Commit f477549
Clean up the use of rawType in InvocationInferrer.
In some follow-up work I'm doing with the `InvocationInferrer` class
hierarchy to support dart-lang/language#731,
I've been getting confused due to the fact that `rawType` is:
- a final field in the base class
- a non-final local variable in the
`FullInvocationInferrer.resolveInvocation` method, which sometimes
matches the final field and sometimes doesn't, and
- a parameter of some methods in the class hierarchy.
This change makes the field non-final and updates it as needed so that
it always matches the value of the non-final local variable in
`FullInvocationInferrer.resolveInvocation`. (I would have preferred
to eliminate the local variable entirely, but it would have led to far
too many nuisance null checks). It also eliminates some unnecessary
method parameters.
Change-Id: I204ef93b5e3433edb9066519ec5d01dd3dfa7f08
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240461
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>1 parent 240f1c9 commit f477549
1 file changed
+6
-11
lines changedLines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
| |||
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
209 | | - | |
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
| |||
382 | 380 | | |
383 | 381 | | |
384 | 382 | | |
385 | | - | |
| 383 | + | |
386 | 384 | | |
387 | 385 | | |
388 | 386 | | |
| |||
403 | 401 | | |
404 | 402 | | |
405 | 403 | | |
406 | | - | |
| 404 | + | |
407 | 405 | | |
408 | | - | |
409 | | - | |
| 406 | + | |
410 | 407 | | |
411 | 408 | | |
412 | 409 | | |
| |||
429 | 426 | | |
430 | 427 | | |
431 | 428 | | |
432 | | - | |
433 | | - | |
| 429 | + | |
434 | 430 | | |
435 | 431 | | |
436 | 432 | | |
| |||
465 | 461 | | |
466 | 462 | | |
467 | 463 | | |
468 | | - | |
469 | | - | |
| 464 | + | |
470 | 465 | | |
471 | 466 | | |
472 | 467 | | |
| |||
0 commit comments