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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartInvocation.java

Issue 12593009: Don't cast to NodeElement where not needed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file. Created 7 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/DartInvocation.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartInvocation.java b/compiler/java/com/google/dart/compiler/ast/DartInvocation.java
index 477c4c31e895ddc6f0a3d281d9abf72d6db2e713..1a3a0a2fd4cde16c3140b6a0b2797663ce7ca8c7 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartInvocation.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartInvocation.java
@@ -5,7 +5,6 @@
package com.google.dart.compiler.ast;
import com.google.dart.compiler.resolver.Element;
-import com.google.dart.compiler.resolver.NodeElement;
import java.util.List;
@@ -36,7 +35,7 @@ import java.util.List;
public abstract class DartInvocation extends DartExpression {
private final NodeList<DartExpression> arguments = NodeList.create(this);
- private NodeElement element;
+ private Element element;
public DartInvocation(List<DartExpression> arguments) {
if (arguments != null && !arguments.isEmpty()) {
@@ -53,12 +52,12 @@ public abstract class DartInvocation extends DartExpression {
}
@Override
- public NodeElement getElement() {
+ public Element getElement() {
return element;
}
@Override
public void setElement(Element element) {
- this.element = (NodeElement) element;
+ this.element = element;
}
}

Powered by Google App Engine
This is Rietveld 408576698