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

Unified Diff: tests/compiler/dart2js/incremental/compile_all.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
« no previous file with comments | « tests/compiler/dart2js/exit_code_test.dart ('k') | tests/compiler/dart2js/incremental/hello_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/incremental/compile_all.dart
diff --git a/tests/compiler/dart2js/incremental/compile_all.dart b/tests/compiler/dart2js/incremental/compile_all.dart
index c2c7a9ede264e1eaaee3a3928e64b31c3e7266d9..ea41d2c076539f59d9a8514c060f2b71e90ac123 100644
--- a/tests/compiler/dart2js/incremental/compile_all.dart
+++ b/tests/compiler/dart2js/incremental/compile_all.dart
@@ -14,6 +14,8 @@ import 'dart:developer' show
import 'package:dart2js_incremental/dart2js_incremental.dart' show
IncrementalCompiler;
+import 'package:compiler/src/source_file_provider.dart' show
+ FormattingDiagnosticHandler;
import '../memory_source_file_helper.dart' show
Compiler;
@@ -42,13 +44,14 @@ void compileTests(Map<String, String> sources) {
int skipCount = 0;
Set<String> crashes = new Set<String>();
Compiler memoryCompiler = compilerFor(sources);
- memoryCompiler.handler.verbose = verbose;
+ FormattingDiagnosticHandler handler = memoryCompiler.handler;
+ handler.verbose = verbose;
var options = ['--analyze-main'];
if (true || verbose) options.add('--verbose');
IncrementalCompiler compiler = new IncrementalCompiler(
libraryRoot: memoryCompiler.libraryRoot,
inputProvider: memoryCompiler.provider,
- outputProvider: memoryCompiler.outputProvider,
+ outputProvider: memoryCompiler.userOutputProvider,
diagnosticHandler: memoryCompiler.handler,
packageRoot: memoryCompiler.packageRoot,
options: options);
« no previous file with comments | « tests/compiler/dart2js/exit_code_test.dart ('k') | tests/compiler/dart2js/incremental/hello_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698