| 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.transform; | 5 library barback.transformer.transform; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'asset.dart'; | 10 import '../asset/asset.dart'; |
| 11 import 'asset_id.dart'; | 11 import '../asset/asset_id.dart'; |
| 12 import 'asset_set.dart'; | 12 import '../asset/asset_set.dart'; |
| 13 import '../errors.dart'; |
| 14 import '../graph/transform_node.dart'; |
| 15 import '../utils.dart'; |
| 13 import 'base_transform.dart'; | 16 import 'base_transform.dart'; |
| 14 import 'errors.dart'; | |
| 15 import 'transform_node.dart'; | |
| 16 import 'utils.dart'; | |
| 17 | 17 |
| 18 /// While a [Transformer] represents a *kind* of transformation, this defines | 18 /// While a [Transformer] represents a *kind* of transformation, this defines |
| 19 /// one specific usage of it on a set of files. | 19 /// one specific usage of it on a set of files. |
| 20 /// | 20 /// |
| 21 /// This ephemeral object exists only during an actual transform application to | 21 /// This ephemeral object exists only during an actual transform application to |
| 22 /// facilitate communication between the [Transformer] and the code hosting | 22 /// facilitate communication between the [Transformer] and the code hosting |
| 23 /// the transformation. It lets the [Transformer] access inputs and generate | 23 /// the transformation. It lets the [Transformer] access inputs and generate |
| 24 /// outputs. | 24 /// outputs. |
| 25 class Transform extends BaseTransform { | 25 class Transform extends BaseTransform { |
| 26 final TransformNode _node; | 26 final TransformNode _node; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 /// The controller for [Transform]. | 110 /// The controller for [Transform]. |
| 111 class TransformController extends BaseTransformController { | 111 class TransformController extends BaseTransformController { |
| 112 Transform get transform => super.transform; | 112 Transform get transform => super.transform; |
| 113 | 113 |
| 114 /// The set of assets that the transformer has emitted. | 114 /// The set of assets that the transformer has emitted. |
| 115 AssetSet get outputs => transform._outputs; | 115 AssetSet get outputs => transform._outputs; |
| 116 | 116 |
| 117 TransformController(TransformNode node) | 117 TransformController(TransformNode node) |
| 118 : super(new Transform._(node)); | 118 : super(new Transform._(node)); |
| 119 } | 119 } |
| OLD | NEW |