df964d1c1a
Looking atanges to the tests I wasn't sure whether this was a good change to make, but the metrics improve for both locations as a result: CompilationUnit_declaration 64.159 | 58.277 -5.882 CompilationUnit_directive Infinity | 88.826 -Infinity The tests mostly cover the case where insertion is between the two, and in those cases we might want a blend of the two because it's impossible to know whether the user is adding a directive after the last directive or adding a declarartion before the first declaration. But that's a topic for a different CL. Change-Id: I2b82209ab77796d0bc8b9fc4a7c0ab91293c3746 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211083 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> |
||
---|---|---|
.. | ||
doc | ||
lib | ||
test | ||
tool/spec | ||
.gitignore | ||
analysis_options.yaml | ||
CHANGELOG.md | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
analyzer_plugin
A framework for building plugins for the analysis server.
Usage
Note: The plugin support is not currently available for general use.
Plugins are written in Dart and are run in the same VM as the analysis server. The analysis server runs each plugin in a separate isolate and communicates with the plugin using a plugin API. This API is similar to the API used by the analysis server to communicate with clients.
Plugins are automatically discovered and run by the analysis server.
This package contains support code to make it easier to write a plugin. There is a tutorial describing how to use the support in this package.
Support
Post issues and feature requests on the issue tracker.
Questions and discussions are welcome at the Dart Analyzer Discussion Group.
License
See the LICENSE file.