This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit 2ef2c86
authored
Fix engine in preparation for implementing dart-lang/language#1274 (#23131)
When dart-lang/language#1274 (Infer
non-nullability from local boolean variables) is implemented, flow
analysis will detect that code like this no longer needs to perform a
null check:
final bool hasIdentityTransform =
transform == null || isIdentityFloat32ListTransform(transform);
...
if (!hasIdentityTransform) {
... transform! ... // Null check unnecessary
}
To avoid a build failure due to the unnecessary null check, we need to
temporarily write it in a way that we can ignore it. Once the feature
is complete and rolled into flutter, I'll remove the null check
entirely.1 parent ade75e0 commit 2ef2c86
2 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1096 | 1106 | | |
1097 | 1107 | | |
1098 | 1108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
892 | | - | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
893 | 903 | | |
894 | 904 | | |
895 | 905 | | |
| |||
0 commit comments