| Index: pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
|
| index 3b26f605c16df40d96fb3c05469ea56f80b94f11..ccfb1b3c9aefd3385c2cba84f74eb8624006df6f 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
|
| @@ -204,12 +204,8 @@ class ArgListContributor extends DartCompletionContributor {
|
|
|
| // Generate argument list suggestion based upon the type of element
|
| if (elem is ClassElement) {
|
| - for (ConstructorElement constructor in elem.constructors) {
|
| - if (!constructor.isFactory) {
|
| - _addSuggestions(constructor.parameters);
|
| - return suggestions;
|
| - }
|
| - }
|
| + _addSuggestions(elem.unnamedConstructor?.parameters);
|
| + return suggestions;
|
| }
|
| if (elem is ConstructorElement) {
|
| _addSuggestions(elem.parameters);
|
|
|