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

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

Issue 23311006: Add the ability to dynamically modify transforms to barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 4 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
« no previous file with comments | « pkg/barback/lib/src/asset_cascade.dart ('k') | pkg/barback/lib/src/package_graph.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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
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 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/asset_cascade.dart ('k') | pkg/barback/lib/src/package_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698