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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.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/MethodElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java
index 238fc67bf11b4a63be624be7004150a1ccba1646..382f7a6f8c00bf9fc394bb3e0440bce629190ea7 100644
--- a/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java
@@ -135,7 +135,7 @@ class MethodElementImplementation extends AbstractElement implements MethodEleme
EnclosingElement holder) {
String targetName;
if(node.getName() instanceof DartIdentifier) {
- targetName = ((DartIdentifier) node.getName()).getTargetName();
+ targetName = ((DartIdentifier) node.getName()).getName();
} else {
// Visit the unknown node to generate a string for our use.
targetName = node.toSource();
@@ -155,8 +155,8 @@ class MethodElementImplementation extends AbstractElement implements MethodEleme
private static EnclosingElement findParentEnclosingElement(DartNode node) {
while (node != null && node.getParent() != null) {
node = node.getParent();
- if (node.getSymbol() instanceof EnclosingElement) {
- return (EnclosingElement) node.getSymbol();
+ if (node.getElement() instanceof EnclosingElement) {
+ return (EnclosingElement) node.getElement();
}
}
return null;

Powered by Google App Engine
This is Rietveld 408576698