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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.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/ResolveVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java b/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java
index 5fc69339f679e2a7f04e5053b243644493187356..ebd26cfdefb65255c650e27f4a31b9913d6aa79c 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java
@@ -67,7 +67,7 @@ abstract class ResolveVisitor extends ASTVisitor<Element> {
if (returnNode != null) {
bindReturnGenerics(returnNode);
}
- FunctionAliasElement funcAlias = node.getSymbol();
+ FunctionAliasElement funcAlias = node.getElement();
for (Type type : funcAlias.getTypeParameters()) {
TypeVariableElement typeVar = (TypeVariableElement) type.getElement();
getContext().getScope().declareElement(typeVar.getName(), typeVar);
@@ -147,7 +147,7 @@ abstract class ResolveVisitor extends ASTVisitor<Element> {
// TypeAnalyzer will diagnose unresolved identifiers.
return null;
}
- node.setSymbol(element);
+ node.setElement(element);
return element;
}

Powered by Google App Engine
This is Rietveld 408576698