|
|
Implement type checking of map literals (issue 221).
Support proper syntax for map literals (at most one type argument is allowed)
and give a warning when legacy syntax is used.
Add tests.
Fix tests.
Committed: https://code.google.com/p/dart/source/detail?r=1764
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+268 lines, -47 lines) |
Patch |
 |
M |
runtime/lib/error.cc
|
View
|
1
2
3
4
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/error.dart
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/immutable_map.dart
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/lib_sources.gypi
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
runtime/lib/literal_map_factory.dart
|
View
|
1
2
3
|
1 chunk |
+26 lines, -0 lines |
2 comments
|
Download
|
 |
M |
runtime/vm/bootstrap_natives.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_generator_ia32.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.cc
|
View
|
1
2
3
4
|
8 chunks |
+102 lines, -23 lines |
2 comments
|
Download
|
 |
M |
tests/language/language.status
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/language/src/MapLiteral1NegativeTest.dart
|
View
|
1
2
3
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/language/src/MapLiteral2NegativeTest.dart
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/src/MapLiteral3Test.dart
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
A |
tests/language/src/MapLiteral4Test.dart
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|