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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java

Issue 303233007: First cut at server timing tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed some bugs, added tests Created 6 years, 7 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/AnalysisStatus.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java
index fdd1a5551f2fd33fe7e1cb354843cfc3a52e18ae..d33af403f22448c08ca2c2afab19bf7839d222e9 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java
@@ -14,20 +14,45 @@
package com.google.dart.server;
/**
- * The interface {@code AnalysisStatus} defines the behavior of objects that indicate the current
- * state of analysis.
+ * Instances of the class {@code AnalysisStatus} represent the current state of analysis.
*
* @coverage dart.server
*/
-public interface AnalysisStatus {
+public class AnalysisStatus {
/**
- * Returns the name of the current target of analysis, {@code null} if {@link #isAnalyzing} is
+ * A flag indicating whether analysis is currently being performed.
+ */
+ private boolean isAnalyzing;
+
+ /**
+ * The name of the current target of analysis.
+ */
+ private String analysisTarget;
+
+ /**
+ * Initialize a newly created status object.
+ */
+ public AnalysisStatus(boolean isAnalyzing, String analysisTarget) {
+ this.isAnalyzing = isAnalyzing;
+ this.analysisTarget = analysisTarget;
+ }
+
+ /**
+ * Return the name of the current target of analysis, {@code null} if {@link #isAnalyzing} is
* {@code false}.
+ *
+ * @return the name of the current target of analysis
*/
- String getAnalysisTarget();
+ public String getAnalysisTarget() {
+ return analysisTarget;
+ }
/**
- * Returns {@code true} if analysis is currently being performed.
+ * Return {@code true} if analysis is currently being performed.
+ *
+ * @return {@code true} if analysis is currently being performed
*/
- boolean isAnalyzing();
+ public boolean isAnalyzing() {
+ return isAnalyzing;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698