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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisStatus.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/AnalysisStatus.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisStatus.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisStatus.java
index 990a569e17583c5e5586d5068ecf977c770c0cd2..2779cac153c634c73ce81eb54e050076cc22eef3 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisStatus.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AnalysisStatus.java
@@ -31,9 +31,9 @@ import org.apache.commons.lang3.StringUtils;
public class AnalysisStatus {
/**
- * The name of the current target of analysis. This field is omitted if analyzing is false.
+ * An empty array of {@link AnalysisStatus}s.
*/
- private final String analysisTarget;
+ public static final AnalysisStatus[] EMPTY_ARRAY = new AnalysisStatus[0];
/**
* True if analysis is currently being performed.
@@ -41,6 +41,11 @@ public class AnalysisStatus {
private final boolean analyzing;
/**
+ * The name of the current target of analysis. This field is omitted if analyzing is false.
+ */
+ private final String analysisTarget;
+
+ /**
* Constructor for {@link AnalysisStatus}.
*/
public AnalysisStatus(boolean analyzing, String analysisTarget) {

Powered by Google App Engine
This is Rietveld 408576698