OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015, the Dart project authors. | 2 * Copyright (c) 2015, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 public void completion_getSuggestions(String file, int offset, GetSuggestionsC
onsumer consumer); | 291 public void completion_getSuggestions(String file, int offset, GetSuggestionsC
onsumer consumer); |
292 | 292 |
293 /** | 293 /** |
294 * {@code diagnostic.getDiagnostics} | 294 * {@code diagnostic.getDiagnostics} |
295 * | 295 * |
296 * Return server diagnostics. | 296 * Return server diagnostics. |
297 */ | 297 */ |
298 public void diagnostic_getDiagnostics(GetDiagnosticsConsumer consumer); | 298 public void diagnostic_getDiagnostics(GetDiagnosticsConsumer consumer); |
299 | 299 |
300 /** | 300 /** |
| 301 * {@code diagnostic.getServerPort} |
| 302 * |
| 303 * Return the port of the diagnostic web server. If the server is not running
this call will start |
| 304 * the server. If unable to start the diagnostic web server, this call will re
turn an error of |
| 305 * DEBUG_PORT_COULD_NOT_BE_OPENED. |
| 306 */ |
| 307 public void diagnostic_getServerPort(GetServerPortConsumer consumer); |
| 308 |
| 309 /** |
301 * {@code edit.format} | 310 * {@code edit.format} |
302 * | 311 * |
303 * Format the contents of a single file. The currently selected region of text
is passed in so that | 312 * Format the contents of a single file. The currently selected region of text
is passed in so that |
304 * the selection can be preserved across the formatting operation. The updated
selection will be as | 313 * the selection can be preserved across the formatting operation. The updated
selection will be as |
305 * close to matching the original as possible, but whitespace at the beginning
or end of the | 314 * close to matching the original as possible, but whitespace at the beginning
or end of the |
306 * selected region will be ignored. If preserving selection information is not
required, zero (0) | 315 * selected region will be ignored. If preserving selection information is not
required, zero (0) |
307 * can be specified for both the selection offset and selection length. | 316 * can be specified for both the selection offset and selection length. |
308 * | 317 * |
309 * If a request is made for a file which does not exist, or which is not curre
ntly subject to | 318 * If a request is made for a file which does not exist, or which is not curre
ntly subject to |
310 * analysis (e.g. because it is not associated with any analysis root specifie
d to | 319 * analysis (e.g. because it is not associated with any analysis root specifie
d to |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 * the response to this request has been sent. | 584 * the response to this request has been sent. |
576 */ | 585 */ |
577 public void server_shutdown(); | 586 public void server_shutdown(); |
578 | 587 |
579 /** | 588 /** |
580 * Start the analysis server. | 589 * Start the analysis server. |
581 */ | 590 */ |
582 public void start() throws Exception; | 591 public void start() throws Exception; |
583 | 592 |
584 } | 593 } |
OLD | NEW |