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

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

Issue 11412156: Fix for ClassCastException when [name] in comment uses import conflict name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java b/compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java
index e39c50afc12b32fde672492d3f4717ec5b044434..52c133e643f1ebaf0f136ec83d094ed5ad006027 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartCommentRefName.java
@@ -5,14 +5,13 @@
package com.google.dart.compiler.ast;
import com.google.dart.compiler.resolver.Element;
-import com.google.dart.compiler.resolver.NodeElement;
/**
- * <code>[new name]</code> in {@link DartComment}.
+ * <code>[name]</code> in {@link DartComment}.
*/
public final class DartCommentRefName extends DartNode {
private final String name;
- private NodeElement element;
+ private Element element;
public DartCommentRefName(String name) {
assert name != null;
@@ -25,13 +24,13 @@ public final class DartCommentRefName extends DartNode {
}
@Override
- public NodeElement getElement() {
+ public Element getElement() {
return element;
}
@Override
public void setElement(Element element) {
- this.element = (NodeElement) element;
+ this.element = element;
}
public String getName() {
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698