}
}
+ public Destructor? current_destructor {
+ get {
+ var sym = current_symbol;
+ while (sym is Block) {
+ sym = sym.parent_symbol;
+ }
+ return sym as Destructor;
+ }
+ }
+
public DataType? current_return_type {
get {
var m = current_method;
return current_property_accessor.prop.this_parameter.variable_type;
} else if (current_constructor != null && current_constructor.binding == MemberBinding.INSTANCE) {
return current_constructor.this_parameter.variable_type;
+ } else if (current_destructor != null && current_destructor.binding == MemberBinding.INSTANCE) {
+ return current_destructor.this_parameter.variable_type;
}
return null;
}