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

Side by Side Diff: pkg/barback/lib/src/asset_cascade.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library barback.asset_cascade; 5 library barback.asset_cascade;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'asset.dart'; 10 import 'asset.dart';
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 /// Returns all currently-available output assets from this cascade. 111 /// Returns all currently-available output assets from this cascade.
112 AssetSet get availableOutputs => 112 AssetSet get availableOutputs =>
113 new AssetSet.from(_phases.last.availableOutputs.map((node) => node.asset)); 113 new AssetSet.from(_phases.last.availableOutputs.map((node) => node.asset));
114 114
115 /// Creates a new [AssetCascade]. 115 /// Creates a new [AssetCascade].
116 /// 116 ///
117 /// It loads source assets within [package] using [provider]. 117 /// It loads source assets within [package] using [provider].
118 AssetCascade(this.graph, this.package) { 118 AssetCascade(this.graph, this.package) {
119 _onDirtyPool.add(_onDirtyController.stream); 119 _onDirtyPool.add(_onDirtyController.stream);
120 _addPhase(new Phase(this, [])); 120 _addPhase(new Phase(this, [], package));
121 121
122 // Keep track of logged errors so we can know that the build failed. 122 // Keep track of logged errors so we can know that the build failed.
123 onLog.listen((entry) { 123 onLog.listen((entry) {
124 if (entry.level == LogLevel.ERROR) { 124 if (entry.level == LogLevel.ERROR) {
125 // TODO(nweiz): keep track of stack chain. 125 // TODO(nweiz): keep track of stack chain.
126 _accumulatedErrors.add( 126 _accumulatedErrors.add(
127 new TransformerException(entry.transform, entry.message, null)); 127 new TransformerException(entry.transform, entry.message, null));
128 } 128 }
129 }); 129 });
130 } 130 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 if (_newChanges) return _process(); 301 if (_newChanges) return _process();
302 302
303 // Otherwise, everything is done. 303 // Otherwise, everything is done.
304 return null; 304 return null;
305 } 305 }
306 306
307 // Process that phase and then loop onto the next. 307 // Process that phase and then loop onto the next.
308 return future.then((_) => _process()); 308 return future.then((_) => _process());
309 }); 309 });
310 } 310 }
311
312 String toString() => "cascade for $package";
311 } 313 }
OLDNEW
« no previous file with comments | « no previous file | pkg/barback/lib/src/asset_node.dart » ('j') | pkg/barback/lib/src/phase_input.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698