Index: pkg/analysis_server/lib/src/provisional/completion/dart/completion_plugin.dart |
diff --git a/pkg/analysis_server/lib/src/provisional/completion/dart/completion_plugin.dart b/pkg/analysis_server/lib/src/provisional/completion/dart/completion_plugin.dart |
index 253a4ad06fb3ffdd44abdc750cf9b850c7461f9c..ea6b4896ca7289b8c56e8bd3f2c9482b294b1eaa 100644 |
--- a/pkg/analysis_server/lib/src/provisional/completion/dart/completion_plugin.dart |
+++ b/pkg/analysis_server/lib/src/provisional/completion/dart/completion_plugin.dart |
@@ -55,8 +55,8 @@ class DartCompletionPlugin implements Plugin { |
* Return a list containing all of the Dart specific completion contributors. |
*/ |
Iterable<DartCompletionContributor> get contributors => |
- _contributorExtensionPoint.extensions |
- .map((DartCompletionContributorFactory factory) => factory()); |
+ _contributorExtensionPoint.extensions.map( |
+ (Object factory) => (factory as DartCompletionContributorFactory)()); |
@override |
String get uniqueIdentifier => UNIQUE_IDENTIFIER; |