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

Unified Diff: tests/compiler/dart2js/parser_test.dart

Issue 1383483006: Extract DiagnosticReporter implementation from Compiler. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes after rebase. Created 5 years, 2 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
« no previous file with comments | « tests/compiler/dart2js/parser_helper.dart ('k') | tests/compiler/dart2js/related_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/parser_test.dart
diff --git a/tests/compiler/dart2js/parser_test.dart b/tests/compiler/dart2js/parser_test.dart
index 17584fb3e2087381d4ab7ab2dbd837481eb7dce9..4674201868bcb50e045d9a1cb0017d94bc0e6017 100644
--- a/tests/compiler/dart2js/parser_test.dart
+++ b/tests/compiler/dart2js/parser_test.dart
@@ -292,7 +292,7 @@ void testOperatorParse() {
Expect.isNull(function.getOrSet);
}
-class Collector extends DiagnosticListener {
+class Collector extends DiagnosticReporter {
int token = -1;
void reportFatalError(Token token) {
@@ -326,7 +326,7 @@ void testMissingCloseParen() {
return x;
}''';
parse() {
- parseMember(source, diagnosticHandler: new Collector());
+ parseMember(source, reporter: new Collector());
}
check(Collector c) {
Expect.equals(OPEN_CURLY_BRACKET_TOKEN, c.token);
@@ -338,7 +338,7 @@ void testMissingCloseParen() {
void testMissingCloseBraceInClass() {
final String source = 'class Foo {'; // Missing close '}'.
parse() {
- fullParseUnit(source, diagnosticHandler: new Collector());
+ fullParseUnit(source, reporter: new Collector());
}
check(Collector c) {
Expect.equals(BAD_INPUT_TOKEN, c.token);
@@ -350,7 +350,7 @@ void testMissingCloseBraceInClass() {
void testUnmatchedAngleBracket() {
final String source = 'A<'; // unmatched '<'
parse() {
- fullParseUnit(source, diagnosticHandler: new Collector());
+ fullParseUnit(source, reporter: new Collector());
}
check(Collector c) {
Expect.equals(LT_TOKEN, c.token);
« no previous file with comments | « tests/compiler/dart2js/parser_helper.dart ('k') | tests/compiler/dart2js/related_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698