8a5987013f
This add a fix to add a type annotation in place of the `var` keyword. The assist to add a type annotation was already being offered, but it didn't understand that it needed to also remove the keyword. The added fix will do both, and, by being a fix, will appear higher in the list of code actions that users see, along side the fix to remove the keyword without adding a type annotation. The fix to remove the keyword can be bulk applied, so I couldn't make the new one also be bulk applicable. We might consider reversing the status so that the default bulk fix behavior includes adding a type annotation, but this CL doesn't do that. Change-Id: I122221ef1e5119a76e1157a9a15cf1193135fc59 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/507161 Reviewed-by: Samuel Rawlins <srawlins@google.com>
analysis_server
A long-running process that provides analysis results to other tools.
The analysis server is designed to provide on-going analysis of one or more code bases as those code bases are changing.
Using the server
The analysis server is not intended to be used stand-alone, and therefore does not have a human-friendly user interface.
Clients (typically tools, such as an editor) are expected to run the analysis
server in a separate process and communicate with it using a JSON protocol. The
original protocol is specified in the file analysis_server/doc/api.html
and Language Server Protocol support is documented in
tool/lsp_spec/README.md.
Features and bugs
Please file feature requests and bugs at the issue tracker.