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

Unified Diff: utils/apidoc/apidoc.dart

Issue 9113094: Fix apidoc to work with latest frog and dartdoc. (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
« no previous file with comments | « utils/apidoc/apidoc ('k') | utils/apidoc/html_diff.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/apidoc.dart
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart
index b7f8eb5dfb681b64aeebba31af7f2b554a87e57f..85983e0001dbb2c481c44c083727fff3c5c32cd1 100644
--- a/utils/apidoc/apidoc.dart
+++ b/utils/apidoc/apidoc.dart
@@ -160,17 +160,19 @@ String getMemberDoc(Member member) {
* `dart:html` or `dart:dom`, returns no additional documentation.
*/
String getTypeDoc(Type type) {
- if (_diff.domTypesToHtml.containsKey(type)) {
- var htmlTypes = doc.joinWithCommas(
- map(_diff.domTypesToHtml[type], _linkType));
- return "_This corresponds to $htmlTypes in the [dart:html](../html.html) " +
- "library._";
- } else if (_diff.htmlTypesToDom.containsKey(type)) {
- var domTypes = doc.joinWithCommas(
- map(_diff.htmlTypesToDom[type], _linkType));
- return "_This corresponds to $domTypes in the [dart:dom](../dom.html) " +
- "library._";
- } else {
- return "";
+ var types = _diff.domTypesToHtml[type];
+ if (types != null && types.length > 0) {
+ final text = doc.joinWithCommas(map(types, _linkType));
+ return '_This corresponds to $text in the [dart:html](../html.html) ' +
+ 'library._';
}
+
+ types = _diff.htmlTypesToDom[type];
+ if (types != null && types.length > 0) {
+ final text = doc.joinWithCommas(map(types, _linkType));
+ return '_This corresponds to $text in the [dart:dom](../dom.html) ' +
+ 'library._';
+ }
+
+ return '';
}
« no previous file with comments | « utils/apidoc/apidoc ('k') | utils/apidoc/html_diff.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698