| 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.package_graph; | 5 library barback.package_graph; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'asset_cascade.dart'; | 9 import 'asset_cascade.dart'; |
| 10 import 'asset_id.dart'; | 10 import 'asset_id.dart'; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 /// Removes [removed] from the graph's known set of source assets. | 154 /// Removes [removed] from the graph's known set of source assets. |
| 155 void removeSources(Iterable<AssetId> sources) { | 155 void removeSources(Iterable<AssetId> sources) { |
| 156 groupBy(sources, (id) => id.package).forEach((package, ids) { | 156 groupBy(sources, (id) => id.package).forEach((package, ids) { |
| 157 var cascade = _cascades[package]; | 157 var cascade = _cascades[package]; |
| 158 if (cascade == null) throw new ArgumentError("Unknown package $package."); | 158 if (cascade == null) throw new ArgumentError("Unknown package $package."); |
| 159 cascade.removeSources(ids); | 159 cascade.removeSources(ids); |
| 160 }); | 160 }); |
| 161 } | 161 } |
| 162 | 162 |
| 163 void updateTransformers(String package, | 163 void updateOperators(String package, |
| 164 Iterable<Iterable<Transformer>> transformers) { | 164 Iterable<Iterable<Transformer>> operators) { |
| 165 _cascades[package].updateTransformers(transformers); | 165 _cascades[package].updateOperators(operators); |
| 166 } | 166 } |
| 167 } | 167 } |
| OLD | NEW |