Fix gst_netaddress_*_ip6_address bindings, patch by Andrew Feren, fixes
[vala-lang.git] / vala / valatypeparameter.vala
blob8985ea8a26e6490a845e7301ad66310f0dea0d85
1 /* valatypeparameter.vala
3 * Copyright (C) 2006-2008 Jürg Billeter
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 * Author:
20 * Jürg Billeter <j@bitron.ch>
23 using GLib;
24 using Gee;
26 /**
27 * Represents a generic type parameter in the source code.
29 public class Vala.TypeParameter : Symbol {
30 /**
31 * The generic type declaring this parameter.
33 public weak TypeSymbol type;
35 /**
36 * Creates a new generic type parameter.
38 * @param name parameter name
39 * @param source reference to source code
40 * @return newly created generic type parameter
41 */
42 public TypeParameter (string name, SourceReference source_reference) {
43 base (name, source_reference);
46 public override void accept (CodeVisitor visitor) {
47 visitor.visit_type_parameter (this);
50 /**
51 * Checks two type parameters for equality.
53 * @param param2 a type parameter
54 * @return true if this type parameter is equal to param2, false
55 * otherwise
57 public bool equals (TypeParameter param2) {
58 // FIXME check whether the corresponding data type of one of the
59 // parameters is a base type of the corresponding data
60 // type of the other parameter and check along the path
61 // whether one parameter maps to the other
62 return true;