| Index: pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart
|
| index 9344e15d44de11e2c426d49c20ecc484334fdb82..8778f6c22efa269307a7523616ff456e570f04ee 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/local_constructor_contributor.dart
|
| @@ -245,13 +245,11 @@ class _Visitor extends LocalDeclarationVisitor {
|
| ClassDeclaration classDecl, ConstructorDeclaration constructorDecl) {
|
| String completion = classDecl.name.name;
|
| SimpleIdentifier elemId;
|
| - int relevance = DART_RELEVANCE_DEFAULT;
|
|
|
| - int filter = optype.constructorSuggestionsFilter(classDecl.element?.type);
|
| - if (filter == null) {
|
| + int relevance = optype.constructorSuggestionsFilter(
|
| + classDecl.element?.type, DART_RELEVANCE_DEFAULT);
|
| + if (relevance == null) {
|
| return;
|
| - } else {
|
| - relevance += filter;
|
| }
|
|
|
| // Build a suggestion for explicitly declared constructor
|
|
|