Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Issue 2219653005: Disallow uninitialized non-nullable variables (Closed)

Created:
4 years, 4 months ago by stanm
Modified:
4 years, 4 months ago
Reviewers:
vsm, Jennifer Messerly
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Disallow uninitialized non-nullable variables Declaring a non-nullable variable without initializing it is a static error. If a constant is declared instead (either run-time or compile-time) the error handling logic is the same as before. BUG= R=jmesserly@google.com Committed: https://github.com/dart-lang/sdk/commit/f5f4bb4ebd798cbd01b6c3d4763bda9d8171031b

Patch Set 1 #

Patch Set 2 : Fix build break #

Total comments: 3

Patch Set 3 : Simplify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -6 lines) Patch
M pkg/analyzer/lib/src/generated/error.dart View 2 chunks +9 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/strong/checker.dart View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/non_null_checker_test.dart View 2 chunks +44 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
stanm
4 years, 4 months ago (2016-08-05 17:15:21 UTC) #2
Jennifer Messerly
overall lgtm, just a couple of comments/questions https://codereview.chromium.org/2219653005/diff/20001/pkg/analyzer/lib/src/task/strong/checker.dart File pkg/analyzer/lib/src/task/strong/checker.dart (right): https://codereview.chromium.org/2219653005/diff/20001/pkg/analyzer/lib/src/task/strong/checker.dart#newcode766 pkg/analyzer/lib/src/task/strong/checker.dart:766: * missing ...
4 years, 4 months ago (2016-08-05 17:39:31 UTC) #3
stanm
https://codereview.chromium.org/2219653005/diff/20001/pkg/analyzer/lib/src/task/strong/checker.dart File pkg/analyzer/lib/src/task/strong/checker.dart (right): https://codereview.chromium.org/2219653005/diff/20001/pkg/analyzer/lib/src/task/strong/checker.dart#newcode768 pkg/analyzer/lib/src/task/strong/checker.dart:768: void _checkForNonNullNotInitialized(VariableDeclarationList list) { On 2016/08/05 17:39:31, John Messerly ...
4 years, 4 months ago (2016-08-05 18:06:52 UTC) #4
stanm
4 years, 4 months ago (2016-08-05 18:07:56 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
f5f4bb4ebd798cbd01b6c3d4763bda9d8171031b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698