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

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

Issue 11341037: Rename InterfaceMirror to ClassMirror (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 5ba60218c9c1fdf07a9cb620e8e68af26d663259..27994a8f0a09fae57ee0c56f21f505ba694c0b81 100644
--- a/pkg/dartdoc/lib/mirrors_util.dart
+++ b/pkg/dartdoc/lib/mirrors_util.dart
@@ -16,11 +16,11 @@
* Returns an iterable over the type declarations directly inheriting from
* the declaration of this type.
*/
-Iterable<InterfaceMirror> computeSubdeclarations(InterfaceMirror type) {
+Iterable<ClassMirror> computeSubdeclarations(ClassMirror type) {
type = type.declaration;
- var subtypes = <InterfaceMirror>[];
+ var subtypes = <ClassMirror>[];
type.system.libraries.forEach((_, library) {
- for (InterfaceMirror otherType in library.types.values) {
+ for (ClassMirror otherType in library.types.values) {
var superClass = otherType.superclass;
if (superClass !== null) {
superClass = superClass.declaration;
@@ -31,7 +31,7 @@ Iterable<InterfaceMirror> computeSubdeclarations(InterfaceMirror type) {
}
}
final superInterfaces = otherType.interfaces;
- for (InterfaceMirror superInterface in superInterfaces) {
+ for (ClassMirror superInterface in superInterfaces) {
superInterface = superInterface.declaration;
if (type.library === superInterface.library) {
if (superInterface == type) {
@@ -73,14 +73,14 @@ int getLocationColumn(Location location) {
return column;
}
-class HierarchyIterable implements Iterable<InterfaceMirror> {
+class HierarchyIterable implements Iterable<ClassMirror> {
final bool includeType;
- final InterfaceMirror type;
+ final ClassMirror type;
HierarchyIterable(this.type, {bool includeType})
: this.includeType = includeType;
- Iterator<InterfaceMirror> iterator() =>
+ Iterator<ClassMirror> iterator() =>
new HierarchyIterator(type, includeType: includeType);
}
@@ -93,11 +93,11 @@ class HierarchyIterable implements Iterable<InterfaceMirror> {
* visited in breadth first order and a superinterface is visited more than once
* if implemented through multiple supertypes.
*/
-class HierarchyIterator implements Iterator<InterfaceMirror> {
- final Queue<InterfaceMirror> queue = new Queue<InterfaceMirror>();
- InterfaceMirror object;
+class HierarchyIterator implements Iterator<ClassMirror> {
+ final Queue<ClassMirror> queue = new Queue<ClassMirror>();
+ ClassMirror object;
- HierarchyIterator(InterfaceMirror type, {bool includeType}) {
+ HierarchyIterator(ClassMirror type, {bool includeType}) {
if (includeType) {
queue.add(type);
} else {
@@ -105,7 +105,7 @@ class HierarchyIterator implements Iterator<InterfaceMirror> {
}
}
- InterfaceMirror push(InterfaceMirror type) {
+ ClassMirror push(ClassMirror type) {
if (type.superclass !== null) {
if (type.superclass.isObject) {
object = type.superclass;
@@ -117,8 +117,8 @@ class HierarchyIterator implements Iterator<InterfaceMirror> {
return type;
}
- InterfaceMirror next() {
- InterfaceMirror type;
+ ClassMirror next() {
+ ClassMirror type;
if (queue.isEmpty) {
if (object === null) {
throw new StateError("No more elements");
« 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