Index: pkg/analyzer_experimental/lib/src/generated/instrumentation.dart |
diff --git a/pkg/analyzer_experimental/lib/src/generated/instrumentation.dart b/pkg/analyzer_experimental/lib/src/generated/instrumentation.dart |
index 5dbf578df56ca20f54d5655379ff04f8d1819386..77528119930f2ff58357caf1575ac7015bc4c730 100644 |
--- a/pkg/analyzer_experimental/lib/src/generated/instrumentation.dart |
+++ b/pkg/analyzer_experimental/lib/src/generated/instrumentation.dart |
@@ -255,7 +255,7 @@ abstract class InstrumentationBuilder { |
* |
* @coverage dart.engine.utilities |
*/ |
-class InstrumentationLevel implements Enum<InstrumentationLevel> { |
+class InstrumentationLevel extends Enum<InstrumentationLevel> { |
/** Recording all instrumented information */ |
static final InstrumentationLevel EVERYTHING = new InstrumentationLevel('EVERYTHING', 0); |
@@ -266,12 +266,6 @@ class InstrumentationLevel implements Enum<InstrumentationLevel> { |
/** Nothing recorded */ |
static final InstrumentationLevel OFF = new InstrumentationLevel('OFF', 2); |
static final List<InstrumentationLevel> values = [EVERYTHING, METRICS, OFF]; |
- |
- /// The name of this enum constant, as declared in the enum declaration. |
- final String name; |
- |
- /// The position in the enum declaration. |
- final int ordinal; |
static InstrumentationLevel fromString(String str) { |
if (str == "EVERYTHING") { |
return InstrumentationLevel.EVERYTHING; |
@@ -284,10 +278,7 @@ class InstrumentationLevel implements Enum<InstrumentationLevel> { |
} |
throw new IllegalArgumentException("Unrecognised InstrumentationLevel"); |
} |
- InstrumentationLevel(this.name, this.ordinal); |
- int compareTo(InstrumentationLevel other) => ordinal - other.ordinal; |
- int get hashCode => ordinal; |
- String toString() => name; |
+ InstrumentationLevel(String name, int ordinal) : super(name, ordinal); |
} |
/** |
* The interface `InstrumentationLogger` defines the behavior of objects that are used to log |