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

Unified Diff: pkg/analyzer_experimental/test/generated/ast_test.dart

Issue 18129004: Simplify constructors translation, improve code style. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/test/generated/ast_test.dart
diff --git a/pkg/analyzer_experimental/test/generated/ast_test.dart b/pkg/analyzer_experimental/test/generated/ast_test.dart
index 37c41386e056272ebc9f14de1ca34f361e343584..1d1a14b311aaf283307d51d70902ef2f1a1a37d6 100644
--- a/pkg/analyzer_experimental/test/generated/ast_test.dart
+++ b/pkg/analyzer_experimental/test/generated/ast_test.dart
@@ -714,8 +714,7 @@ class AssignmentKind implements Comparable<AssignmentKind> {
/// The position in the enum declaration.
final int ordinal;
- AssignmentKind(this.name, this.ordinal) {
- }
+ AssignmentKind(this.name, this.ordinal);
int compareTo(AssignmentKind other) => ordinal - other.ordinal;
int get hashCode => ordinal;
String toString() => name;
@@ -733,8 +732,7 @@ class WrapperKind implements Comparable<WrapperKind> {
/// The position in the enum declaration.
final int ordinal;
- WrapperKind(this.name, this.ordinal) {
- }
+ WrapperKind(this.name, this.ordinal);
int compareTo(WrapperKind other) => ordinal - other.ordinal;
int get hashCode => ordinal;
String toString() => name;

Powered by Google App Engine
This is Rietveld 408576698