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.test.transformer.declaring_check_content_and_rename; | 5 library barback.test.transformer.declaring_check_content_and_rename; |
6 | 6 |
7 import 'package:barback/barback.dart'; | 7 import 'package:barback/barback.dart'; |
8 | 8 |
9 import 'check_content_and_rename.dart'; | 9 import 'check_content_and_rename.dart'; |
10 | 10 |
11 class DeclaringCheckContentAndRenameTransformer | 11 class DeclaringCheckContentAndRenameTransformer |
12 extends CheckContentAndRenameTransformer | 12 extends CheckContentAndRenameTransformer implements DeclaringTransformer { |
13 implements DeclaringTransformer { | 13 DeclaringCheckContentAndRenameTransformer( |
14 DeclaringCheckContentAndRenameTransformer({String oldExtension, | 14 {String oldExtension, |
15 String oldContent, String newExtension, String newContent}) | 15 String oldContent, |
16 : super(oldExtension: oldExtension, oldContent: oldContent, | 16 String newExtension, |
17 newExtension: newExtension, newContent: newContent); | 17 String newContent}) |
| 18 : super( |
| 19 oldExtension: oldExtension, |
| 20 oldContent: oldContent, |
| 21 newExtension: newExtension, |
| 22 newContent: newContent); |
18 | 23 |
19 void declareOutputs(DeclaringTransform transform) { | 24 void declareOutputs(DeclaringTransform transform) { |
20 transform.declareOutput( | 25 transform |
21 transform.primaryId.changeExtension('.$newExtension')); | 26 .declareOutput(transform.primaryId.changeExtension('.$newExtension')); |
22 } | 27 } |
23 } | 28 } |
OLD | NEW |