-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flow analysis: promote to "types of interest" on assignment.
This allows so-called "ensure guarded" promotions, e.g. - `if (x is! int) x = 0;` - `if (x == null) x = 0;` - `x ??= 0;` The latter two are particularly important to prepare for NNBD. Change-Id: Ib53ca916e6d485945326b19e86f8cfb5b3ee2160 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123280 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
- Loading branch information
1 parent
d213d3c
commit 780af0f
Showing
11 changed files
with
831 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
572 changes: 382 additions & 190 deletions
572
pkg/front_end/lib/src/fasta/flow_analysis/flow_analysis.dart
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.