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

Unified Diff: pkg/dartdoc/lib/mirrors_util.dart

Issue 11348036: Alignments for the ClassMirror interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 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
« no previous file with comments | « pkg/dartdoc/lib/mirrors.dart ('k') | pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/mirrors_util.dart
diff --git a/pkg/dartdoc/lib/mirrors_util.dart b/pkg/dartdoc/lib/mirrors_util.dart
index a87085f11c91efd164b210678eb83063f2319923..69f71087b8f78cd6b081571a77ce274ea0801ca1 100644
--- a/pkg/dartdoc/lib/mirrors_util.dart
+++ b/pkg/dartdoc/lib/mirrors_util.dart
@@ -17,22 +17,22 @@
* the declaration of this type.
*/
Iterable<ClassMirror> computeSubdeclarations(ClassMirror type) {
- type = type.declaration;
+ type = type.originalDeclaration;
var subtypes = <ClassMirror>[];
type.system.libraries.forEach((_, library) {
for (ClassMirror otherType in library.classes.values) {
var superClass = otherType.superclass;
if (superClass !== null) {
- superClass = superClass.declaration;
+ superClass = superClass.originalDeclaration;
if (type.library === superClass.library) {
if (superClass == type) {
subtypes.add(otherType);
}
}
}
- final superInterfaces = otherType.interfaces;
+ final superInterfaces = otherType.superinterfaces;
for (ClassMirror superInterface in superInterfaces) {
- superInterface = superInterface.declaration;
+ superInterface = superInterface.originalDeclaration;
if (type.library === superInterface.library) {
if (superInterface == type) {
subtypes.add(otherType);
@@ -113,7 +113,7 @@ class HierarchyIterator implements Iterator<ClassMirror> {
queue.addFirst(type.superclass);
}
}
- queue.addAll(type.interfaces);
+ queue.addAll(type.superinterfaces);
return type;
}
« no previous file with comments | « pkg/dartdoc/lib/mirrors.dart ('k') | pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698