dart-sdk/pkg/analyzer_plugin
Brian Wilkerson df964d1c1a Fix a bug in OpType that caused it to compute the wrong completion location
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>
2021-08-25 00:45:35 +00:00
..
doc Fix little typo in introduction 2021-08-12 18:49:28 +00:00
lib Fix a bug in OpType that caused it to compute the wrong completion location 2021-08-25 00:45:35 +00:00
test Fix a bug in OpType that caused it to compute the wrong completion location 2021-08-25 00:45:35 +00:00
tool/spec Make Location.endLine and Location.endColumn optional fields in the protocol 2021-07-15 17:35:55 +00:00
.gitignore pkg/analyzer_plugin: support the latest pkg:analyzer 2019-04-24 02:26:26 +00:00
analysis_options.yaml enable depend_on_referenced_packages 2021-06-04 14:19:08 +00:00
CHANGELOG.md [analyzer_plugin] Support latest analyzer in pubspec 2021-07-19 15:48:19 +00:00
LICENSE Update LICENSE 2021-04-07 10:28:38 +00:00
pubspec.yaml Bump analyzer_plugin to 0.7.0 2021-07-26 23:07:36 +00:00
README.md Fix analyzer_plugin tutorial link 2019-11-04 16:32:18 +00:00

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.