diff options
Diffstat (limited to 'codegen/valaccodebasemodule.vala')
-rw-r--r-- | codegen/valaccodebasemodule.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 0bf62de07..6d021ddf3 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -45,6 +45,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { public Map<string,string> variable_name_map = new HashMap<string,string> (str_hash, str_equal); public Map<string,int> closure_variable_count_map = new HashMap<string,int> (str_hash, str_equal); public Map<LocalVariable,int> closure_variable_clash_map = new HashMap<LocalVariable,int> (); + public bool is_in_method_precondition; public EmitContext (Symbol? symbol = null) { current_symbol = symbol; @@ -99,6 +100,11 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { set { emit_context.current_inner_error_id = value; } } + public bool is_in_method_precondition { + get { return emit_context.is_in_method_precondition; } + set { emit_context.is_in_method_precondition = value; } + } + public TypeSymbol? current_type_symbol { get { var sym = current_symbol; |