commit | 2cd86030a59095105b85b63eaa0f7dfbdcafe537 | [log] [tgz] |
---|---|---|
author | Paul Berry <paulberry@google.com> | Wed Jun 05 14:24:20 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed Jun 05 14:24:20 2019 +0000 |
tree | bc82cd745e37fda7d1221bc2a87028b17bc2c044 | |
parent | 9197b34a0e703ccbe7c407251e01f78d4943ce92 [diff] |
Fix return value in GraphBuilder.visitVariableDeclaration. 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>
diff --git a/pkg/analysis_server/lib/src/nullability/graph_builder.dart b/pkg/analysis_server/lib/src/nullability/graph_builder.dart index 7414beb..a9801a9 100644 --- a/pkg/analysis_server/lib/src/nullability/graph_builder.dart +++ b/pkg/analysis_server/lib/src/nullability/graph_builder.dart
@@ -472,8 +472,9 @@ 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