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

Side by Side Diff: pkg/barback/test/transformer/many_to_one.dart

Issue 23201013: pkg/barback: removed unused imports, added a missing import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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.test.transformer.many_to_one; 5 library barback.test.transformer.many_to_one;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:barback/barback.dart'; 9 import 'package:barback/barback.dart';
10 import 'package:barback/src/utils.dart';
11 10
12 import 'mock.dart'; 11 import 'mock.dart';
13 12
14 /// A transformer that uses the contents of a file to define the other inputs. 13 /// A transformer that uses the contents of a file to define the other inputs.
15 /// 14 ///
16 /// Outputs a file with the same name as the primary but with an "out" 15 /// Outputs a file with the same name as the primary but with an "out"
17 /// extension containing the concatenated contents of all non-primary inputs. 16 /// extension containing the concatenated contents of all non-primary inputs.
18 class ManyToOneTransformer extends MockTransformer { 17 class ManyToOneTransformer extends MockTransformer {
19 final String extension; 18 final String extension;
20 19
(...skipping 21 matching lines...) Expand all
42 return getInput(transform, id).then((input) => input.readAsString()); 41 return getInput(transform, id).then((input) => input.readAsString());
43 })); 42 }));
44 }).then((outputs) { 43 }).then((outputs) {
45 var id = transform.primaryId.changeExtension(".out"); 44 var id = transform.primaryId.changeExtension(".out");
46 transform.addOutput(new Asset.fromString(id, outputs.join())); 45 transform.addOutput(new Asset.fromString(id, outputs.join()));
47 }); 46 });
48 } 47 }
49 48
50 String toString() => "many->1 $extension"; 49 String toString() => "many->1 $extension";
51 } 50 }
OLDNEW
« pkg/barback/lib/src/phase.dart ('K') | « pkg/barback/test/package_graph/transform_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698