diff options
author | Juerg Billeter <j@bitron.ch> | 2007-12-14 19:41:38 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-12-14 19:41:38 +0000 |
commit | c86c5d8580bc287b1259de466f9be5286c21151d (patch) | |
tree | 48f59c6fca322cc6006f5190ce05ff588662ace5 /vala/valamethodtype.vala | |
parent | 10727f6e237a38bec4024393091d73c177c8fe89 (diff) | |
download | vala-c86c5d8580bc287b1259de466f9be5286c21151d.tar.gz |
replace Invokable interface by DelegateType, MethodType, and SignalType
2007-12-14 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valadatatype.vala, vala/valadelegatetype.vala,
vala/valafield.vala, vala/valaformalparameter.vala,
vala/valainterfacewriter.vala, vala/valainvokable.vala,
vala/valamemorymanager.vala, vala/valamethod.vala,
vala/valamethodtype.vala, vala/valasemanticanalyzer.vala,
vala/valasignal.vala, vala/valasignaltype.vala,
vala/valasymbolresolver.vala, vala/valavariabledeclarator.vala,
gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorinvocationexpression.vala: replace Invokable
interface by DelegateType, MethodType, and SignalType classes
svn path=/trunk/; revision=768
Diffstat (limited to 'vala/valamethodtype.vala')
-rw-r--r-- | vala/valamethodtype.vala | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vala/valamethodtype.vala b/vala/valamethodtype.vala new file mode 100644 index 000000000..f4b2cf54f --- /dev/null +++ b/vala/valamethodtype.vala @@ -0,0 +1,46 @@ +/* valamethodtype.vala + * + * Copyright (C) 2007 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; +using Gee; + +/** + * The type of a method referencea. + */ +public class Vala.MethodType : DataType { + public Method method_symbol { get; set; } + + public MethodType (construct Method method_symbol) { + } + + public override bool is_invokable () { + return true; + } + + public override DataType get_return_type () { + return method_symbol.return_type; + } + + public override Collection<FormalParameter> get_parameters () { + return method_symbol.get_parameters (); + } +} |