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

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

Issue 112103005: Two small docgen fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index 9bc6e1002fd417b1abbe81b47d847636db351148..d75b60f6910434507e801f508b942d694a4d4623 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -199,7 +199,7 @@ String _packageIntro(packageDir) {
.startsWith('README'))).toList();
if (readmes.isEmpty) return '';
// If there are multiples, pick the shortest name.
- readmes.sort((a, b) => a.length.compareTo(b.length));
+ readmes.sort((a, b) => a.path.length.compareTo(b.path.length));
var readme = readmes.first;
var linkResolver = (name) => fixReference(name, null, null, null);
var contents = markdown.markdownToHtml(readme
@@ -1156,7 +1156,7 @@ class Class extends Indexable implements Comparable {
// and tell them to update their links, given these other exported
// names within the library.
for (Exported member in library._exportedMembers.values) {
- member.updateExports(library._exportedMembers.keys);
+ member.updateExports(library._exportedMembers);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698