OLD | NEW |
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.barback_settings; | 5 library barback.barback_settings; |
6 | 6 |
7 /// A generic settings object for providing configuration details to | 7 /// A generic settings object for providing configuration details to |
8 /// [Transformer]s. | 8 /// [Transformer]s. |
9 /// | 9 /// |
10 /// Barback does not specify *how* this is provided to transformers. It is up | 10 /// Barback does not specify *how* this is provided to transformers. It is up |
11 /// to a host application to handle this. (For example, pub passes this to the | 11 /// to a host application to handle this. (For example, pub passes this to the |
12 /// transformer's constructor.) | 12 /// transformer's constructor.) |
13 class BarbackSettings { | 13 class BarbackSettings { |
14 /// An open-ended map of configuration properties specific to this | 14 /// An open-ended map of configuration properties specific to this |
15 /// transformer. | 15 /// transformer. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 case "release": return BarbackMode.RELEASE; | 52 case "release": return BarbackMode.RELEASE; |
53 default: | 53 default: |
54 return new BarbackMode._(name); | 54 return new BarbackMode._(name); |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 const BarbackMode._(this.name); | 58 const BarbackMode._(this.name); |
59 | 59 |
60 String toString() => name; | 60 String toString() => name; |
61 } | 61 } |
OLD | NEW |