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

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

Issue 8576007: Expect 'extends' in type parameters declaration and recover, issue 341 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Better recovering, more tests. Created 9 years, 1 month 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/parser/DartParserRunner.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java b/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java
index cb39a640ba005900e920cf60d4da293ab155bc8b..0af76946b29b42118d8942bd78a98c02362cdd24 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java
@@ -112,18 +112,18 @@ public class DartParserRunner extends DartCompilerListener implements Runnable {
}
}
- boolean apiParsing;
- DartUnit dartUnit;
- List<DartCompilationError> errors = new ArrayList<DartCompilationError>();
- String name;
+ private boolean apiParsing;
+ private DartUnit dartUnit;
+ private List<DartCompilationError> errors = new ArrayList<DartCompilationError>();
+ private String name;
- Thread parserWorker;
+ private Thread parserWorker;
- String sourceCode;
+ private String sourceCode;
- int timeoutInMillis = DEFAULT_TIMEOUT_IN_MILISECONDS;
+ private int timeoutInMillis = DEFAULT_TIMEOUT_IN_MILISECONDS;
- AtomicReference<Throwable> workerException = new AtomicReference<Throwable>();
+ private AtomicReference<Throwable> workerException = new AtomicReference<Throwable>();
private boolean wantWarnings;
@@ -138,6 +138,10 @@ public class DartParserRunner extends DartCompilerListener implements Runnable {
this.apiParsing = apiParsing;
}
+ public DartUnit getDartUnit() {
+ return dartUnit;
+ }
+
@Override
public void onError(DartCompilationError event) {
if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.WARNING && !wantWarnings) {

Powered by Google App Engine
This is Rietveld 408576698