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

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

Issue 12838003: Rename analyzer-experimental to analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/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;
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/html.dart ('k') | pkg/analyzer_experimental/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698