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

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

Issue 221483002: Fix for translation of \!= to \!identical(), but use == and \!= for Enum. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/index.dart ('k') | pkg/analyzer/lib/src/generated/java_core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/instrumentation.dart
diff --git a/pkg/analyzer/lib/src/generated/instrumentation.dart b/pkg/analyzer/lib/src/generated/instrumentation.dart
index 73d621458ff53fd2ff2bb2602e830a8357700ec4..caec0287377bda4793ab9ed63027b5d6df23572d 100644
--- a/pkg/analyzer/lib/src/generated/instrumentation.dart
+++ b/pkg/analyzer/lib/src/generated/instrumentation.dart
@@ -284,15 +284,15 @@ abstract class InstrumentationBuilder {
*/
class InstrumentationLevel extends Enum<InstrumentationLevel> {
/** Recording all instrumented information */
- static final InstrumentationLevel EVERYTHING = new InstrumentationLevel('EVERYTHING', 0);
+ static const InstrumentationLevel EVERYTHING = const InstrumentationLevel('EVERYTHING', 0);
/** Recording only metrics */
- static final InstrumentationLevel METRICS = new InstrumentationLevel('METRICS', 1);
+ static const InstrumentationLevel METRICS = const InstrumentationLevel('METRICS', 1);
/** Nothing recorded */
- static final InstrumentationLevel OFF = new InstrumentationLevel('OFF', 2);
+ static const InstrumentationLevel OFF = const InstrumentationLevel('OFF', 2);
- static final List<InstrumentationLevel> values = [EVERYTHING, METRICS, OFF];
+ static const List<InstrumentationLevel> values = const [EVERYTHING, METRICS, OFF];
static InstrumentationLevel fromString(String str) {
if (str == "EVERYTHING") {
@@ -307,7 +307,7 @@ class InstrumentationLevel extends Enum<InstrumentationLevel> {
throw new IllegalArgumentException("Unrecognised InstrumentationLevel");
}
- InstrumentationLevel(String name, int ordinal) : super(name, ordinal);
+ const InstrumentationLevel(String name, int ordinal) : super(name, ordinal);
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/generated/index.dart ('k') | pkg/analyzer/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698