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

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

Issue 11345035: TypeVariableMirror and TypedefMirror updated. (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 | « 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 38d0d3553fb516029855c3e60dc4aad2393c847b..16348b05b068daeaf4e2c5e6b3a89a442aef7b0d 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -981,7 +981,7 @@ class Dartdoc {
}
write('typedef ');
- annotateType(type, type.definition, type.simpleName);
+ annotateType(type, type.value, type.simpleName);
write(''' <a class="anchor-link" href="#${type.simpleName}"
title="Permalink to ${type.simpleName}">#</a>''');
@@ -1659,9 +1659,9 @@ class Dartdoc {
final typeParams = [];
for (final typeParam in type.originalDeclaration.typeVariables) {
if (showBounds &&
- (typeParam.bound != null) &&
- !typeParam.bound.isObject) {
- final bound = typeName(typeParam.bound, showBounds: true);
+ (typeParam.upperBound != null) &&
+ !typeParam.upperBound.isObject) {
+ final bound = typeName(typeParam.upperBound, showBounds: true);
typeParams.add('${typeParam.simpleName} extends $bound');
} else {
typeParams.add(typeParam.simpleName);
« 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