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

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

Issue 299833003: Expose aggregate transformers in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 6 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/barback.dart ('k') | pkg/barback/lib/src/graph/asset_cascade.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/asset.dart'; 9 import 'asset/asset.dart';
10 import 'asset/asset_id.dart'; 10 import 'asset/asset_id.dart';
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 /// If a build is currently in progress, waits until it completes. The 103 /// If a build is currently in progress, waits until it completes. The
104 /// returned future will complete with a [BarbackException] if the build is 104 /// returned future will complete with a [BarbackException] if the build is
105 /// not successful. 105 /// not successful.
106 Future<AssetSet> getAllAssets() => _graph.getAllAssets(); 106 Future<AssetSet> getAllAssets() => _graph.getAllAssets();
107 107
108 /// Sets the transformer phases for [package]'s assets to [transformers]. 108 /// Sets the transformer phases for [package]'s assets to [transformers].
109 /// 109 ///
110 /// To the extent that [transformers] is similar to the previous transformer 110 /// To the extent that [transformers] is similar to the previous transformer
111 /// phases for [package], the existing asset graph will be preserved. 111 /// phases for [package], the existing asset graph will be preserved.
112 /// 112 ///
113 /// Elements of the inner iterable of [transformers] must be either 113 /// Elements of the inner iterable of [transformers] must be [Transformer]s,
114 /// [Transformer]s or [TransformerGroup]s. 114 /// [TransformerGroup]s, or [AggregateTransformer]s.
115 void updateTransformers(String package, 115 void updateTransformers(String package, Iterable<Iterable> transformers) =>
116 Iterable<Iterable> transformers) =>
117 _graph.updateTransformers(package, transformers); 116 _graph.updateTransformers(package, transformers);
118 } 117 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/barback.dart ('k') | pkg/barback/lib/src/graph/asset_cascade.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698