Index: pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart |
index 0fced1ded4dd0e1d1d98e3bf2d058ff00266f8d7..b6ea6ec2ad517d711f0114d4525fc3be074a73b9 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/imported_reference_contributor.dart |
@@ -187,7 +187,7 @@ class _ImportedSuggestionBuilder extends ElementSuggestionBuilder |
*/ |
void _addInheritedSuggestions(AstNode node) { |
var classDecl = node.getAncestor((p) => p is ClassDeclaration); |
- if (classDecl is ClassDeclaration) { |
+ if (classDecl is ClassDeclaration && !optype.inStaticMethodBody) { |
// Build a list of inherited types that are imported |
// and include any inherited imported members |
List<String> inheritedTypes = new List<String>(); |