glib-2.0: Add float.parse/try_parse()
[vala-gnome.git] / vala / valagircomment.vala
blob10c1a7649941c3a02b7ec4785f77e31c9c2e1c2e
1 /* valagircomment.vala
3 * Copyright (C) 2011 Florian Brosch
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 * Florian Brosch <flo.brosch@gmail.com>
23 using GLib;
26 /**
27 * A documentation comment used by valadoc
29 public class Vala.GirComment : Comment {
30 private HashMap<string, Comment> parameter_content = new HashMap<string, Comment> ();
32 public MapIterator<string, Comment> parameter_iterator () {
33 return this.parameter_content.map_iterator ();
36 public Comment? return_content { get; set; }
38 public GirComment (string? comment, SourceReference _source_reference) {
39 base (comment ?? "", _source_reference);
42 internal void add_content_for_parameter (string name, Comment comment) {
43 parameter_content.set (name, comment);
46 public Comment? get_content_for_parameter (string name) {
47 return parameter_content.get (name);