OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.base_transform; | 5 library barback.transformer.base_transform; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'log.dart'; | 9 import '../graph/transform_node.dart'; |
| 10 import '../log.dart'; |
10 import 'transform_logger.dart'; | 11 import 'transform_logger.dart'; |
11 import 'transform_node.dart'; | |
12 | 12 |
13 /// The base class for the ephemeral transform objects that are passed to | 13 /// The base class for the ephemeral transform objects that are passed to |
14 /// transformers. | 14 /// transformers. |
15 /// | 15 /// |
16 /// This class provides the transformers with inputs, but its up to the | 16 /// This class provides the transformers with inputs, but its up to the |
17 /// subclasses to provide a means of emitting outputs. | 17 /// subclasses to provide a means of emitting outputs. |
18 abstract class BaseTransform { | 18 abstract class BaseTransform { |
19 final TransformNode _node; | 19 final TransformNode _node; |
20 | 20 |
21 /// Whether the primary input should be consumed. | 21 /// Whether the primary input should be consumed. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 /// Notifies the [BaseTransform] that the transformation has finished being | 86 /// Notifies the [BaseTransform] that the transformation has finished being |
87 /// applied. | 87 /// applied. |
88 /// | 88 /// |
89 /// This will close any streams and release any resources that were allocated | 89 /// This will close any streams and release any resources that were allocated |
90 /// for the duration of the transformation. | 90 /// for the duration of the transformation. |
91 void close() { | 91 void close() { |
92 transform._onLogController.close(); | 92 transform._onLogController.close(); |
93 } | 93 } |
94 } | 94 } |
OLD | NEW |