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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 */ | 338 */ |
339 public void edit_sortMembers(String file, SortMembersConsumer consumer); | 339 public void edit_sortMembers(String file, SortMembersConsumer consumer); |
340 | 340 |
341 /** | 341 /** |
342 * {@code execution.createContext} | 342 * {@code execution.createContext} |
343 * | 343 * |
344 * Create an execution context for the executable file with the given path. Th
e context that is | 344 * Create an execution context for the executable file with the given path. Th
e context that is |
345 * created will persist until execution.deleteContext is used to delete it. Cl
ients, therefore, are | 345 * created will persist until execution.deleteContext is used to delete it. Cl
ients, therefore, are |
346 * responsible for managing the lifetime of execution contexts. | 346 * responsible for managing the lifetime of execution contexts. |
347 * | 347 * |
348 * @param contextRoot The path of the Dart or HTML file that will be launched. | 348 * @param contextRoot The path of the Dart or HTML file that will be launched,
or the path of the |
| 349 * directory containing the file. |
349 */ | 350 */ |
350 public void execution_createContext(String contextRoot, CreateContextConsumer
consumer); | 351 public void execution_createContext(String contextRoot, CreateContextConsumer
consumer); |
351 | 352 |
352 /** | 353 /** |
353 * {@code execution.deleteContext} | 354 * {@code execution.deleteContext} |
354 * | 355 * |
355 * Delete the execution context with the given identifier. The context id is n
o longer valid after | 356 * Delete the execution context with the given identifier. The context id is n
o longer valid after |
356 * this command. The server is allowed to re-use ids when they are no longer v
alid. | 357 * this command. The server is allowed to re-use ids when they are no longer v
alid. |
357 * | 358 * |
358 * @param id The identifier of the execution context that is to be deleted. | 359 * @param id The identifier of the execution context that is to be deleted. |
359 */ | 360 */ |
360 public void execution_deleteContext(String id); | 361 public void execution_deleteContext(String id); |
361 | 362 |
362 /** | 363 /** |
363 * {@code execution.mapUri} | 364 * {@code execution.mapUri} |
364 * | 365 * |
365 * Map a URI from the execution context to the file that it corresponds to, or
map a file to the | 366 * Map a URI from the execution context to the file that it corresponds to, or
map a file to the |
366 * URI that it corresponds to in the execution context. | 367 * URI that it corresponds to in the execution context. |
367 * | 368 * |
368 * Exactly one of the file and uri fields must be provided. | 369 * Exactly one of the file and uri fields must be provided. If both fields are
provided, then an |
| 370 * error of type INVALID_PARAMETER will be generated. Similarly, if neither fi
eld is provided, then |
| 371 * an error of type INVALID_PARAMETER will be generated. |
369 * | 372 * |
370 * If the file field is provided and the value is not the path of a file (eith
er the file does not | 373 * If the file field is provided and the value is not the path of a file (eith
er the file does not |
371 * exist or the path references something other than a file), then an error of
type | 374 * exist or the path references something other than a file), then an error of
type |
372 * MAP_URI_INVALID_FILE will be generated. | 375 * INVALID_PARAMETER will be generated. |
373 * | 376 * |
374 * If the uri field is provided and the value is not a valid URI or if the URI
references something | 377 * If the uri field is provided and the value is not a valid URI or if the URI
references something |
375 * that is not a file (either a file that does not exist or something other th
an a file), then an | 378 * that is not a file (either a file that does not exist or something other th
an a file), then an |
376 * error of type MAP_URI_INVALID_URI will be generated. | 379 * error of type INVALID_PARAMETER will be generated. |
377 * | 380 * |
378 * If the contextRoot used to create the execution context is not a file (eith
er the file does not | 381 * If the contextRoot used to create the execution context does not exist, the
n an error of type |
379 * exist or the path references something other than a file), then an error of
type | |
380 * INVALID_EXECUTION_CONTEXT will be generated. | 382 * INVALID_EXECUTION_CONTEXT will be generated. |
381 * | 383 * |
382 * @param id The identifier of the execution context in which the URI is to be
mapped. | 384 * @param id The identifier of the execution context in which the URI is to be
mapped. |
383 * @param file The path of the file to be mapped into a URI. | 385 * @param file The path of the file to be mapped into a URI. |
384 * @param uri The URI to be mapped into a file path. | 386 * @param uri The URI to be mapped into a file path. |
385 */ | 387 */ |
386 public void execution_mapUri(String id, String file, String uri, MapUriConsume
r consumer); | 388 public void execution_mapUri(String id, String file, String uri, MapUriConsume
r consumer); |
387 | 389 |
388 /** | 390 /** |
389 * {@code execution.setSubscriptions} | 391 * {@code execution.setSubscriptions} |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 * the response to this request has been sent. | 506 * the response to this request has been sent. |
505 */ | 507 */ |
506 public void server_shutdown(); | 508 public void server_shutdown(); |
507 | 509 |
508 /** | 510 /** |
509 * Start the analysis server. | 511 * Start the analysis server. |
510 */ | 512 */ |
511 public void start() throws Exception; | 513 public void start() throws Exception; |
512 | 514 |
513 } | 515 } |
OLD | NEW |