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

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

Issue 155213002: Add a bunch of toString methods to internal Barback classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/transform_node.dart
diff --git a/pkg/barback/lib/src/transform_node.dart b/pkg/barback/lib/src/transform_node.dart
index 76b29bdffd5d21f62de8b8c7d6ab63bb8a678210..8a79b6c6cd5df1ded2a88cc0b3c61f2e1871e9e3 100644
--- a/pkg/barback/lib/src/transform_node.dart
+++ b/pkg/barback/lib/src/transform_node.dart
@@ -33,6 +33,9 @@ class TransformNode {
/// The node for the primary asset this transform depends on.
final AssetNode primary;
+ /// A string describing the location of [this] in the transformer graph.
+ final String _location;
+
/// The subscription to [primary]'s [AssetNode.onStateChange] stream.
StreamSubscription _primarySubscription;
@@ -64,7 +67,7 @@ class TransformNode {
Stream<LogEntry> get onLog => _onLogController.stream;
final _onLogController = new StreamController<LogEntry>.broadcast(sync: true);
- TransformNode(this.phase, this.transformer, this.primary) {
+ TransformNode(this.phase, this.transformer, this.primary, this._location) {
_primarySubscription = primary.onStateChange.listen((state) {
if (state.isRemoved) {
remove();
@@ -219,4 +222,7 @@ class TransformNode {
var entry = new LogEntry(info, asset, level, message, span);
_onLogController.add(entry);
}
+
+ String toString() =>
+ "transform node in $_location for $transformer on $primary";
}

Powered by Google App Engine
This is Rietveld 408576698