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

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

Issue 109853003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 7 years 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 import 'java_core.dart'; 6 import 'java_core.dart';
7 7
8 /** 8 /**
9 * 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
10 * 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
11 * two kinds: positional optional and named optional. 11 * two kinds: positional optional and named optional.
12 * 12 *
13 * @coverage dart.engine.utilities 13 * @coverage dart.engine.utilities
14 */ 14 */
15 class ParameterKind extends Enum<ParameterKind> { 15 class ParameterKind extends Enum<ParameterKind> {
16 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false); 16 static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false);
17 17
18 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru e); 18 static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, tru e);
19 19
20 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true); 20 static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true);
21 21
22 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED]; 22 static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED];
23 23
24 /** 24 /**
25 * A flag indicating whether this is an optional parameter. 25 * A flag indicating whether this is an optional parameter.
26 */ 26 */
27 bool isOptional = false; 27 bool _isOptional2 = false;
28 28
29 /** 29 /**
30 * Initialize a newly created kind with the given state. 30 * Initialize a newly created kind with the given state.
31 * 31 *
32 * @param isOptional `true` if this is an optional parameter 32 * @param isOptional `true` if this is an optional parameter
33 */ 33 */
34 ParameterKind(String name, int ordinal, bool isOptional) : super(name, ordinal ) { 34 ParameterKind(String name, int ordinal, bool isOptional) : super(name, ordinal ) {
35 this.isOptional = isOptional; 35 this._isOptional2 = isOptional;
36 } 36 }
37
38 /**
39 * Return `true` if this is an optional parameter.
40 *
41 * @return `true` if this is an optional parameter
42 */
43 bool get isOptional => _isOptional2;
37 } 44 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/lib/src/generated/utilities_general.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698