Created
August 4, 2014 20:35
-
-
Save nex3/85f3f1bf69ee5d90c73f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/transformer.dart b/lib/transformer.dart | |
index 5c68cbb..16ba198 100644 | |
--- a/lib/transformer.dart | |
+++ b/lib/transformer.dart | |
@@ -146,11 +146,14 @@ class _SerialTransformer extends Transformer { | |
.then((l) => l.any((result) => result)); | |
Future apply(Transform transform) { | |
+ transform.logger.info("start"); | |
return Future.forEach(_transformers, (t) { | |
+ transform.logger.info("running $t.isPrimary"); | |
return new Future.value(t.isPrimary(transform.primaryInput)) | |
.then((isPrimary) { | |
+ transform.logger.info("$t.isPrimary: $isPrimary"); | |
if (isPrimary) return t.apply(transform); | |
- }); | |
- }); | |
+ }).then((_) => transform.logger.info("$t finished applying")); | |
+ }).then((_) => transform.logger.info("finish")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment