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

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

Issue 699713003: IDL: ArrayBuffer and ArrayBufferView support for union types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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_union.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/compute_interfaces_info_individual.py
diff --git a/Source/bindings/scripts/compute_interfaces_info_individual.py b/Source/bindings/scripts/compute_interfaces_info_individual.py
index c32e46b414d2bdad53a5bea599025ba40b5e8c99..9bfa7b6263d22a973e61bc9154354f99b85bf247 100755
--- a/Source/bindings/scripts/compute_interfaces_info_individual.py
+++ b/Source/bindings/scripts/compute_interfaces_info_individual.py
@@ -143,6 +143,10 @@ def collect_union_types_from_definitions(definitions):
this_union_types.update(union_types_from(operation.arguments))
if operation.idl_type.is_union_type:
this_union_types.add(operation.idl_type)
+ for constructor in interface.constructors:
+ this_union_types.update(union_types_from(constructor.arguments))
+ for constructor in interface.custom_constructors:
+ this_union_types.update(union_types_from(constructor.arguments))
for callback_function in definitions.callback_functions.itervalues():
this_union_types.update(union_types_from(callback_function.arguments))
if callback_function.idl_type.is_union_type:
« no previous file with comments | « no previous file | Source/bindings/scripts/v8_union.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698