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

Unified Diff: pkg/compiler/lib/src/mirrors/analyze.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 | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/null_compiler_output.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/mirrors/analyze.dart
diff --git a/pkg/compiler/lib/src/mirrors/analyze.dart b/pkg/compiler/lib/src/mirrors/analyze.dart
index 8932fff4d8e772813402c52c8a2450c1c1e4383e..96dc5941edbe00ba0636e7be10e923e622fe365c 100644
--- a/pkg/compiler/lib/src/mirrors/analyze.dart
+++ b/pkg/compiler/lib/src/mirrors/analyze.dart
@@ -11,6 +11,7 @@ import 'dart2js_mirrors.dart' show Dart2JsMirrorSystem;
import '../../compiler.dart' as api;
import '../apiimpl.dart' as apiimpl;
import '../dart2jslib.dart' show Compiler;
+import '../old_to_new_api.dart';
//------------------------------------------------------------------------------
// Analysis entry point.
@@ -53,15 +54,16 @@ Future<MirrorSystem> analyze(List<Uri> libraries,
diagnosticHandler(uri, begin, end, message, kind);
}
- Compiler compiler = new apiimpl.Compiler(inputProvider,
- null,
- internalDiagnosticHandler,
- libraryRoot,
- packageRoot,
- options,
- const {},
- packageConfig,
- findPackages);
+ Compiler compiler = new apiimpl.Compiler(
+ new LegacyCompilerInput(inputProvider),
+ new LegacyCompilerOutput(),
+ new LegacyCompilerDiagnostics(internalDiagnosticHandler),
+ libraryRoot,
+ packageRoot,
+ options,
+ const {},
+ packageConfig,
+ findPackages);
compiler.librariesToAnalyzeWhenRun = libraries;
return compiler.run(null).then((bool success) {
if (success && !compilationFailed) {
« no previous file with comments | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/null_compiler_output.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698