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

Unified Diff: Source/bindings/templates/interface.cpp

Issue 680193003: IDL: Generate union type containers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
Index: Source/bindings/templates/interface.cpp
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
index 702667cae645da1586002fcb1be3677505651e3b..cb44cdf9e70bdde0a97dec4c4ab0f90d2a534d6c 100644
--- a/Source/bindings/templates/interface.cpp
+++ b/Source/bindings/templates/interface.cpp
@@ -168,7 +168,7 @@ static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
v8::String::Utf8Value namedProperty(name);
ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "{{interface_name}}", info.Holder(), info.GetIsolate());
{% endif %}
- {% if getter.union_arguments %}
+ {% if getter.union_result_members %}
{{union_type_method_call_and_set_return_value(getter) | indent}}
{% else %}
{{getter.cpp_type}} result = {{getter.cpp_value}};

Powered by Google App Engine
This is Rietveld 408576698