Skip to content

Commit 9dee307

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Migration: update nullability graph debug dump to support union edges.
Change-Id: Ic9b85656b1e0d81468c73c89a08bfac611060534 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107514 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
1 parent b60dcdb commit 9dee307

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/nnbd_migration/lib/src/nullability_node.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ class NullabilityGraph {
167167
var destinations =
168168
edges.where((edge) => edge.primarySource == source).map((edge) {
169169
var suffixes = <Object>[];
170-
if (edge.hard) {
170+
if (edge.isUnion) {
171+
suffixes.add('union');
172+
} else if (edge.hard) {
171173
suffixes.add('hard');
172174
}
173175
suffixes.addAll(edge.guards);

0 commit comments

Comments
 (0)