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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.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/NavigationRegion.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java
index 1b1841f46ec3d4ae78cc14d462a20427b9ee0459..b3a7d771499aa4f41dbf156189d4a084de6d1526 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java
@@ -31,9 +31,9 @@ import org.apache.commons.lang3.StringUtils;
public class NavigationRegion {
/**
- * The length of the region from which the user can navigate.
+ * An empty array of {@link NavigationRegion}s.
*/
- private final int length;
+ public static final NavigationRegion[] EMPTY_ARRAY = new NavigationRegion[0];
/**
* The offset of the region from which the user can navigate.
@@ -41,6 +41,11 @@ public class NavigationRegion {
private final int offset;
/**
+ * The length of the region from which the user can navigate.
+ */
+ private final int length;
+
+ /**
* The elements to which the given region is bound. By opening the declaration of the elements,
* clients can implement one form of navigation.
*/

Powered by Google App Engine
This is Rietveld 408576698