Skip to content

Commit

Permalink
Fix return value in GraphBuilder.visitVariableDeclaration.
Browse files Browse the repository at this point in the history
This method should return `null`, since it doesn't visit an expression.

Change-Id: I018241c0d2e9b9f00bfe293352cf2707551c81e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104881
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
  • Loading branch information
stereotype441 authored and commit-bot@chromium.org committed Jun 5, 2019
1 parent 9197b34 commit 2cd8603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/analysis_server/lib/src/nullability/graph_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,9 @@ class GraphBuilder extends GeneralizingAstVisitor<DecoratedType> {
if (initializer == null) {
throw UnimplementedError('TODO(paulberry)');
} else {
return _handleAssignment(destinationType, initializer);
_handleAssignment(destinationType, initializer);
}
return null;
}

/// Creates the necessary constraint(s) for an assignment from [sourceType] to
Expand Down

0 comments on commit 2cd8603

Please sign in to comment.