From: Florian Brosch Date: Mon, 28 Feb 2011 00:48:21 +0000 (+0100) Subject: libvaladoc/api: Add API documentation for Enumvalue X-Git-Tag: 0.37.1~3^2~357 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a91c57a34b6e02dc2d17b8e0e8edbc406640623;p=thirdparty%2Fvala.git libvaladoc/api: Add API documentation for Enumvalue --- diff --git a/src/libvaladoc/api/enumvalue.vala b/src/libvaladoc/api/enumvalue.vala index ee3038b44..ef9dead99 100644 --- a/src/libvaladoc/api/enumvalue.vala +++ b/src/libvaladoc/api/enumvalue.vala @@ -23,35 +23,54 @@ using Gee; using Valadoc.Content; + +/** + * Represents an enum member. + */ public class Valadoc.Api.EnumValue: Symbol { public EnumValue (Vala.EnumValue symbol, Node parent) { base (symbol, parent); } + /** + * {@inheritDoc} + */ public override bool is_public { get { return ((Enum)parent).is_public; } } + /** + * {@inheritDoc} + */ public override bool is_protected { get { return ((Enum)parent).is_protected; } } + /** + * {@inheritDoc} + */ public override bool is_internal { get { return ((Enum)parent).is_internal; } } + /** + * {@inheritDoc} + */ public override bool is_private { get { return ((Enum)parent).is_private; } } + /** + * {@inheritDoc} + */ internal override void process_comments (Settings settings, DocumentationParser parser) { var source_comment = ((Vala.EnumValue) symbol).comment; if (source_comment != null) { @@ -61,16 +80,28 @@ public class Valadoc.Api.EnumValue: Symbol { base.process_comments (settings, parser); } + /** + * Returns the name of this enum value as it is used in C. + */ public string get_cname () { return ((Vala.EnumValue) symbol).get_cname (); } + /** + * {@inheritDoc} + */ public override NodeType node_type { get { return NodeType.ENUM_VALUE; } } + /** + * {@inheritDoc} + */ public override void accept (Visitor visitor) { visitor.visit_enum_value (this); } + /** + * {@inheritDoc} + */ protected override Inline build_signature () { var builder = new SignatureBuilder () .append_symbol (this);