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

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

Issue 261823008: Reorganize barback's source files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-add barback/lib/src/internal_asset.dart Created 6 years, 7 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.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';
10 import '../log.dart';
11 import '../transformer/transformer_group.dart';
12 import '../utils/stream_pool.dart';
9 import 'asset_cascade.dart'; 13 import 'asset_cascade.dart';
10 import 'asset_node.dart';
11 import 'log.dart';
12 import 'node_status.dart'; 14 import 'node_status.dart';
13 import 'phase.dart'; 15 import 'phase.dart';
14 import 'stream_pool.dart';
15 import 'transformer_group.dart';
16 16
17 /// A class that processes all of the phases in a single transformer group. 17 /// A class that processes all of the phases in a single transformer group.
18 /// 18 ///
19 /// A group takes many inputs, processes them, and emits many outputs. 19 /// A group takes many inputs, processes them, and emits many outputs.
20 class GroupRunner { 20 class GroupRunner {
21 /// The group this runner runs. 21 /// The group this runner runs.
22 final TransformerGroup _group; 22 final TransformerGroup _group;
23 23
24 /// A string describing the location of [this] in the transformer graph. 24 /// A string describing the location of [this] in the transformer graph.
25 final String _location; 25 final String _location;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 /// Removes this group and all sub-phases within it. 86 /// Removes this group and all sub-phases within it.
87 void remove() { 87 void remove() {
88 _onLogPool.close(); 88 _onLogPool.close();
89 for (var phase in _phases) { 89 for (var phase in _phases) {
90 phase.remove(); 90 phase.remove();
91 } 91 }
92 } 92 }
93 93
94 String toString() => "group in phase $_location for $_group"; 94 String toString() => "group in phase $_location for $_group";
95 } 95 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/graph/asset_cascade.dart ('k') | pkg/barback/lib/src/graph/node_status.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698