| 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 import 'java_core.dart'; |
| 4 /** | 5 /** |
| 5 * The enumeration `ParameterKind` defines the different kinds of parameters. Th
ere are two | 6 * The enumeration `ParameterKind` defines the different kinds of parameters. Th
ere are two |
| 6 * basic kinds of parameters: required and optional. Optional parameters are fur
ther divided into | 7 * basic kinds of parameters: required and optional. Optional parameters are fur
ther divided into |
| 7 * two kinds: positional optional and named optional. | 8 * two kinds: positional optional and named optional. |
| 8 * | 9 * |
| 9 * @coverage dart.engine.utilities | 10 * @coverage dart.engine.utilities |
| 10 */ | 11 */ |
| 11 class ParameterKind implements Comparable<ParameterKind> { | 12 class ParameterKind implements Enum<ParameterKind> { |
| 12 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false); | 13 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false); |
| 13 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru
e); | 14 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru
e); |
| 14 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true); | 15 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true); |
| 15 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED]; | 16 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED]; |
| 16 | 17 |
| 17 /// The name of this enum constant, as declared in the enum declaration. | 18 /// The name of this enum constant, as declared in the enum declaration. |
| 18 final String name; | 19 final String name; |
| 19 | 20 |
| 20 /// The position in the enum declaration. | 21 /// The position in the enum declaration. |
| 21 final int ordinal; | 22 final int ordinal; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 37 /** | 38 /** |
| 38 * Return `true` if this is an optional parameter. | 39 * Return `true` if this is an optional parameter. |
| 39 * | 40 * |
| 40 * @return `true` if this is an optional parameter | 41 * @return `true` if this is an optional parameter |
| 41 */ | 42 */ |
| 42 bool get isOptional => _isOptional2; | 43 bool get isOptional => _isOptional2; |
| 43 int compareTo(ParameterKind other) => ordinal - other.ordinal; | 44 int compareTo(ParameterKind other) => ordinal - other.ordinal; |
| 44 int get hashCode => ordinal; | 45 int get hashCode => ordinal; |
| 45 String toString() => name; | 46 String toString() => name; |
| 46 } | 47 } |
| OLD | NEW |