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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.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: compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
index 02dd8b1d5984c42d538a20104789811deb552246..4b79ca396ac3522d128b074b5202e2ad3ce6918e 100644
--- a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
@@ -52,7 +52,7 @@ public class SupertypeResolver {
private class ClassElementResolver extends ASTVisitor<Void> {
@Override
public Void visitClass(DartClass node) {
- ClassElement classElement = node.getSymbol();
+ ClassElement classElement = node.getElement();
// Make sure that the type parameters are in scope before resolving the
// super class and interfaces
@@ -113,9 +113,9 @@ public class SupertypeResolver {
@Override
public Void visitFunctionTypeAlias(DartFunctionTypeAlias node) {
- ResolutionContext resolutionContext = topLevelContext.extend(node.getSymbol());
- Elements.addInterface(node.getSymbol(), typeProvider.getFunctionType());
- setBoundsOnTypeParameters(node.getSymbol().getTypeParameters(), resolutionContext);
+ ResolutionContext resolutionContext = topLevelContext.extend(node.getElement());
+ Elements.addInterface(node.getElement(), typeProvider.getFunctionType());
+ setBoundsOnTypeParameters(node.getElement().getTypeParameters(), resolutionContext);
return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698