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

Side by Side Diff: pkg/barback/lib/src/transformer/transformer.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.transformer; 5 library barback.transformer.transformer;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'asset_id.dart'; 9 import '../asset/asset_id.dart';
10 import '../utils.dart';
10 import 'transform.dart'; 11 import 'transform.dart';
11 import 'utils.dart';
12 12
13 /// A [Transformer] represents a processor that takes in one or more input 13 /// A [Transformer] represents a processor that takes in one or more input
14 /// assets and uses them to generate one or more output assets. 14 /// assets and uses them to generate one or more output assets.
15 /// 15 ///
16 /// Dart2js, a SASS->CSS processor, a CSS spriter, and a tool to concatenate 16 /// Dart2js, a SASS->CSS processor, a CSS spriter, and a tool to concatenate
17 /// files are all examples of transformers. To define your own transformation 17 /// files are all examples of transformers. To define your own transformation
18 /// step, extend (or implement) this class. 18 /// step, extend (or implement) this class.
19 /// 19 ///
20 /// If possible, transformers should implement [DeclaringTransformer] as well to 20 /// If possible, transformers should implement [DeclaringTransformer] as well to
21 /// help barback optimize the package graph. 21 /// help barback optimize the package graph.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 /// In other words, a Transformer's job is to find all inputs for a 84 /// In other words, a Transformer's job is to find all inputs for a
85 /// transform, starting at the primary input, then generate all output assets 85 /// transform, starting at the primary input, then generate all output assets
86 /// and yield them back to the transform. 86 /// and yield them back to the transform.
87 /// 87 ///
88 /// If this does asynchronous work, it should return a [Future] that completes 88 /// If this does asynchronous work, it should return a [Future] that completes
89 /// once it's finished. 89 /// once it's finished.
90 apply(Transform transform); 90 apply(Transform transform);
91 91
92 String toString() => runtimeType.toString().replaceAll("Transformer", ""); 92 String toString() => runtimeType.toString().replaceAll("Transformer", "");
93 } 93 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/transformer/transform_logger.dart ('k') | pkg/barback/lib/src/transformer/transformer_group.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698