[vala/0.38] codegen: Add source_reference to some store_local/_field() calls
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.38] codegen: Add source_reference to some store_local/_field() calls
- Date: Fri, 2 Mar 2018 16:20:09 +0000 (UTC)
commit 15c14bab19b2ed3416f2fce27fb17df571374786
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Feb 20 12:56:53 2018 +0100
codegen: Add source_reference to some store_local/_field() calls
codegen/valaccodebasemodule.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 18aeea9..f6e8ae1 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -2431,7 +2431,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);
}
}
@@ -2562,7 +2562,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;
@@ -4852,7 +4852,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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]