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

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

Issue 169763003: Update dart2js diagnostics to prepare for filtering. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove optional Uri. Created 6 years, 10 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/compiler_test.dart
diff --git a/tests/compiler/dart2js/compiler_test.dart b/tests/compiler/dart2js/compiler_test.dart
index 0b2631c7420babdd3111662ccf441b958a7a6fa2..59b94d47cbe8d2873ee3fa5f61f92de017ed183b 100644
--- a/tests/compiler/dart2js/compiler_test.dart
+++ b/tests/compiler/dart2js/compiler_test.dart
@@ -20,9 +20,11 @@ class CallbackMockCompiler extends MockCompiler {
setOnError(var f) => onError = f;
setOnWarning(var f) => onWarning = f;
- void reportWarning(Node node, var message) {
- if (onWarning != null) onWarning(this, node, message);
- super.reportWarning(node, message);
+ void reportWarning(Spannable node,
+ MessageKind errorCode,
+ [Map arguments = const {}]) {
+ if (onWarning != null) onWarning(this, node, errorCode.error(arguments));
+ super.reportWarning(node, errorCode, arguments);
}
void reportError(Spannable node,

Powered by Google App Engine
This is Rietveld 408576698