Index: Source/bindings/dart/scripts/dart_methods.py |
diff --git a/Source/bindings/dart/scripts/dart_methods.py b/Source/bindings/dart/scripts/dart_methods.py |
index 07ec4bf99755a60baa6b75ea8ea350d6d70a462e..87939ebec7fb21526015bd7656efa3c945ed45bd 100644 |
--- a/Source/bindings/dart/scripts/dart_methods.py |
+++ b/Source/bindings/dart/scripts/dart_methods.py |
@@ -86,7 +86,7 @@ def generate_method(interface, method): |
else: |
this_cpp_type = idl_type.cpp_type |
- is_auto_scope = dart_types.is_auto_scope_callback(interface.name, name) |
+ is_auto_scope = not 'DartNoAutoScope' in extended_attributes |
method_data = { |
'activity_logging_world_list': dart_utilities.activity_logging_world_list(method), # [ActivityLogging] |
'arguments': [generate_argument(interface, method, argument, index) |
@@ -160,7 +160,7 @@ def generate_argument(interface, method, argument, index): |
this_cpp_value = cpp_value(interface, method, index) |
is_variadic_wrapper_type = argument.is_variadic and idl_type.is_wrapper_type |
use_heap_vector_type = is_variadic_wrapper_type and idl_type.is_will_be_garbage_collected |
- auto_scope = dart_types.is_auto_scope_callback(interface.name, method.name) |
+ auto_scope = not 'DartNoAutoScope' in extended_attributes |
this_has_default = 'Default' in extended_attributes |
arg_index = index + 1 if not method.is_static else index |
@@ -263,7 +263,7 @@ def dart_set_return_value(interface_name, method, cpp_value, for_main_world=Fals |
# cpp_value = 'result' # use local variable for value |
# release = idl_type.release |
- auto_scope = dart_types.is_auto_scope_callback(interface_name, method.name), |
+ auto_scope = not 'DartNoAutoScope' in extended_attributes |
script_wrappable = 'impl' if inherits_interface(interface_name, 'Node') else '' |
return idl_type.dart_set_return_value(cpp_value, extended_attributes, |
script_wrappable=script_wrappable, |