Commit 2f5deac
[analyzer] avoid doing redundant work when rewriting a prefixed identifier.
When the `ResolverVisitor` rewrites an expression from a prefixed
identifier to a property access (which it only does for record types),
it's not necessary to re-resolve the target of the property access,
because it was already resolved before deciding to rewrite the
expression.
This change helps pave the way for a follow-up CL in which I'll be
adding assertions that fire if the `ResolverVisitor` tries to resolve
a given subexpression multiple times. (Doing so is dangerous because
it can interfere with the correctness of flow analysis.)
Change-Id: I429e0b744683e662772474967188bb1457168795
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399886
Reviewed-by: Brian Wilkerson <[email protected]>
Auto-Submit: Paul Berry <[email protected]>
Commit-Queue: Brian Wilkerson <[email protected]>1 parent 7e09901 commit 2f5deac
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3412 | 3412 | | |
3413 | 3413 | | |
3414 | 3414 | | |
3415 | | - | |
| 3415 | + | |
3416 | 3416 | | |
3417 | 3417 | | |
3418 | 3418 | | |
| |||
3451 | 3451 | | |
3452 | 3452 | | |
3453 | 3453 | | |
3454 | | - | |
| 3454 | + | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
3455 | 3462 | | |
3456 | 3463 | | |
3457 | 3464 | | |
| |||
4086 | 4093 | | |
4087 | 4094 | | |
4088 | 4095 | | |
4089 | | - | |
4090 | | - | |
4091 | | - | |
4092 | | - | |
4093 | | - | |
4094 | | - | |
4095 | | - | |
4096 | | - | |
| 4096 | + | |
| 4097 | + | |
4097 | 4098 | | |
4098 | 4099 | | |
4099 | 4100 | | |
| |||
0 commit comments