Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
AnalysisServer.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 *
6 * This file has been automatically generated. Please do not edit it manually.
7 * To regenerate the file, use the script "pkg/analysis_server/tool/spec/generate_files".
8 */
9package com.google.dart.server.generated;
10
11import com.google.dart.server.*;
12import org.dartlang.analysis.server.protocol.*;
13
14import java.util.List;
15import java.util.Map;
16
17/**
18 * The interface {@code AnalysisServer} defines the behavior of objects that interface to an
19 * analysis server.
20 *
21 * @coverage dart.server
22 */
23public interface AnalysisServer {
24
25 /**
26 * Add the given listener to the list of listeners that will receive notification when new
27 * analysis results become available.
28 *
29 * @param listener the listener to be added
30 */
31 public void addAnalysisServerListener(AnalysisServerListener listener);
32
33 /**
34 * Add the given listener to the list of listeners that will receive notification when
35 * requests are made by an analysis server client.
36 *
37 * @param listener the listener to be added
38 */
39 public void addRequestListener(RequestListener listener);
40
41 /**
42 * Add the given listener to the list of listeners that will receive notification when
43 * responses are received by an analysis server client.
44 *
45 * @param listener the listener to be added
46 */
47 public void addResponseListener(ResponseListener listener);
48
49 /**
50 * Add the given listener to the list of listeners that will receive notification when the server
51 * is not active
52 *
53 * @param listener the listener to be added
54 */
55 public void addStatusListener(AnalysisServerStatusListener listener);
56
57 /**
58 * {@code analysis.getErrors}
59 *
60 * Return the errors associated with the given file. If the errors for the given file have not yet
61 * been computed, or the most recently computed errors for the given file are out of date, then the
62 * response for this request will be delayed until they have been computed. If some or all of the
63 * errors for the file cannot be computed, then the subset of the errors that can be computed will
64 * be returned and the response will contain an error to indicate why the errors could not be
65 * computed. If the content of the file changes after this request was received but before a
66 * response could be sent, then an error of type CONTENT_MODIFIED will be generated.
67 *
68 * This request is intended to be used by clients that cannot asynchronously apply updated error
69 * information. Clients that can apply error information as it becomes available should use the
70 * information provided by the 'analysis.errors' notification.
71 *
72 * If a request is made for a file which does not exist, or which is not currently subject to
73 * analysis (e.g. because it is not associated with any analysis root specified to
74 * analysis.setAnalysisRoots), an error of type GET_ERRORS_INVALID_FILE will be generated.
75 *
76 * @param file The file for which errors are being requested.
77 */
78 public void analysis_getErrors(String file, GetErrorsConsumer consumer);
79
80 /**
81 * {@code analysis.getHover}
82 *
83 * Return the hover information associate with the given location. If some or all of the hover
84 * information is not available at the time this request is processed the information will be
85 * omitted from the response.
86 *
87 * @param file The file in which hover information is being requested.
88 * @param offset The offset for which hover information is being requested.
89 */
90 public void analysis_getHover(String file, int offset, GetHoverConsumer consumer);
91
92 /**
93 * {@code analysis.getImportedElements}
94 *
95 * Return a description of all of the elements referenced in a given region of a given file that
96 * come from imported libraries.
97 *
98 * If a request is made for a file that does not exist, or that is not currently subject to
99 * analysis (e.g. because it is not associated with any analysis root specified via
100 * analysis.setAnalysisRoots), an error of type GET_IMPORTED_ELEMENTS_INVALID_FILE will be
101 * generated.
102 *
103 * @param file The file in which import information is being requested.
104 * @param offset The offset of the region for which import information is being requested.
105 * @param length The length of the region for which import information is being requested.
106 */
107 public void analysis_getImportedElements(String file, int offset, int length, GetImportedElementsConsumer consumer);
108
109 /**
110 * {@code analysis.getLibraryDependencies}
111 *
112 * Return library dependency information for use in client-side indexing and package URI
113 * resolution.
114 *
115 * Clients that are only using the libraries field should consider using the analyzedFiles
116 * notification instead.
117 */
118 public void analysis_getLibraryDependencies(GetLibraryDependenciesConsumer consumer);
119
120 /**
121 * {@code analysis.getNavigation}
122 *
123 * Return the navigation information associated with the given region of the given file. If the
124 * navigation information for the given file has not yet been computed, or the most recently
125 * computed navigation information for the given file is out of date, then the response for this
126 * request will be delayed until it has been computed. If the content of the file changes after
127 * this request was received but before a response could be sent, then an error of type
128 * CONTENT_MODIFIED will be generated.
129 *
130 * If a navigation region overlaps (but extends either before or after) the given region of the
131 * file it will be included in the result. This means that it is theoretically possible to get the
132 * same navigation region in response to multiple requests. Clients can avoid this by always
133 * choosing a region that starts at the beginning of a line and ends at the end of a (possibly
134 * different) line in the file.
135 *
136 * If a request is made for a file which does not exist, or which is not currently subject to
137 * analysis (e.g. because it is not associated with any analysis root specified to
138 * analysis.setAnalysisRoots), an error of type GET_NAVIGATION_INVALID_FILE will be generated.
139 *
140 * @param file The file in which navigation information is being requested.
141 * @param offset The offset of the region for which navigation information is being requested.
142 * @param length The length of the region for which navigation information is being requested.
143 */
144 public void analysis_getNavigation(String file, int offset, int length, GetNavigationConsumer consumer);
145
146 /**
147 * {@code analysis.getReachableSources}
148 *
149 * Return the transitive closure of reachable sources for a given file.
150 *
151 * If a request is made for a file which does not exist, or which is not currently subject to
152 * analysis (e.g. because it is not associated with any analysis root specified to
153 * analysis.setAnalysisRoots), an error of type GET_REACHABLE_SOURCES_INVALID_FILE will be
154 * generated.
155 *
156 * @param file The file for which reachable source information is being requested.
157 *
158 * @deprecated
159 */
160 public void analysis_getReachableSources(String file, GetReachableSourcesConsumer consumer);
161
162 /**
163 * {@code analysis.getSignature}
164 *
165 * Return the signature information associated with the given location in the given file. If the
166 * signature information for the given file has not yet been computed, or the most recently
167 * computed signature information for the given file is out of date, then the response for this
168 * request will be delayed until it has been computed. If a request is made for a file which does
169 * not exist, or which is not currently subject to analysis (e.g. because it is not associated with
170 * any analysis root specified to analysis.setAnalysisRoots), an error of type
171 * GET_SIGNATURE_INVALID_FILE will be generated. If the location given is not inside the argument
172 * list for a function (including method and constructor) invocation, then an error of type
173 * GET_SIGNATURE_INVALID_OFFSET will be generated. If the location is inside an argument list but
174 * the function is not defined or cannot be determined (such as a method invocation where the
175 * target has type 'dynamic') then an error of type GET_SIGNATURE_UNKNOWN_FUNCTION will be
176 * generated.
177 *
178 * @param file The file in which signature information is being requested.
179 * @param offset The location for which signature information is being requested.
180 */
181 public void analysis_getSignature(String file, int offset, GetSignatureConsumer consumer);
182
183 /**
184 * {@code analysis.reanalyze}
185 *
186 * Force re-reading of all potentially changed files, re-resolving of all referenced URIs, and
187 * corresponding re-analysis of everything affected in the current analysis roots.
188 */
189 public void analysis_reanalyze();
190
191 /**
192 * {@code analysis.setAnalysisRoots}
193 *
194 * Sets the root paths used to determine which files to analyze. The set of files to be analyzed
195 * are all of the files in one of the root paths that are not either explicitly or implicitly
196 * excluded. A file is explicitly excluded if it is in one of the excluded paths. A file is
197 * implicitly excluded if it is in a subdirectory of one of the root paths where the name of the
198 * subdirectory starts with a period (that is, a hidden directory).
199 *
200 * Note that this request determines the set of requested analysis roots. The actual set of
201 * analysis roots at any given time is the intersection of this set with the set of files and
202 * directories actually present on the filesystem. When the filesystem changes, the actual set of
203 * analysis roots is automatically updated, but the set of requested analysis roots is unchanged.
204 * This means that if the client sets an analysis root before the root becomes visible to server in
205 * the filesystem, there is no error; once the server sees the root in the filesystem it will start
206 * analyzing it. Similarly, server will stop analyzing files that are removed from the file system
207 * but they will remain in the set of requested roots.
208 *
209 * If an included path represents a file, then server will look in the directory containing the
210 * file for a pubspec.yaml file. If none is found, then the parents of the directory will be
211 * searched until such a file is found or the root of the file system is reached. If such a file is
212 * found, it will be used to resolve package: URI's within the file.
213 *
214 * @param included A list of the files and directories that should be analyzed.
215 * @param excluded A list of the files and directories within the included directories that should
216 * not be analyzed.
217 * @param packageRoots A mapping from source directories to package roots that should override the
218 * normal package: URI resolution mechanism. If a package root is a file, then the analyzer
219 * will behave as though that file is a ".dart_tool/package_config.json" file in the source
220 * directory. The effect is the same as specifying the file as a "--packages" parameter to
221 * the Dart VM when executing any Dart file inside the source directory. Files in any
222 * directories that are not overridden by this mapping have their package: URI's resolved
223 * using the normal pubspec.yaml mechanism. If this field is absent, or the empty map is
224 * specified, that indicates that the normal pubspec.yaml mechanism should always be used.
225 */
226 public void analysis_setAnalysisRoots(List<String> included, List<String> excluded, Map<String, String> packageRoots);
227
228 /**
229 * {@code analysis.setGeneralSubscriptions}
230 *
231 * Subscribe for general services (that is, services that are not specific to individual files).
232 * All previous subscriptions are replaced by the given set of services.
233 *
234 * It is an error if any of the elements in the list are not valid services. If there is an error,
235 * then the current subscriptions will remain unchanged.
236 *
237 * @param subscriptions A list of the services being subscribed to.
238 */
240
241 /**
242 * {@code analysis.setPriorityFiles}
243 *
244 * Set the priority files to the files in the given list. A priority file is a file that is given
245 * priority when scheduling which analysis work to do first. The list typically contains those
246 * files that are visible to the user and those for which analysis results will have the biggest
247 * impact on the user experience. The order of the files within the list is significant: the first
248 * file will be given higher priority than the second, the second higher priority than the third,
249 * and so on.
250 *
251 * Note that this request determines the set of requested priority files. The actual set of
252 * priority files is the intersection of the requested set of priority files with the set of files
253 * currently subject to analysis. (See analysis.setSubscriptions for a description of files that
254 * are subject to analysis.)
255 *
256 * If a requested priority file is a directory it is ignored, but remains in the set of requested
257 * priority files so that if it later becomes a file it can be included in the set of actual
258 * priority files.
259 *
260 * @param files The files that are to be a priority for analysis.
261 */
263
264 /**
265 * {@code analysis.setSubscriptions}
266 *
267 * Subscribe for services that are specific to individual files. All previous subscriptions are
268 * replaced by the current set of subscriptions. If a given service is not included as a key in the
269 * map then no files will be subscribed to the service, exactly as if the service had been included
270 * in the map with an explicit empty list of files.
271 *
272 * Note that this request determines the set of requested subscriptions. The actual set of
273 * subscriptions at any given time is the intersection of this set with the set of files currently
274 * subject to analysis. The files currently subject to analysis are the set of files contained
275 * within an actual analysis root but not excluded, plus all of the files transitively reachable
276 * from those files via import, export and part directives. (See analysis.setAnalysisRoots for an
277 * explanation of how the actual analysis roots are determined.) When the actual analysis roots
278 * change, the actual set of subscriptions is automatically updated, but the set of requested
279 * subscriptions is unchanged.
280 *
281 * If a requested subscription is a directory it is ignored, but remains in the set of requested
282 * subscriptions so that if it later becomes a file it can be included in the set of actual
283 * subscriptions.
284 *
285 * It is an error if any of the keys in the map are not valid services. If there is an error, then
286 * the existing subscriptions will remain unchanged.
287 *
288 * @param subscriptions A table mapping services to a list of the files being subscribed to the
289 * service.
290 */
291 public void analysis_setSubscriptions(Map<String, List<String>> subscriptions);
292
293 /**
294 * {@code analysis.updateContent}
295 *
296 * Update the content of one or more files. Files that were previously updated but not included in
297 * this update remain unchanged. This effectively represents an overlay of the filesystem. The
298 * files whose content is overridden are therefore seen by server as being files with the given
299 * content, even if the files do not exist on the filesystem or if the file path represents the
300 * path to a directory on the filesystem.
301 *
302 * @param files A table mapping the files whose content has changed to a description of the content
303 * change.
304 */
305 public void analysis_updateContent(Map<String, Object> files, UpdateContentConsumer consumer);
306
307 /**
308 * {@code analysis.updateOptions}
309 *
310 * Deprecated: all of the options can be set by users in an analysis options file.
311 *
312 * Update the options controlling analysis based on the given set of options. Any options that are
313 * not included in the analysis options will not be changed. If there are options in the analysis
314 * options that are not valid, they will be silently ignored.
315 *
316 * @param options The options that are to be used to control analysis.
317 *
318 * @deprecated
319 */
320 public void analysis_updateOptions(AnalysisOptions options);
321
322 /**
323 * {@code analytics.enable}
324 *
325 * Enable or disable the sending of analytics data. Note that there are other ways for users to
326 * change this setting, so clients cannot assume that they have complete control over this setting.
327 * In particular, there is no guarantee that the result returned by the isEnabled request will
328 * match the last value set via this request.
329 *
330 * @param value Enable or disable analytics.
331 */
332 public void analytics_enable(boolean value);
333
334 /**
335 * {@code analytics.isEnabled}
336 *
337 * Query whether analytics is enabled.
338 *
339 * This flag controls whether the analysis server sends any analytics data to the cloud. If
340 * disabled, the analysis server does not send any analytics data, and any data sent to it by
341 * clients (from sendEvent and sendTiming) will be ignored.
342 *
343 * The value of this flag can be changed by other tools outside of the analysis server's process.
344 * When you query the flag, you get the value of the flag at a given moment. Clients should not use
345 * the value returned to decide whether or not to send the sendEvent and sendTiming requests. Those
346 * requests should be used unconditionally and server will determine whether or not it is
347 * appropriate to forward the information to the cloud at the time each request is received.
348 */
349 public void analytics_isEnabled(IsEnabledConsumer consumer);
350
351 /**
352 * {@code analytics.sendEvent}
353 *
354 * Send information about client events.
355 *
356 * Ask the analysis server to include the fact that an action was performed in the client as part
357 * of the analytics data being sent. The data will only be included if the sending of analytics
358 * data is enabled at the time the request is processed. The action that was performed is indicated
359 * by the value of the action field.
360 *
361 * The value of the action field should not include the identity of the client. The analytics data
362 * sent by server will include the client id passed in using the --client-id command-line argument.
363 * The request will be ignored if the client id was not provided when server was started.
364 *
365 * @param action The value used to indicate which action was performed.
366 */
367 public void analytics_sendEvent(String action);
368
369 /**
370 * {@code analytics.sendTiming}
371 *
372 * Send timing information for client events (e.g. code completions).
373 *
374 * Ask the analysis server to include the fact that a timed event occurred as part of the analytics
375 * data being sent. The data will only be included if the sending of analytics data is enabled at
376 * the time the request is processed.
377 *
378 * The value of the event field should not include the identity of the client. The analytics data
379 * sent by server will include the client id passed in using the --client-id command-line argument.
380 * The request will be ignored if the client id was not provided when server was started.
381 *
382 * @param event The name of the event.
383 * @param millis The duration of the event in milliseconds.
384 */
385 public void analytics_sendTiming(String event, int millis);
386
387 /**
388 * {@code completion.getSuggestionDetails2}
389 *
390 * Clients must make this request when the user has selected a completion suggestion with the
391 * isNotImported field set to true. The server will respond with the text to insert, as well as any
392 * SourceChange that needs to be applied in case the completion requires an additional import to be
393 * added. The text to insert might be different from the original suggestion to include an import
394 * prefix if the library will be imported with a prefix to avoid shadowing conflicts in the file.
395 *
396 * @param file The path of the file into which this completion is being inserted.
397 * @param offset The offset in the file where the completion will be inserted.
398 * @param completion The completion from the selected CompletionSuggestion. It could be a name of a
399 * class, or a name of a constructor in form "typeName.constructorName()", or an enumeration
400 * constant in form "enumName.constantName", etc.
401 * @param libraryUri The URI of the library to import, so that the element referenced in the
402 * completion becomes accessible.
403 */
404 public void completion_getSuggestionDetails2(String file, int offset, String completion, String libraryUri, GetSuggestionDetails2Consumer consumer);
405
406 /**
407 * {@code completion.getSuggestions2}
408 *
409 * Request that completion suggestions for the given offset in the given file be returned. The
410 * suggestions will be filtered using fuzzy matching with the already existing prefix.
411 *
412 * @param file The file containing the point at which suggestions are to be made.
413 * @param offset The offset within the file at which suggestions are to be made.
414 * @param maxResults The maximum number of suggestions to return. If the number of suggestions
415 * after filtering is greater than the maxResults, then isIncomplete is set to true.
416 * @param completionCaseMatchingMode The mode of code completion being invoked. If no value is
417 * provided, MATCH_FIRST_CHAR will be assumed.
418 * @param completionMode The mode of code completion being invoked. If no value is provided, BASIC
419 * will be assumed. BASIC is also the only currently supported.
420 * @param invocationCount The number of times that the user has invoked code completion at the same
421 * code location, counting from 1. If no value is provided, 1 will be assumed.
422 * @param timeout The approximate time in milliseconds that the server should spend. The server
423 * will perform some steps anyway, even if it takes longer than the specified timeout. This
424 * field is intended to be used for benchmarking, and usually should not be provided, so
425 * that the default timeout is used.
426 */
427 public void completion_getSuggestions2(String file, int offset, int maxResults, String completionCaseMatchingMode, String completionMode, int invocationCount, int timeout, GetSuggestions2Consumer consumer);
428
429 /**
430 * {@code completion.registerLibraryPaths}
431 *
432 * The client can make this request to express interest in certain libraries to receive completion
433 * suggestions from based on the client path. If this request is received before the client has
434 * used 'completion.setSubscriptions' to subscribe to the AVAILABLE_SUGGESTION_SETS service, then
435 * an error of type NOT_SUBSCRIBED_TO_AVAILABLE_SUGGESTION_SETS will be generated. All previous
436 * paths are replaced by the given set of paths.
437 *
438 * @param paths A list of objects each containing a path and the additional libraries from which
439 * the client is interested in receiving completion suggestions. If one configured path is
440 * beneath another, the descendant will override the ancestors' configured libraries of
441 * interest.
442 *
443 * @deprecated
444 */
446
447 /**
448 * {@code diagnostic.getDiagnostics}
449 *
450 * Return server diagnostics.
451 */
452 public void diagnostic_getDiagnostics(GetDiagnosticsConsumer consumer);
453
454 /**
455 * {@code diagnostic.getServerPort}
456 *
457 * Return the port of the diagnostic web server. If the server is not running this call will start
458 * the server. If unable to start the diagnostic web server, this call will return an error of
459 * DEBUG_PORT_COULD_NOT_BE_OPENED.
460 */
461 public void diagnostic_getServerPort(GetServerPortConsumer consumer);
462
463 /**
464 * {@code edit.bulkFixes}
465 *
466 * Analyze the specified sources for fixes that can be applied in bulk and return a set of
467 * suggested edits for those sources. These edits may include changes to sources outside the set of
468 * specified sources if a change in a specified source requires it.
469 *
470 * @param included A list of the files and directories for which edits should be suggested. If a
471 * request is made with a path that is invalid, e.g. is not absolute and normalized, an
472 * error of type INVALID_FILE_PATH_FORMAT will be generated. If a request is made for a file
473 * which does not exist, or which is not currently subject to analysis (e.g. because it is
474 * not associated with any analysis root specified to analysis.setAnalysisRoots), an error
475 * of type FILE_NOT_ANALYZED will be generated.
476 * @param inTestMode A flag indicating whether the bulk fixes are being run in test mode. The only
477 * difference is that in test mode the fix processor will look for a configuration file that
478 * can modify the content of the data file used to compute the fixes when data-driven fixes
479 * are being considered. If this field is omitted the flag defaults to false.
480 * @param updatePubspec A flag indicating whether to validate that the dependencies used by the
481 * included files are listed in the pubspec file. If specified, the fix processor will
482 * compute the set of packages imported in the source and check to see if they are listed in
483 * the corresponding pubspec file, and compute the fixes, if any. If this field is omitted
484 * the flag defaults to false.
485 * @param codes A list of diagnostic codes to be fixed.
486 */
487 public void edit_bulkFixes(List<String> included, boolean inTestMode, boolean updatePubspec, List<String> codes, BulkFixesConsumer consumer);
488
489 /**
490 * {@code edit.format}
491 *
492 * Format the contents of a single file. The currently selected region of text is passed in so that
493 * the selection can be preserved across the formatting operation. The updated selection will be as
494 * close to matching the original as possible, but whitespace at the beginning or end of the
495 * selected region will be ignored. If preserving selection information is not required, zero (0)
496 * can be specified for both the selection offset and selection length.
497 *
498 * If a request is made for a file which does not exist, or which is not currently subject to
499 * analysis (e.g. because it is not associated with any analysis root specified to
500 * analysis.setAnalysisRoots), an error of type FORMAT_INVALID_FILE will be generated. If the
501 * source contains syntax errors, an error of type FORMAT_WITH_ERRORS will be generated.
502 *
503 * @param file The file containing the code to be formatted.
504 * @param selectionOffset The offset of the current selection in the file.
505 * @param selectionLength The length of the current selection in the file.
506 * @param lineLength The line length to be used by the formatter.
507 */
508 public void edit_format(String file, int selectionOffset, int selectionLength, int lineLength, FormatConsumer consumer);
509
510 /**
511 * {@code edit.formatIfEnabled}
512 *
513 * Format the contents of the files in one or more directories, but only if the analysis options
514 * file for those files has enabled the 'format' option.
515 *
516 * If any of the specified directories does not exist, that directory will be ignored. If any of
517 * the files that are eligible for being formatted cannot be formatted because of a syntax error in
518 * the file, that file will be ignored.
519 *
520 * @param directories The paths of the directories containing the code to be formatted.
521 */
522 public void edit_formatIfEnabled(List<String> directories, FormatIfEnabledConsumer consumer);
523
524 /**
525 * {@code edit.getAssists}
526 *
527 * Return the set of assists that are available at the given location. An assist is distinguished
528 * from a refactoring primarily by the fact that it affects a single file and does not require user
529 * input in order to be performed.
530 *
531 * @param file The file containing the code for which assists are being requested.
532 * @param offset The offset of the code for which assists are being requested.
533 * @param length The length of the code for which assists are being requested.
534 */
535 public void edit_getAssists(String file, int offset, int length, GetAssistsConsumer consumer);
536
537 /**
538 * {@code edit.getAvailableRefactorings}
539 *
540 * Get a list of the kinds of refactorings that are valid for the given selection in the given
541 * file.
542 *
543 * @param file The file containing the code on which the refactoring would be based.
544 * @param offset The offset of the code on which the refactoring would be based.
545 * @param length The length of the code on which the refactoring would be based.
546 */
547 public void edit_getAvailableRefactorings(String file, int offset, int length, GetAvailableRefactoringsConsumer consumer);
548
549 /**
550 * {@code edit.getFixes}
551 *
552 * Return the set of fixes that are available for the errors at a given offset in a given file.
553 *
554 * If a request is made for a file which does not exist, or which is not currently subject to
555 * analysis (e.g. because it is not associated with any analysis root specified to
556 * analysis.setAnalysisRoots), an error of type GET_FIXES_INVALID_FILE will be generated.
557 *
558 * @param file The file containing the errors for which fixes are being requested.
559 * @param offset The offset used to select the errors for which fixes will be returned.
560 */
561 public void edit_getFixes(String file, int offset, GetFixesConsumer consumer);
562
563 /**
564 * {@code edit.getPostfixCompletion}
565 *
566 * Get the changes required to convert the postfix template at the given location into the
567 * template's expanded form.
568 *
569 * @param file The file containing the postfix template to be expanded.
570 * @param key The unique name that identifies the template in use.
571 * @param offset The offset used to identify the code to which the template will be applied.
572 */
573 public void edit_getPostfixCompletion(String file, String key, int offset, GetPostfixCompletionConsumer consumer);
574
575 /**
576 * {@code edit.getRefactoring}
577 *
578 * Get the changes required to perform a refactoring.
579 *
580 * If another refactoring request is received during the processing of this one, an error of type
581 * REFACTORING_REQUEST_CANCELLED will be generated.
582 *
583 * @param kind The kind of refactoring to be performed.
584 * @param file The file containing the code involved in the refactoring.
585 * @param offset The offset of the region involved in the refactoring.
586 * @param length The length of the region involved in the refactoring.
587 * @param validateOnly True if the client is only requesting that the values of the options be
588 * validated and no change be generated.
589 * @param options Data used to provide values provided by the user. The structure of the data is
590 * dependent on the kind of refactoring being performed. The data that is expected is
591 * documented in the section titled Refactorings, labeled as "Options". This field can be
592 * omitted if the refactoring does not require any options or if the values of those options
593 * are not known.
594 */
595 public void edit_getRefactoring(String kind, String file, int offset, int length, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer consumer);
596
597 /**
598 * {@code edit.getStatementCompletion}
599 *
600 * Get the changes required to convert the partial statement at the given location into a
601 * syntactically valid statement. If the current statement is already valid the change will insert
602 * a newline plus appropriate indentation at the end of the line containing the offset. If a change
603 * that makes the statement valid cannot be determined (perhaps because it has not yet been
604 * implemented) the statement will be considered already valid and the appropriate change returned.
605 *
606 * @param file The file containing the statement to be completed.
607 * @param offset The offset used to identify the statement to be completed.
608 */
609 public void edit_getStatementCompletion(String file, int offset, GetStatementCompletionConsumer consumer);
610
611 /**
612 * {@code edit.importElements}
613 *
614 * Return a list of edits that would need to be applied in order to ensure that all of the elements
615 * in the specified list of imported elements are accessible within the library.
616 *
617 * If a request is made for a file that does not exist, or that is not currently subject to
618 * analysis (e.g. because it is not associated with any analysis root specified via
619 * analysis.setAnalysisRoots), an error of type IMPORT_ELEMENTS_INVALID_FILE will be generated.
620 *
621 * @param file The file in which the specified elements are to be made accessible.
622 * @param elements The elements to be made accessible in the specified file.
623 * @param offset The offset at which the specified elements need to be made accessible. If
624 * provided, this is used to guard against adding imports for text that would be inserted
625 * into a comment, string literal, or other location where the imports would not be
626 * necessary.
627 */
628 public void edit_importElements(String file, List<ImportedElements> elements, int offset, ImportElementsConsumer consumer);
629
630 /**
631 * {@code edit.isPostfixCompletionApplicable}
632 *
633 * Determine if the request postfix completion template is applicable at the given location in the
634 * given file.
635 *
636 * @param file The file containing the postfix template to be expanded.
637 * @param key The unique name that identifies the template in use.
638 * @param offset The offset used to identify the code to which the template will be applied.
639 */
640 public void edit_isPostfixCompletionApplicable(String file, String key, int offset, IsPostfixCompletionApplicableConsumer consumer);
641
642 /**
643 * {@code edit.listPostfixCompletionTemplates}
644 *
645 * Return a list of all postfix templates currently available.
646 */
647 public void edit_listPostfixCompletionTemplates(ListPostfixCompletionTemplatesConsumer consumer);
648
649 /**
650 * {@code edit.organizeDirectives}
651 *
652 * Organizes all of the directives - removes unused imports and sorts directives of the given Dart
653 * file according to the Dart Style Guide.
654 *
655 * If a request is made for a file that does not exist, does not belong to an analysis root or is
656 * not a Dart file, FILE_NOT_ANALYZED will be generated.
657 *
658 * If directives of the Dart file cannot be organized, for example because it has scan or parse
659 * errors, or by other reasons, ORGANIZE_DIRECTIVES_ERROR will be generated. The message will
660 * provide details about the reason.
661 *
662 * @param file The Dart file to organize directives in.
663 */
664 public void edit_organizeDirectives(String file, OrganizeDirectivesConsumer consumer);
665
666 /**
667 * {@code edit.sortMembers}
668 *
669 * Sort all of the directives, unit and class members of the given Dart file.
670 *
671 * If a request is made for a file that does not exist, does not belong to an analysis root or is
672 * not a Dart file, SORT_MEMBERS_INVALID_FILE will be generated.
673 *
674 * If the Dart file has scan or parse errors, SORT_MEMBERS_PARSE_ERRORS will be generated.
675 *
676 * @param file The Dart file to sort.
677 */
678 public void edit_sortMembers(String file, SortMembersConsumer consumer);
679
680 /**
681 * {@code execution.createContext}
682 *
683 * Create an execution context for the executable file with the given path. The context that is
684 * created will persist until execution.deleteContext is used to delete it. Clients, therefore, are
685 * responsible for managing the lifetime of execution contexts.
686 *
687 * @param contextRoot The path of the Dart or HTML file that will be launched, or the path of the
688 * directory containing the file.
689 */
690 public void execution_createContext(String contextRoot, CreateContextConsumer consumer);
691
692 /**
693 * {@code execution.deleteContext}
694 *
695 * Delete the execution context with the given identifier. The context id is no longer valid after
696 * this command. The server is allowed to re-use ids when they are no longer valid.
697 *
698 * @param id The identifier of the execution context that is to be deleted.
699 */
700 public void execution_deleteContext(String id);
701
702 /**
703 * {@code execution.getSuggestions}
704 *
705 * Request completion suggestions for the given runtime context.
706 *
707 * It might take one or two requests of this type to get completion suggestions. The first request
708 * should have only "code", "offset", and "variables", but not "expressions". If there are
709 * sub-expressions that can have different runtime types, and are considered to be safe to evaluate
710 * at runtime (e.g. getters), so using their actual runtime types can improve completion results,
711 * the server will not include the "suggestions" field in the response, and instead will return the
712 * "expressions" field. The client will use debug API to get current runtime types for these
713 * sub-expressions and send another request, this time with "expressions". If there are no
714 * interesting sub-expressions to get runtime types for, or when the "expressions" field is
715 * provided by the client, the server will return "suggestions" in the response.
716 *
717 * @param code The code to get suggestions in.
718 * @param offset The offset within the code to get suggestions at.
719 * @param contextFile The path of the context file, e.g. the file of the current debugger frame.
720 * The combination of the context file and context offset can be used to ensure that all
721 * variables of the context are available for completion (with their static types).
722 * @param contextOffset The offset in the context file, e.g. the line offset in the current
723 * debugger frame.
724 * @param variables The runtime context variables that are potentially referenced in the code.
725 * @param expressions The list of sub-expressions in the code for which the client wants to provide
726 * runtime types. It does not have to be the full list of expressions requested by the
727 * server, for missing expressions their static types will be used. When this field is
728 * omitted, the server will return completion suggestions only when there are no interesting
729 * sub-expressions in the given code. The client may provide an empty list, in this case the
730 * server will return completion suggestions.
731 */
732 public void execution_getSuggestions(String code, int offset, String contextFile, int contextOffset, List<RuntimeCompletionVariable> variables, List<RuntimeCompletionExpression> expressions, GetSuggestionsConsumer consumer);
733
734 /**
735 * {@code execution.mapUri}
736 *
737 * Map a URI from the execution context to the file that it corresponds to, or map a file to the
738 * URI that it corresponds to in the execution context.
739 *
740 * Exactly one of the file and uri fields must be provided. If both fields are provided, then an
741 * error of type INVALID_PARAMETER will be generated. Similarly, if neither field is provided, then
742 * an error of type INVALID_PARAMETER will be generated.
743 *
744 * If the file field is provided and the value is not the path of a file (either the file does not
745 * exist or the path references something other than a file), then an error of type
746 * INVALID_PARAMETER will be generated.
747 *
748 * If the uri field is provided and the value is not a valid URI or if the URI references something
749 * that is not a file (either a file that does not exist or something other than a file), then an
750 * error of type INVALID_PARAMETER will be generated.
751 *
752 * If the contextRoot used to create the execution context does not exist, then an error of type
753 * INVALID_EXECUTION_CONTEXT will be generated.
754 *
755 * @param id The identifier of the execution context in which the URI is to be mapped.
756 * @param file The path of the file to be mapped into a URI.
757 * @param uri The URI to be mapped into a file path.
758 */
759 public void execution_mapUri(String id, String file, String uri, MapUriConsumer consumer);
760
761 /**
762 * {@code execution.setSubscriptions}
763 *
764 * Deprecated: the analysis server no longer fires LAUNCH_DATA events.
765 *
766 * Subscribe for services. All previous subscriptions are replaced by the given set of services.
767 *
768 * It is an error if any of the elements in the list are not valid services. If there is an error,
769 * then the current subscriptions will remain unchanged.
770 *
771 * @param subscriptions A list of the services being subscribed to.
772 *
773 * @deprecated
774 */
775 public void execution_setSubscriptions(List<String> subscriptions);
776
777 /**
778 * {@code flutter.getWidgetDescription}
779 *
780 * Return the description of the widget instance at the given location.
781 *
782 * If the location does not have a support widget, an error of type
783 * FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET will be generated.
784 *
785 * If a change to a file happens while widget descriptions are computed, an error of type
786 * FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED will be generated.
787 *
788 * @param file The file where the widget instance is created.
789 * @param offset The offset in the file where the widget instance is created.
790 */
791 public void flutter_getWidgetDescription(String file, int offset, GetWidgetDescriptionConsumer consumer);
792
793 /**
794 * {@code flutter.setSubscriptions}
795 *
796 * Subscribe for services that are specific to individual files. All previous subscriptions are
797 * replaced by the current set of subscriptions. If a given service is not included as a key in the
798 * map then no files will be subscribed to the service, exactly as if the service had been included
799 * in the map with an explicit empty list of files.
800 *
801 * Note that this request determines the set of requested subscriptions. The actual set of
802 * subscriptions at any given time is the intersection of this set with the set of files currently
803 * subject to analysis. The files currently subject to analysis are the set of files contained
804 * within an actual analysis root but not excluded, plus all of the files transitively reachable
805 * from those files via import, export and part directives. (See analysis.setAnalysisRoots for an
806 * explanation of how the actual analysis roots are determined.) When the actual analysis roots
807 * change, the actual set of subscriptions is automatically updated, but the set of requested
808 * subscriptions is unchanged.
809 *
810 * If a requested subscription is a directory it is ignored, but remains in the set of requested
811 * subscriptions so that if it later becomes a file it can be included in the set of actual
812 * subscriptions.
813 *
814 * It is an error if any of the keys in the map are not valid services. If there is an error, then
815 * the existing subscriptions will remain unchanged.
816 *
817 * @param subscriptions A table mapping services to a list of the files being subscribed to the
818 * service.
819 */
820 public void flutter_setSubscriptions(Map<String, List<String>> subscriptions);
821
822 /**
823 * {@code flutter.setWidgetPropertyValue}
824 *
825 * Set the value of a property, or remove it.
826 *
827 * The server will generate a change that the client should apply to the project to get the value
828 * of the property set to the new value. The complexity of the change might be from updating a
829 * single literal value in the code, to updating multiple files to get libraries imported, and new
830 * intermediate widgets instantiated.
831 *
832 * @param id The identifier of the property, previously returned as a part of a
833 * FlutterWidgetProperty. An error of type FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_ID is
834 * generated if the identifier is not valid.
835 * @param value The new value to set for the property. If absent, indicates that the property
836 * should be removed. If the property corresponds to an optional parameter, the
837 * corresponding named argument is removed. If the property isRequired is true,
838 * FLUTTER_SET_WIDGET_PROPERTY_VALUE_IS_REQUIRED error is generated. If the expression is
839 * not a syntactically valid Dart code, then
840 * FLUTTER_SET_WIDGET_PROPERTY_VALUE_INVALID_EXPRESSION is reported.
841 */
842 public void flutter_setWidgetPropertyValue(int id, FlutterWidgetPropertyValue value, SetWidgetPropertyValueConsumer consumer);
843
844 /**
845 * Return {@code true} if the socket is open.
846 */
847 public boolean isSocketOpen();
848
849 /**
850 * {@code lsp.handle}
851 *
852 * Call an LSP handler. Message can be requests or notifications.
853 *
854 * @param lspMessage The LSP RequestMessage.
855 */
856 public void lsp_handle(Object lspMessage, HandleConsumer consumer);
857
858 /**
859 * Remove the given listener from the list of listeners that will receive notification when new
860 * analysis results become available.
861 *
862 * @param listener the listener to be removed
863 */
864 public void removeAnalysisServerListener(AnalysisServerListener listener);
865
866 /**
867 * Remove the given listener from the list of listeners that will receive notification when
868 * requests are made by an analysis server client.
869 *
870 * @param listener the listener to be removed
871 */
872 public void removeRequestListener(RequestListener listener);
873
874 /**
875 * Remove the given listener from the list of listeners that will receive notification when
876 * responses are received by an analysis server client.
877 *
878 * @param listener the listener to be removed
879 */
880 public void removeResponseListener(ResponseListener listener);
881
882 /**
883 * {@code search.findElementReferences}
884 *
885 * Perform a search for references to the element defined or referenced at the given offset in the
886 * given file.
887 *
888 * An identifier is returned immediately, and individual results will be returned via the
889 * search.results notification as they become available.
890 *
891 * @param file The file containing the declaration of or reference to the element used to define
892 * the search.
893 * @param offset The offset within the file of the declaration of or reference to the element.
894 * @param includePotential True if potential matches are to be included in the results.
895 */
896 public void search_findElementReferences(String file, int offset, boolean includePotential, FindElementReferencesConsumer consumer);
897
898 /**
899 * {@code search.findMemberDeclarations}
900 *
901 * Perform a search for declarations of members whose name is equal to the given name.
902 *
903 * An identifier is returned immediately, and individual results will be returned via the
904 * search.results notification as they become available.
905 *
906 * @param name The name of the declarations to be found.
907 */
908 public void search_findMemberDeclarations(String name, FindMemberDeclarationsConsumer consumer);
909
910 /**
911 * {@code search.findMemberReferences}
912 *
913 * Perform a search for references to members whose name is equal to the given name. This search
914 * does not check to see that there is a member defined with the given name, so it is able to find
915 * references to undefined members as well.
916 *
917 * An identifier is returned immediately, and individual results will be returned via the
918 * search.results notification as they become available.
919 *
920 * @param name The name of the references to be found.
921 */
922 public void search_findMemberReferences(String name, FindMemberReferencesConsumer consumer);
923
924 /**
925 * {@code search.findTopLevelDeclarations}
926 *
927 * Perform a search for declarations of top-level elements (classes, typedefs, getters, setters,
928 * functions and fields) whose name matches the given pattern.
929 *
930 * An identifier is returned immediately, and individual results will be returned via the
931 * search.results notification as they become available.
932 *
933 * @param pattern The regular expression used to match the names of the declarations to be found.
934 */
935 public void search_findTopLevelDeclarations(String pattern, FindTopLevelDeclarationsConsumer consumer);
936
937 /**
938 * {@code search.getElementDeclarations}
939 *
940 * Return top-level and class member declarations.
941 *
942 * @param file If this field is provided, return only declarations in this file. If this field is
943 * missing, return declarations in all files.
944 * @param pattern The regular expression used to match the names of declarations. If this field is
945 * missing, return all declarations.
946 * @param maxResults The maximum number of declarations to return. If this field is missing, return
947 * all matching declarations.
948 */
949 public void search_getElementDeclarations(String file, String pattern, int maxResults, GetElementDeclarationsConsumer consumer);
950
951 /**
952 * {@code search.getTypeHierarchy}
953 *
954 * Return the type hierarchy of the class declared or referenced at the given location.
955 *
956 * @param file The file containing the declaration or reference to the type for which a hierarchy
957 * is being requested.
958 * @param offset The offset of the name of the type within the file.
959 * @param superOnly True if the client is only requesting superclasses and interfaces hierarchy.
960 */
961 public void search_getTypeHierarchy(String file, int offset, boolean superOnly, GetTypeHierarchyConsumer consumer);
962
963 /**
964 * {@code server.cancelRequest}
965 *
966 * Requests cancellation of a request sent by the client by id. This is provided on a best-effort
967 * basis and there is no guarantee the server will be able to cancel any specific request. The
968 * server will still always produce a response to the request even in the case of cancellation, but
969 * clients should discard any results of any cancelled request because they may be incomplete or
970 * inaccurate. This request always completes without error regardless of whether the request is
971 * successfully cancelled.
972 *
973 * @param id The id of the request that should be cancelled.
974 */
975 public void server_cancelRequest(String id);
976
977 /**
978 * {@code server.getVersion}
979 *
980 * Return the version number of the analysis server.
981 */
982 public void server_getVersion(GetVersionConsumer consumer);
983
984 /**
985 * {@code server.openUrlRequest}
986 *
987 * Note: This is a request from the server to the client.
988 *
989 * Request that a URL be opened.
990 *
991 * The client is expected to open the URL, either within the client's UI or in the default browser.
992 *
993 * The request will only be sent from the server to the client if the client has indicated that it
994 * supports this request by using the setClientCapabilities request.
995 *
996 * @param url The URL to be opened.
997 */
998 public void server_openUrlRequest(String url);
999
1000 /**
1001 * {@code server.setClientCapabilities}
1002 *
1003 * Record the capabilities supported by the client. The default values, documented below, will be
1004 * assumed until this request is received.
1005 *
1006 * @param requests The names of the requests that the server can safely send to the client. Only
1007 * requests whose name is in the list will be sent. A request should only be included in the
1008 * list if the client will unconditionally honor the request. The default, used before this
1009 * request is received, is an empty list. The following is a list of the names of the
1010 * requests that can be specified:
1011 * - openUrlRequest
1012 * - showMessageRequest
1013 * @param supportsUris True if the client supports the server sending URIs in place of file paths.
1014 * In this mode, the server will use URIs in all protocol fields with the type FilePath.
1015 * Returned URIs may be `file://` URIs or custom schemes. The client can fetch the file
1016 * contents for URIs with custom schemes (and receive modification events) through the LSP
1017 * protocol (see the "lsp" domain). LSP notifications are automatically enabled when the
1018 * client sets this capability.
1019 */
1020 public void server_setClientCapabilities(List<String> requests, boolean supportsUris);
1021
1022 /**
1023 * {@code server.setSubscriptions}
1024 *
1025 * Subscribe for services. All previous subscriptions are replaced by the given set of services.
1026 *
1027 * It is an error if any of the elements in the list are not valid services. If there is an error,
1028 * then the current subscriptions will remain unchanged.
1029 *
1030 * @param subscriptions A list of the services being subscribed to.
1031 */
1032 public void server_setSubscriptions(List<String> subscriptions);
1033
1034 /**
1035 * {@code server.showMessageRequest}
1036 *
1037 * Note: This is a request from the server to the client.
1038 *
1039 * Request that a message be displayed to the user.
1040 *
1041 * The client is expected to display the message to the user with one or more buttons with the
1042 * specified labels, and to return a response consisting of the label of the button that was
1043 * clicked.
1044 *
1045 * The request will only be sent from the server to the client if the client has indicated that it
1046 * supports this request by using the setClientCapabilities request.
1047 *
1048 * This request is modeled after the same request from the LSP specification.
1049 *
1050 * @param type The type of the message.
1051 * @param message The message to be displayed.
1052 * @param actions The labels of the buttons by which the user can dismiss the message.
1053 */
1054 public void server_showMessageRequest(String type, String message, List<MessageAction> actions, ShowMessageRequestConsumer consumer);
1055
1056 /**
1057 * {@code server.shutdown}
1058 *
1059 * Cleanly shutdown the analysis server. Requests that are received after this request will not be
1060 * processed. Requests that were received before this request, but for which a response has not yet
1061 * been sent, will not be responded to. No further responses or notifications will be sent after
1062 * the response to this request has been sent.
1063 */
1064 public void server_shutdown();
1065
1066 /**
1067 * Start the analysis server.
1068 */
1069 public void start() throws Exception;
1070
1071}
const char * options
FlKeyEvent * event
const char * name
Definition fuchsia.cc:50
void edit_isPostfixCompletionApplicable(String file, String key, int offset, IsPostfixCompletionApplicableConsumer consumer)
void analytics_isEnabled(IsEnabledConsumer consumer)
void removeRequestListener(RequestListener listener)
void analysis_getImportedElements(String file, int offset, int length, GetImportedElementsConsumer consumer)
void completion_getSuggestionDetails2(String file, int offset, String completion, String libraryUri, GetSuggestionDetails2Consumer consumer)
void addAnalysisServerListener(AnalysisServerListener listener)
void edit_organizeDirectives(String file, OrganizeDirectivesConsumer consumer)
void edit_getAvailableRefactorings(String file, int offset, int length, GetAvailableRefactoringsConsumer consumer)
void server_showMessageRequest(String type, String message, List< MessageAction > actions, ShowMessageRequestConsumer consumer)
void server_setClientCapabilities(List< String > requests, boolean supportsUris)
void diagnostic_getServerPort(GetServerPortConsumer consumer)
void analysis_setSubscriptions(Map< String, List< String > > subscriptions)
void completion_getSuggestions2(String file, int offset, int maxResults, String completionCaseMatchingMode, String completionMode, int invocationCount, int timeout, GetSuggestions2Consumer consumer)
void analysis_getNavigation(String file, int offset, int length, GetNavigationConsumer consumer)
void analysis_getSignature(String file, int offset, GetSignatureConsumer consumer)
void addResponseListener(ResponseListener listener)
void execution_setSubscriptions(List< String > subscriptions)
void execution_createContext(String contextRoot, CreateContextConsumer consumer)
void search_findTopLevelDeclarations(String pattern, FindTopLevelDeclarationsConsumer consumer)
void search_getTypeHierarchy(String file, int offset, boolean superOnly, GetTypeHierarchyConsumer consumer)
void addStatusListener(AnalysisServerStatusListener listener)
void analysis_getErrors(String file, GetErrorsConsumer consumer)
void flutter_setWidgetPropertyValue(int id, FlutterWidgetPropertyValue value, SetWidgetPropertyValueConsumer consumer)
void diagnostic_getDiagnostics(GetDiagnosticsConsumer consumer)
void analysis_updateContent(Map< String, Object > files, UpdateContentConsumer consumer)
void search_findMemberDeclarations(String name, FindMemberDeclarationsConsumer consumer)
void removeResponseListener(ResponseListener listener)
void edit_listPostfixCompletionTemplates(ListPostfixCompletionTemplatesConsumer consumer)
void analysis_setPriorityFiles(List< String > files)
void edit_getAssists(String file, int offset, int length, GetAssistsConsumer consumer)
void edit_getPostfixCompletion(String file, String key, int offset, GetPostfixCompletionConsumer consumer)
void edit_getFixes(String file, int offset, GetFixesConsumer consumer)
void edit_importElements(String file, List< ImportedElements > elements, int offset, ImportElementsConsumer consumer)
void lsp_handle(Object lspMessage, HandleConsumer consumer)
void server_getVersion(GetVersionConsumer consumer)
void edit_format(String file, int selectionOffset, int selectionLength, int lineLength, FormatConsumer consumer)
void search_getElementDeclarations(String file, String pattern, int maxResults, GetElementDeclarationsConsumer consumer)
void analysis_setGeneralSubscriptions(List< String > subscriptions)
void search_findElementReferences(String file, int offset, boolean includePotential, FindElementReferencesConsumer consumer)
void analytics_sendTiming(String event, int millis)
void analysis_getLibraryDependencies(GetLibraryDependenciesConsumer consumer)
void edit_formatIfEnabled(List< String > directories, FormatIfEnabledConsumer consumer)
void analysis_getHover(String file, int offset, GetHoverConsumer consumer)
void execution_getSuggestions(String code, int offset, String contextFile, int contextOffset, List< RuntimeCompletionVariable > variables, List< RuntimeCompletionExpression > expressions, GetSuggestionsConsumer consumer)
void edit_getStatementCompletion(String file, int offset, GetStatementCompletionConsumer consumer)
void analysis_setAnalysisRoots(List< String > included, List< String > excluded, Map< String, String > packageRoots)
void removeAnalysisServerListener(AnalysisServerListener listener)
void flutter_setSubscriptions(Map< String, List< String > > subscriptions)
void server_setSubscriptions(List< String > subscriptions)
void search_findMemberReferences(String name, FindMemberReferencesConsumer consumer)
void execution_mapUri(String id, String file, String uri, MapUriConsumer consumer)
void edit_sortMembers(String file, SortMembersConsumer consumer)
void addRequestListener(RequestListener listener)
void edit_getRefactoring(String kind, String file, int offset, int length, boolean validateOnly, RefactoringOptions options, GetRefactoringConsumer consumer)
void completion_registerLibraryPaths(List< LibraryPathSet > paths)
void analysis_getReachableSources(String file, GetReachableSourcesConsumer consumer)
void analysis_updateOptions(AnalysisOptions options)
void edit_bulkFixes(List< String > included, boolean inTestMode, boolean updatePubspec, List< String > codes, BulkFixesConsumer consumer)
void flutter_getWidgetDescription(String file, int offset, GetWidgetDescriptionConsumer consumer)
size_t length
Win32Message message
Point offset