@@ -16,7 +16,7 @@ import 'package:collection/collection.dart';
1616
1717/// Produces [CodeActionLiteral] s from Plugin fixes and assists.
1818class PluginCodeActionsProducer extends AbstractCodeActionsProducer {
19- final AnalysisDriver ? driver ;
19+ final AnalysisDriver ? _driver ;
2020
2121 PluginCodeActionsProducer (
2222 super .server,
@@ -31,7 +31,7 @@ class PluginCodeActionsProducer extends AbstractCodeActionsProducer {
3131 required super .allowCommands,
3232 required super .analysisOptions,
3333 required super .allowSnippets,
34- }) : driver = server.getAnalysisDriver (file.path);
34+ }) : _driver = server.getAnalysisDriver (file.path);
3535
3636 @override
3737 String get name => 'PluginActionsComputer' ;
@@ -149,12 +149,14 @@ class PluginCodeActionsProducer extends AbstractCodeActionsProducer {
149149 Future <List <plugin.Response >> _sendPluginRequest (
150150 plugin.RequestParams requestParams,
151151 ) async {
152- var driver = this .driver;
153- if (driver == null ) {
154- return [];
152+ if (_driver == null ) {
153+ return const [];
155154 }
156155
157- var pluginFutures = server.broadcastRequestToPlugins (requestParams, driver);
156+ var pluginFutures = server.broadcastRequestToPlugins (
157+ requestParams,
158+ _driver,
159+ );
158160
159161 return waitForResponses (pluginFutures, requestParameters: requestParams);
160162 }
0 commit comments