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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartNewExpression.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/DartNewExpression.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java b/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java
index b80173303bc5dca83939599f1e2da0a9838a9b91..cf6a2e1e54a7718fffb0942b92a283d2041d1766 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java
@@ -4,9 +4,8 @@
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 com.google.dart.compiler.type.Type;
import java.util.List;
@@ -14,10 +13,10 @@ import java.util.List;
/**
* Represents a Dart 'new' expression.
*/
-public class DartNewExpression extends DartInvocation implements HasSymbol {
+public class DartNewExpression extends DartInvocation {
private DartNode constructor;
- private ConstructorElement typeSymbol;
+ private ConstructorElement element;
private final boolean isConst;
public DartNewExpression(DartNode constructor, List<DartExpression> args, boolean isConst) {
@@ -40,8 +39,8 @@ public class DartNewExpression extends DartInvocation implements HasSymbol {
}
@Override
- public ConstructorElement getSymbol() {
- return typeSymbol;
+ public ConstructorElement getElement() {
+ return element;
}
public void setConstructor(DartExpression newConstructor) {
@@ -49,8 +48,8 @@ public class DartNewExpression extends DartInvocation implements HasSymbol {
}
@Override
- public void setSymbol(Symbol symbol) {
- this.typeSymbol = (ConstructorElement) symbol;
+ public void setElement(Element element) {
+ this.element = (ConstructorElement) element;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698