Index: pkg/analysis_server/lib/src/computer/computer_overrides.dart |
diff --git a/pkg/analysis_server/lib/src/computer/computer_overrides.dart b/pkg/analysis_server/lib/src/computer/computer_overrides.dart |
index ba7cb7620e0ac64932010b11f213a979e331aeb9..4c8cc8f1afe3498cf8f85c37d26e851c2e59765c 100644 |
--- a/pkg/analysis_server/lib/src/computer/computer_overrides.dart |
+++ b/pkg/analysis_server/lib/src/computer/computer_overrides.dart |
@@ -29,10 +29,16 @@ class DartUnitOverridesComputer { |
_currentClass = unitMember.element; |
for (ClassMember classMember in unitMember.members) { |
if (classMember is MethodDeclaration) { |
+ if (classMember.isStatic) { |
+ continue; |
+ } |
SimpleIdentifier nameNode = classMember.name; |
_addOverride(nameNode.offset, nameNode.length, nameNode.name); |
} |
if (classMember is FieldDeclaration) { |
+ if (classMember.isStatic) { |
+ continue; |
+ } |
List<VariableDeclaration> fields = classMember.fields.variables; |
for (VariableDeclaration field in fields) { |
SimpleIdentifier nameNode = field.name; |