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

Unified Diff: sdk/lib/_internal/lib/js_rti.dart

Issue 26472002: Add TypeVariable object on runtime to support reflection on type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 7 years, 2 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: sdk/lib/_internal/lib/js_rti.dart
diff --git a/sdk/lib/_internal/lib/js_rti.dart b/sdk/lib/_internal/lib/js_rti.dart
index 432d2374021223ec4d8a611d91f38e4249691c72..a5498929b460d445533a9bd379a252c31f856bcc 100644
--- a/sdk/lib/_internal/lib/js_rti.dart
+++ b/sdk/lib/_internal/lib/js_rti.dart
@@ -65,6 +65,19 @@ class TypeImpl implements Type {
return (other is TypeImpl) && _typeName == other._typeName;
}
}
+/**
ahe 2013/10/15 14:56:31 Missing newline.
zarah 2013/10/16 07:00:47 Done.
+ * Represents a type variable.
+ *
+ * This class holds the information needed when reflecting on generic classes
+ * and their members.
+ */
+class TypeVariable {
+ final Type owner;
+ final String name;
+ final int bound;
+
+ const TypeVariable(this.owner, this.name, this.bound);
+}
getMangledTypeName(TypeImpl type) => type._typeName;

Powered by Google App Engine
This is Rietveld 408576698