| 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) {
|
|
|