| 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.barback; | 5 library barback.barback; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'asset.dart'; | 9 import 'asset.dart'; |
| 10 import 'asset_id.dart'; | 10 import 'asset_id.dart'; |
| 11 import 'asset_set.dart'; | 11 import 'asset_set.dart'; |
| 12 import 'barback_logger.dart'; |
| 12 import 'build_result.dart'; | 13 import 'build_result.dart'; |
| 13 import 'errors.dart'; | 14 import 'errors.dart'; |
| 14 import 'package_graph.dart'; | 15 import 'package_graph.dart'; |
| 15 import 'package_provider.dart'; | 16 import 'package_provider.dart'; |
| 16 import 'transformer.dart'; | 17 import 'transformer.dart'; |
| 17 | 18 |
| 18 /// A general-purpose asynchronous build dependency graph manager. | 19 /// A general-purpose asynchronous build dependency graph manager. |
| 19 /// | 20 /// |
| 20 /// It consumes source assets (including Dart files) in a set of packages, | 21 /// It consumes source assets (including Dart files) in a set of packages, |
| 21 /// runs transformations on them, and then tracks which sources have been | 22 /// runs transformations on them, and then tracks which sources have been |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 /// | 103 /// |
| 103 /// To the extent that [transformers] is similar to the previous transformer | 104 /// To the extent that [transformers] is similar to the previous transformer |
| 104 /// phases for [package], the existing asset graph will be preserved. | 105 /// phases for [package], the existing asset graph will be preserved. |
| 105 /// | 106 /// |
| 106 /// Elements of the inner iterable of [transformers] must be either | 107 /// Elements of the inner iterable of [transformers] must be either |
| 107 /// [Transformer]s or [TransformerGroup]s. | 108 /// [Transformer]s or [TransformerGroup]s. |
| 108 void updateTransformers(String package, | 109 void updateTransformers(String package, |
| 109 Iterable<Iterable> transformers) => | 110 Iterable<Iterable> transformers) => |
| 110 _graph.updateTransformers(package, transformers); | 111 _graph.updateTransformers(package, transformers); |
| 111 } | 112 } |
| OLD | NEW |