Gee.Set<string> reserved_identifiers;
public int next_temp_var_id = 0;
- public bool in_creation_method = false;
+ public bool in_creation_method { get { return current_method is CreationMethod; } }
public bool in_constructor = false;
public bool in_static_or_class_ctor = false;
public bool current_method_inner_error = false;
public override void visit_method (Method m) {
var old_symbol = current_symbol;
bool old_method_inner_error = current_method_inner_error;
- bool old_in_creation_method = in_creation_method;
int old_next_temp_var_id = next_temp_var_id;
var old_temp_vars = temp_vars;
var old_temp_ref_vars = temp_ref_vars;
check_type (m.return_type);
if (m is CreationMethod) {
- in_creation_method = true;
var cl = current_type_symbol as Class;
if (cl != null && !cl.is_compact) {
if (cl.base_class == null) {
in_gobject_creation_method = true;
}
}
- } else {
- in_creation_method = false;
}
var creturn_type = current_return_type;
m.body.ccodenode = cblock;
}
-
- in_creation_method = old_in_creation_method;
}
bool inner_error = current_method_inner_error;