| 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 yaml.style; | |
| 6 | |
| 7 /// An enum of source scalar styles. | 5 /// An enum of source scalar styles. |
| 8 class ScalarStyle { | 6 class ScalarStyle { |
| 9 /// No source style was specified. | 7 /// No source style was specified. |
| 10 /// | 8 /// |
| 11 /// This usually indicates a scalar constructed with [YamlScalar.wrap]. | 9 /// This usually indicates a scalar constructed with [YamlScalar.wrap]. |
| 12 static const ANY = const ScalarStyle._("ANY"); | 10 static const ANY = const ScalarStyle._("ANY"); |
| 13 | 11 |
| 14 /// The plain scalar style, unquoted and without a prefix. | 12 /// The plain scalar style, unquoted and without a prefix. |
| 15 /// | 13 /// |
| 16 /// See http://yaml.org/spec/1.2/spec.html#style/flow/plain. | 14 /// See http://yaml.org/spec/1.2/spec.html#style/flow/plain. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 /// | 62 /// |
| 65 /// See http://yaml.org/spec/1.2/spec.html#id2790088. | 63 /// See http://yaml.org/spec/1.2/spec.html#id2790088. |
| 66 static const FLOW = const CollectionStyle._("FLOW"); | 64 static const FLOW = const CollectionStyle._("FLOW"); |
| 67 | 65 |
| 68 final String name; | 66 final String name; |
| 69 | 67 |
| 70 const CollectionStyle._(this.name); | 68 const CollectionStyle._(this.name); |
| 71 | 69 |
| 72 String toString() => name; | 70 String toString() => name; |
| 73 } | 71 } |
| OLD | NEW |