| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 * {@code edit.getFixes} | 425 * {@code edit.getFixes} |
| 426 * | 426 * |
| 427 * Return the set of fixes that are available for the errors at a given offset
in a given file. | 427 * Return the set of fixes that are available for the errors at a given offset
in a given file. |
| 428 * | 428 * |
| 429 * @param file The file containing the errors for which fixes are being reques
ted. | 429 * @param file The file containing the errors for which fixes are being reques
ted. |
| 430 * @param offset The offset used to select the errors for which fixes will be
returned. | 430 * @param offset The offset used to select the errors for which fixes will be
returned. |
| 431 */ | 431 */ |
| 432 public void edit_getFixes(String file, int offset, GetFixesConsumer consumer); | 432 public void edit_getFixes(String file, int offset, GetFixesConsumer consumer); |
| 433 | 433 |
| 434 /** | 434 /** |
| 435 * {@code edit.getPostfixCompletion} |
| 436 * |
| 437 * Get the changes required to convert the postfix template at the given locat
ion into the |
| 438 * template's expanded form. |
| 439 * |
| 440 * @param file The file containing the postfix template to be expanded. |
| 441 * @param key The unique name that identifies the template in use. |
| 442 * @param offset The offset used to identify the code to which the template wi
ll be applied. |
| 443 */ |
| 444 public void edit_getPostfixCompletion(String file, String key, int offset, Get
PostfixCompletionConsumer consumer); |
| 445 |
| 446 /** |
| 435 * {@code edit.getRefactoring} | 447 * {@code edit.getRefactoring} |
| 436 * | 448 * |
| 437 * Get the changes required to perform a refactoring. | 449 * Get the changes required to perform a refactoring. |
| 438 * | 450 * |
| 439 * If another refactoring request is received during the processing of this on
e, an error of type | 451 * If another refactoring request is received during the processing of this on
e, an error of type |
| 440 * REFACTORING_REQUEST_CANCELLED will be generated. | 452 * REFACTORING_REQUEST_CANCELLED will be generated. |
| 441 * | 453 * |
| 442 * @param kind The kind of refactoring to be performed. | 454 * @param kind The kind of refactoring to be performed. |
| 443 * @param file The file containing the code involved in the refactoring. | 455 * @param file The file containing the code involved in the refactoring. |
| 444 * @param offset The offset of the region involved in the refactoring. | 456 * @param offset The offset of the region involved in the refactoring. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 461 * a newline plus appropriate indentation at the end of the line containing th
e offset. If a change | 473 * a newline plus appropriate indentation at the end of the line containing th
e offset. If a change |
| 462 * that makes the statement valid cannot be determined (perhaps because it has
not yet been | 474 * that makes the statement valid cannot be determined (perhaps because it has
not yet been |
| 463 * implemented) the statement will be considered already valid and the appropr
iate change returned. | 475 * implemented) the statement will be considered already valid and the appropr
iate change returned. |
| 464 * | 476 * |
| 465 * @param file The file containing the statement to be completed. | 477 * @param file The file containing the statement to be completed. |
| 466 * @param offset The offset used to identify the statement to be completed. | 478 * @param offset The offset used to identify the statement to be completed. |
| 467 */ | 479 */ |
| 468 public void edit_getStatementCompletion(String file, int offset, GetStatementC
ompletionConsumer consumer); | 480 public void edit_getStatementCompletion(String file, int offset, GetStatementC
ompletionConsumer consumer); |
| 469 | 481 |
| 470 /** | 482 /** |
| 483 * {@code edit.isPostfixCompletionApplicable} |
| 484 * |
| 485 * Determine if the request postfix completion template is applicable at the g
iven location in the |
| 486 * given file. |
| 487 * |
| 488 * @param file The file containing the postfix template to be expanded. |
| 489 * @param key The unique name that identifies the template in use. |
| 490 * @param offset The offset used to identify the code to which the template wi
ll be applied. |
| 491 */ |
| 492 public void edit_isPostfixCompletionApplicable(String file, String key, int of
fset, IsPostfixCompletionApplicableConsumer consumer); |
| 493 |
| 494 /** |
| 495 * {@code edit.listPostfixCompletionTemplates} |
| 496 * |
| 497 * Return a list of all postfix templates currently available. |
| 498 */ |
| 499 public void edit_listPostfixCompletionTemplates(ListPostfixCompletionTemplates
Consumer consumer); |
| 500 |
| 501 /** |
| 471 * {@code edit.organizeDirectives} | 502 * {@code edit.organizeDirectives} |
| 472 * | 503 * |
| 473 * Organizes all of the directives - removes unused imports and sorts directiv
es of the given Dart | 504 * Organizes all of the directives - removes unused imports and sorts directiv
es of the given Dart |
| 474 * file according to the Dart Style Guide. | 505 * file according to the Dart Style Guide. |
| 475 * | 506 * |
| 476 * If a request is made for a file that does not exist, does not belong to an
analysis root or is | 507 * If a request is made for a file that does not exist, does not belong to an
analysis root or is |
| 477 * not a Dart file, FILE_NOT_ANALYZED will be generated. | 508 * not a Dart file, FILE_NOT_ANALYZED will be generated. |
| 478 * | 509 * |
| 479 * If directives of the Dart file cannot be organized, for example because it
has scan or parse | 510 * If directives of the Dart file cannot be organized, for example because it
has scan or parse |
| 480 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. T
he message will | 511 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. T
he message will |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 * the response to this request has been sent. | 702 * the response to this request has been sent. |
| 672 */ | 703 */ |
| 673 public void server_shutdown(); | 704 public void server_shutdown(); |
| 674 | 705 |
| 675 /** | 706 /** |
| 676 * Start the analysis server. | 707 * Start the analysis server. |
| 677 */ | 708 */ |
| 678 public void start() throws Exception; | 709 public void start() throws Exception; |
| 679 | 710 |
| 680 } | 711 } |
| OLD | NEW |