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

Unified Diff: utils/dartdoc/files.dart

Issue 9150011: Add some tests for dartdoc name reference resolution. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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: utils/dartdoc/files.dart
diff --git a/utils/dartdoc/files.dart b/utils/dartdoc/files.dart
index 53a463e37d68402ec5e9fc2953dfbd9954a91d91..a51c78c33ad8918d31178ca5bde874839c1266c3 100644
--- a/utils/dartdoc/files.dart
+++ b/utils/dartdoc/files.dart
@@ -61,6 +61,7 @@ libraryUrl(Library library) => '${sanitize(library.name)}.html';
/** Gets the URL for the documentation for [type]. */
typeUrl(Type type) {
+ if (type.isTop) return '${sanitize(type.library.name)}.html';
// Always get the generic type to strip off any type parameters or arguments.
// If the type isn't generic, genericType returns `this`, so it works for
// non-generic types too.

Powered by Google App Engine
This is Rietveld 408576698