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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Elements.java

Issue 9689063: Visit Node in CompileTimeConstantAnalyzer only if Node based (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/Elements.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Elements.java b/compiler/java/com/google/dart/compiler/resolver/Elements.java
index fed0d95c6503116dc41f9b62448ec9c4e3f8a8f5..1611acf46f3b0324b4793a9189a55328f6a6f08f 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Elements.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Elements.java
@@ -174,7 +174,7 @@ public class Elements {
@VisibleForTesting
public static void setType(Element element, Type type) {
- ((AbstractElement) element).setType(type);
+ ((AbstractNodeElement) element).setType(type);
}
static FieldElementImplementation fieldFromNode(DartField node,
EnclosingElement holder,

Powered by Google App Engine
This is Rietveld 408576698