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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java

Issue 9695025: Fixes for previous CL review comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/resolver/TypeVariableElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java
index bfc01af84cab6180f429a5d2d259c8e904e28671..e194080bc632007b38f3c34367633d4c89a9bff7 100644
--- a/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java
@@ -11,14 +11,14 @@ import com.google.dart.compiler.type.TypeVariable;
import com.google.dart.compiler.type.Types;
/**
- * Represention of a type variable.
+ * Representation of a type variable.
*
* <p>
* For example, in {@code class Foo<T> ... } , {@code T} is a type variable.
*/
class TypeVariableElementImplementation extends AbstractElement implements TypeVariableElement {
- private final Element owner;
+ private final EnclosingElement owner;
private TypeVariable type;
private Type bound;
private final DartTypeNode boundNode;
@@ -28,7 +28,7 @@ class TypeVariableElementImplementation extends AbstractElement implements TypeV
this.bound = bound;
}
- TypeVariableElementImplementation(DartTypeParameter node, String name, Element owner) {
+ TypeVariableElementImplementation(DartTypeParameter node, String name, EnclosingElement owner) {
super(node, name);
this.owner = owner;
this.boundNode = node != null ? node.getBound() : null;
@@ -44,7 +44,7 @@ class TypeVariableElementImplementation extends AbstractElement implements TypeV
return ElementKind.TYPE_VARIABLE;
}
- static TypeVariableElementImplementation fromNode(DartTypeParameter node, Element owner) {
+ static TypeVariableElementImplementation fromNode(DartTypeParameter node, EnclosingElement owner) {
TypeVariableElementImplementation element =
new TypeVariableElementImplementation(node, node.getName().getName(), owner);
element.setType(Types.typeVariable(element));
@@ -81,7 +81,7 @@ class TypeVariableElementImplementation extends AbstractElement implements TypeV
}
@Override
- public Element getEnclosingElement() {
+ public EnclosingElement getEnclosingElement() {
return owner;
}
}

Powered by Google App Engine
This is Rietveld 408576698