| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 /** | 62 /** |
| 63 * {@code analysis.getHover} | 63 * {@code analysis.getHover} |
| 64 * | 64 * |
| 65 * 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 |
| 66 * 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 |
| 67 * omitted from the response. | 67 * omitted from the response. |
| 68 * | 68 * |
| 69 * @param file The file in which hover information is being requested. | 69 * @param file The file in which hover information is being requested. |
| 70 * @param offset The offset for which hover information is being requested. | 70 * @param offset The offset for which hover information is being requested. |
| 71 */ | 71 */ |
| 72 public void analysis_getHover(String file, Integer offset, GetHoverConsumer co
nsumer); | 72 public void analysis_getHover(String file, int offset, GetHoverConsumer consum
er); |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * {@code analysis.reanalyze} | 75 * {@code analysis.reanalyze} |
| 76 * | 76 * |
| 77 * Force the re-analysis of everything contained in the existing analysis root
s. This will cause | 77 * Force the re-analysis of everything contained in the existing analysis root
s. This will cause |
| 78 * all previously computed analysis results to be discarded and recomputed, an
d will cause all | 78 * all previously computed analysis results to be discarded and recomputed, an
d will cause all |
| 79 * subscribed notifications to be re-sent. | 79 * subscribed notifications to be re-sent. |
| 80 */ | 80 */ |
| 81 public void analysis_reanalyze(); | 81 public void analysis_reanalyze(); |
| 82 | 82 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 public void analysis_updateOptions(AnalysisOptions options); | 184 public void analysis_updateOptions(AnalysisOptions options); |
| 185 | 185 |
| 186 /** | 186 /** |
| 187 * {@code completion.getSuggestions} | 187 * {@code completion.getSuggestions} |
| 188 * | 188 * |
| 189 * Request that completion suggestions for the given offset in the given file
be returned. | 189 * Request that completion suggestions for the given offset in the given file
be returned. |
| 190 * | 190 * |
| 191 * @param file The file containing the point at which suggestions are to be ma
de. | 191 * @param file The file containing the point at which suggestions are to be ma
de. |
| 192 * @param offset The offset within the file at which suggestions are to be mad
e. | 192 * @param offset The offset within the file at which suggestions are to be mad
e. |
| 193 */ | 193 */ |
| 194 public void completion_getSuggestions(String file, Integer offset, GetSuggesti
onsConsumer consumer); | 194 public void completion_getSuggestions(String file, int offset, GetSuggestionsC
onsumer consumer); |
| 195 | 195 |
| 196 /** | 196 /** |
| 197 * {@code debug.createContext} | 197 * {@code debug.createContext} |
| 198 * | 198 * |
| 199 * Create a debugging context for the executable file with the given path. The
context that is | 199 * Create a debugging context for the executable file with the given path. The
context that is |
| 200 * created will persist until debug.deleteContext is used to delete it. Client
s, therefore, are | 200 * created will persist until debug.deleteContext is used to delete it. Client
s, therefore, are |
| 201 * responsible for managing the lifetime of debugging contexts. | 201 * responsible for managing the lifetime of debugging contexts. |
| 202 * | 202 * |
| 203 * @param contextRoot The path of the Dart or HTML file that will be launched. | 203 * @param contextRoot The path of the Dart or HTML file that will be launched. |
| 204 */ | 204 */ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 * {@code edit.getAssists} | 244 * {@code edit.getAssists} |
| 245 * | 245 * |
| 246 * Return the set of assists that are available at the given location. An assi
st is distinguished | 246 * Return the set of assists that are available at the given location. An assi
st is distinguished |
| 247 * from a refactoring primarily by the fact that it affects a single file and
does not require user | 247 * from a refactoring primarily by the fact that it affects a single file and
does not require user |
| 248 * input in order to be performed. | 248 * input in order to be performed. |
| 249 * | 249 * |
| 250 * @param file The file containing the code for which assists are being reques
ted. | 250 * @param file The file containing the code for which assists are being reques
ted. |
| 251 * @param offset The offset of the code for which assists are being requested. | 251 * @param offset The offset of the code for which assists are being requested. |
| 252 * @param length The length of the code for which assists are being requested. | 252 * @param length The length of the code for which assists are being requested. |
| 253 */ | 253 */ |
| 254 public void edit_getAssists(String file, Integer offset, Integer length, GetAs
sistsConsumer consumer); | 254 public void edit_getAssists(String file, int offset, int length, GetAssistsCon
sumer consumer); |
| 255 | 255 |
| 256 /** | 256 /** |
| 257 * {@code edit.getAvailableRefactorings} | 257 * {@code edit.getAvailableRefactorings} |
| 258 * | 258 * |
| 259 * Get a list of the kinds of refactorings that are valid for the given select
ion in the given | 259 * Get a list of the kinds of refactorings that are valid for the given select
ion in the given |
| 260 * file. | 260 * file. |
| 261 * | 261 * |
| 262 * @param file The file containing the code on which the refactoring would be
based. | 262 * @param file The file containing the code on which the refactoring would be
based. |
| 263 * @param offset The offset of the code on which the refactoring would be base
d. | 263 * @param offset The offset of the code on which the refactoring would be base
d. |
| 264 * @param length The length of the code on which the refactoring would be base
d. | 264 * @param length The length of the code on which the refactoring would be base
d. |
| 265 */ | 265 */ |
| 266 public void edit_getAvailableRefactorings(String file, Integer offset, Integer
length, GetAvailableRefactoringsConsumer consumer); | 266 public void edit_getAvailableRefactorings(String file, int offset, int length,
GetAvailableRefactoringsConsumer consumer); |
| 267 | 267 |
| 268 /** | 268 /** |
| 269 * {@code edit.getFixes} | 269 * {@code edit.getFixes} |
| 270 * | 270 * |
| 271 * Return the set of fixes that are available for the errors at a given offset
in a given file. | 271 * Return the set of fixes that are available for the errors at a given offset
in a given file. |
| 272 * | 272 * |
| 273 * @param file The file containing the errors for which fixes are being reques
ted. | 273 * @param file The file containing the errors for which fixes are being reques
ted. |
| 274 * @param offset The offset used to select the errors for which fixes will be
returned. | 274 * @param offset The offset used to select the errors for which fixes will be
returned. |
| 275 */ | 275 */ |
| 276 public void edit_getFixes(String file, Integer offset, GetFixesConsumer consum
er); | 276 public void edit_getFixes(String file, int offset, GetFixesConsumer consumer); |
| 277 | 277 |
| 278 /** | 278 /** |
| 279 * {@code edit.getRefactoring} | 279 * {@code edit.getRefactoring} |
| 280 * | 280 * |
| 281 * Get the changes required to perform a refactoring. | 281 * Get the changes required to perform a refactoring. |
| 282 * | 282 * |
| 283 * @param kind The kind of refactoring to be performed. | 283 * @param kind The kind of refactoring to be performed. |
| 284 * @param file The file containing the code involved in the refactoring. | 284 * @param file The file containing the code involved in the refactoring. |
| 285 * @param offset The offset of the region involved in the refactoring. | 285 * @param offset The offset of the region involved in the refactoring. |
| 286 * @param length The length of the region involved in the refactoring. | 286 * @param length The length of the region involved in the refactoring. |
| 287 * @param validateOnly True if the client is only requesting that the values o
f the options be | 287 * @param validateOnly True if the client is only requesting that the values o
f the options be |
| 288 * validated and no change be generated. | 288 * validated and no change be generated. |
| 289 * @param options Data used to provide values provided by the user. The struct
ure of the data is | 289 * @param options Data used to provide values provided by the user. The struct
ure of the data is |
| 290 * dependent on the kind of refactoring being performed. The data that
is expected is | 290 * dependent on the kind of refactoring being performed. The data that
is expected is |
| 291 * documented in the section titled Refactorings, labeled as “Options”
. This field can be | 291 * documented in the section titled Refactorings, labeled as “Options”
. This field can be |
| 292 * omitted if the refactoring does not require any options or if the v
alues of those | 292 * omitted if the refactoring does not require any options or if the v
alues of those |
| 293 * options are not known. | 293 * options are not known. |
| 294 */ | 294 */ |
| 295 public void edit_getRefactoring(String kind, String file, Integer offset, Inte
ger length, Boolean validateOnly, RefactoringOptions options, GetRefactoringCons
umer consumer); | 295 public void edit_getRefactoring(String kind, String file, int offset, int leng
th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con
sumer); |
| 296 | 296 |
| 297 /** | 297 /** |
| 298 * Remove the given listener from the list of listeners that will receive noti
fication when new | 298 * Remove the given listener from the list of listeners that will receive noti
fication when new |
| 299 * analysis results become available. | 299 * analysis results become available. |
| 300 * | 300 * |
| 301 * @param listener the listener to be removed | 301 * @param listener the listener to be removed |
| 302 */ | 302 */ |
| 303 public void removeAnalysisServerListener(AnalysisServerListener listener); | 303 public void removeAnalysisServerListener(AnalysisServerListener listener); |
| 304 | 304 |
| 305 /** | 305 /** |
| 306 * {@code search.findElementReferences} | 306 * {@code search.findElementReferences} |
| 307 * | 307 * |
| 308 * Perform a search for references to the element defined or referenced at the
given offset in the | 308 * Perform a search for references to the element defined or referenced at the
given offset in the |
| 309 * given file. | 309 * given file. |
| 310 * | 310 * |
| 311 * An identifier is returned immediately, and individual results will be retur
ned via the | 311 * An identifier is returned immediately, and individual results will be retur
ned via the |
| 312 * search.results notification as they become available. | 312 * search.results notification as they become available. |
| 313 * | 313 * |
| 314 * @param file The file containing the declaration of or reference to the elem
ent used to define | 314 * @param file The file containing the declaration of or reference to the elem
ent used to define |
| 315 * the search. | 315 * the search. |
| 316 * @param offset The offset within the file of the declaration of or reference
to the element. | 316 * @param offset The offset within the file of the declaration of or reference
to the element. |
| 317 * @param includePotential True if potential matches are to be included in the
results. | 317 * @param includePotential True if potential matches are to be included in the
results. |
| 318 */ | 318 */ |
| 319 public void search_findElementReferences(String file, Integer offset, Boolean
includePotential, FindElementReferencesConsumer consumer); | 319 public void search_findElementReferences(String file, int offset, boolean incl
udePotential, FindElementReferencesConsumer consumer); |
| 320 | 320 |
| 321 /** | 321 /** |
| 322 * {@code search.findMemberDeclarations} | 322 * {@code search.findMemberDeclarations} |
| 323 * | 323 * |
| 324 * Perform a search for declarations of members whose name is equal to the giv
en name. | 324 * Perform a search for declarations of members whose name is equal to the giv
en name. |
| 325 * | 325 * |
| 326 * An identifier is returned immediately, and individual results will be retur
ned via the | 326 * An identifier is returned immediately, and individual results will be retur
ned via the |
| 327 * search.results notification as they become available. | 327 * search.results notification as they become available. |
| 328 * | 328 * |
| 329 * @param name The name of the declarations to be found. | 329 * @param name The name of the declarations to be found. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 359 | 359 |
| 360 /** | 360 /** |
| 361 * {@code search.getTypeHierarchy} | 361 * {@code search.getTypeHierarchy} |
| 362 * | 362 * |
| 363 * Return the type hierarchy of the class declared or referenced at the given
location. | 363 * Return the type hierarchy of the class declared or referenced at the given
location. |
| 364 * | 364 * |
| 365 * @param file The file containing the declaration or reference to the type fo
r which a hierarchy | 365 * @param file The file containing the declaration or reference to the type fo
r which a hierarchy |
| 366 * is being requested. | 366 * is being requested. |
| 367 * @param offset The offset of the name of the type within the file. | 367 * @param offset The offset of the name of the type within the file. |
| 368 */ | 368 */ |
| 369 public void search_getTypeHierarchy(String file, Integer offset, GetTypeHierar
chyConsumer consumer); | 369 public void search_getTypeHierarchy(String file, int offset, GetTypeHierarchyC
onsumer consumer); |
| 370 | 370 |
| 371 /** | 371 /** |
| 372 * {@code server.getVersion} | 372 * {@code server.getVersion} |
| 373 * | 373 * |
| 374 * Return the version number of the analysis server. | 374 * Return the version number of the analysis server. |
| 375 */ | 375 */ |
| 376 public void server_getVersion(GetVersionConsumer consumer); | 376 public void server_getVersion(GetVersionConsumer consumer); |
| 377 | 377 |
| 378 /** | 378 /** |
| 379 * {@code server.setSubscriptions} | 379 * {@code server.setSubscriptions} |
| (...skipping 19 matching lines...) Expand all Loading... |
| 399 | 399 |
| 400 /** | 400 /** |
| 401 * Start the analysis server. | 401 * Start the analysis server. |
| 402 * | 402 * |
| 403 * @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 |
| 404 * restarting it, or zero if the server should not be restarted. | 404 * restarting it, or zero if the server should not be restarted. |
| 405 */ | 405 */ |
| 406 public void start(long millisToRestart) throws Exception; | 406 public void start(long millisToRestart) throws Exception; |
| 407 | 407 |
| 408 } | 408 } |
| OLD | NEW |