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

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

Issue 9403026: Issue 1575. Allow declare new named parameters in method override. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style tweaks. Created 8 years, 10 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 2be9940d8367a018d1068d425aae755946f1faab..a3198399b629848f70d3fc351387d6bfd0e06c7d 100644
--- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
@@ -85,19 +85,15 @@ public abstract class CompilerTestCase extends TestCase {
* Collects the results of running analyzeLibrary.
*/
protected static class AnalyzeLibraryResult extends DartCompilerListener.Empty {
- private final List<DartCompilationError> compilationErrors;
- private final List<DartCompilationError> compilationWarnings;
- private final List<DartCompilationError> typeErrors;
+ private final List<DartCompilationError> errors = Lists.newArrayList();
+ private final List<DartCompilationError> compilationErrors = Lists.newArrayList();
+ private final List<DartCompilationError> compilationWarnings = Lists.newArrayList();
+ private final List<DartCompilationError> typeErrors = Lists.newArrayList();
private LibraryUnit result;
- public AnalyzeLibraryResult() {
- compilationErrors = Lists.newArrayList();
- compilationWarnings = Lists.newArrayList();
- typeErrors = Lists.newArrayList();
- }
-
@Override
public void onError(DartCompilationError event) {
+ errors.add(event);
if (event.getErrorCode().getSubSystem() == SubSystem.STATIC_TYPE) {
typeErrors.add(event);
} else if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.ERROR) {
@@ -107,6 +103,10 @@ public abstract class CompilerTestCase extends TestCase {
}
}
+ public List<DartCompilationError> getErrors() {
+ return errors;
+ }
+
public List<DartCompilationError> getTypeErrors() {
return typeErrors;
}

Powered by Google App Engine
This is Rietveld 408576698