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