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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/ParserEventsTest.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/ParserEventsTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/ParserEventsTest.java b/compiler/javatests/com/google/dart/compiler/parser/ParserEventsTest.java
index d74e22bc22d85f55f6890badcb7d329159a1408b..bef3a7aa8f9c233b82940b4e99a8258a426172fd 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/ParserEventsTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/ParserEventsTest.java
@@ -67,8 +67,14 @@ import static com.google.dart.compiler.parser.ParserEventsTest.Mark.VarDeclarati
import static com.google.dart.compiler.parser.ParserEventsTest.Mark.VariableDeclaration;
import static com.google.dart.compiler.parser.ParserEventsTest.Mark.WhileStatement;
+import com.google.common.collect.Sets;
+import com.google.dart.compiler.DartCompilerListener;
+import com.google.dart.compiler.Source;
+import com.google.dart.compiler.metrics.CompilerMetrics;
+
import java.util.HashSet;
import java.util.LinkedHashSet;
+import java.util.Set;
public class ParserEventsTest extends AbstractParserTest {
@@ -187,8 +193,13 @@ public class ParserEventsTest extends AbstractParserTest {
}
}
- public ParserEventRecorder(ParserContext ctx) {
- super(ctx);
+ public ParserEventRecorder(Source source,
+ String sourceCode,
+ boolean isDietParse,
+ Set<String> prefixes,
+ DartCompilerListener listener,
+ CompilerMetrics compilerMetrics) {
+ super(source, sourceCode, isDietParse, prefixes, listener, compilerMetrics);
marks = new LinkedHashSet<Mark>();
}
@@ -752,10 +763,10 @@ public class ParserEventsTest extends AbstractParserTest {
QualifiedIdentifier, ConditionalExpression, BinaryExpression, VariableDeclaration,
FormalParameterList);
}
-
+
@Override
- protected DartParser makeParser(ParserContext context) {
- recorder = new ParserEventRecorder(context);
+ protected DartParser makeParser(Source src, String sourceCode, DartCompilerListener listener) {
+ recorder = new ParserEventRecorder(src, sourceCode, false, Sets.<String>newHashSet(), listener, null);
return recorder;
}

Powered by Google App Engine
This is Rietveld 408576698