]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc/api: Add API documentation for Constant
authorFlorian Brosch <flo.brosch@gmail.com>
Mon, 28 Feb 2011 00:45:29 +0000 (01:45 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Mon, 28 Feb 2011 00:45:29 +0000 (01:45 +0100)
src/libvaladoc/api/constant.vala

index 0422f84f16cb506cc2c38118b9117625a05a158a..9dae9ef2db561b9ce0187668722fe165d49cf0ab 100644 (file)
 using Gee;
 using Valadoc.Content;
 
+/**
+ * Represents a type member with a constant value.
+ */
 public class Valadoc.Api.Constant : Member {
+       /**
+        * The data type of this constant.
+        */
        public TypeReference type_reference { private set; get; }
 
        public Constant (Vala.Constant symbol, Node parent) {
@@ -31,14 +37,23 @@ public class Valadoc.Api.Constant : Member {
                type_reference = new TypeReference (symbol.type_reference, this);
        }
 
+       /**
+        * Returns the name of this constant as it is used in C.
+        */
        public string get_cname () {
                return ((Vala.Constant) symbol).get_cname ();
        }
 
+       /**
+        * {@inheritDoc}
+        */
        internal override void resolve_type_references (Tree root) {
                type_reference.resolve_type_references (root);
        }
 
+       /**
+        * {@inheritDoc}
+        */
        protected override Inline build_signature () {
                return new SignatureBuilder ()
                        .append_keyword (get_accessibility_modifier ())
@@ -48,8 +63,14 @@ public class Valadoc.Api.Constant : Member {
                        .get ();
        }
 
+       /**
+        * {@inheritDoc}
+        */
        public override NodeType node_type { get { return NodeType.CONSTANT; } }
 
+       /**
+        * {@inheritDoc}
+        */
        public override void accept (Visitor visitor) {
                visitor.visit_constant (this);
        }