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

Side by Side Diff: pkg/compiler/lib/src/old_to_new_api.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/null_compiler_output.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Implementation of the new compiler API in '../compiler_new.dart' through the 5 /// Implementation of the new compiler API in '../compiler_new.dart' through the
6 /// old compiler API in '../compiler.dart'. 6 /// old compiler API in '../compiler.dart'.
7 7
8 library compiler.api.legacy; 8 library compiler.api.legacy;
9 9
10 import 'dart:async' show EventSink, Future; 10 import 'dart:async' show EventSink, Future;
11 import 'null_compiler_output.dart' show NullSink; 11
12 import '../compiler.dart'; 12 import '../compiler.dart';
13 import '../compiler_new.dart'; 13 import '../compiler_new.dart';
14 import 'null_compiler_output.dart' show NullSink;
14 15
15 /// Implementation of [CompilerInput] using a [CompilerInputProvider]. 16 /// Implementation of [CompilerInput] using a [CompilerInputProvider].
16 class LegacyCompilerInput implements CompilerInput { 17 class LegacyCompilerInput implements CompilerInput {
17 final CompilerInputProvider _inputProvider; 18 final CompilerInputProvider _inputProvider;
18 19
19 LegacyCompilerInput(this._inputProvider); 20 LegacyCompilerInput(this._inputProvider);
20 21
21 @override 22 @override
22 Future readFromUri(Uri uri) { 23 Future readFromUri(Uri uri) {
23 return _inputProvider(uri); 24 return _inputProvider(uri);
(...skipping 19 matching lines...) Expand all
43 final CompilerOutputProvider _outputProvider; 44 final CompilerOutputProvider _outputProvider;
44 45
45 LegacyCompilerOutput([this._outputProvider]); 46 LegacyCompilerOutput([this._outputProvider]);
46 47
47 @override 48 @override
48 EventSink<String> createEventSink(String name, String extension) { 49 EventSink<String> createEventSink(String name, String extension) {
49 if (_outputProvider != null) return _outputProvider(name, extension); 50 if (_outputProvider != null) return _outputProvider(name, extension);
50 return NullSink.outputProvider(name, extension); 51 return NullSink.outputProvider(name, extension);
51 } 52 }
52 } 53 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/null_compiler_output.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698