| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine.utilities.dart; | 3 library engine.utilities.dart; |
| 4 /** | 4 /** |
| 5 * The enumeration {@code ParameterKind} defines the different kinds of paramete
rs. There are two | 5 * The enumeration {@code ParameterKind} defines the different kinds of paramete
rs. There are two |
| 6 * basic kinds of parameters: required and optional. Optional parameters are fur
ther divided into | 6 * basic kinds of parameters: required and optional. Optional parameters are fur
ther divided into |
| 7 * two kinds: positional optional and named optional. | 7 * two kinds: positional optional and named optional. |
| 8 * @coverage dart.engine.utilities | 8 * @coverage dart.engine.utilities |
| 9 */ | 9 */ |
| 10 class ParameterKind implements Comparable<ParameterKind> { | 10 class ParameterKind implements Comparable<ParameterKind> { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 ParameterKind(this.name, this.ordinal, bool isOptional) { | 31 ParameterKind(this.name, this.ordinal, bool isOptional) { |
| 32 this._isOptional2 = isOptional; | 32 this._isOptional2 = isOptional; |
| 33 } | 33 } |
| 34 | 34 |
| 35 /** | 35 /** |
| 36 * Return {@code true} if this is an optional parameter. | 36 * Return {@code true} if this is an optional parameter. |
| 37 * @return {@code true} if this is an optional parameter | 37 * @return {@code true} if this is an optional parameter |
| 38 */ | 38 */ |
| 39 bool isOptional() => _isOptional2; | 39 bool isOptional() => _isOptional2; |
| 40 int compareTo(ParameterKind other) => ordinal - other.ordinal; | 40 int compareTo(ParameterKind other) => ordinal - other.ordinal; |
| 41 int get hashCode => ordinal; |
| 41 String toString() => name; | 42 String toString() => name; |
| 42 } | 43 } |
| OLD | NEW |