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

Side by Side Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisServer.java

Issue 833903005: Analysis server format service wiring (and protocol doc update). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
OLDNEW
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 public void completion_getSuggestions(String file, int offset, GetSuggestionsC onsumer consumer); 226 public void completion_getSuggestions(String file, int offset, GetSuggestionsC onsumer consumer);
227 227
228 /** 228 /**
229 * {@code edit.format} 229 * {@code edit.format}
230 * 230 *
231 * Format the contents of a single file. The currently selected region of text is passed in so that 231 * Format the contents of a single file. The currently selected region of text is passed in so that
232 * the selection can be preserved across the formatting operation. The updated selection will be as 232 * the selection can be preserved across the formatting operation. The updated selection will be as
233 * close to matching the original as possible, but whitespace at the beginning or end of the 233 * close to matching the original as possible, but whitespace at the beginning or end of the
234 * selected region will be ignored. 234 * selected region will be ignored.
235 * 235 *
236 * If a request is made for a file which does not exist, or which is not curre ntly subject to
237 * analysis (e.g. because it is not associated with any analysis root specifie d to
238 * analysis.setAnalysisRoots), an error of type FORMAT_INVALID_FILE will be ge nerated.
239 *
236 * @param file The file containing the code to be formatted. 240 * @param file The file containing the code to be formatted.
237 * @param selectionOffset The offset of the current selection in the file. 241 * @param selectionOffset The offset of the current selection in the file.
238 * @param selectionLength The length of the current selection in the file. 242 * @param selectionLength The length of the current selection in the file.
239 */ 243 */
240 public void edit_format(String file, int selectionOffset, int selectionLength, FormatConsumer consumer); 244 public void edit_format(String file, int selectionOffset, int selectionLength, FormatConsumer consumer);
241 245
242 /** 246 /**
243 * {@code edit.getAssists} 247 * {@code edit.getAssists}
244 * 248 *
245 * Return the set of assists that are available at the given location. An assi st is distinguished 249 * Return the set of assists that are available at the given location. An assi st is distinguished
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 * the response to this request has been sent. 465 * the response to this request has been sent.
462 */ 466 */
463 public void server_shutdown(); 467 public void server_shutdown();
464 468
465 /** 469 /**
466 * Start the analysis server. 470 * Start the analysis server.
467 */ 471 */
468 public void start() throws Exception; 472 public void start() throws Exception;
469 473
470 } 474 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/doc/api.html » ('j') | pkg/analysis_server/lib/src/edit/edit_domain.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698