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

Issue 10854191: Require two type arguments for map literals (issue 4522). (Closed)

Created:
8 years, 4 months ago by regis
Modified:
8 years, 4 months ago
Reviewers:
Bob Nystrom, ahe, hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Require two type arguments for map literals (issue 4522). Spec has been changed back. VM temporarily accepts a single type argument and emits a warning. Update tests, dart2js source, dartdoc, etc... Disable failing co19 tests (issue 175 filed). Committed: https://code.google.com/p/dart/source/detail?r=10861

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -109 lines) Patch
M compiler/javatests/com/google/dart/compiler/parser/ListObjectLiterals.dart View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M lib/args/args.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/compiler.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/dart2js.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/dart_backend/renamer.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/js_backend/native_emitter.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/library_map.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/scanner/partial_parser.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/dartdoc/ast.dart View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/dartdoc/comment_map.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/dartdoc/markdown.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/dartdoc/mirrors/dart2js_mirror.dart View 1 2 3 9 chunks +14 lines, -10 lines 0 comments Download
M pkg/logging/logging.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 3 2 chunks +21 lines, -18 lines 0 comments Download
M samples/markdown/ast.dart View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M samples/markdown/lib.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M samples/webcomponents/shadow_polyfill.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M tests/language/const_var_test.dart View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language/map_literal1_negative_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/language/map_literal2_negative_test.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tests/language/map_literal3_test.dart View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M tests/language/map_literal4_test.dart View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M tests/language/map_literal_negative_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/language/map_literal_syntax_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/mime_multipart_parser_test.dart View 1 2 3 4 chunks +17 lines, -14 lines 0 comments Download
M utils/apidoc/html_diff.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M utils/apidoc/html_diff_dump.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/archive/options.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/lock_file.dart View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M utils/pub/source_registry.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/version_solver.dart View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M utils/pub/yaml/composer.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/test_pub.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/version_solver_test.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
regis
8 years, 4 months ago (2012-08-16 19:18:59 UTC) #1
ahe
Hi Regis, Thank you for cleaning this up! Changes to lib/compiler and tests/, LGTM. Please ...
8 years, 4 months ago (2012-08-16 19:52:48 UTC) #2
hausner
LGTM w/comment https://chromiumcodereview.appspot.com/10854191/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://chromiumcodereview.appspot.com/10854191/diff/1/runtime/vm/parser.cc#newcode8073 runtime/vm/parser.cc:8073: Warning(type_pos, As Peter notes, I would guard ...
8 years, 4 months ago (2012-08-16 20:02:38 UTC) #3
regis
Thanks! https://chromiumcodereview.appspot.com/10854191/diff/1/lib/compiler/implementation/scanner/partial_parser.dart File lib/compiler/implementation/scanner/partial_parser.dart (right): https://chromiumcodereview.appspot.com/10854191/diff/1/lib/compiler/implementation/scanner/partial_parser.dart#newcode44 lib/compiler/implementation/scanner/partial_parser.dart:44: // Foo() : map = <String, Foo>{}; On ...
8 years, 4 months ago (2012-08-16 20:11:00 UTC) #4
Bob Nystrom
8 years, 4 months ago (2012-08-16 21:41:23 UTC) #5
Showing up a little late to the party, but dartdoc, pub, and yaml changes all
LGTM!

Powered by Google App Engine
This is Rietveld 408576698