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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Location.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/Location.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Location.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Location.java
index d55dec88dcad59b22c1c1de5d2c01e7e77fe6416..e6a137bd69c39f9efeaad252bf5a140c175e40f1 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Location.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Location.java
@@ -31,14 +31,14 @@ import org.apache.commons.lang3.StringUtils;
public class Location {
/**
- * The file containing the range.
+ * An empty array of {@link Location}s.
*/
- private final String file;
+ public static final Location[] EMPTY_ARRAY = new Location[0];
/**
- * The length of the range.
+ * The file containing the range.
*/
- private final int length;
+ private final String file;
/**
* The offset of the range.
@@ -46,9 +46,9 @@ public class Location {
private final int offset;
/**
- * The one-based index of the column containing the first character of the range.
+ * The length of the range.
*/
- private final int startColumn;
+ private final int length;
/**
* The one-based index of the line containing the first character of the range.
@@ -56,6 +56,11 @@ public class Location {
private final int startLine;
/**
+ * The one-based index of the column containing the first character of the range.
+ */
+ private final int startColumn;
+
+ /**
* Constructor for {@link Location}.
*/
public Location(String file, int offset, int length, int startLine, int startColumn) {

Powered by Google App Engine
This is Rietveld 408576698