| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 * validated and no change be generated. | 380 * validated and no change be generated. |
| 381 * @param options Data used to provide values provided by the user. The struct
ure of the data is | 381 * @param options Data used to provide values provided by the user. The struct
ure of the data is |
| 382 * dependent on the kind of refactoring being performed. The data that
is expected is | 382 * dependent on the kind of refactoring being performed. The data that
is expected is |
| 383 * documented in the section titled Refactorings, labeled as "Options"
. This field can be | 383 * documented in the section titled Refactorings, labeled as "Options"
. This field can be |
| 384 * omitted if the refactoring does not require any options or if the v
alues of those | 384 * omitted if the refactoring does not require any options or if the v
alues of those |
| 385 * options are not known. | 385 * options are not known. |
| 386 */ | 386 */ |
| 387 public void edit_getRefactoring(String kind, String file, int offset, int leng
th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con
sumer); | 387 public void edit_getRefactoring(String kind, String file, int offset, int leng
th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con
sumer); |
| 388 | 388 |
| 389 /** | 389 /** |
| 390 * {@code edit.getStatementCompletion} |
| 391 * |
| 392 * Get the changes required to convert the partial statement at the given loca
tion into a |
| 393 * syntactically valid statement. If the current statement is already valid th
e change will insert |
| 394 * a newline plus appropriate indentation at the end of the line containing th
e offset. If a change |
| 395 * that makes the statement valid cannot be determined (perhaps because it has
not yet been |
| 396 * implemented) the statement will be considered already valid and the appropr
iate change returned. |
| 397 * |
| 398 * @param file The file containing the statement to be completed. |
| 399 * @param offset The offset used to identify the statement to be completed. |
| 400 */ |
| 401 public void edit_getStatementCompletion(String file, int offset, GetStatementC
ompletionConsumer consumer); |
| 402 |
| 403 /** |
| 390 * {@code edit.organizeDirectives} | 404 * {@code edit.organizeDirectives} |
| 391 * | 405 * |
| 392 * Organizes all of the directives - removes unused imports and sorts directiv
es of the given Dart | 406 * Organizes all of the directives - removes unused imports and sorts directiv
es of the given Dart |
| 393 * file according to the Dart Style Guide. | 407 * file according to the Dart Style Guide. |
| 394 * | 408 * |
| 395 * If a request is made for a file that does not exist, does not belong to an
analysis root or is | 409 * If a request is made for a file that does not exist, does not belong to an
analysis root or is |
| 396 * not a Dart file, FILE_NOT_ANALYZED will be generated. | 410 * not a Dart file, FILE_NOT_ANALYZED will be generated. |
| 397 * | 411 * |
| 398 * If directives of the Dart file cannot be organized, for example because it
has scan or parse | 412 * If directives of the Dart file cannot be organized, for example because it
has scan or parse |
| 399 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. T
he message will | 413 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. T
he message will |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 * the response to this request has been sent. | 602 * the response to this request has been sent. |
| 589 */ | 603 */ |
| 590 public void server_shutdown(); | 604 public void server_shutdown(); |
| 591 | 605 |
| 592 /** | 606 /** |
| 593 * Start the analysis server. | 607 * Start the analysis server. |
| 594 */ | 608 */ |
| 595 public void start() throws Exception; | 609 public void start() throws Exception; |
| 596 | 610 |
| 597 } | 611 } |
| OLD | NEW |