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

Unified Diff: dart/tests/utils/dummy_compiler_test.dart

Issue 10579015: Update dart2js to use diagnostic kinds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
« no previous file with comments | « dart/lib/compiler/implementation/source_file.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/utils/dummy_compiler_test.dart
diff --git a/dart/tests/utils/dummy_compiler_test.dart b/dart/tests/utils/dummy_compiler_test.dart
index 30aea67c0a73db87530f19820a4dfb8134d4b0f3..e33a1fee6f2cc68f8f1dd7cd534b278b548f85ba 100644
--- a/dart/tests/utils/dummy_compiler_test.dart
+++ b/dart/tests/utils/dummy_compiler_test.dart
@@ -40,8 +40,12 @@ Future<String> provider(Uri uri) {
return completer.future;
}
-void handler(Uri uri, int begin, int end, String message, bool fatal) {
- print(message);
+void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
+ if (uri === null) {
+ print('$kind: $message');
+ } else {
+ print('$uri:$begin:$end: $kind: $message');
+ }
}
main() {
« no previous file with comments | « dart/lib/compiler/implementation/source_file.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698