| OLD | NEW |
| 1 {##############################################################################} | 1 {##############################################################################} |
| 2 {# FIXME: We should return a rejected Promise if an error occurs in this | 2 {# FIXME: We should return a rejected Promise if an error occurs in this |
| 3 function when ALL methods in this overload return Promise. In order to do so, | 3 function when ALL methods in this overload return Promise. In order to do so, |
| 4 we must ensure either ALL or NO methods in this overload return Promise #} | 4 we must ensure either ALL or NO methods in this overload return Promise #} |
| 5 {% macro overload_resolution_method(method) %} | 5 {% macro overload_resolution_method(method) %} |
| 6 {% set overloads = method.overloads %} | 6 {% set overloads = method.overloads %} |
| 7 {% if method.is_static %} | 7 {% if method.is_static %} |
| 8 {% set offset = 0 %} | 8 {% set offset = 0 %} |
| 9 {% else %} | 9 {% else %} |
| 10 {% set offset = 1 %} | 10 {% set offset = 1 %} |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 397 |
| 398 {##############################################################################} | 398 {##############################################################################} |
| 399 {% macro generate_symbolizer_constructor(dart_class, class_name, constructor) %} | 399 {% macro generate_symbolizer_constructor(dart_class, class_name, constructor) %} |
| 400 {% for native_entry in constructor.native_entries %} | 400 {% for native_entry in constructor.native_entries %} |
| 401 {% set resolver_string = native_entry.resolver_string %} | 401 {% set resolver_string = native_entry.resolver_string %} |
| 402 if (native_function == {{dart_class}}Internal::{{static_method_name(constructor.
name, constructor.overload_index)}}) { | 402 if (native_function == {{dart_class}}Internal::{{static_method_name(constructor.
name, constructor.overload_index)}}) { |
| 403 return reinterpret_cast<const uint8_t*>("{{resolver_string}}"); | 403 return reinterpret_cast<const uint8_t*>("{{resolver_string}}"); |
| 404 } | 404 } |
| 405 {% endfor %} | 405 {% endfor %} |
| 406 {% endmacro %} | 406 {% endmacro %} |
| OLD | NEW |