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

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

Issue 23769004: java2dart improvement - use field if getter/setter are trivial. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/utilities_dart.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart b/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart
index 726e294f8221a21e326a8141b3516a0ccc5b4201..40fe9a4cfe96091de6336536a9bac76f35d3aa6f 100644
--- a/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/utilities_dart.dart
@@ -18,7 +18,7 @@ class ParameterKind extends Enum<ParameterKind> {
/**
* A flag indicating whether this is an optional parameter.
*/
- bool _isOptional2 = false;
+ bool isOptional = false;
/**
* Initialize a newly created kind with the given state.
@@ -26,13 +26,6 @@ class ParameterKind extends Enum<ParameterKind> {
* @param isOptional `true` if this is an optional parameter
*/
ParameterKind(String name, int ordinal, bool isOptional) : super(name, ordinal) {
- this._isOptional2 = isOptional;
+ this.isOptional = isOptional;
}
-
- /**
- * Return `true` if this is an optional parameter.
- *
- * @return `true` if this is an optional parameter
- */
- bool get isOptional => _isOptional2;
}

Powered by Google App Engine
This is Rietveld 408576698