summaryrefslogtreecommitdiff
path: root/vala/valacomment.vala
diff options
context:
space:
mode:
authorFlorian Brosch <flo.brosch@gmail.com>2009-09-01 17:04:53 +0200
committerJürg Billeter <j@bitron.ch>2009-09-04 17:55:09 +0200
commit3fe8c8aa53c5c0bb074b7f45db873ded5afccd8e (patch)
tree16ec24214ed199c5e666d1c31ce9036ec812b1e4 /vala/valacomment.vala
parent392bb600fbda248bba205964c4536e8ad512469a (diff)
downloadvala-3fe8c8aa53c5c0bb074b7f45db873ded5afccd8e.tar.gz
Comment handling improvements
Fixes bug 529040, bug 540513, and bug 546096.
Diffstat (limited to 'vala/valacomment.vala')
-rw-r--r--vala/valacomment.vala45
1 files changed, 45 insertions, 0 deletions
diff --git a/vala/valacomment.vala b/vala/valacomment.vala
new file mode 100644
index 000000000..0e48f897e
--- /dev/null
+++ b/vala/valacomment.vala
@@ -0,0 +1,45 @@
+/* valacomment.vala
+ *
+ * Copyright (C) 2008-2009 Florian Brosch
+ *
+ * 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:
+ * Florian Brosch <flo.brosch@gmail.com>
+ */
+
+using GLib;
+
+/**
+ * A documentation comment used by valadoc
+ */
+public class Vala.Comment {
+ public Comment (string comment, SourceReference _source_reference) {
+ source_reference = _source_reference;
+ content = comment;
+ }
+
+ /**
+ * The text describing the referenced source code.
+ */
+ public string content { set; get; }
+
+ /**
+ * References the location in the source file where this code node has
+ * been written.
+ */
+ public SourceReference source_reference { get; set; }
+}
+