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

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

Issue 299833003: Expose aggregate transformers in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 6 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.graph.group_runner; 5 library barback.graph.group_runner;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../asset/asset_node.dart'; 9 import '../asset/asset_node.dart';
10 import '../log.dart'; 10 import '../log.dart';
11 import '../transformer/transformer_group.dart'; 11 import '../transformer/transformer_group.dart';
12 import '../utils/stream_pool.dart'; 12 import '../utils/stream_pool.dart';
13 import 'asset_cascade.dart';
14 import 'node_status.dart'; 13 import 'node_status.dart';
15 import 'phase.dart'; 14 import 'phase.dart';
16 15
17 /// A class that processes all of the phases in a single transformer group. 16 /// A class that processes all of the phases in a single transformer group.
18 /// 17 ///
19 /// A group takes many inputs, processes them, and emits many outputs. 18 /// A group takes many inputs, processes them, and emits many outputs.
20 class GroupRunner { 19 class GroupRunner {
21 /// The group this runner runs. 20 /// The group this runner runs.
22 final TransformerGroup _group; 21 final TransformerGroup _group;
23 22
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 /// Removes this group and all sub-phases within it. 80 /// Removes this group and all sub-phases within it.
82 void remove() { 81 void remove() {
83 _onLogPool.close(); 82 _onLogPool.close();
84 for (var phase in _phases) { 83 for (var phase in _phases) {
85 phase.remove(); 84 phase.remove();
86 } 85 }
87 } 86 }
88 87
89 String toString() => "group in phase $_location for $_group"; 88 String toString() => "group in phase $_location for $_group";
90 } 89 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/graph/asset_cascade.dart ('k') | pkg/barback/lib/src/graph/package_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698