| OLD | NEW |
| 1 {% macro v8_value_to_local_cpp_value(thing) %} | 1 {% macro v8_value_to_local_cpp_value(thing) %} |
| 2 {# This indirection is just to avoid spurious white-space lines. #} | 2 {# This indirection is just to avoid spurious white-space lines. #} |
| 3 {{generate_v8_value_to_local_cpp_value(thing) | trim}} | 3 {{generate_v8_value_to_local_cpp_value(thing) | trim}} |
| 4 {%- endmacro %} | 4 {%- endmacro %} |
| 5 | 5 |
| 6 | 6 |
| 7 {% macro generate_v8_value_to_local_cpp_value(thing) %} | 7 {% macro generate_v8_value_to_local_cpp_value(thing) %} |
| 8 {% set item = thing.v8_value_to_local_cpp_value or thing %} | 8 {% set item = thing.v8_value_to_local_cpp_value or thing %} |
| 9 {% if item.error_message %} | 9 {% if item.error_message %} |
| 10 /* {{item.error_message}} */ | 10 /* {{item.error_message}} */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 {% endmacro %} | 31 {% endmacro %} |
| 32 | 32 |
| 33 | 33 |
| 34 {% macro declare_enum_validation_variable(enum_values) %} | 34 {% macro declare_enum_validation_variable(enum_values) %} |
| 35 const char* validValues[] = { | 35 const char* validValues[] = { |
| 36 {% for enum_value in enum_values %} | 36 {% for enum_value in enum_values %} |
| 37 "{{enum_value}}", | 37 "{{enum_value}}", |
| 38 {% endfor %} | 38 {% endfor %} |
| 39 }; | 39 }; |
| 40 {%-endmacro %} | 40 {%-endmacro %} |
| 41 |
| 42 |
| 43 {% macro property_location(member) %} |
| 44 {% set property_location_list = [] %} |
| 45 {% if member.on_instance %} |
| 46 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nInstance'] %} |
| 47 {% endif %} |
| 48 {% if member.on_prototype %} |
| 49 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nPrototype'] %} |
| 50 {% endif %} |
| 51 {% if member.on_interface %} |
| 52 {% set property_location_list = property_location_list + ['V8DOMConfiguration::O
nInterface'] %} |
| 53 {% endif %} |
| 54 {{property_location_list | join(' | ')}} |
| 55 {%- endmacro %} |
| OLD | NEW |