| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 * been computed, or the most recently computed errors for the given file are
out of date, then the | 44 * been computed, or the most recently computed errors for the given file are
out of date, then the |
| 45 * response for this request will be delayed until they have been computed. If
some or all of the | 45 * response for this request will be delayed until they have been computed. If
some or all of the |
| 46 * errors for the file cannot be computed, then the subset of the errors that
can be computed will | 46 * errors for the file cannot be computed, then the subset of the errors that
can be computed will |
| 47 * be returned and the response will contain an error to indicate why the erro
rs could not be | 47 * be returned and the response will contain an error to indicate why the erro
rs could not be |
| 48 * computed. | 48 * computed. |
| 49 * | 49 * |
| 50 * This request is intended to be used by clients that cannot asynchronously a
pply updated error | 50 * This request is intended to be used by clients that cannot asynchronously a
pply updated error |
| 51 * information. Clients that can apply error information as it becomes availab
le should use the | 51 * information. Clients that can apply error information as it becomes availab
le should use the |
| 52 * information provided by the 'analysis.errors' notification. | 52 * information provided by the 'analysis.errors' notification. |
| 53 * | 53 * |
| 54 * If a request is made for a file which does not exist, or which is not curre
ntly subject to |
| 55 * analysis (e.g. because it is not associated with any analysis root specifie
d to |
| 56 * analysis.setAnalysisRoots), an error of type GET_ERRORS_INVALID_FILE will b
e generated. |
| 57 * |
| 54 * @param file The file for which errors are being requested. | 58 * @param file The file for which errors are being requested. |
| 55 */ | 59 */ |
| 56 public void analysis_getErrors(String file, GetErrorsConsumer consumer); | 60 public void analysis_getErrors(String file, GetErrorsConsumer consumer); |
| 57 | 61 |
| 58 /** | 62 /** |
| 59 * {@code analysis.getHover} | 63 * {@code analysis.getHover} |
| 60 * | 64 * |
| 61 * Return the hover information associate with the given location. If some or
all of the hover | 65 * Return the hover information associate with the given location. If some or
all of the hover |
| 62 * information is not available at the time this request is processed the info
rmation will be | 66 * information is not available at the time this request is processed the info
rmation will be |
| 63 * omitted from the response. | 67 * omitted from the response. |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 399 |
| 396 /** | 400 /** |
| 397 * Start the analysis server. | 401 * Start the analysis server. |
| 398 * | 402 * |
| 399 * @param millisToRestart the number of milliseconds to wait for an unresponsi
ve server before | 403 * @param millisToRestart the number of milliseconds to wait for an unresponsi
ve server before |
| 400 * restarting it, or zero if the server should not be restarted. | 404 * restarting it, or zero if the server should not be restarted. |
| 401 */ | 405 */ |
| 402 public void start(long millisToRestart) throws Exception; | 406 public void start(long millisToRestart) throws Exception; |
| 403 | 407 |
| 404 } | 408 } |
| OLD | NEW |