| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| index 43bf9dc3acfb45738ec5b55f9d3dae71eda4553f..ab8e77ad927dfcf045be11ed3ac0591791b563e2 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| @@ -3668,13 +3668,6 @@ public class Parser {
|
| * @return the list literal that was parsed
|
| */
|
| private ListLiteral parseListLiteral(Token modifier, TypeArgumentList typeArguments) {
|
| - // validate number of type arguments
|
| - if (typeArguments != null) {
|
| - int num = typeArguments.getArguments().size();
|
| - if (num != 1) {
|
| - reportError(ParserErrorCode.EXPECTED_ONE_LIST_TYPE_ARGUMENTS, typeArguments, num);
|
| - }
|
| - }
|
| // may be empty list literal
|
| if (matches(TokenType.INDEX)) {
|
| BeginToken leftBracket = new BeginToken(
|
| @@ -3790,14 +3783,6 @@ public class Parser {
|
| * @return the map literal that was parsed
|
| */
|
| private MapLiteral parseMapLiteral(Token modifier, TypeArgumentList typeArguments) {
|
| - // validate number of type arguments
|
| - if (typeArguments != null) {
|
| - int num = typeArguments.getArguments().size();
|
| - if (num != 2) {
|
| - reportError(ParserErrorCode.EXPECTED_TWO_MAP_TYPE_ARGUMENTS, typeArguments, num);
|
| - }
|
| - }
|
| - // open
|
| Token leftBracket = expect(TokenType.OPEN_CURLY_BRACKET);
|
| List<MapLiteralEntry> entries = new ArrayList<MapLiteralEntry>();
|
| if (matches(TokenType.CLOSE_CURLY_BRACKET)) {
|
|
|