Skip to content

Commit 998deea

Browse files
[nnbd_migration] Handle while loops.
Change-Id: I64fe98087cc5da0a97056f0fa96fffbe9f06326f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112406 Auto-Submit: Mike Fairhurst <[email protected]> Commit-Queue: Paul Berry <[email protected]> Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 576ef91 commit 998deea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/nnbd_migration/lib/src/edge_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,8 +1090,8 @@ $stackTrace''');
10901090

10911091
@override
10921092
DecoratedType visitWhileStatement(WhileStatement node) {
1093-
// TODO do special condition handling
1094-
// TODO do create true/false guards?
1093+
// Note: we do not create guards. A null check here is *very* unlikely to be
1094+
// unnecessary after analysis.
10951095
_handleAssignment(node.condition, _notNullType);
10961096
_postDominatedLocals.doScoped(action: () => node.body.accept(this));
10971097
return null;

0 commit comments

Comments
 (0)