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

Unified Diff: pkg/analysis_server/tool/spec/codegen_analysis_server.dart

Issue 864063002: Add addStatusListener to the AnalysisServer generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
« no previous file with comments | « editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/codegen_analysis_server.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_analysis_server.dart b/pkg/analysis_server/tool/spec/codegen_analysis_server.dart
index 2559d1a34f36b4627ec98f29f94ab7effcba296b..8355117c5c24b0314024be3edabd968c1dda8863 100644
--- a/pkg/analysis_server/tool/spec/codegen_analysis_server.dart
+++ b/pkg/analysis_server/tool/spec/codegen_analysis_server.dart
@@ -78,15 +78,28 @@ class CodegenAnalysisServer extends CodegenJavaVisitor {
});
//
+ // addStatusListener(..)
+ //
+ publicMethod('addStatusListener', () {
+ writeln('''/**
+ * Add the given listener to the list of listeners that will receive notification when the server
+ * is not active
+ *
+ * @param listener the listener to be added
+ */''');
+ writeln(
+ 'public void addStatusListener(AnalysisServerStatusListener listener);');
+ });
+
+ //
// isSocketOpen()
//
publicMethod('isSocketOpen', () {
- writeln('''/**
+ writeln('''/**
* Return {@code true} if the socket is open.
*/''');
- writeln(
- 'public boolean isSocketOpen();');
- });
+ writeln('public boolean isSocketOpen();');
+ });
//
// start(..)
« no previous file with comments | « editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698