diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-09-28 15:09:25 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-09-29 18:29:27 +0200 |
commit | 40a92385fc0a7862dce4757dd692f241728b0aba (patch) | |
tree | eda868b887f981d6e7c0dbea51d7159724073984 /vala/valabooleantype.vala | |
parent | dbe8d2a614e1637c5a00115d6a1048430ef2493c (diff) | |
download | vala-40a92385fc0a7862dce4757dd692f241728b0aba.tar.gz |
vala: Add optional SourceReference parameter to DataType classes
Diffstat (limited to 'vala/valabooleantype.vala')
-rw-r--r-- | vala/valabooleantype.vala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vala/valabooleantype.vala b/vala/valabooleantype.vala index b224a9359..b6d31259e 100644 --- a/vala/valabooleantype.vala +++ b/vala/valabooleantype.vala @@ -26,13 +26,12 @@ using GLib; * A boolean type. */ public class Vala.BooleanType : ValueType { - public BooleanType (Struct type_symbol) { - base (type_symbol); + public BooleanType (Struct type_symbol, SourceReference? source_reference = null) { + base (type_symbol, source_reference); } public override DataType copy () { - var result = new BooleanType ((Struct) type_symbol); - result.source_reference = source_reference; + var result = new BooleanType ((Struct) type_symbol, source_reference); result.value_owned = value_owned; result.nullable = nullable; return result; |