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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.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/AbstractNodeElement.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/AbstractElement.java b/compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java
similarity index 93%
rename from compiler/java/com/google/dart/compiler/resolver/AbstractElement.java
rename to compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java
index 18501e89e8b306b1c85b67b286aaec567879d825..dd332f73c3c2ea1780a6e8a3f0ce6dea79704403 100644
--- a/compiler/java/com/google/dart/compiler/resolver/AbstractElement.java
+++ b/compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java
@@ -10,12 +10,12 @@ import com.google.dart.compiler.common.SourceInfo;
import com.google.dart.compiler.type.Type;
import com.google.dart.compiler.type.Types;
-abstract class AbstractElement implements Element {
+abstract class AbstractNodeElement implements Element, NodeElement {
private final DartNode node;
private final String name;
private SourceInfo sourceInfo;
- AbstractElement(DartNode node, String name) {
+ AbstractNodeElement(DartNode node, String name) {
// TODO(scheglov) in the future we will not use ASTNode and remove null check
this.sourceInfo = node != null ? node.getSourceInfo() : SourceInfo.UNKNOWN;
this.node = node;

Powered by Google App Engine
This is Rietveld 408576698