Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodOverrideContributor.java

Issue 9692002: Step back and remove more getNode() invocations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698