diff options
author | Jürg Billeter <j@bitron.ch> | 2009-01-03 14:02:48 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2009-01-03 14:02:48 +0000 |
commit | d19da45e60ffec828f352572249cfbc46d9cbb08 (patch) | |
tree | 7b94163ed5b453b95b95636cebc15221f65e9dcf /vala/valastructvaluetype.vala | |
parent | f6bf92b12f8ee41102136e12aa5a98275c24e812 (diff) | |
download | vala-d19da45e60ffec828f352572249cfbc46d9cbb08.tar.gz |
Add BooleanType, EnumValueType, FloatingType, and StructValueType as
2009-01-03 Jürg Billeter <j@bitron.ch>
* vala/Makefile.am:
* vala/valaarraytype.vala:
* vala/valabinaryexpression.vala:
* vala/valabooleantype.vala:
* vala/valacharacterliteral.vala:
* vala/valadostatement.vala:
* vala/valaenum.vala:
* vala/valaenumvaluetype.vala:
* vala/valaerrordomain.vala:
* vala/valafloatingtype.vala:
* vala/valaintegerliteral.vala:
* vala/valaintegertype.vala:
* vala/valaobjectcreationexpression.vala:
* vala/valarealliteral.vala:
* vala/valasemanticanalyzer.vala:
* vala/valastruct.vala:
* vala/valastructvaluetype.vala:
* vala/valasymbolresolver.vala:
* vala/valavaluetype.vala:
* gobject/valaccodebasemodule.vala:
* gobject/valaccodemethodmodule.vala:
* vapi/glib-2.0.vapi:
Add BooleanType, EnumValueType, FloatingType, and StructValueType
as ValueType subclasses
svn path=/trunk/; revision=2256
Diffstat (limited to 'vala/valastructvaluetype.vala')
-rw-r--r-- | vala/valastructvaluetype.vala | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/vala/valastructvaluetype.vala b/vala/valastructvaluetype.vala new file mode 100644 index 000000000..dce8fca1c --- /dev/null +++ b/vala/valastructvaluetype.vala @@ -0,0 +1,45 @@ +/* valastructvaluetype.vala + * + * Copyright (C) 2009 Jürg Billeter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Jürg Billeter <j@bitron.ch> + */ + +using GLib; + +/** + * A struct value type. + */ +public class Vala.StructValueType : ValueType { + public StructValueType (Struct type_symbol) { + base (type_symbol); + } + + public override DataType copy () { + var result = new StructValueType ((Struct) type_symbol); + result.source_reference = source_reference; + result.value_owned = value_owned; + result.nullable = nullable; + + foreach (DataType arg in get_type_arguments ()) { + result.add_type_argument (arg.copy ()); + } + + return result; + } +} |