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

Unified Diff: pkg/barback/lib/src/transformer.dart

Issue 149243009: Add support for lazy transformers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/lib/src/transformer.dart
diff --git a/pkg/barback/lib/src/transformer.dart b/pkg/barback/lib/src/transformer.dart
index e8479f1f8143d2273593250e4aeab3bb48e7324d..9e454e3c3403dda54909be30766eb9e96a84dbac 100644
--- a/pkg/barback/lib/src/transformer.dart
+++ b/pkg/barback/lib/src/transformer.dart
@@ -15,6 +15,9 @@ import 'transform.dart';
/// Dart2js, a SASS->CSS processor, a CSS spriter, and a tool to concatenate
/// files are all examples of transformers. To define your own transformation
/// step, extend (or implement) this class.
+///
+/// If possible, transformers should implement [DryRunTransformer] as well to
+/// help barback optimize the package graph.
abstract class Transformer {
/// Override this to return a space-separated list of file extensions
/// (with leading `.`) that are allowed for the primary inputs to this

Powered by Google App Engine
This is Rietveld 408576698