codegen: Support resize and concatenation on the same array
[vala-lang.git] / vala / valatypeparameter.vala
blob62540b3643c6f6362558e946d0a777340a6ba405
1 /* valatypeparameter.vala
3 * Copyright (C) 2006-2009 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;
25 /**
26 * Represents a generic type parameter in the source code.
28 public class Vala.TypeParameter : Symbol {
29 /**
30 * Creates a new generic type parameter.
32 * @param name parameter name
33 * @param source reference to source code
34 * @return newly created generic type parameter
35 */
36 public TypeParameter (string name, SourceReference source_reference) {
37 base (name, source_reference);
40 public override void accept (CodeVisitor visitor) {
41 visitor.visit_type_parameter (this);
44 /**
45 * Checks two type parameters for equality.
47 * @param param2 a type parameter
48 * @return true if this type parameter is equal to param2, false
49 * otherwise
51 public bool equals (TypeParameter param2) {
52 // FIXME check whether the corresponding data type of one of the
53 // parameters is a base type of the corresponding data
54 // type of the other parameter and check along the path
55 // whether one parameter maps to the other
56 return true;