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

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

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from mmendez Created 9 years 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 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;
}
}

Powered by Google App Engine
This is Rietveld 408576698