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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceChange.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/SourceChange.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceChange.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceChange.java
index eda1140a89808c26ff10644a223c8f3eec731f0f..3a85c3980f31585a1b28703b47055b7affc17ec0 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceChange.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SourceChange.java
@@ -31,6 +31,16 @@ import org.apache.commons.lang3.StringUtils;
public class SourceChange {
/**
+ * An empty array of {@link SourceChange}s.
+ */
+ public static final SourceChange[] EMPTY_ARRAY = new SourceChange[0];
+
+ /**
+ * A human-readable description of the change to be applied.
+ */
+ private final String message;
+
+ /**
* A list of the edits used to effect the change, grouped by file.
*/
private final List<SourceFileEdit> edits;
@@ -41,11 +51,6 @@ public class SourceChange {
private final List<LinkedEditGroup> linkedEditGroups;
/**
- * A human-readable description of the change to be applied.
- */
- private final String message;
-
- /**
* The position that should be selected after the edits have been applied.
*/
private final Position selection;

Powered by Google App Engine
This is Rietveld 408576698