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:
Brian Wilkerson
2021-01-26 00:03:16 +00:00
committed by commit-bot@chromium.org
parent 3a9dc0ae9f
commit 8ee08e1128
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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()];
}
}
+1 -2
View File
@@ -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
+2 -1
View File
@@ -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.