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

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

Issue 11342039: LibraryMirror interface updated to match dart:mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment 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 | « no previous file | pkg/dartdoc/lib/mirrors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/dartdoc.dart
diff --git a/pkg/dartdoc/lib/dartdoc.dart b/pkg/dartdoc/lib/dartdoc.dart
index 2c8897ca048b3155e0ce1f22155fb1b1b25f553c..ad0867d5dc67ed9803f4f26f04b066cde1055847 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -586,7 +586,7 @@ class Dartdoc {
}
final types = [];
- for (ClassMirror type in orderByName(library.types.values)) {
+ for (ClassMirror type in orderByName(library.classes.values)) {
if (!showPrivate && type.isPrivate) continue;
var typeInfo = {};
@@ -684,7 +684,7 @@ class Dartdoc {
final types = <ClassMirror>[];
final exceptions = <ClassMirror>[];
- for (ClassMirror type in orderByName(library.types.values)) {
+ for (ClassMirror type in orderByName(library.classes.values)) {
if (!showPrivate && type.isPrivate) continue;
if (isException(type)) {
@@ -750,7 +750,7 @@ class Dartdoc {
final typedefs = <TypedefMirror>[];
final exceptions = <ClassMirror>[];
- for (ClassMirror type in orderByName(library.types.values)) {
+ for (ClassMirror type in orderByName(library.classes.values)) {
if (!showPrivate && type.isPrivate) continue;
if (isException(type)) {
@@ -774,7 +774,7 @@ class Dartdoc {
writeFooter();
endFile();
- for (final type in library.types.values) {
+ for (final type in library.classes.values) {
if (!showPrivate && type.isPrivate) continue;
docType(type);
@@ -1754,7 +1754,7 @@ class Dartdoc {
new RegExp(r'new ([\w$]+)(?:\.([\w$]+))?').firstMatch(name);
if (match == null) return;
String typeName = match[1];
- ClassMirror foundtype = currentLibrary.types[typeName];
+ ClassMirror foundtype = currentLibrary.classes[typeName];
if (foundtype == null) return;
String constructorName =
(match[2] == null) ? typeName : '$typeName.${match[2]}';
@@ -1769,7 +1769,7 @@ class Dartdoc {
final foreignMemberLink = (() {
final match = new RegExp(r'([\w$]+)\.([\w$]+)').firstMatch(name);
if (match == null) return;
- ClassMirror foundtype = currentLibrary.types[match[1]];
+ ClassMirror foundtype = currentLibrary.classes[match[1]];
if (foundtype == null) return;
MemberMirror foundMember = foundtype.declaredMembers[match[2]];
if (foundMember == null) return;
@@ -1777,7 +1777,7 @@ class Dartdoc {
})();
if (foreignMemberLink != null) return foreignMemberLink;
- ClassMirror foundType = currentLibrary.types[name];
+ ClassMirror foundType = currentLibrary.classes[name];
if (foundType != null) {
return makeLink(typeUrl(foundType));
}
« no previous file with comments | « no previous file | pkg/dartdoc/lib/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698