| 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.asset_cascade; | 5 library barback.asset_cascade; |
| 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_id.dart'; | 11 import 'asset_id.dart'; |
| 12 import 'asset_node.dart'; | 12 import 'asset_node.dart'; |
| 13 import 'build_result.dart'; | 13 import 'build_result.dart'; |
| 14 import 'cancelable_future.dart'; | 14 import 'cancelable_future.dart'; |
| 15 import 'errors.dart'; | 15 import 'errors.dart'; |
| 16 import 'change_batch.dart'; | |
| 17 import 'package_graph.dart'; | 16 import 'package_graph.dart'; |
| 18 import 'phase.dart'; | 17 import 'phase.dart'; |
| 19 import 'transformer.dart'; | 18 import 'transformer.dart'; |
| 20 import 'utils.dart'; | 19 import 'utils.dart'; |
| 21 | 20 |
| 22 /// The asset cascade for an individual package. | 21 /// The asset cascade for an individual package. |
| 23 /// | 22 /// |
| 24 /// This keeps track of which [Transformer]s are applied to which assets, and | 23 /// This keeps track of which [Transformer]s are applied to which assets, and |
| 25 /// re-runs those transformers when their dependencies change. The transformed | 24 /// re-runs those transformers when their dependencies change. The transformed |
| 26 /// asset nodes are accessible via [getAssetNode]. | 25 /// asset nodes are accessible via [getAssetNode]. |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 245 |
| 247 // Otherwise, everything is done. | 246 // Otherwise, everything is done. |
| 248 return; | 247 return; |
| 249 } | 248 } |
| 250 | 249 |
| 251 // Process that phase and then loop onto the next. | 250 // Process that phase and then loop onto the next. |
| 252 return future.then((_) => _process()); | 251 return future.then((_) => _process()); |
| 253 }); | 252 }); |
| 254 } | 253 } |
| 255 } | 254 } |
| OLD | NEW |