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 7a21bbb66137fd30b655964c0d14f6330265405b..d5085c80b5d4114183a855267fab4e7c3b69a9b1 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 |
@@ -38,11 +38,11 @@ class DartCompletionPlugin implements Plugin { |
String get uniqueIdentifier => UNIQUE_IDENTIFIER; |
/** |
- * Return a list containing all of the Dart specific completion contributor |
- * factories that were contributed. |
+ * Return a list containing all of the Dart specific completion contributors. |
*/ |
- List<DartCompletionContributorFactory> get contributorFactories => |
- _contributorExtensionPoint.extensions; |
+ Iterable<DartCompletionContributorFactory> get contributors => |
+ _contributorExtensionPoint.extensions |
+ .map((DartCompletionContributorFactory factory) => factory()); |
@override |
void registerExtensionPoints(RegisterExtensionPoint registerExtensionPoint) { |