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

Unified Diff: Source/bindings/scripts/idl_definitions.py

Issue 340443004: IDL: reuse more code between CG for methods and constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename scriptContext -> executionContext Created 6 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 | « no previous file | Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/idl_definitions.py
diff --git a/Source/bindings/scripts/idl_definitions.py b/Source/bindings/scripts/idl_definitions.py
index 9ed52133763880d1dfd0a6df4546551579d168af..50664ba12ef7addd5cb3cbc69484e0629231ba3d 100644
--- a/Source/bindings/scripts/idl_definitions.py
+++ b/Source/bindings/scripts/idl_definitions.py
@@ -455,6 +455,7 @@ class IdlOperation(TypedObject):
self.arguments = []
self.extended_attributes = {}
self.specials = []
+ self.is_constructor = False
if not node:
self.is_static = False
@@ -509,6 +510,7 @@ class IdlOperation(TypedObject):
constructor = cls()
constructor.name = name
constructor.arguments = arguments_node_to_arguments(arguments_node)
+ constructor.is_constructor = True
return constructor
def resolve_typedefs(self, typedefs):
« no previous file with comments | « no previous file | Source/bindings/scripts/v8_attributes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698