Commit fbb00e5
[cfe] Use findStaticMember instead of findInstanceMember for dot shorthands.
This CL avoids reusing `findInstanceMember` to find a static member for a given context. Implemented a new `findStaticMember` that handles resolving with the dot shorthand context.
All existing tests pass.
Bug: #59758
Change-Id: I71dfef451100ce77d5bd0d203129adbb281b6859
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/416840
Reviewed-by: Johnni Winther <[email protected]>
Commit-Queue: Kallen Tu <[email protected]>1 parent 0990e6b commit fbb00e5
File tree
3 files changed
+30
-23
lines changed- pkg/front_end/lib/src/type_inference
- tests/language/dot_shorthands/simple
3 files changed
+30
-23
lines changedLines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12134 | 12134 | | |
12135 | 12135 | | |
12136 | 12136 | | |
12137 | | - | |
12138 | | - | |
12139 | | - | |
12140 | | - | |
12141 | | - | |
12142 | | - | |
| 12137 | + | |
| 12138 | + | |
12143 | 12139 | | |
12144 | 12140 | | |
12145 | | - | |
| 12141 | + | |
12146 | 12142 | | |
12147 | 12143 | | |
12148 | 12144 | | |
| |||
12223 | 12219 | | |
12224 | 12220 | | |
12225 | 12221 | | |
12226 | | - | |
12227 | | - | |
12228 | | - | |
12229 | | - | |
| 12222 | + | |
| 12223 | + | |
12230 | 12224 | | |
12231 | 12225 | | |
12232 | 12226 | | |
| |||
Lines changed: 20 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
1153 | | - | |
1154 | 1152 | | |
1155 | 1153 | | |
1156 | 1154 | | |
| |||
1184 | 1182 | | |
1185 | 1183 | | |
1186 | 1184 | | |
1187 | | - | |
1188 | | - | |
| 1185 | + | |
1189 | 1186 | | |
1190 | 1187 | | |
1191 | 1188 | | |
| |||
1204 | 1201 | | |
1205 | 1202 | | |
1206 | 1203 | | |
1207 | | - | |
1208 | 1204 | | |
1209 | 1205 | | |
1210 | 1206 | | |
| |||
1268 | 1264 | | |
1269 | 1265 | | |
1270 | 1266 | | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1271 | 1283 | | |
1272 | 1284 | | |
1273 | 1285 | | |
| |||
4639 | 4651 | | |
4640 | 4652 | | |
4641 | 4653 | | |
4642 | | - | |
4643 | 4654 | | |
4644 | 4655 | | |
4645 | 4656 | | |
| |||
4649 | 4660 | | |
4650 | 4661 | | |
4651 | 4662 | | |
4652 | | - | |
4653 | 4663 | | |
4654 | 4664 | | |
4655 | 4665 | | |
| |||
4734 | 4744 | | |
4735 | 4745 | | |
4736 | 4746 | | |
4737 | | - | |
4738 | | - | |
| 4747 | + | |
4739 | 4748 | | |
4740 | 4749 | | |
4741 | 4750 | | |
4742 | 4751 | | |
4743 | 4752 | | |
4744 | 4753 | | |
4745 | | - | |
4746 | | - | |
4747 | | - | |
| 4754 | + | |
| 4755 | + | |
4748 | 4756 | | |
4749 | 4757 | | |
4750 | 4758 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
0 commit comments