Commit 27f18db
[cfe] Dot Shorthands: Fix bug with property fileOffsets.
Surfaced from this co19 test crashing because of an assert when making a null-aware element. The `fileOffset` for static tearoffs and static gets were not being properly set and caused the crash. This CL simply sets the `fileOffset` on those expressions and existing tests should pass.
https://github.com/dart-lang/co19/blob/2c7f9a6a379cfc49b3e9019d1f616d7ec9edd766/LanguageFeatures/Static-access-shorthand/non_ambiguity_A02_t01.dart
Bug: #59758
Change-Id: I7b81f0ee11d8a9458154f1148e92523d1ad8be99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/420840
Reviewed-by: Chloe Stefantsova <[email protected]>
Commit-Queue: Kallen Tu <[email protected]>1 parent e7e07f7 commit 27f18db
File tree
1 file changed
+15
-10
lines changed- pkg/front_end/lib/src/type_inference
1 file changed
+15
-10
lines changedLines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12284 | 12284 | | |
12285 | 12285 | | |
12286 | 12286 | | |
12287 | | - | |
12288 | | - | |
| 12287 | + | |
| 12288 | + | |
| 12289 | + | |
12289 | 12290 | | |
12290 | 12291 | | |
12291 | | - | |
12292 | | - | |
| 12292 | + | |
| 12293 | + | |
| 12294 | + | |
12293 | 12295 | | |
12294 | 12296 | | |
12295 | 12297 | | |
12296 | 12298 | | |
12297 | | - | |
12298 | | - | |
| 12299 | + | |
| 12300 | + | |
| 12301 | + | |
12299 | 12302 | | |
12300 | 12303 | | |
12301 | 12304 | | |
| |||
12317 | 12320 | | |
12318 | 12321 | | |
12319 | 12322 | | |
12320 | | - | |
12321 | | - | |
| 12323 | + | |
| 12324 | + | |
| 12325 | + | |
12322 | 12326 | | |
12323 | 12327 | | |
12324 | 12328 | | |
12325 | | - | |
12326 | | - | |
| 12329 | + | |
| 12330 | + | |
| 12331 | + | |
12327 | 12332 | | |
12328 | 12333 | | |
12329 | 12334 | | |
| |||
0 commit comments