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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.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/ResolutionContext.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
index 24142bec1cd9a6db7d516cf921fd8131ebdefd15..2f32a7c9b70221a8fbd3e9c80d7e6b84e0d7cd35 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
@@ -194,7 +194,7 @@ public class ResolutionContext implements ResolutionErrorListener {
// TypeAnalyzer will diagnose unresolved identifiers.
return null;
}
- node.setSymbol(element);
+ node.setElement(element);
} else {
throw internalError(node, "Unexpected node: %s", node);
}
@@ -332,7 +332,7 @@ public class ResolutionContext implements ResolutionErrorListener {
}
void pushFunctionAliasScope(DartFunctionTypeAlias x) {
- pushScope(x.getName().getTargetName() == null ? "<function>" : x.getName().getTargetName());
+ pushScope(x.getName().getName() == null ? "<function>" : x.getName().getName());
}
AssertionError internalError(DartNode node, String message, Object... arguments) {
@@ -370,7 +370,7 @@ public class ResolutionContext implements ResolutionErrorListener {
@Override
public Element visitIdentifier(DartIdentifier node) {
- String name = node.getTargetName();
+ String name = node.getName();
return scope.findElement(scope.getLibrary(), name);
}
}

Powered by Google App Engine
This is Rietveld 408576698