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

Unified Diff: ppapi/generators/idl_node.py

Issue 9388002: Add support for Chrome Apps to IDL lexer/parser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed apps_tests from this CL, will put them back in when we move generators to new location in t… Created 8 years, 10 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 | « ppapi/generators/idl_lexer.py ('k') | ppapi/generators/idl_option.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_node.py
diff --git a/ppapi/generators/idl_node.py b/ppapi/generators/idl_node.py
index 0fee3ecc5bf5c75944e030fb4d1880356a1327d3..275562c74f2d4145e9241cc44d7076c2aec870cd 100755
--- a/ppapi/generators/idl_node.py
+++ b/ppapi/generators/idl_node.py
@@ -132,14 +132,18 @@ class IDLNode(IDLRelease):
tab = ''.rjust(depth * 2)
if is_comment:
+ out.write('%sComment\n' % tab)
for line in self.GetName().split('\n'):
- out.write('%s%s\n' % (tab, line))
+ out.write('%s "%s"\n' % (tab, line))
else:
out.write('%s%s\n' % (tab, self))
properties = self.property_node.GetPropertyList()
if properties:
out.write('%s Properties\n' % tab)
for p in properties:
+ if is_comment and p == 'NAME':
+ # Skip printing the name for comments, since we printed above already
+ continue
out.write('%s %s : %s\n' % (tab, p, self.GetProperty(p)))
for child in self.children:
child.Dump(depth+1, comments=comments, out=out)
« no previous file with comments | « ppapi/generators/idl_lexer.py ('k') | ppapi/generators/idl_option.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698