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

Unified Diff: pkg/barback/lib/src/phase_input.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
« no previous file with comments | « pkg/barback/lib/src/phase.dart ('k') | pkg/barback/lib/src/phase_output.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/phase_input.dart
diff --git a/pkg/barback/lib/src/phase_input.dart b/pkg/barback/lib/src/phase_input.dart
index 13bc700c4a6a906daa3958c07852c829adfb8eed..2168f03b9ee5c19f9e36ee4ce5f81b868e342c42 100644
--- a/pkg/barback/lib/src/phase_input.dart
+++ b/pkg/barback/lib/src/phase_input.dart
@@ -24,6 +24,9 @@ class PhaseInput {
/// The phase for which this is an input.
final Phase _phase;
+ /// A string describing the location of [this] in the transformer graph.
+ final String _location;
+
/// The transformers to (potentially) run against [input].
final Set<Transformer> _transformers;
@@ -84,7 +87,8 @@ class PhaseInput {
Stream<LogEntry> get onLog => _onLogPool.stream;
final _onLogPool = new StreamPool<LogEntry>.broadcast();
- PhaseInput(this._phase, AssetNode input, Iterable<Transformer> transformers)
+ PhaseInput(this._phase, AssetNode input, Iterable<Transformer> transformers,
+ this._location)
Bob Nystrom 2014/02/05 20:51:14 Only indent +4.
nweiz 2014/02/05 21:23:24 Done.
: _transformers = transformers.toSet(),
_inputForwarder = new AssetForwarder(input) {
_onDirtyPool.add(_onDirtyController.stream);
@@ -228,7 +232,8 @@ class PhaseInput {
// results.
return transformer.isPrimary(input.asset).then((isPrimary) {
if (!isPrimary) return;
- var transform = new TransformNode(_phase, transformer, input);
+ var transform = new TransformNode(
+ _phase, transformer, input, _location);
_transforms.add(transform);
_onDirtyPool.add(transform.onDirty);
_onLogPool.add(transform.onLog);
@@ -312,4 +317,6 @@ class PhaseInput {
return transform.apply();
})).then((outputs) => unionAll(outputs));
}
+
+ String toString() => "phase input in $_location for $input";
}
« no previous file with comments | « pkg/barback/lib/src/phase.dart ('k') | pkg/barback/lib/src/phase_output.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698