| 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; | 5 library barback.phase; |
| 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_cascade.dart'; | 11 import 'asset_cascade.dart'; |
| 12 import 'asset_id.dart'; | 12 import 'asset_id.dart'; |
| 13 import 'asset_node.dart'; | 13 import 'asset_node.dart'; |
| 14 import 'asset_set.dart'; |
| 14 import 'errors.dart'; | 15 import 'errors.dart'; |
| 15 import 'stream_pool.dart'; | 16 import 'stream_pool.dart'; |
| 16 import 'transform_node.dart'; | 17 import 'transform_node.dart'; |
| 17 import 'transformer.dart'; | 18 import 'transformer.dart'; |
| 18 import 'utils.dart'; | 19 import 'utils.dart'; |
| 19 | 20 |
| 20 /// One phase in the ordered series of transformations in an [AssetCascade]. | 21 /// One phase in the ordered series of transformations in an [AssetCascade]. |
| 21 /// | 22 /// |
| 22 /// Each phase can access outputs from previous phases and can in turn pass | 23 /// Each phase can access outputs from previous phases and can in turn pass |
| 23 /// outputs to later phases. Phases are processed strictly serially. All | 24 /// outputs to later phases. Phases are processed strictly serially. All |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 // Pump the event queue to ensure that the removal of the input triggers | 504 // Pump the event queue to ensure that the removal of the input triggers |
| 504 // a new build to which we can attach the error. | 505 // a new build to which we can attach the error. |
| 505 newFuture(() => cascade.reportError(new AssetCollisionException( | 506 newFuture(() => cascade.reportError(new AssetCollisionException( |
| 506 assets.where((asset) => asset.transform != null) | 507 assets.where((asset) => asset.transform != null) |
| 507 .map((asset) => asset.transform.info), | 508 .map((asset) => asset.transform.info), |
| 508 output.id))); | 509 output.id))); |
| 509 } | 510 } |
| 510 }); | 511 }); |
| 511 } | 512 } |
| 512 } | 513 } |
| OLD | NEW |