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

Side by Side Diff: pkg/dart2js_incremental/lib/caching_compiler.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js_incremental; 5 part of dart2js_incremental;
6 6
7 /// Do not call this method directly. It will be made private. 7 /// Do not call this method directly. It will be made private.
8 // TODO(ahe): Make this method private. 8 // TODO(ahe): Make this method private.
9 Future<Compiler> reuseCompiler( 9 Future<Compiler> reuseCompiler(
10 {DiagnosticHandler diagnosticHandler, 10 {CompilerDiagnostics diagnosticHandler,
11 CompilerInputProvider inputProvider, 11 CompilerInput inputProvider,
12 CompilerOutputProvider outputProvider, 12 CompilerOutput outputProvider,
13 List<String> options: const [], 13 List<String> options: const [],
14 Compiler cachedCompiler, 14 Compiler cachedCompiler,
15 Uri libraryRoot, 15 Uri libraryRoot,
16 Uri packageRoot, 16 Uri packageRoot,
17 bool packagesAreImmutable: false, 17 bool packagesAreImmutable: false,
18 Map<String, dynamic> environment, 18 Map<String, dynamic> environment,
19 Future<bool> reuseLibrary(LibraryElement library)}) { 19 Future<bool> reuseLibrary(LibraryElement library)}) {
20 UserTag oldTag = new UserTag('_reuseCompiler').makeCurrent(); 20 UserTag oldTag = new UserTag('_reuseCompiler').makeCurrent();
21 if (libraryRoot == null) { 21 if (libraryRoot == null) {
22 throw 'Missing libraryRoot'; 22 throw 'Missing libraryRoot';
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 final Map<String, String> output = new Map<String, String>(); 189 final Map<String, String> output = new Map<String, String>();
190 190
191 EventSink<String> call(String name, String extension) { 191 EventSink<String> call(String name, String extension) {
192 return new StringEventSink((String data) { 192 return new StringEventSink((String data) {
193 output['$name.$extension'] = data; 193 output['$name.$extension'] = data;
194 }); 194 });
195 } 195 }
196 196
197 String operator[] (String key) => output[key]; 197 String operator[] (String key) => output[key];
198 } 198 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/source_file_provider.dart ('k') | pkg/dart2js_incremental/lib/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698