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

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

Issue 1247773002: Add access the Message in CompilerDiagnostics.report. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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: tests/compiler/dart2js/analyze_helper.dart
diff --git a/tests/compiler/dart2js/analyze_helper.dart b/tests/compiler/dart2js/analyze_helper.dart
index 7636eb2d8dcc2ec52c2d8320d2eb10fed6c9a12a..3ed51d4f32617a086ecce34a6fab4d57a55513f2 100644
--- a/tests/compiler/dart2js/analyze_helper.dart
+++ b/tests/compiler/dart2js/analyze_helper.dart
@@ -96,10 +96,10 @@ class CollectingDiagnosticHandler extends FormattingDiagnosticHandler {
}
@override
- void report(Uri uri, int begin, int end, String message,
+ void report(Message message, Uri uri, int begin, int end, String text,
api.Diagnostic kind) {
if (kind == api.Diagnostic.WARNING) {
- if (checkWhiteList(uri, message)) {
+ if (checkWhiteList(uri, text)) {
// Suppress whitelisted warnings.
lastWasWhitelisted = true;
return;
@@ -107,7 +107,7 @@ class CollectingDiagnosticHandler extends FormattingDiagnosticHandler {
hasWarnings = true;
}
if (kind == api.Diagnostic.HINT) {
- if (checkWhiteList(uri, message)) {
+ if (checkWhiteList(uri, text)) {
// Suppress whitelisted hints.
lastWasWhitelisted = true;
return;
@@ -115,7 +115,7 @@ class CollectingDiagnosticHandler extends FormattingDiagnosticHandler {
hasHint = true;
}
if (kind == api.Diagnostic.ERROR) {
- if (checkWhiteList(uri, message)) {
+ if (checkWhiteList(uri, text)) {
// Suppress whitelisted errors.
lastWasWhitelisted = true;
return;
@@ -126,7 +126,7 @@ class CollectingDiagnosticHandler extends FormattingDiagnosticHandler {
return;
}
lastWasWhitelisted = false;
- super.report(uri, begin, end, message, kind);
+ super.report(message, uri, begin, end, text, kind);
}
}

Powered by Google App Engine
This is Rietveld 408576698