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

Side by Side Diff: pkg/barback/lib/src/group_runner.dart

Issue 249183005: Move common streams in barback to their own class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « pkg/barback/lib/src/asset_cascade.dart ('k') | pkg/barback/lib/src/node_streams.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.group_runner; 5 library barback.group_runner;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'asset_cascade.dart'; 9 import 'asset_cascade.dart';
10 import 'asset_node.dart'; 10 import 'asset_node.dart';
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 } 81 }
82 82
83 /// Adds a new asset as an input for this group. 83 /// Adds a new asset as an input for this group.
84 void addInput(AssetNode node) { 84 void addInput(AssetNode node) {
85 _phases.first.addInput(node); 85 _phases.first.addInput(node);
86 } 86 }
87 87
88 /// Removes this group and all sub-phases within it. 88 /// Removes this group and all sub-phases within it.
89 void remove() { 89 void remove() {
90 _onLogPool.close();
90 for (var phase in _phases) { 91 for (var phase in _phases) {
91 phase.remove(); 92 phase.remove();
92 } 93 }
93 } 94 }
94 95
95 String toString() => "group in phase $_location for $_group"; 96 String toString() => "group in phase $_location for $_group";
96 } 97 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/asset_cascade.dart ('k') | pkg/barback/lib/src/node_streams.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698