Chromium Code Reviews| Index: pkg/barback/lib/src/asset_provider.dart |
| diff --git a/pkg/barback/lib/src/asset_provider.dart b/pkg/barback/lib/src/asset_provider.dart |
| index 565e5ac70b30d934e0f6e8c8a9922645e8be6729..4124602abbcfebdb6422541f6a1746d93abdb258 100644 |
| --- a/pkg/barback/lib/src/asset_provider.dart |
| +++ b/pkg/barback/lib/src/asset_provider.dart |
| @@ -8,6 +8,7 @@ import 'dart:async'; |
| import 'asset.dart'; |
| import 'asset_id.dart'; |
| +import 'transformer.dart'; |
| /// API for locating and accessing packages on disk. |
| /// |
| @@ -28,5 +29,11 @@ abstract class AssetProvider { |
| /// within the package, to only return the files within that subdirectory. |
| List<AssetId> listAssets(String package, {String within}); |
| + /// Returns the list of transformer phases that are applicable to [package]. |
| + /// |
| + /// The phases will be run in sequence, with the outputs of one pipelined into |
| + /// the next. All [Transformer]s in a single phase will be run in parallel. |
| + Iterable<Iterable<Transformer>> getTransformers(String package); |
|
Bob Nystrom
2013/07/11 23:03:40
Putting Transformers in here makes me think we sho
nweiz
2013/07/15 22:11:44
Added a TODO. I'll do a name-change-only CL after
|
| + |
| Future<Asset> getAsset(AssetId id); |
| } |