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 |
similarity index 96% |
rename from pkg/analyzer-experimental/lib/src/generated/instrumentation.dart |
rename to pkg/analyzer_experimental/lib/src/generated/instrumentation.dart |
index f09416de4e08be54b504ba18dfbb9182d7e7dc35..f4c632bf0bc339bdbf59ce3bb66b0f28daee4410 100644 |
--- a/pkg/analyzer-experimental/lib/src/generated/instrumentation.dart |
+++ b/pkg/analyzer_experimental/lib/src/generated/instrumentation.dart |
@@ -185,6 +185,18 @@ class InstrumentationLevel { |
final String __name; |
final int __ordinal; |
int get ordinal => __ordinal; |
+ static InstrumentationLevel fromString(String str) { |
+ if (str == "EVERYTHING") { |
+ return InstrumentationLevel.EVERYTHING; |
+ } |
+ if (str == "METRICS") { |
+ return InstrumentationLevel.METRICS; |
+ } |
+ if (str == "OFF") { |
+ return InstrumentationLevel.OFF; |
+ } |
+ throw new IllegalArgumentException("Unrecognised InstrumentationLevel"); |
+ } |
InstrumentationLevel(this.__name, this.__ordinal) { |
} |
String toString() => __name; |