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

Unified Diff: pkg/barback/example/simple_transformer/lib/transformer.dart

Issue 429943004: Adding an aggregate transformer example to barback. Also updating the previous examples. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/barback/example/simple_transformer/lib/transformer.dart
diff --git a/pkg/barback/example/simple_transformer/lib/transformer.dart b/pkg/barback/example/simple_transformer/lib/transformer.dart
index 881e06fa5dceee63d8a5b47a68e2dd017b04bc1f..b005c2528f8ffaceeb9c0552a62331dc6f029562 100644
--- a/pkg/barback/example/simple_transformer/lib/transformer.dart
+++ b/pkg/barback/example/simple_transformer/lib/transformer.dart
@@ -14,8 +14,8 @@ class InsertCopyright extends Transformer {
// class to be publicly available as a loadable transformer plugin.
InsertCopyright.asPlugin();
- Future<bool> isPrimary(Asset input) {
- return new Future.value(input.id.extension == '.txt');
+ Future<bool> isPrimary(AssetId id) {
+ return new Future.value(id.extension == '.txt');
}
Future apply(Transform transform) {
« no previous file with comments | « pkg/barback/example/simple_transformer/lib/test.txt ('k') | pkg/barback/example/simple_transformer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698