| 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 EventSink, | 8 EventSink, |
| 9 Future; | 9 Future; |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 LibraryUpdater, | 34 LibraryUpdater, |
| 35 Logger; | 35 Logger; |
| 36 | 36 |
| 37 import 'package:compiler/src/js/js.dart' as jsAst; | 37 import 'package:compiler/src/js/js.dart' as jsAst; |
| 38 | 38 |
| 39 part 'caching_compiler.dart'; | 39 part 'caching_compiler.dart'; |
| 40 | 40 |
| 41 const List<String> INCREMENTAL_OPTIONS = const <String>[ | 41 const List<String> INCREMENTAL_OPTIONS = const <String>[ |
| 42 '--disable-type-inference', | 42 '--disable-type-inference', |
| 43 '--incremental-support', | 43 '--incremental-support', |
| 44 '--generate-code-with-compile-time-errors', |
| 44 '--no-source-maps', // TODO(ahe): Remove this. | 45 '--no-source-maps', // TODO(ahe): Remove this. |
| 45 ]; | 46 ]; |
| 46 | 47 |
| 47 class IncrementalCompiler { | 48 class IncrementalCompiler { |
| 48 final Uri libraryRoot; | 49 final Uri libraryRoot; |
| 49 final Uri packageRoot; | 50 final Uri packageRoot; |
| 50 final CompilerInputProvider inputProvider; | 51 final CompilerInputProvider inputProvider; |
| 51 final DiagnosticHandler diagnosticHandler; | 52 final DiagnosticHandler diagnosticHandler; |
| 52 final List<String> options; | 53 final List<String> options; |
| 53 final CompilerOutputProvider outputProvider; | 54 final CompilerOutputProvider outputProvider; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 159 } |
| 159 } | 160 } |
| 160 | 161 |
| 161 class IncrementalCompilationFailed { | 162 class IncrementalCompilationFailed { |
| 162 final String reason; | 163 final String reason; |
| 163 | 164 |
| 164 const IncrementalCompilationFailed(this.reason); | 165 const IncrementalCompilationFailed(this.reason); |
| 165 | 166 |
| 166 String toString() => "Can't incrementally compile program.\n\n$reason"; | 167 String toString() => "Can't incrementally compile program.\n\n$reason"; |
| 167 } | 168 } |
| OLD | NEW |