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

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

Issue 10661022: Issue 3752. Support for @override annotations (as structured doc comments) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/parser/DietParserTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/DietParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/DietParserTest.java
index 5235c4a65279eac6a5fd59c17a19a057d44a90b4..14181b5d618795d74cf178274a10f18b4be791fc 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/DietParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/DietParserTest.java
@@ -4,6 +4,10 @@
package com.google.dart.compiler.parser;
+import com.google.common.collect.Sets;
+import com.google.dart.compiler.DartCompilerListener;
+import com.google.dart.compiler.Source;
+
/**
* Tests for the parser, which simply assert that valid source units parse
* correctly. All tests invoking {@code parseUnit} are designed such that
@@ -14,9 +18,9 @@ public class DietParserTest extends AbstractParserTest {
public void testStringsErrors() {
parseUnit("StringsErrorsNegativeTest.dart");
}
-
+
@Override
- protected DartParser makeParser(ParserContext context) {
- return new DartParser(context, /* isDietParse */true);
+ protected DartParser makeParser(Source src, String sourceCode, DartCompilerListener listener) {
+ return new DartParser(src, sourceCode, true, Sets.<String>newHashSet(), listener, null);
}
}

Powered by Google App Engine
This is Rietveld 408576698