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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 /// | 81 /// |
82 /// Begins applying any transforms that can consume any of the sources. If a | 82 /// Begins applying any transforms that can consume any of the sources. If a |
83 /// given source is already known, it is considered modified and all | 83 /// given source is already known, it is considered modified and all |
84 /// transforms that use it will be re-applied. | 84 /// transforms that use it will be re-applied. |
85 void updateSources(Iterable<AssetId> sources) => | 85 void updateSources(Iterable<AssetId> sources) => |
86 _graph.updateSources(sources); | 86 _graph.updateSources(sources); |
87 | 87 |
88 /// Removes [removed] from the graph's known set of source assets. | 88 /// Removes [removed] from the graph's known set of source assets. |
89 void removeSources(Iterable<AssetId> removed) => | 89 void removeSources(Iterable<AssetId> removed) => |
90 _graph.removeSources(removed); | 90 _graph.removeSources(removed); |
91 } | 91 |
| 92 /// Sets the transformer phases for [package]'s assets to [transformers]. |
| 93 /// |
| 94 /// To the extent that [transformers] is similar to the previous transformer |
| 95 /// phases for [package], the existing asset graph will be preserved. |
| 96 void updateTransformers(String package, |
| 97 Iterable<Iterable<Transformer>> transformers) => |
| 98 _graph.updateTransformers(package, transformers); |
| 99 } |
OLD | NEW |