Clean up some docs from the analyzer_plugin package
Change-Id: Iea3e8233641fb294ca1006a7b68178c439cc5e4f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180780 Auto-Submit: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
3a9dc0ae9f
commit
8ee08e1128
@@ -102,7 +102,7 @@ class MyPlugin extends ServerPlugin with AssistsMixin, DartAssistsMixin {
|
||||
// ...
|
||||
|
||||
@override
|
||||
List<AssistContributor> getAssistContributors(AnalysisDriver driver) {
|
||||
List<AssistContributor> getAssistContributors(String path) {
|
||||
return <AssistContributor>[MyAssistContributor()];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,8 +117,7 @@ class MyPlugin extends ServerPlugin with FixesMixin, DartFixesMixin {
|
||||
// ...
|
||||
|
||||
@override
|
||||
List<FixContributor> getFixContributors(
|
||||
AnalysisDriverGeneric driver) {
|
||||
List<FixContributor> getFixContributors(String path) {
|
||||
return <FixContributor>[MyFixContributor()];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ analyzer:
|
||||
|
||||
If a listed host package can be found (via the `.packages` file associated with
|
||||
the target package), then the tool looks in the host package for the folder
|
||||
`<host_package>/tools/analysis_plugin`. If that directory exists and contains a
|
||||
`<host_package>/tools/analyzer_plugin`. If that directory exists and contains a
|
||||
valid bootstrap package, then the bootstrap package is run as a plugin.
|
||||
|
||||
## Bootstrap Package Structure
|
||||
|
||||
@@ -95,7 +95,8 @@ abstract class ServerPlugin {
|
||||
/// Return the SDK manager used to manage SDKs.
|
||||
DartSdkManager get sdkManager => _sdkManager;
|
||||
|
||||
/// Return the version number of this plugin, encoded as a string.
|
||||
/// Return the version number of the plugin spec required by this plugin,
|
||||
/// encoded as a string.
|
||||
String get version;
|
||||
|
||||
/// Handle the fact that the file with the given [path] has been modified.
|
||||
|
||||
Reference in New Issue
Block a user