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

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

Issue 16256021: Remove trailing spaces in analyzer_experimental (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/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
4 library engine.utilities.dart; 3 library engine.utilities.dart;
5
6
7
8 /** 4 /**
9 * 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
10 * 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
11 * two kinds: positional optional and named optional. 7 * two kinds: positional optional and named optional.
12 * @coverage dart.engine.utilities 8 * @coverage dart.engine.utilities
13 */ 9 */
14 class ParameterKind implements Comparable<ParameterKind> { 10 class ParameterKind implements Comparable<ParameterKind> {
15 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false); 11 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false);
16 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru e); 12 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru e);
17 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true); 13 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true);
18 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED]; 14 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED];
19 15
20 /// The name of this enum constant, as declared in the enum declaration. 16 /// The name of this enum constant, as declared in the enum declaration.
21 final String name; 17 final String name;
22 18
23 /// The position in the enum declaration. 19 /// The position in the enum declaration.
24 final int ordinal; 20 final int ordinal;
25 21
26 /** 22 /**
27 * A flag indicating whether this is an optional parameter. 23 * A flag indicating whether this is an optional parameter.
28 */ 24 */
29 bool _isOptional2 = false; 25 bool _isOptional2 = false;
30 26
31 /** 27 /**
32 * Initialize a newly created kind with the given state. 28 * Initialize a newly created kind with the given state.
33 * @param isOptional {@code true} if this is an optional parameter 29 * @param isOptional {@code true} if this is an optional parameter
34 */ 30 */
35 ParameterKind(this.name, this.ordinal, bool isOptional) { 31 ParameterKind(this.name, this.ordinal, bool isOptional) {
36 this._isOptional2 = isOptional; 32 this._isOptional2 = isOptional;
37 } 33 }
38 34
39 /** 35 /**
40 * Return {@code true} if this is an optional parameter. 36 * Return {@code true} if this is an optional parameter.
41 * @return {@code true} if this is an optional parameter 37 * @return {@code true} if this is an optional parameter
42 */ 38 */
43 bool isOptional() => _isOptional2; 39 bool isOptional() => _isOptional2;
44 int compareTo(ParameterKind other) => ordinal - other.ordinal; 40 int compareTo(ParameterKind other) => ordinal - other.ordinal;
45 String toString() => name; 41 String toString() => name;
46 } 42 }
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