| 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 |
| 3 library engine.utilities.dart; | 4 library engine.utilities.dart; |
| 5 |
| 4 import 'java_core.dart'; | 6 import 'java_core.dart'; |
| 7 |
| 5 /** | 8 /** |
| 6 * The enumeration `ParameterKind` defines the different kinds of parameters. Th
ere are two | 9 * The enumeration `ParameterKind` defines the different kinds of parameters. Th
ere are two |
| 7 * basic kinds of parameters: required and optional. Optional parameters are fur
ther divided into | 10 * basic kinds of parameters: required and optional. Optional parameters are fur
ther divided into |
| 8 * two kinds: positional optional and named optional. | 11 * two kinds: positional optional and named optional. |
| 9 * | 12 * |
| 10 * @coverage dart.engine.utilities | 13 * @coverage dart.engine.utilities |
| 11 */ | 14 */ |
| 12 class ParameterKind extends Enum<ParameterKind> { | 15 class ParameterKind extends Enum<ParameterKind> { |
| 13 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false); | 16 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false); |
| 17 |
| 14 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru
e); | 18 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru
e); |
| 19 |
| 15 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true); | 20 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true); |
| 21 |
| 16 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED]; | 22 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED]; |
| 17 | 23 |
| 18 /** | 24 /** |
| 19 * A flag indicating whether this is an optional parameter. | 25 * A flag indicating whether this is an optional parameter. |
| 20 */ | 26 */ |
| 21 bool isOptional = false; | 27 bool isOptional = false; |
| 22 | 28 |
| 23 /** | 29 /** |
| 24 * Initialize a newly created kind with the given state. | 30 * Initialize a newly created kind with the given state. |
| 25 * | 31 * |
| 26 * @param isOptional `true` if this is an optional parameter | 32 * @param isOptional `true` if this is an optional parameter |
| 27 */ | 33 */ |
| 28 ParameterKind(String name, int ordinal, bool isOptional) : super(name, ordinal
) { | 34 ParameterKind(String name, int ordinal, bool isOptional) : super(name, ordinal
) { |
| 29 this.isOptional = isOptional; | 35 this.isOptional = isOptional; |
| 30 } | 36 } |
| 31 } | 37 } |
| OLD | NEW |