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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/ValidatingSyntaxTest.java

Issue 9950045: Implements error recovery for cases where 'var' or 'final' prefix a method def'n (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adds additional unit test Created 8 years, 9 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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/parser/ValidatingSyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/ValidatingSyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/ValidatingSyntaxTest.java
index 27fbce1bbe819d95b19fb53fe7c78a34d24ed661..5960da861ed53faf3c7e58f5f82278e544625373 100755
--- a/compiler/javatests/com/google/dart/compiler/parser/ValidatingSyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/ValidatingSyntaxTest.java
@@ -73,7 +73,10 @@ public class ValidatingSyntaxTest extends AbstractParserTest {
}
@Override
- protected DartUnit parseUnit(String srcName, String sourceCode) {
+ protected DartUnit parseUnit(String srcName, String sourceCode, Object... errors) {
+ if (errors.length > 0) {
+ throw new RuntimeException("Expected errors not implemented");
+ }
return validateUnit(super.parseUnit(srcName, sourceCode));
}
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698