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

Unified Diff: sdk/lib/html/scripts/htmldartgenerator.py

Issue 11299120: Standardized /// @domName comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/scripts/htmldartgenerator.py
diff --git a/sdk/lib/html/scripts/htmldartgenerator.py b/sdk/lib/html/scripts/htmldartgenerator.py
index 45d122d04c835f07a7c9056b41b01b16b935dfe2..8f445a12615aa22db23d0db00b1ba7d48d9cd8a2 100644
--- a/sdk/lib/html/scripts/htmldartgenerator.py
+++ b/sdk/lib/html/scripts/htmldartgenerator.py
@@ -32,26 +32,24 @@ class HtmlDartGenerator(object):
""" Emits the MDN dartdoc comment for an attribute.
"""
dom_name = DartDomNameOfAttribute(attribute)
- self._members_emitter.Emit('\n /** @domName $DOMINTERFACE.$DOMNAME;'
- ' @docsEditable true */',
+ self._members_emitter.Emit('\n /// @domName $DOMINTERFACE.$DOMNAME;'
+ ' @docsEditable true',
DOMINTERFACE=attribute.doc_js_interface_name,
DOMNAME=dom_name)
def EmitOperationDocumentation(self, operation):
""" Emits the MDN dartdoc comment for an operation.
"""
- self._members_emitter.Emit('\n /** @domName $DOMINTERFACE.$DOMNAME;'
- ' @docsEditable true */',
+ self._members_emitter.Emit('\n /// @domName $DOMINTERFACE.$DOMNAME;'
+ ' @docsEditable true',
DOMINTERFACE=operation.overloads[0].doc_js_interface_name,
DOMNAME=operation.name)
def EmitEventGetter(self, events_class_name):
self._members_emitter.Emit(
- '\n /**'
- '\n * @domName EventTarget.addEventListener, '
+ '\n /// @domName EventTarget.addEventListener, '
'EventTarget.removeEventListener, EventTarget.dispatchEvent;'
' @docsEditable true'
- '\n */'
'\n $TYPE get on =>\n new $TYPE(this);\n',
TYPE=events_class_name)
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698