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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java

Issue 18660007: Report EXPECTED_ONE_LIST_TYPE_ARGUMENTS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
index 15705c6022e5c951670f3bd725d05b53dcddc7f9..1089b14f46d3fff2fc94079855bf634e9eef08be 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
@@ -3060,7 +3060,7 @@ public class SimpleParserTest extends ParserTestCase {
public void test_parseListLiteral_empty_oneToken() throws Exception {
Token token = token(Keyword.CONST);
- TypeArgumentList typeArguments = new TypeArgumentList(null, null, null);
+ TypeArgumentList typeArguments = null;
ListLiteral literal = parse("parseListLiteral", new Object[] {token, typeArguments}, "[]");
assertEquals(token, literal.getModifier());
assertEquals(typeArguments, literal.getTypeArguments());
@@ -3071,7 +3071,7 @@ public class SimpleParserTest extends ParserTestCase {
public void test_parseListLiteral_empty_twoTokens() throws Exception {
Token token = token(Keyword.CONST);
- TypeArgumentList typeArguments = new TypeArgumentList(null, null, null);
+ TypeArgumentList typeArguments = null;
ListLiteral literal = parse("parseListLiteral", new Object[] {token, typeArguments}, "[ ]");
assertEquals(token, literal.getModifier());
assertEquals(typeArguments, literal.getTypeArguments());

Powered by Google App Engine
This is Rietveld 408576698