Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java

Issue 2784673003: Add getStatementCompletion to the API spec (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015, the Dart project authors. 2 * Copyright (c) 2015, 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 * validated and no change be generated. 380 * validated and no change be generated.
381 * @param options Data used to provide values provided by the user. The struct ure of the data is 381 * @param options Data used to provide values provided by the user. The struct ure of the data is
382 * dependent on the kind of refactoring being performed. The data that is expected is 382 * dependent on the kind of refactoring being performed. The data that is expected is
383 * documented in the section titled Refactorings, labeled as "Options" . This field can be 383 * documented in the section titled Refactorings, labeled as "Options" . This field can be
384 * omitted if the refactoring does not require any options or if the v alues of those 384 * omitted if the refactoring does not require any options or if the v alues of those
385 * options are not known. 385 * options are not known.
386 */ 386 */
387 public void edit_getRefactoring(String kind, String file, int offset, int leng th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con sumer); 387 public void edit_getRefactoring(String kind, String file, int offset, int leng th, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer con sumer);
388 388
389 /** 389 /**
390 * {@code edit.getStatementCompletion}
391 *
392 * Get the changes required to convert the partial statement at the given loca tion into a
393 * syntactically valid statement. If the current statement is already valid th e change will insert
394 * a newline plus appropriate indentation at the end of the line containing th e offset and set the
395 * selectionOffset to the position corresponding to the end of the indent. If a change that makes
396 * the statement valid cannot be determined (perhaps because it has not yet be en implemented) the
397 * statement will be considered already valid and the appropriate change retur ned.
398 *
399 * @param file The file containing the statement to be completed.
400 * @param offset The offset used to identify the statement to be completed.
401 */
402 public void edit_getStatementCompletion(String file, int offset, GetStatementC ompletionConsumer consumer);
403
404 /**
390 * {@code edit.organizeDirectives} 405 * {@code edit.organizeDirectives}
391 * 406 *
392 * Organizes all of the directives - removes unused imports and sorts directiv es of the given Dart 407 * Organizes all of the directives - removes unused imports and sorts directiv es of the given Dart
393 * file according to the Dart Style Guide. 408 * file according to the Dart Style Guide.
394 * 409 *
395 * If a request is made for a file that does not exist, does not belong to an analysis root or is 410 * If a request is made for a file that does not exist, does not belong to an analysis root or is
396 * not a Dart file, FILE_NOT_ANALYZED will be generated. 411 * not a Dart file, FILE_NOT_ANALYZED will be generated.
397 * 412 *
398 * If directives of the Dart file cannot be organized, for example because it has scan or parse 413 * If directives of the Dart file cannot be organized, for example because it has scan or parse
399 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. T he message will 414 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. T he message will
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 * the response to this request has been sent. 603 * the response to this request has been sent.
589 */ 604 */
590 public void server_shutdown(); 605 public void server_shutdown();
591 606
592 /** 607 /**
593 * Start the analysis server. 608 * Start the analysis server.
594 */ 609 */
595 public void start() throws Exception; 610 public void start() throws Exception;
596 611
597 } 612 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698