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

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

Issue 9633009: Use Element instead of Symbol. (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/TypeHierarchyContributor.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/TypeHierarchyContributor.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/TypeHierarchyContributor.java
index b482b5f6f7766a51d2194e7da8c7571cd4d07756..d5c66f7411e77fcea8eee541dd3e460d53e957ac 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/TypeHierarchyContributor.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/TypeHierarchyContributor.java
@@ -14,8 +14,8 @@
package com.google.dart.tools.core.internal.indexer.contributor;
import com.google.dart.compiler.ast.DartClass;
-import com.google.dart.compiler.common.Symbol;
import com.google.dart.compiler.resolver.ClassElement;
+import com.google.dart.compiler.resolver.Element;
import com.google.dart.compiler.type.InterfaceType;
import com.google.dart.tools.core.internal.indexer.location.TypeLocation;
import com.google.dart.tools.core.model.Type;
@@ -27,14 +27,14 @@ import com.google.dart.tools.core.model.Type;
public class TypeHierarchyContributor extends DartContributor {
@Override
public Void visitClass(DartClass node) {
- Symbol binding = node.getSymbol();
- if (binding instanceof ClassElement) {
- ClassElement typeSymbol = (ClassElement) binding;
- InterfaceType superclass = typeSymbol.getSupertype();
+ Element element = node.getElement();
+ if (element instanceof ClassElement) {
+ ClassElement classElement = (ClassElement) element;
+ InterfaceType superclass = classElement.getSupertype();
if (superclass != null) {
processSupertype(node, superclass);
}
- for (InterfaceType type : typeSymbol.getInterfaces()) {
+ for (InterfaceType type : classElement.getInterfaces()) {
processSupertype(node, type);
}
}

Powered by Google App Engine
This is Rietveld 408576698