| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 final CompilerInputProvider inputProvider; | 50 final CompilerInputProvider inputProvider; |
| 51 final DiagnosticHandler diagnosticHandler; | 51 final DiagnosticHandler diagnosticHandler; |
| 52 final List<String> options; | 52 final List<String> options; |
| 53 final CompilerOutputProvider outputProvider; | 53 final CompilerOutputProvider outputProvider; |
| 54 final Map<String, dynamic> environment; | 54 final Map<String, dynamic> environment; |
| 55 final List<String> _updates = <String>[]; | 55 final List<String> _updates = <String>[]; |
| 56 final IncrementalCompilerContext _context = new IncrementalCompilerContext(); | 56 final IncrementalCompilerContext _context = new IncrementalCompilerContext(); |
| 57 | 57 |
| 58 Compiler _compiler; | 58 Compiler _compiler; |
| 59 | 59 |
| 60 bool get compilerWasCancelled => _compiler.compilerWasCancelled; | |
| 61 | |
| 62 IncrementalCompiler({ | 60 IncrementalCompiler({ |
| 63 this.libraryRoot, | 61 this.libraryRoot, |
| 64 this.packageRoot, | 62 this.packageRoot, |
| 65 this.inputProvider, | 63 this.inputProvider, |
| 66 this.diagnosticHandler, | 64 this.diagnosticHandler, |
| 67 this.options, | 65 this.options, |
| 68 this.outputProvider, | 66 this.outputProvider, |
| 69 this.environment}) { | 67 this.environment}) { |
| 70 if (libraryRoot == null) { | 68 if (libraryRoot == null) { |
| 71 throw new ArgumentError('libraryRoot is null.'); | 69 throw new ArgumentError('libraryRoot is null.'); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 158 } |
| 161 } | 159 } |
| 162 | 160 |
| 163 class IncrementalCompilationFailed { | 161 class IncrementalCompilationFailed { |
| 164 final String reason; | 162 final String reason; |
| 165 | 163 |
| 166 const IncrementalCompilationFailed(this.reason); | 164 const IncrementalCompilationFailed(this.reason); |
| 167 | 165 |
| 168 String toString() => "Can't incrementally compile program.\n\n$reason"; | 166 String toString() => "Can't incrementally compile program.\n\n$reason"; |
| 169 } | 167 } |
| OLD | NEW |