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

Issue 2976963002: Add --no-declaration-casts option to analyzer. (Closed)

Created:
3 years, 5 months ago by Leaf
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, Jennifer Messerly
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add --no-declaration-casts option to analyzer. Adds a flag to disable and enable declaration casts independently from other casts. Fixes #29546 BUG= R=brianwilkerson@google.com, rnystrom@google.com Committed: https://github.com/dart-lang/sdk/commit/1eb480d2667fa3abe3d290dbceca268f73e078c1

Patch Set 1 #

Patch Set 2 : Reformat #

Total comments: 2

Patch Set 3 : Address feedback #

Patch Set 4 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -38 lines) Patch
M pkg/analyzer/lib/src/command_line/arguments.dart View 1 2 4 chunks +18 lines, -6 lines 0 comments Download
M pkg/analyzer/lib/src/context/context.dart View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 1 2 4 chunks +11 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/error_verifier.dart View 1 2 6 chunks +20 lines, -10 lines 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/generated/type_system.dart View 1 2 3 7 chunks +21 lines, -5 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/options.dart View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/task/strong/checker.dart View 1 2 6 chunks +21 lines, -8 lines 0 comments Download
M pkg/analyzer/test/src/command_line/arguments_test.dart View 1 2 5 chunks +70 lines, -1 line 0 comments Download
M pkg/analyzer/test/src/context/builder_test.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/checker_test.dart View 1 2 3 chunks +130 lines, -4 lines 0 comments Download
M pkg/analyzer/test/src/task/strong/strong_test_helper.dart View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M pkg/analyzer_cli/lib/src/options.dart View 1 2 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 11 (4 generated)
Leaf
This adds a non-exclusive flag --no-assignment-casts for controlling whether casts of the form SomeType x ...
3 years, 5 months ago (2017-07-13 00:19:27 UTC) #2
Bob Nystrom
https://codereview.chromium.org/2976963002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart File pkg/analyzer/lib/src/generated/type_system.dart (right): https://codereview.chromium.org/2976963002/diff/20001/pkg/analyzer/lib/src/generated/type_system.dart#newcode433 pkg/analyzer/lib/src/generated/type_system.dart:433: } else if (!implicitCasts) { I think this might ...
3 years, 5 months ago (2017-07-13 18:07:39 UTC) #4
Brian Wilkerson
lgtm
3 years, 5 months ago (2017-07-19 18:52:37 UTC) #5
Leaf
Per offline feedback, changed to --no-declaration-casts and updated code accordingly. Also stopped treating default parameter ...
3 years, 5 months ago (2017-07-20 21:37:31 UTC) #7
Brian Wilkerson
still lgtm
3 years, 5 months ago (2017-07-20 22:20:42 UTC) #8
Bob Nystrom
On 2017/07/20 22:20:42, Brian Wilkerson wrote: > still lgtm Double-plus LGTM.
3 years, 5 months ago (2017-07-20 22:54:21 UTC) #9
Leaf
3 years, 5 months ago (2017-07-20 22:55:15 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
1eb480d2667fa3abe3d290dbceca268f73e078c1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698