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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceEdit.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/SourceEdit.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceEdit.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceEdit.java
index 2912bfae679af556727159ab87249ad882eedc98..bb5d1307675c8ef5ad5781c172b14e7e67440457 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceEdit.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceEdit.java
@@ -31,9 +31,9 @@ import org.apache.commons.lang3.StringUtils;
public class SourceEdit {
/**
- * The length of the region to be modified.
+ * An empty array of {@link SourceEdit}s.
*/
- private final int length;
+ public static final SourceEdit[] EMPTY_ARRAY = new SourceEdit[0];
/**
* The offset of the region to be modified.
@@ -41,6 +41,11 @@ public class SourceEdit {
private final int offset;
/**
+ * The length of the region to be modified.
+ */
+ private final int length;
+
+ /**
* The code that is to replace the specified region in the original code.
*/
private final String replacement;

Powered by Google App Engine
This is Rietveld 408576698