| 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_input; | 5 library barback.phase_input; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'asset.dart'; | 10 import 'asset.dart'; |
| 11 import 'asset_forwarder.dart'; | 11 import 'asset_forwarder.dart'; |
| 12 import 'asset_node.dart'; | 12 import 'asset_node.dart'; |
| 13 import 'barback_logger.dart'; | |
| 14 import 'errors.dart'; | 13 import 'errors.dart'; |
| 14 import 'log.dart'; |
| 15 import 'phase.dart'; | 15 import 'phase.dart'; |
| 16 import 'stream_pool.dart'; | 16 import 'stream_pool.dart'; |
| 17 import 'transform_node.dart'; | 17 import 'transform_node.dart'; |
| 18 import 'transformer.dart'; | 18 import 'transformer.dart'; |
| 19 import 'utils.dart'; | 19 import 'utils.dart'; |
| 20 | 20 |
| 21 /// A class for watching a single [AssetNode] and running any transforms that | 21 /// A class for watching a single [AssetNode] and running any transforms that |
| 22 /// take that node as a primary input. | 22 /// take that node as a primary input. |
| 23 class PhaseInput { | 23 class PhaseInput { |
| 24 /// The phase for which this is an input. | 24 /// The phase for which this is an input. |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 return new Future.value( | 306 return new Future.value( |
| 307 new Set<AssetNode>.from([_passThroughController.node])); | 307 new Set<AssetNode>.from([_passThroughController.node])); |
| 308 } | 308 } |
| 309 | 309 |
| 310 return Future.wait(_transforms.map((transform) { | 310 return Future.wait(_transforms.map((transform) { |
| 311 if (!transform.isDirty) return new Future.value(new Set()); | 311 if (!transform.isDirty) return new Future.value(new Set()); |
| 312 return transform.apply(); | 312 return transform.apply(); |
| 313 })).then((outputs) => unionAll(outputs)); | 313 })).then((outputs) => unionAll(outputs)); |
| 314 } | 314 } |
| 315 } | 315 } |
| OLD | NEW |