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

Unified Diff: core/scripts/name_macros.py

Issue 22498002: Roll IDL to multivm@1329 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 4 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 | « core/scripts/make_token_matcher_unittest.py ('k') | core/scripts/rule_bison.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/scripts/name_macros.py
diff --git a/core/scripts/name_macros.py b/core/scripts/name_macros.py
index 11d2228603a66c410edc7766e1e464cdb1bf983f..01d3644636218aaf9b4d9dd4641e6be1388bba39 100644
--- a/core/scripts/name_macros.py
+++ b/core/scripts/name_macros.py
@@ -81,7 +81,7 @@ class Writer(in_generator.Writer):
def _sort_entries_by_conditional(self):
unconditional_names = set()
for entry in self.in_file.name_dictionaries:
- conditional = entry['conditional']
+ conditional = entry['Conditional']
if not conditional:
name = self._class_name_for_entry(entry)
if name in unconditional_names:
@@ -93,22 +93,22 @@ class Writer(in_generator.Writer):
name = self._class_name_for_entry(entry)
if name in unconditional_names:
continue
- conditional = entry['conditional']
+ conditional = entry['Conditional']
if not conditional in self._entries_by_conditional:
self._entries_by_conditional[conditional] = []
self._entries_by_conditional[conditional].append(entry)
def _class_name_for_entry(self, entry):
- if entry['implementedAs']:
- return entry['implementedAs']
+ if entry['ImplementedAs']:
+ return entry['ImplementedAs']
return os.path.basename(entry['name'])
def _headers_header_include_path(self, entry):
- if entry['implementedAs']:
+ if entry['ImplementedAs']:
path = os.path.dirname(entry['name'])
if len(path):
path += '/'
- path += entry['implementedAs']
+ path += entry['ImplementedAs']
else:
path = entry['name']
return path + '.h'
@@ -124,7 +124,7 @@ class Writer(in_generator.Writer):
'path': self._headers_header_include_path(entry),
'js_name': os.path.basename(entry['name']),
}
- includes[class_name] = self.wrap_with_condition(include, entry['conditional'])
+ includes[class_name] = self.wrap_with_condition(include, entry['Conditional'])
return includes.values()
def generate_headers_header(self):
« no previous file with comments | « core/scripts/make_token_matcher_unittest.py ('k') | core/scripts/rule_bison.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698