Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: pkg/barback/lib/src/package_graph.dart

Issue 25376003: Add support for transformer clusters to barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Expose the Operator class. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698