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

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

Issue 9703096: Remove Element.getNode() method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments 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/DartIdentifier.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java b/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java
index 11687a7ffba79cc42d40c3e49353f2b6cbf1b30e..8c918e336ab2416095d991ecc272d31b1760ebcc 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java
@@ -5,6 +5,7 @@
package com.google.dart.compiler.ast;
import com.google.dart.compiler.resolver.Element;
+import com.google.dart.compiler.resolver.NodeElement;
/**
* Represents a Dart identifier expression.
@@ -12,7 +13,7 @@ import com.google.dart.compiler.resolver.Element;
public class DartIdentifier extends DartExpression {
private final String name;
- private Element element;
+ private NodeElement element;
public DartIdentifier(String name) {
assert name != null;
@@ -24,7 +25,7 @@ public class DartIdentifier extends DartExpression {
}
@Override
- public Element getElement() {
+ public NodeElement getElement() {
return element;
}
@@ -39,7 +40,7 @@ public class DartIdentifier extends DartExpression {
@Override
public void setElement(Element element) {
- this.element = (Element) element;
+ this.element = (NodeElement) element;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698