OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014, the Dart project authors. | 2 * Copyright (c) 2014, 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 * validated and no change be generated. | 344 * validated and no change be generated. |
345 * @param options Data used to provide values provided by the user. The struct
ure of the data is | 345 * @param options Data used to provide values provided by the user. The struct
ure of the data is |
346 * dependent on the kind of refactoring being performed. The data that
is expected is | 346 * dependent on the kind of refactoring being performed. The data that
is expected is |
347 * documented in the section titled Refactorings, labeled as “Options”
. This field can be | 347 * documented in the section titled Refactorings, labeled as “Options”
. This field can be |
348 * omitted if the refactoring does not require any options or if the v
alues of those | 348 * omitted if the refactoring does not require any options or if the v
alues of those |
349 * options are not known. | 349 * options are not known. |
350 */ | 350 */ |
351 public void edit_getRefactoring(String kind, String file, int offset, int leng
th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con
sumer); | 351 public void edit_getRefactoring(String kind, String file, int offset, int leng
th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con
sumer); |
352 | 352 |
353 /** | 353 /** |
| 354 * {@code edit.organizeDirectives} |
| 355 * |
| 356 * Organizes all of the directives - removes unused imports and sorts directiv
es of the given Dart |
| 357 * file according to the Dart Style Guide. |
| 358 * |
| 359 * If a request is made for a file that does not exist, does not belong to an
analysis root or is |
| 360 * not a Dart file, FILE_NOT_ANALYZED will be generated. |
| 361 * |
| 362 * If directives of the Dart file cannot be organized, for example because it
has scan or parse |
| 363 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. T
he message will |
| 364 * provide datails about the reason. |
| 365 * |
| 366 * @param file The Dart file to organize directives in. |
| 367 */ |
| 368 public void edit_organizeDirectives(String file, OrganizeDirectivesConsumer co
nsumer); |
| 369 |
| 370 /** |
354 * {@code edit.sortMembers} | 371 * {@code edit.sortMembers} |
355 * | 372 * |
356 * Sort all of the directives, unit and class members of the given Dart file. | 373 * Sort all of the directives, unit and class members of the given Dart file. |
357 * | 374 * |
358 * If a request is made for a file that does not exist, does not belong to an
analysis root or is | 375 * If a request is made for a file that does not exist, does not belong to an
analysis root or is |
359 * not a Dart file, SORT_MEMBERS_INVALID_FILE will be generated. | 376 * not a Dart file, SORT_MEMBERS_INVALID_FILE will be generated. |
360 * | 377 * |
361 * If the Dart file has scan or parse errors, SORT_MEMBERS_PARSE_ERRORS will b
e generated. | 378 * If the Dart file has scan or parse errors, SORT_MEMBERS_PARSE_ERRORS will b
e generated. |
362 * | 379 * |
363 * @param file The Dart file to sort. | 380 * @param file The Dart file to sort. |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 * the response to this request has been sent. | 549 * the response to this request has been sent. |
533 */ | 550 */ |
534 public void server_shutdown(); | 551 public void server_shutdown(); |
535 | 552 |
536 /** | 553 /** |
537 * Start the analysis server. | 554 * Start the analysis server. |
538 */ | 555 */ |
539 public void start() throws Exception; | 556 public void start() throws Exception; |
540 | 557 |
541 } | 558 } |
OLD | NEW |