| 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 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 $dart_unsafe_eval.patch(#); | 148 $dart_unsafe_eval.patch(#); |
| 149 return main(args); | 149 return main(args); |
| 150 }""", updates); | 150 }""", updates); |
| 151 | 151 |
| 152 | 152 |
| 153 jsAst.Printer printer = new jsAst.Printer(_compiler, null); | 153 jsAst.Printer printer = new jsAst.Printer(_compiler, null); |
| 154 printer.blockOutWithoutBraces(mainRunner); | 154 printer.blockOutWithoutBraces(mainRunner); |
| 155 return printer.outBuffer.getText(); | 155 return printer.outBuffer.getText(); |
| 156 } | 156 } |
| 157 } | 157 } |
| 158 |
| 159 class IncrementalCompilationFailed { |
| 160 final String reason; |
| 161 |
| 162 const IncrementalCompilationFailed(this.reason); |
| 163 |
| 164 String toString() => "Can't incrementally compile program.\n\n$reason"; |
| 165 } |
| OLD | NEW |