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

Unified Diff: pkg/analyzer/lib/src/generated/utilities_dart.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/utilities_collection.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/utilities_dart.dart
diff --git a/pkg/analyzer/lib/src/generated/utilities_dart.dart b/pkg/analyzer/lib/src/generated/utilities_dart.dart
index a9bddb51baf245a15d96cccdd316b8628c52d410..40a07fc792c2cda6dad411b9d0c433708cff44a5 100644
--- a/pkg/analyzer/lib/src/generated/utilities_dart.dart
+++ b/pkg/analyzer/lib/src/generated/utilities_dart.dart
@@ -15,25 +15,23 @@ import 'java_core.dart';
* two kinds: positional optional and named optional.
*/
class ParameterKind extends Enum<ParameterKind> {
- static final ParameterKind REQUIRED = new ParameterKind('REQUIRED', 0, false);
+ static const ParameterKind REQUIRED = const ParameterKind('REQUIRED', 0, false);
- static final ParameterKind POSITIONAL = new ParameterKind('POSITIONAL', 1, true);
+ static const ParameterKind POSITIONAL = const ParameterKind('POSITIONAL', 1, true);
- static final ParameterKind NAMED = new ParameterKind('NAMED', 2, true);
+ static const ParameterKind NAMED = const ParameterKind('NAMED', 2, true);
- static final List<ParameterKind> values = [REQUIRED, POSITIONAL, NAMED];
+ static const List<ParameterKind> values = const [REQUIRED, POSITIONAL, NAMED];
/**
* A flag indicating whether this is an optional parameter.
*/
- bool isOptional = false;
+ final bool isOptional;
/**
* Initialize a newly created kind with the given state.
*
* @param isOptional `true` if this is an optional parameter
*/
- ParameterKind(String name, int ordinal, bool isOptional) : super(name, ordinal) {
- this.isOptional = isOptional;
- }
+ const ParameterKind(String name, int ordinal, this.isOptional) : super(name, ordinal);
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_collection.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698