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

Unified Diff: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java

Issue 9185013: Issue 965: Report error for static local function (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
index 3fa1139a0867705e807de9bd93d67d0e69c9fecd..8ae0ad72112067deb8d5551a04fc69ed626166ea 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -298,9 +298,12 @@ public abstract class CompilerTestCase extends TestCase {
/**
* Parses given source and checks parsing problems.
*/
- protected final void parseExpectErrors(String code, ErrorExpectation... expectedErrors) {
- List<DartCompilationError> errors = parseSource(code).getErrors();
+ protected final DartParserRunner parseExpectErrors(String code,
+ ErrorExpectation... expectedErrors) {
+ DartParserRunner parserRunner = parseSource(code);
+ List<DartCompilationError> errors = parserRunner.getErrors();
assertErrors(errors, expectedErrors);
+ return parserRunner;
}
/**

Powered by Google App Engine
This is Rietveld 408576698