| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void removeSources(Iterable<AssetId> removed) => | 91 void removeSources(Iterable<AssetId> removed) => |
| 92 _graph.removeSources(removed); | 92 _graph.removeSources(removed); |
| 93 | 93 |
| 94 /// Gets all output assets. | 94 /// Gets all output assets. |
| 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 operator phases for [package]'s assets to [operators]. |
| 102 /// | 102 /// |
| 103 /// To the extent that [transformers] is similar to the previous transformer | 103 /// To the extent that [operators] is similar to the previous operator phases |
| 104 /// phases for [package], the existing asset graph will be preserved. | 104 /// for [package], the existing asset graph will be preserved. |
| 105 void updateTransformers(String package, | 105 void updateOperators(String package, |
| 106 Iterable<Iterable<Transformer>> transformers) => | 106 Iterable<Iterable<Operator>> operators) => |
| 107 _graph.updateTransformers(package, transformers); | 107 _graph.updateOperators(package, operators); |
| 108 } | 108 } |
| OLD | NEW |