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

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

Issue 1235563003: Add interfaces for a new compiler API. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Rebased 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/message_kind_helper.dart
diff --git a/tests/compiler/dart2js/message_kind_helper.dart b/tests/compiler/dart2js/message_kind_helper.dart
index 7bc63ce886e2ac8c8f43aee22e330994993db919..244d5a0940d4d93691ce051511e79fd8e241ee83 100644
--- a/tests/compiler/dart2js/message_kind_helper.dart
+++ b/tests/compiler/dart2js/message_kind_helper.dart
@@ -12,6 +12,8 @@ import 'package:compiler/src/dart2jslib.dart' show
MessageKind;
import 'package:compiler/src/dart_backend/dart_backend.dart' show
DartBackend;
+import 'package:compiler/src/old_to_new_api.dart' show
+ LegacyCompilerDiagnostics;
import 'memory_compiler.dart';
@@ -79,7 +81,7 @@ Future<Compiler> check(MessageKind kind, Compiler cachedCompiler) {
Compiler compiler = compilerFor(
example,
- diagnosticHandler: collect,
+ diagnosticHandler: new LegacyCompilerDiagnostics(collect),
options: ['--analyze-only',
'--enable-experimental-mirrors']..addAll(kind.options),
cachedCompiler:
« no previous file with comments | « tests/compiler/dart2js/memory_source_file_helper.dart ('k') | tests/compiler/dart2js/mirror_tree_shaking_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698