| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 barback.phase_output; | 5 library barback.phase_output; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'asset_cascade.dart'; | |
| 11 import 'asset_forwarder.dart'; | 10 import 'asset_forwarder.dart'; |
| 12 import 'asset_node.dart'; | 11 import 'asset_node.dart'; |
| 13 import 'errors.dart'; | 12 import 'errors.dart'; |
| 14 import 'phase.dart'; | 13 import 'phase.dart'; |
| 15 import 'utils.dart'; | 14 import 'utils.dart'; |
| 16 | 15 |
| 17 /// A class that handles a single output of a phase. | 16 /// A class that handles a single output of a phase. |
| 18 /// | 17 /// |
| 19 /// Normally there's only a single [AssetNode] for a phase's output, but it's | 18 /// Normally there's only a single [AssetNode] for a phase's output, but it's |
| 20 /// possible that multiple transformers in the same phase emit assets with the | 19 /// possible that multiple transformers in the same phase emit assets with the |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Pump the event queue to ensure that the removal of the input triggers | 107 // Pump the event queue to ensure that the removal of the input triggers |
| 109 // a new build to which we can attach the error. | 108 // a new build to which we can attach the error. |
| 110 // TODO(nweiz): report this through the output asset. | 109 // TODO(nweiz): report this through the output asset. |
| 111 newFuture(() => _phase.cascade.reportError(collisionException)); | 110 newFuture(() => _phase.cascade.reportError(collisionException)); |
| 112 } | 111 } |
| 113 }); | 112 }); |
| 114 } | 113 } |
| 115 | 114 |
| 116 String toString() => "phase output in $_location for $output"; | 115 String toString() => "phase output in $_location for $output"; |
| 117 } | 116 } |
| OLD | NEW |