| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |