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

Issue 2205743002: Add non-null types list to StrongModeOptions (Closed)

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

Description

Add non-null types list to StrongModeOptions There two tests for the list: if it's empty the behaviour should be as before; if it's not then there should be an analyzer error. The latter test is marked as failing, as the list is not used internally yet. Based on https://github.com/dart-lang/dev_compiler/commit/9e124ba8d47963eb378d757ed54d257617d63bee . BUG= R=brianwilkerson@google.com, jmesserly@google.com Committed: https://github.com/dart-lang/sdk/commit/6cafcbb87a7b15e7a55a3714b80c736890323461

Patch Set 1 #

Patch Set 2 : Use annotation instead of prefix for 'failing test' #

Total comments: 7

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -3 lines) Patch
M pkg/analyzer/lib/src/generated/engine.dart View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/type_system.dart View 2 chunks +11 lines, -2 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/non_null_checker_test.dart View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/strong_test_helper.dart View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
stanm
4 years, 4 months ago (2016-08-02 00:37:08 UTC) #2
Brian Wilkerson
lgtm https://codereview.chromium.org/2205743002/diff/20001/pkg/analyzer/lib/src/generated/engine.dart File pkg/analyzer/lib/src/generated/engine.dart (right): https://codereview.chromium.org/2205743002/diff/20001/pkg/analyzer/lib/src/generated/engine.dart#newcode1309 pkg/analyzer/lib/src/generated/engine.dart:1309: List<String> nonnullableTypes = NONNULLABLE_TYPES; Is it the case ...
4 years, 4 months ago (2016-08-02 15:04:36 UTC) #3
Jennifer Messerly
lgtm https://codereview.chromium.org/2205743002/diff/20001/pkg/analyzer/test/src/task/strong/non_null_checker_test.dart File pkg/analyzer/test/src/task/strong/non_null_checker_test.dart (right): https://codereview.chromium.org/2205743002/diff/20001/pkg/analyzer/test/src/task/strong/non_null_checker_test.dart#newcode56 pkg/analyzer/test/src/task/strong/non_null_checker_test.dart:56: check(nonnullableTypes: <String>['int']); to build on Brian's comment, consider ...
4 years, 4 months ago (2016-08-02 16:18:51 UTC) #4
Brian Wilkerson
https://codereview.chromium.org/2205743002/diff/20001/pkg/analyzer/test/src/task/strong/non_null_checker_test.dart File pkg/analyzer/test/src/task/strong/non_null_checker_test.dart (right): https://codereview.chromium.org/2205743002/diff/20001/pkg/analyzer/test/src/task/strong/non_null_checker_test.dart#newcode56 pkg/analyzer/test/src/task/strong/non_null_checker_test.dart:56: check(nonnullableTypes: <String>['int']); Unless this is intended to be a ...
4 years, 4 months ago (2016-08-02 16:25:18 UTC) #5
stanm
Thanks for the reviews! I will address the comments by changing the code before landing. ...
4 years, 4 months ago (2016-08-02 16:56:05 UTC) #7
stanm
4 years, 4 months ago (2016-08-02 20:38:18 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
6cafcbb87a7b15e7a55a3714b80c736890323461 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698