|
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
Total comments: 5
|
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
|
Total messages: 7 (2 generated)
|