And change clients of the scanner (within the SDK) to use it. Long term, it would be better to store the FeatureSet object directly in the Scanner and remove the existing flags `enableGtGt` and `enableNonNullable`. However there are analyzer clients that currently use these flags. So for now, we simply plumb in the FeatureSet as a new way of setting AstBuilder flags. Once we've updated clients to use FeatureSet, we'll publish a breaking version of the analyzer that removes the old flag API. Change-Id: I9e662f4ed45668d9acd4f56e42d7d8dae6180d48 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99975 Reviewed-by: Dan Rubel <danrubel@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
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.