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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SearchResult.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/SearchResult.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SearchResult.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SearchResult.java
index ba7895349d7a72f9110f3a88e867dd1f818f922b..8eac3a1d84e1bf005be285ed46c12b104299c513 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SearchResult.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/SearchResult.java
@@ -31,11 +31,14 @@ import org.apache.commons.lang3.StringUtils;
public class SearchResult {
/**
- * True if the result is a potential match but cannot be confirmed to be a match. For example, if
- * all references to a method m defined in some class were requested, and a reference to a method m
- * from an unknown class were found, it would be marked as being a potential match.
+ * An empty array of {@link SearchResult}s.
*/
- private final boolean isPotential;
+ public static final SearchResult[] EMPTY_ARRAY = new SearchResult[0];
+
+ /**
+ * The location of the code that matched the search criteria.
+ */
+ private final Location location;
/**
* The kind of element that was found or the kind of reference that was found.
@@ -43,9 +46,11 @@ public class SearchResult {
private final String kind;
/**
- * The location of the code that matched the search criteria.
+ * True if the result is a potential match but cannot be confirmed to be a match. For example, if
+ * all references to a method m defined in some class were requested, and a reference to a method m
+ * from an unknown class were found, it would be marked as being a potential match.
*/
- private final Location location;
+ private final boolean isPotential;
/**
* The elements that contain the result, starting with the most immediately enclosing ancestor and

Powered by Google App Engine
This is Rietveld 408576698