| 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'; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 /// | 95 /// |
| 96 /// If a build is currently in progress, waits until it completes. The | 96 /// If a build is currently in progress, waits until it completes. The |
| 97 /// returned future will complete with a [BarbackException] if the build is | 97 /// returned future will complete with a [BarbackException] if the build is |
| 98 /// not successful. | 98 /// not successful. |
| 99 Future<AssetSet> getAllAssets() => _graph.getAllAssets(); | 99 Future<AssetSet> getAllAssets() => _graph.getAllAssets(); |
| 100 | 100 |
| 101 /// Sets the transformer phases for [package]'s assets to [transformers]. | 101 /// Sets the transformer phases for [package]'s assets to [transformers]. |
| 102 /// | 102 /// |
| 103 /// To the extent that [transformers] is similar to the previous transformer | 103 /// To the extent that [transformers] is similar to the previous transformer |
| 104 /// phases for [package], the existing asset graph will be preserved. | 104 /// phases for [package], the existing asset graph will be preserved. |
| 105 /// |
| 106 /// Elements of the inner iterable of [transformers] must be either |
| 107 /// [Transformer]s or [TransformerGroup]s. |
| 105 void updateTransformers(String package, | 108 void updateTransformers(String package, |
| 106 Iterable<Iterable<Transformer>> transformers) => | 109 Iterable<Iterable> transformers) => |
| 107 _graph.updateTransformers(package, transformers); | 110 _graph.updateTransformers(package, transformers); |
| 108 } | 111 } |
| OLD | NEW |