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

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

Issue 11308087: Added "/// @docsEditable" to all generated members in the HTML lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot a thing. 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/html/templates/dart2js_impl.darttemplate » ('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 0e109da0f5c80143b3a1f4fee86b4b455e34569d..70eb2f27902884375dc465d45d5e384a0642ef9c 100644
--- a/sdk/lib/html/scripts/htmldartgenerator.py
+++ b/sdk/lib/html/scripts/htmldartgenerator.py
@@ -32,14 +32,16 @@ class HtmlDartGenerator(object):
""" Emits the MDN dartdoc comment for an attribute.
"""
dom_name = DartDomNameOfAttribute(attribute)
- self._members_emitter.Emit('\n /** @domName $DOMINTERFACE.$DOMNAME */',
+ self._members_emitter.Emit('\n /** @domName $DOMINTERFACE.$DOMNAME */\n'
+ ' /// @docsEditable',
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 */',
+ self._members_emitter.Emit('\n /** @domName $DOMINTERFACE.$DOMNAME */\n'
blois 2012/11/19 23:19:06 Seems odd to have two doc comments- can we just ro
+ ' /// @docsEditable',
DOMINTERFACE=operation.overloads[0].doc_js_interface_name,
DOMNAME=operation.name)
@@ -48,7 +50,7 @@ class HtmlDartGenerator(object):
'\n /**'
'\n * @domName EventTarget.addEventListener, '
'EventTarget.removeEventListener, EventTarget.dispatchEvent'
- '\n */'
+ '\n */\n /// @docsEditable'
'\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/html/templates/dart2js_impl.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698