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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.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/DynamicElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java
index e803eb64d50c2e6ad85c2d018b479c8a0f0aaa25..f0d6aee0f30691a2bced183aaee67b0aa5d76883 100644
--- a/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/DynamicElementImplementation.java
@@ -18,7 +18,7 @@ import java.util.List;
/**
* Dummy element corresponding to {@link DynamicType}.
*/
-class DynamicElementImplementation extends AbstractElement implements DynamicElement {
+class DynamicElementImplementation extends AbstractNodeElement implements DynamicElement {
private DynamicElementImplementation() {
super(null, "<dynamic>");
@@ -271,4 +271,9 @@ class DynamicElementImplementation extends AbstractElement implements DynamicEle
public void setType(Type type) {
super.setType(type);
}
+
+ @Override
+ public Type getConstantType() {
+ return null;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698