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 16a8d8222706caa3a803318179ebd9b0294468ae..2d73089ab0595d3188bd52eccf30cfcd21f91a72 100644 |
--- a/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java |
+++ b/compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java |
@@ -4,7 +4,9 @@ |
package com.google.dart.compiler.ast; |
+import com.google.dart.compiler.common.Symbol; |
import com.google.dart.compiler.resolver.Element; |
+import com.google.dart.compiler.type.Type; |
/** |
* Represents a type parameter in a class or interface declaration. |
@@ -12,6 +14,8 @@ import com.google.dart.compiler.resolver.Element; |
public class DartTypeParameter extends DartDeclaration<DartIdentifier> { |
private DartTypeNode bound; |
+ private Element element; |
+ private Type type; |
public DartTypeParameter(DartIdentifier name, DartTypeNode bound) { |
super(name); |
@@ -46,6 +50,21 @@ public class DartTypeParameter extends DartDeclaration<DartIdentifier> { |
@Override |
public Element getSymbol() { |
- return null; |
+ return element; |
+ } |
+ |
+ @Override |
+ public void setSymbol(Symbol symbol) { |
+ this.element = (Element)symbol; |
+ } |
+ |
+ @Override |
+ public Type getType() { |
+ return type; |
+ } |
+ |
+ @Override |
+ public void setType(Type type) { |
+ this.type = type; |
} |
} |