Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart

Issue 16337007: Version 0.5.13.1 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
4 library engine.utilities.dart; 4 library engine.utilities.dart;
5 5
6 6
7
7 /** 8 /**
8 * The enumeration {@code ParameterKind} defines the different kinds of paramete rs. There are two 9 * The enumeration {@code ParameterKind} defines the different kinds of paramete rs. There are two
9 * 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
10 * two kinds: positional optional and named optional. 11 * two kinds: positional optional and named optional.
11 * @coverage dart.engine.utilities 12 * @coverage dart.engine.utilities
12 */ 13 */
13 class ParameterKind implements Comparable<ParameterKind> { 14 class ParameterKind implements Comparable<ParameterKind> {
14 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false); 15 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false);
15 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru e); 16 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru e);
16 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true); 17 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true);
17 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED]; 18 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED];
18 final String __name; 19
19 final int __ordinal; 20 /// The name of this enum constant, as declared in the enum declaration.
20 int get ordinal => __ordinal; 21 final String name;
22
23 /// The position in the enum declaration.
24 final int ordinal;
25
21 /** 26 /**
22 * A flag indicating whether this is an optional parameter. 27 * A flag indicating whether this is an optional parameter.
23 */ 28 */
24 bool _isOptional2 = false; 29 bool _isOptional2 = false;
30
25 /** 31 /**
26 * Initialize a newly created kind with the given state. 32 * Initialize a newly created kind with the given state.
27 * @param isOptional {@code true} if this is an optional parameter 33 * @param isOptional {@code true} if this is an optional parameter
28 */ 34 */
29 ParameterKind(this.__name, this.__ordinal, bool isOptional) { 35 ParameterKind(this.name, this.ordinal, bool isOptional) {
30 this._isOptional2 = isOptional; 36 this._isOptional2 = isOptional;
31 } 37 }
38
32 /** 39 /**
33 * Return {@code true} if this is an optional parameter. 40 * Return {@code true} if this is an optional parameter.
34 * @return {@code true} if this is an optional parameter 41 * @return {@code true} if this is an optional parameter
35 */ 42 */
36 bool isOptional() => _isOptional2; 43 bool isOptional() => _isOptional2;
37 int compareTo(ParameterKind other) => __ordinal - other.__ordinal; 44 int compareTo(ParameterKind other) => ordinal - other.ordinal;
38 String toString() => __name; 45 String toString() => name;
39 } 46 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/source_io.dart ('k') | pkg/analyzer_experimental/test/generated/ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698