From: Rico Tzschichholz Date: Tue, 20 Feb 2018 11:56:53 +0000 (+0100) Subject: codegen: Add source_reference to some store_local/_field() calls X-Git-Tag: 0.39.92~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00791762328402bb337448b5082c4da126d8b29d;p=thirdparty%2Fvala.git codegen: Add source_reference to some store_local/_field() calls --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index d93db9c19..9935a4a49 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -2461,7 +2461,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { if (rhs != null) { if (!is_simple_struct_creation (local, local.initializer)) { - store_local (local, local.initializer.target_value, true); + store_local (local, local.initializer.target_value, true, local.source_reference); } } @@ -2592,7 +2592,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { } } - store_field (field, instance, expr.target_value); + store_field (field, instance, expr.target_value, expr.source_reference); } list.target_value = instance; @@ -4886,7 +4886,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { var f = (Field) init.symbol_reference; var instance_target_type = get_data_type_for_symbol ((TypeSymbol) f.parent_symbol); var typed_inst = transform_value (new GLibValue (expr.type_reference, instance, true), instance_target_type, init); - store_field (f, typed_inst, init.initializer.target_value); + store_field (f, typed_inst, init.initializer.target_value, init.source_reference); var cl = f.parent_symbol as Class; if (cl != null) {