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

Unified Diff: tools/json_schema_compiler/js_util.py

Issue 2601333002: Update json_schema_compiler to handle the Automation extension API (Closed)
Patch Set: Fix select_to_speak Created 3 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
Index: tools/json_schema_compiler/js_util.py
diff --git a/tools/json_schema_compiler/js_util.py b/tools/json_schema_compiler/js_util.py
index 2549aefa2fae4966eee2c0f1fe4fef67667b82a7..b5c043d002a9b9bb5a91370e3da82c0a6e918266 100644
--- a/tools/json_schema_compiler/js_util.py
+++ b/tools/json_schema_compiler/js_util.py
@@ -101,6 +101,13 @@ class JsUtil(object):
c.Eblock(' */')
+ def AppendTypeJsDoc(self, c, namespace_name, js_type):
+ """Appends the documentation for a type as a Code.
+ """
+ c.Append('@type {')
+ c.Concat(self._TypeToJsType(namespace_name, js_type), new_line = False)
Dan Beam 2017/01/10 22:54:43 new_line=False
dmazzoni 2017/01/11 22:20:42 Done.
+ c.Append('}', new_line = False)
+
def _FunctionToJsFunction(self, namespace_name, function):
"""Converts a model.Function to a JS type (i.e., function([params])...)"""
c = Code()

Powered by Google App Engine
This is Rietveld 408576698