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

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

Issue 268673006: Fix for 10469- removal of the ArgumentDefinitionTest Ast node from the analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase before commit Created 6 years, 8 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/RecoveryParserTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/RecoveryParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/RecoveryParserTest.java
index 963d3145260732ae8e363c11d9a7f6c8f3dc19b9..9bf35fcb896debc10e0edb965b3850657dd6c2e8 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/RecoveryParserTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/RecoveryParserTest.java
@@ -634,6 +634,11 @@ public class RecoveryParserTest extends ParserTestCase {
assertEquals(TokenType.MINUS, expression.getOperator().getType());
}
+ public void test_primaryExpression_argumentDefinitionTest() throws Exception {
+ Expression expression = parse("parsePrimaryExpression", "?a", ParserErrorCode.UNEXPECTED_TOKEN);
+ assertInstanceOf(SimpleIdentifier.class, expression);
+ }
+
public void test_relationalExpression_missing_LHS() throws Exception {
IsExpression expression = parseExpression("is y", ParserErrorCode.MISSING_IDENTIFIER);
assertInstanceOf(SimpleIdentifier.class, expression.getExpression());

Powered by Google App Engine
This is Rietveld 408576698