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

Issue 1832993003: Fix all strong mode errors and warnings. (Closed)

Created:
4 years, 9 months ago by Bob Nystrom
Modified:
4 years, 8 months ago
Reviewers:
terry
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/csslib.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix all strong mode errors and warnings. This is almost all: - Adding type annotations to empty lists that are later filled. Many of these could be simplified by using .map(...).toList() to create the list instead, but I wanted to minimize my changes. - Adding type arguments to some List annotations. I did find one thing that I believe was a bug where a list was being inadvertently flattened. Strong mode caught that. R=terry@google.com Committed: https://github.com/dart-lang/csslib/commit/c75e20cea8e7bbe44937262de51d636ac5d4c7a1

Patch Set 1 #

Total comments: 5

Patch Set 2 : Move type. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -163 lines) Patch
A .analysis_options View 1 chunk +2 lines, -0 lines 0 comments Download
M CHANGELOG.md View 1 chunk +8 lines, -0 lines 0 comments Download
M example/call_parser.dart View 3 chunks +3 lines, -2 lines 0 comments Download
M lib/parser.dart View 1 11 chunks +15 lines, -14 lines 0 comments Download
M lib/src/analyzer.dart View 8 chunks +12 lines, -12 lines 0 comments Download
M lib/src/polyfill.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/property.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/tokenizer.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/tree.dart View 13 chunks +22 lines, -24 lines 0 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M test/big_1_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/compiler_test.dart View 30 chunks +64 lines, -57 lines 0 comments Download
M test/declaration_test.dart View 18 chunks +36 lines, -23 lines 0 comments Download
M test/error_test.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M test/extend_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/mixin_test.dart View 8 chunks +9 lines, -8 lines 0 comments Download
M test/nested_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/selector_test.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M test/var_test.dart View 6 chunks +7 lines, -6 lines 0 comments Download
M test/visitor_test.dart View 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Bob Nystrom
4 years, 9 months ago (2016-03-25 03:10:42 UTC) #2
Bob Nystrom
https://codereview.chromium.org/1832993003/diff/1/lib/src/tree.dart File lib/src/tree.dart (right): https://codereview.chromium.org/1832993003/diff/1/lib/src/tree.dart#newcode748 lib/src/tree.dart:748: cloneArgs.add(arg.map((term) => term.clone()).toList()); I believe the previous code was ...
4 years, 9 months ago (2016-03-25 03:11:28 UTC) #3
terry
lgtm just minor questions. https://codereview.chromium.org/1832993003/diff/1/lib/parser.dart File lib/parser.dart (right): https://codereview.chromium.org/1832993003/diff/1/lib/parser.dart#newcode778 lib/parser.dart:778: List<VarDefinition> params = []; var ...
4 years, 8 months ago (2016-04-14 21:16:43 UTC) #4
Bob Nystrom
Thanks! https://codereview.chromium.org/1832993003/diff/1/lib/parser.dart File lib/parser.dart (right): https://codereview.chromium.org/1832993003/diff/1/lib/parser.dart#newcode778 lib/parser.dart:778: List<VarDefinition> params = []; On 2016/04/14 21:16:43, terry ...
4 years, 8 months ago (2016-04-21 00:06:59 UTC) #5
Bob Nystrom
4 years, 8 months ago (2016-04-21 00:07:21 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
c75e20cea8e7bbe44937262de51d636ac5d4c7a1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698