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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartClass.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/ast/DartClass.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartClass.java b/compiler/java/com/google/dart/compiler/ast/DartClass.java
index 36d7c5cee2cb65ad26920e4fcdc8975c8fe5351f..946ee549e3af450b68f6142526a06c8f444fe8a4 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartClass.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartClass.java
@@ -4,16 +4,15 @@
package com.google.dart.compiler.ast;
-import com.google.dart.compiler.common.HasSymbol;
-import com.google.dart.compiler.common.Symbol;
import com.google.dart.compiler.resolver.ClassElement;
+import com.google.dart.compiler.resolver.Element;
import java.util.List;
/**
* Represents a Dart class.
*/
-public class DartClass extends DartDeclaration<DartIdentifier> implements HasSymbol {
+public class DartClass extends DartDeclaration<DartIdentifier> {
private ClassElement element;
@@ -119,7 +118,7 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
if (getName() == null) {
return null;
}
- return getName().getTargetName();
+ return getName().getName();
}
public DartTypeNode getSuperclass() {
@@ -130,7 +129,7 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
return defaultClass;
}
- public Symbol getDefaultSymbol() {
+ public Element getDefaultSymbol() {
if (defaultClass != null) {
return defaultClass.getType().getElement();
} else {
@@ -138,7 +137,7 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
}
}
- public Symbol getSuperSymbol() {
+ public Element getSuperSymbol() {
if (superclass != null) {
return superclass.getType().getElement();
} else {
@@ -147,7 +146,7 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
}
@Override
- public ClassElement getSymbol() {
+ public ClassElement getElement() {
return element;
}
@@ -160,8 +159,8 @@ public class DartClass extends DartDeclaration<DartIdentifier> implements HasSym
}
@Override
- public void setSymbol(Symbol symbol) {
- this.element = (ClassElement) symbol;
+ public void setElement(Element element) {
+ this.element = (ClassElement) element;
}
public DartStringLiteral getNativeName() {

Powered by Google App Engine
This is Rietveld 408576698