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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart

Issue 23852002: java2dart improvements and new analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart b/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart
index c7879f69366cd9e1b34674890c02768a25ad5fc6..726e294f8221a21e326a8141b3516a0ccc5b4201 100644
--- a/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart
@@ -9,18 +9,12 @@ import 'java_core.dart';
*
* @coverage dart.engine.utilities
*/
-class ParameterKind implements Enum<ParameterKind> {
+class ParameterKind extends Enum<ParameterKind> {
static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false);
static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, true);
static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true);
static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED];
- /// The name of this enum constant, as declared in the enum declaration.
- final String name;
-
- /// The position in the enum declaration.
- final int ordinal;
-
/**
* A flag indicating whether this is an optional parameter.
*/
@@ -31,7 +25,7 @@ class ParameterKind implements Enum<ParameterKind> {
*
* @param isOptional `true` if this is an optional parameter
*/
- ParameterKind(this.name, this.ordinal, bool isOptional) {
+ ParameterKind(String name, int ordinal, bool isOptional) : super(name, ordinal) {
this._isOptional2 = isOptional;
}
@@ -41,7 +35,4 @@ class ParameterKind implements Enum<ParameterKind> {
* @return `true` if this is an optional parameter
*/
bool get isOptional => _isOptional2;
- int compareTo(ParameterKind other) => ordinal - other.ordinal;
- int get hashCode => ordinal;
- String toString() => name;
}

Powered by Google App Engine
This is Rietveld 408576698