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

Unified Diff: tools/json_schema_compiler/model.py

Issue 10546078: Extension docs server: APIDataSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor changes Created 8 years, 6 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/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 23b77c6d1402dba8ee88cf0d33b7f78b28b0ef81..1b353ac74a0589aa39ac546f9851c9c84b793e1b 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -46,7 +46,7 @@ class Namespace(object):
"""
def __init__(self, json, source_file):
self.name = json['namespace']
- self.unix_name = _UnixName(self.name)
+ self.unix_name = UnixName(self.name)
self.source_file = source_file
self.source_file_dir, self.source_file_filename = os.path.split(source_file)
self.parent = None
@@ -178,7 +178,7 @@ class Property(object):
users of generated code, such as top-level types and function results
"""
self.name = name
- self._unix_name = _UnixName(self.name)
+ self._unix_name = UnixName(self.name)
self._unix_name_used = False
self.optional = json.get('optional', False)
self.has_value = False
@@ -308,7 +308,7 @@ class PropertyType(object):
ANY = _Info(False, "ANY")
ADDITIONAL_PROPERTIES = _Info(False, "ADDITIONAL_PROPERTIES")
-def _UnixName(name):
+def UnixName(name):
"""Returns the unix_style name for a given lowerCamelCase string.
"""
# First replace any lowerUpper patterns with lower_Upper.
« no previous file with comments | « chrome/common/extensions/docs/template2/public/browserAction.html ('k') | tools/json_schema_compiler/model_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698