diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-17 09:15:58 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-17 09:18:38 +0200 |
commit | 516f2095ee47e51f68539eedb366eff9ca623835 (patch) | |
tree | a4245354fabf5ac452b5b168ba768ceada2deab7 /vala/valaenumvaluetype.vala | |
parent | e71ae37140e2567074d5335229a1cdb80651acf0 (diff) | |
download | vala-516f2095ee47e51f68539eedb366eff9ca623835.tar.gz |
vala: Set more missing source references of CodeNode instances
Diffstat (limited to 'vala/valaenumvaluetype.vala')
-rw-r--r-- | vala/valaenumvaluetype.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valaenumvaluetype.vala b/vala/valaenumvaluetype.vala index 578813078..ba1881dbd 100644 --- a/vala/valaenumvaluetype.vala +++ b/vala/valaenumvaluetype.vala @@ -44,7 +44,7 @@ public class Vala.EnumValueType : ValueType { if (to_string_method == null) { var string_type = CodeContext.get ().analyzer.string_type.copy (); string_type.value_owned = false; - to_string_method = new Method ("to_string", string_type); + to_string_method = new Method ("to_string", string_type, source_reference); to_string_method.access = SymbolAccessibility.PUBLIC; to_string_method.is_extern = true; if (CodeContext.get ().profile == Profile.POSIX) { @@ -53,7 +53,7 @@ public class Vala.EnumValueType : ValueType { to_string_method.set_attribute_string ("CCode", "cheader_filename", "glib-object.h"); } to_string_method.owner = type_symbol.scope; - to_string_method.this_parameter = new Parameter ("this", copy ()); + to_string_method.this_parameter = new Parameter ("this", copy (), source_reference); to_string_method.scope.add (to_string_method.this_parameter.name, to_string_method.this_parameter); } return to_string_method; |