This flag is still useful on delegates such as ThreadFunc that are
always scope = "async" by default. The flag on the parameter will
override the flag has been set on the delegate.
return false;
}
+ if (has_attribute_argument ("CCode", "scope") && variable_type is DelegateType) {
+ var delegate_type = (DelegateType) variable_type;
+ delegate_type.is_called_once = get_attribute_string ("CCode", "scope") == "async";
+ }
+
if (initializer != null) {
initializer.target_type = variable_type.copy ();
initializer.check (context);