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

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

Issue 9426043: Parse function-style extended attributes part #1 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « client/dom/scripts/idlnode.py ('k') | client/dom/scripts/idlrenderer_test.py » ('j') | 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 2237736155ad60826a597340f1bb8c2026e9fbf1..0e95040db2a147cc434f0d5273420f4c498f270d 100755
--- a/client/dom/scripts/idlrenderer.py
+++ b/client/dom/scripts/idlrenderer.py
@@ -105,9 +105,20 @@ def render(idl_node, indent_str=' '):
w(k)
v = node[k]
if v is not None:
- w('=%s' % v.__str__())
+ if isinstance(v, IDLExtAttrFunctionValue):
+ if v.id:
+ w('=')
+ w(v)
+ else:
+ w('=%s' % v.__str__())
i += 1
w('] ')
+ elif isinstance(node, IDLExtAttrFunctionValue):
+ if node.id:
+ w(node.id)
+ w('(')
+ w(node.arguments, ', ')
+ w(')')
elif isinstance(node, IDLAttribute):
w(node.annotations)
w(node.ext_attrs)
« no previous file with comments | « client/dom/scripts/idlnode.py ('k') | client/dom/scripts/idlrenderer_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698