OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library dart2js_incremental; | 5 library dart2js_incremental; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 Future; | 8 Future; |
9 | 9 |
10 import 'dart:profiler' show | 10 import 'dart:profiler' show |
11 UserTag; | 11 UserTag; |
12 | 12 |
13 import 'package:compiler/implementation/apiimpl.dart' show | 13 import 'package:compiler/src/apiimpl.dart' show |
14 Compiler; | 14 Compiler; |
15 | 15 |
16 import 'package:compiler/compiler.dart' show | 16 import 'package:compiler/compiler.dart' show |
17 CompilerInputProvider, | 17 CompilerInputProvider, |
18 CompilerOutputProvider, | 18 CompilerOutputProvider, |
19 Diagnostic, | 19 Diagnostic, |
20 DiagnosticHandler; | 20 DiagnosticHandler; |
21 | 21 |
22 import 'package:compiler/implementation/dart2jslib.dart' show | 22 import 'package:compiler/src/dart2jslib.dart' show |
23 NullSink; | 23 NullSink; |
24 | 24 |
25 import 'package:compiler/implementation/js_backend/js_backend.dart' show | 25 import 'package:compiler/src/js_backend/js_backend.dart' show |
26 JavaScriptBackend; | 26 JavaScriptBackend; |
27 | 27 |
28 import 'package:compiler/implementation/elements/elements.dart' show | 28 import 'package:compiler/src/elements/elements.dart' show |
29 LibraryElement; | 29 LibraryElement; |
30 | 30 |
31 import 'library_updater.dart' show | 31 import 'library_updater.dart' show |
32 LibraryUpdater, | 32 LibraryUpdater, |
33 Logger; | 33 Logger; |
34 | 34 |
35 part 'caching_compiler.dart'; | 35 part 'caching_compiler.dart'; |
36 | 36 |
37 const List<String> INCREMENTAL_OPTIONS = const <String>[ | 37 const List<String> INCREMENTAL_OPTIONS = const <String>[ |
38 '--disable-type-inference', | 38 '--disable-type-inference', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 return future.then((Compiler compiler) { | 120 return future.then((Compiler compiler) { |
121 _compiler = compiler; | 121 _compiler = compiler; |
122 if (compiler.compilationFailed) { | 122 if (compiler.compilationFailed) { |
123 return null; | 123 return null; |
124 } else { | 124 } else { |
125 return updater.computeUpdateJs(); | 125 return updater.computeUpdateJs(); |
126 } | 126 } |
127 }); | 127 }); |
128 } | 128 } |
129 } | 129 } |
OLD | NEW |