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

Unified Diff: utils/apidoc/apidoc.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: Code review fixes 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 | « lib/html/frog/html_frog.dart ('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 968546c861567dd91d75b2341552ac54395dfc41..f1f2ba2a0d70ba9fc530a6296d86a113d81d4c6d 100644
--- a/utils/apidoc/apidoc.dart
+++ b/utils/apidoc/apidoc.dart
@@ -12,11 +12,13 @@
*
* $ dart apidoc.dart [--out=<output directory>]
*/
+
#library('apidoc');
#import('dart:io');
#import('dart:json');
#import('html_diff.dart');
+
#import('../../frog/lang.dart');
#import('../../frog/file_system_vm.dart');
#import('../../frog/file_system.dart');
@@ -228,6 +230,12 @@ class Apidoc extends doc.Dartdoc {
super.docLibrary(library);
}
+ /** Override definition from parent class to strip out annotation tags. */
+ String commentToHtml(String comment) {
+ return super.commentToHtml(
+ comment.replaceAll(const RegExp("@([a-zA-Z]+) ([^;]+)(?:;|\$)"), ''));
+ }
+
String getTypeComment(Type type) {
return _mergeDocs(
includeMdnTypeComment(type),
« no previous file with comments | « lib/html/frog/html_frog.dart ('k') | utils/apidoc/html_diff.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698