| Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodOverrideContributor.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodOverrideContributor.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodOverrideContributor.java
|
| index 36676659cb7f1f413c34a80d7271b1036f867c0b..42c2e359d989f78e6f847ca6dfb10ad6aae5c920 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodOverrideContributor.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodOverrideContributor.java
|
| @@ -17,7 +17,6 @@ import com.google.dart.compiler.ast.DartMethodDefinition;
|
| import com.google.dart.compiler.resolver.ClassElement;
|
| import com.google.dart.compiler.resolver.ConstructorElement;
|
| import com.google.dart.compiler.resolver.Element;
|
| -import com.google.dart.compiler.resolver.EnclosingElement;
|
| import com.google.dart.compiler.resolver.MethodElement;
|
| import com.google.dart.compiler.type.InterfaceType;
|
| import com.google.dart.tools.core.internal.indexer.location.MethodLocation;
|
| @@ -80,7 +79,7 @@ public class MethodOverrideContributor extends DartContributor {
|
| * @return the method that the given method overrides
|
| */
|
| private MethodElement findOverriddenMethod(MethodElement method) {
|
| - EnclosingElement enclosingElement = method.getEnclosingElement();
|
| + Element enclosingElement = method.getEnclosingElement();
|
| if (!(enclosingElement instanceof ClassElement)) {
|
| // The element represents a function, and functions cannot override other functions.
|
| return null;
|
|
|