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

Unified Diff: utils/dartdoc/dartdoc.dart

Issue 8888002: Fix displaying generic types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 9 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: utils/dartdoc/dartdoc.dart
diff --git a/utils/dartdoc/dartdoc.dart b/utils/dartdoc/dartdoc.dart
index 2eb9ec34b1440360d223604c0c554cd8bca18c16..18b15bdfb2c0f3bc4af0cd150b6f464ba483fcba 100644
--- a/utils/dartdoc/dartdoc.dart
+++ b/utils/dartdoc/dartdoc.dart
@@ -626,7 +626,8 @@ linkToType(Type enclosingType, Type type) {
}
// Link to the type.
- write(a(typeUrl(type), type.name));
+ // Use .genericType to avoid writing the <...> here.
+ write(a(typeUrl(type), type.genericType.name));
// See if it's a generic type.
if (type.isGeneric) {
« 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