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

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

Issue 9465011: Support arguments in constructors. (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 | « no previous file | client/dom/scripts/systemnative.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/generator.py
diff --git a/client/dom/scripts/generator.py b/client/dom/scripts/generator.py
index 971a91042e15771b69fb06e9203260c9d221c957..b81e44b25ee16c83321aef967e185915264042fe 100644
--- a/client/dom/scripts/generator.py
+++ b/client/dom/scripts/generator.py
@@ -285,18 +285,22 @@ def AnalyzeConstructor(interface):
if func_value:
# [Constructor(param,...)]
args = GetArgs(func_value)
+ idl_args = func_value.arguments
else: # [Constructor]
args = []
+ idl_args = []
else:
func_value = interface.ext_attrs.get('NamedConstructor')
if func_value:
name = func_value.id
args = GetArgs(func_value)
+ idl_args = func_value.arguments
else:
return None
info = OperationInfo()
- info.overloads = None # [func_value]
+ info.overloads = None
+ info.idl_args = idl_args
info.declared_name = name
info.name = name
info.js_name = name
« no previous file with comments | « no previous file | client/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698