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

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

Issue 9921015: Visit name of DartDeclaration, set Element for DartIdentifier (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Visit more name-like nodes, tweaks for review 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/DartTypeParameter.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java b/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java
index cf478bb81b7fbf4098aa2257cf4aa195fb385a56..dd33c775206e4a301ee68b1cd6de901cbeaa7bdd 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java
@@ -4,6 +4,7 @@
package com.google.dart.compiler.ast;
+import com.google.dart.compiler.resolver.Element;
import com.google.dart.compiler.type.Type;
/**
@@ -25,6 +26,7 @@ public class DartTypeParameter extends DartDeclaration<DartIdentifier> {
@Override
public void visitChildren(ASTVisitor<?> visitor) {
+ super.visitChildren(visitor);
if (bound != null) {
bound.accept(visitor);
}
@@ -44,4 +46,9 @@ public class DartTypeParameter extends DartDeclaration<DartIdentifier> {
public void setType(Type type) {
this.type = type;
}
+
+ @Override
+ public Element getElement() {
+ return getName().getElement();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698