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

Unified Diff: client/dom/scripts/idlrenderer.py

Issue 9669030: Tweak database IDL format to print interface attributes on separate lines (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/idlrenderer.py
diff --git a/client/dom/scripts/idlrenderer.py b/client/dom/scripts/idlrenderer.py
index 0e95040db2a147cc434f0d5273420f4c498f270d..46f90c61edb661054308699831e8359301aaf600 100755
--- a/client/dom/scripts/idlrenderer.py
+++ b/client/dom/scripts/idlrenderer.py
@@ -57,14 +57,16 @@ def render(idl_node, indent_str=' '):
end_indent()
wln('};')
elif isinstance(node, IDLInterface):
- w(node.annotations)
- w(node.ext_attrs)
+ wln(node.annotations)
+ wln(node.ext_attrs)
w('interface %s' % node.id)
begin_indent()
+ begin_indent()
if node.parents:
wln(' :')
w(node.parents, ',\n')
wln(' {')
+ end_indent()
if node.constants:
wln()
wln('/* Constants */')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698