| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 * can be specified for both the selection offset and selection length. | 262 * can be specified for both the selection offset and selection length. |
| 263 * | 263 * |
| 264 * If a request is made for a file which does not exist, or which is not curre
ntly subject to | 264 * If a request is made for a file which does not exist, or which is not curre
ntly subject to |
| 265 * analysis (e.g. because it is not associated with any analysis root specifie
d to | 265 * analysis (e.g. because it is not associated with any analysis root specifie
d to |
| 266 * analysis.setAnalysisRoots), an error of type FORMAT_INVALID_FILE will be ge
nerated. If the | 266 * analysis.setAnalysisRoots), an error of type FORMAT_INVALID_FILE will be ge
nerated. If the |
| 267 * source contains syntax errors, an error of type FORMAT_WITH_ERRORS will be
generated. | 267 * source contains syntax errors, an error of type FORMAT_WITH_ERRORS will be
generated. |
| 268 * | 268 * |
| 269 * @param file The file containing the code to be formatted. | 269 * @param file The file containing the code to be formatted. |
| 270 * @param selectionOffset The offset of the current selection in the file. | 270 * @param selectionOffset The offset of the current selection in the file. |
| 271 * @param selectionLength The length of the current selection in the file. | 271 * @param selectionLength The length of the current selection in the file. |
| 272 * @param lineLength The line length to be used by the formatter. |
| 272 */ | 273 */ |
| 273 public void edit_format(String file, int selectionOffset, int selectionLength,
FormatConsumer consumer); | 274 public void edit_format(String file, int selectionOffset, int selectionLength,
int lineLength, FormatConsumer consumer); |
| 274 | 275 |
| 275 /** | 276 /** |
| 276 * {@code edit.getAssists} | 277 * {@code edit.getAssists} |
| 277 * | 278 * |
| 278 * Return the set of assists that are available at the given location. An assi
st is distinguished | 279 * Return the set of assists that are available at the given location. An assi
st is distinguished |
| 279 * from a refactoring primarily by the fact that it affects a single file and
does not require user | 280 * from a refactoring primarily by the fact that it affects a single file and
does not require user |
| 280 * input in order to be performed. | 281 * input in order to be performed. |
| 281 * | 282 * |
| 282 * @param file The file containing the code for which assists are being reques
ted. | 283 * @param file The file containing the code for which assists are being reques
ted. |
| 283 * @param offset The offset of the code for which assists are being requested. | 284 * @param offset The offset of the code for which assists are being requested. |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 * the response to this request has been sent. | 512 * the response to this request has been sent. |
| 512 */ | 513 */ |
| 513 public void server_shutdown(); | 514 public void server_shutdown(); |
| 514 | 515 |
| 515 /** | 516 /** |
| 516 * Start the analysis server. | 517 * Start the analysis server. |
| 517 */ | 518 */ |
| 518 public void start() throws Exception; | 519 public void start() throws Exception; |
| 519 | 520 |
| 520 } | 521 } |
| OLD | NEW |