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

Unified Diff: pkg/barback/lib/src/asset_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/asset_node.dart
diff --git a/pkg/barback/lib/src/asset_node.dart b/pkg/barback/lib/src/asset_node.dart
index a1af547ddddc53cedd25b3f6044bf28cdbdad51d..7ea442abbd5f08362ce8d23ff0005b723a7dda9a 100644
--- a/pkg/barback/lib/src/asset_node.dart
+++ b/pkg/barback/lib/src/asset_node.dart
@@ -137,6 +137,8 @@ class AssetNode {
: id = asset.id,
_asset = asset,
_state = AssetState.AVAILABLE;
+
+ String toString() => "$state asset $id";
}
/// The controller for an [AssetNode].
@@ -199,6 +201,8 @@ class AssetNodeController {
node._asset = asset;
node._stateChangeController.add(AssetState.AVAILABLE);
}
+
+ String toString() => "controller for $node";
}
// TODO(nweiz): add an error state.

Powered by Google App Engine
This is Rietveld 408576698