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

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

Issue 2690063002: Refactor CompilerOutput (Closed)
Patch Set: Updated cf. comments Created 3 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/private_test.dart
diff --git a/tests/compiler/dart2js/private_test.dart b/tests/compiler/dart2js/private_test.dart
index 4c5f6337377e9a57b3bde57e97c76d9b659db604..569485d5b217431762195bdb1193d601531f4418 100644
--- a/tests/compiler/dart2js/private_test.dart
+++ b/tests/compiler/dart2js/private_test.dart
@@ -7,6 +7,7 @@ import 'dart:async';
import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/diagnostics/messages.dart' show MessageKind;
import 'package:compiler/src/io/source_file.dart';
+import 'package:compiler/src/old_to_new_api.dart';
import 'mock_compiler.dart';
@@ -48,7 +49,7 @@ analyze(String text, [expectedWarnings]) {
MockCompiler compiler = new MockCompiler.internal(analyzeOnly: true);
compiler.registerSource(Uri.parse(PRIVATE_SOURCE_URI), PRIVATE_SOURCE);
- compiler.diagnosticHandler =
+ compiler.diagnosticHandler = new LegacyCompilerDiagnostics(
(uri, int begin, int end, String message, kind) {
SourceFile sourceFile = compiler.sourceFiles[uri.toString()];
if (sourceFile != null) {
@@ -56,7 +57,7 @@ analyze(String text, [expectedWarnings]) {
} else {
print(message);
}
- };
+ });
String source = '''
library public;
« no previous file with comments | « tests/compiler/dart2js/preserve_uris_test.dart ('k') | tests/compiler/dart2js/serialization/compilation_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698