| 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);
|
| }
|
| }
|
|
|
|
|