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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java

Issue 475673002: Generate public static EMPTY_ARRAY fields for each object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: review Created 6 years, 4 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: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
index 428b3e31915272e179d00e2b2d9af25f2f239299..895e79e8f37babbdfb24408a04bd1b2ed49261a7 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
@@ -35,9 +35,9 @@ import org.apache.commons.lang3.StringUtils;
public class LinkedEditGroup {
/**
- * The length of the regions that should be edited simultaneously.
+ * An empty array of {@link LinkedEditGroup}s.
*/
- private final int length;
+ public static final LinkedEditGroup[] EMPTY_ARRAY = new LinkedEditGroup[0];
/**
* The positions of the regions that should be edited simultaneously.
@@ -45,6 +45,11 @@ public class LinkedEditGroup {
private final List<Position> positions;
/**
+ * The length of the regions that should be edited simultaneously.
+ */
+ private final int length;
+
+ /**
* Pre-computed suggestions for what every region might want to be changed to.
*/
private final List<LinkedEditSuggestion> suggestions;

Powered by Google App Engine
This is Rietveld 408576698