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

Unified Diff: lib/dartdoc/dartdoc.dart

Issue 10068019: Fix ApiDoc to work with new dart:html code. Tweak dart:html generator to generate clearer @domName … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | lib/dartdoc/utils.dart » ('j') | lib/dartdoc/utils.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/dartdoc.dart
diff --git a/lib/dartdoc/dartdoc.dart b/lib/dartdoc/dartdoc.dart
index 23b0297831ba074b7e359f01446a0ddb54735656..57191283f9718f3c214726e17a676fc2e7f09cf6 100644
--- a/lib/dartdoc/dartdoc.dart
+++ b/lib/dartdoc/dartdoc.dart
@@ -981,23 +981,25 @@ class Dartdoc {
String getTypeComment(Type type) {
String comment = _comments.find(type.span);
if (comment == null) return null;
- return md.markdownToHtml(comment);
+ return commentToHtml(comment);
}
/** Get the doc comment associated with the given method. */
String getMethodComment(MethodMember method) {
String comment = _comments.find(method.span);
if (comment == null) return null;
- return md.markdownToHtml(comment);
+ return commentToHtml(comment);
}
/** Get the doc comment associated with the given field. */
String getFieldComment(FieldMember field) {
String comment = _comments.find(field.span);
if (comment == null) return null;
- return md.markdownToHtml(comment);
+ return commentToHtml(comment);
}
+ String commentToHtml(String comment) => md.markdownToHtml(comment);
+
/**
* Converts [fullPath] which is understood to be a full path from the root of
* the generated docs to one relative to the current file.
« no previous file with comments | « no previous file | lib/dartdoc/utils.dart » ('j') | lib/dartdoc/utils.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698