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

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

Issue 10521002: Use WebKit IDL syntax for declaring optional parameters in dart.idl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « lib/dom/scripts/idlnode.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/idlrenderer.py
diff --git a/lib/dom/scripts/idlrenderer.py b/lib/dom/scripts/idlrenderer.py
index 131a476b1303464ebe937668c1b967cb9354b3ca..95ce067290cf111ec162218a5c1e714c31387593 100755
--- a/lib/dom/scripts/idlrenderer.py
+++ b/lib/dom/scripts/idlrenderer.py
@@ -169,8 +169,6 @@ def render(idl_node, indent_str=' '):
elif isinstance(node, IDLArgument):
wsp(node.ext_attrs)
w('in ')
- if node.is_optional:
- w('optional ')
w('%s %s' % (node.type.id, node.id))
else:
raise TypeError("Expected str or IDLNode but %s found" %
« no previous file with comments | « lib/dom/scripts/idlnode.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698