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

Side by Side Diff: pkg/analysis_server/tool/spec/codegen_analysis_server.dart

Issue 845973006: Addition of AnalysisServer.isSocketOpen for clients to know if the server is still running. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Code generation for the file "AnalysisServer.java". 6 * Code generation for the file "AnalysisServer.java".
7 */ 7 */
8 library java.generator.server; 8 library java.generator.server;
9 9
10 import 'api.dart'; 10 import 'api.dart';
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 * Remove the given listener from the list of listeners that will receive notifi cation when new 71 * Remove the given listener from the list of listeners that will receive notifi cation when new
72 * analysis results become available. 72 * analysis results become available.
73 * 73 *
74 * @param listener the listener to be removed 74 * @param listener the listener to be removed
75 */'''); 75 */''');
76 writeln( 76 writeln(
77 'public void removeAnalysisServerListener(AnalysisServerListener lis tener);'); 77 'public void removeAnalysisServerListener(AnalysisServerListener lis tener);');
78 }); 78 });
79 79
80 // 80 //
81 // isSocketOpen()
82 //
83 publicMethod('isSocketOpen', () {
84 writeln('''/**
85 * Return {@code true} if the socket is open.
86 */''');
87 writeln(
88 'public boolean isSocketOpen();');
89 });
90
91 //
81 // start(..) 92 // start(..)
82 // 93 //
83 publicMethod('start', () { 94 publicMethod('start', () {
84 writeln('''/** 95 writeln('''/**
85 * Start the analysis server. 96 * Start the analysis server.
86 */'''); 97 */''');
87 writeln('public void start() throws Exception;'); 98 writeln('public void start() throws Exception;');
88 }); 99 });
89 super.visitApi(); 100 super.visitApi();
90 }); 101 });
(...skipping 16 matching lines...) Expand all
107 } 118 }
108 } 119 }
109 if (request.result != null) { 120 if (request.result != null) {
110 arguments.add('${consumerName(request)} consumer'); 121 arguments.add('${consumerName(request)} consumer');
111 } 122 }
112 write(arguments.join(', ')); 123 write(arguments.join(', '));
113 writeln(');'); 124 writeln(');');
114 }); 125 });
115 } 126 }
116 } 127 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698