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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartSuperConstructorInvocation.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/DartSuperConstructorInvocation.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartSuperConstructorInvocation.java b/compiler/java/com/google/dart/compiler/ast/DartSuperConstructorInvocation.java
index 26fae3a3341c89c227a812f175d38e902917fd79..a74050c4c0bcad018df93a75c2c5afc4aa04fd62 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartSuperConstructorInvocation.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartSuperConstructorInvocation.java
@@ -4,19 +4,18 @@
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.ConstructorElement;
+import com.google.dart.compiler.resolver.Element;
import java.util.List;
/**
* Super constructor invocation AST node.
*/
-public class DartSuperConstructorInvocation extends DartInvocation implements HasSymbol {
+public class DartSuperConstructorInvocation extends DartInvocation {
private DartIdentifier name;
- private ConstructorElement symbol;
+ private ConstructorElement element;
public DartSuperConstructorInvocation(DartIdentifier name, List<DartExpression> args) {
super(args);
@@ -27,7 +26,7 @@ public class DartSuperConstructorInvocation extends DartInvocation implements Ha
if (name == null) {
return null;
}
- return name.getTargetName();
+ return name.getName();
}
public DartIdentifier getName() {
@@ -39,13 +38,13 @@ public class DartSuperConstructorInvocation extends DartInvocation implements Ha
}
@Override
- public void setSymbol(Symbol symbol) {
- this.symbol = (ConstructorElement) symbol;
+ public void setElement(Element element) {
+ this.element = (ConstructorElement) element;
}
@Override
- public ConstructorElement getSymbol() {
- return symbol;
+ public ConstructorElement getElement() {
+ return element;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698