[valadoc] libvaladoc/api: rm return types from creation methods



commit 369cb4de5c6cc4ed83ffb6c68f7ac81c9d16d517
Author: Florian Brosch <flo brosch gmail com>
Date:   Thu May 20 00:19:15 2010 +0200

    libvaladoc/api: rm return types from creation methods

 src/libvaladoc/api/method.vala |   34 +++++++++++++++++++---------------
 1 files changed, 19 insertions(+), 15 deletions(-)
---
diff --git a/src/libvaladoc/api/method.vala b/src/libvaladoc/api/method.vala
index 91de383..a362f4a 100644
--- a/src/libvaladoc/api/method.vala
+++ b/src/libvaladoc/api/method.vala
@@ -140,23 +140,27 @@ public class Valadoc.Api.Method : Member {
 		var signature = new SignatureBuilder ();
 
 		signature.append_keyword (get_accessibility_modifier ());
-		if (is_static) {
-			signature.append_keyword ("static");
-		} else if (is_abstract) {
-			signature.append_keyword ("abstract");
-		} else if (is_override) {
-			signature.append_keyword ("override");
-		} else if (is_virtual) {
-			signature.append_keyword ("virtual");
-		}
-		if (is_inline) {
-			signature.append_keyword ("inline");
-		}
-		if (is_yields) {
-			signature.append_keyword ("async");
+
+		if (!is_constructor) {
+			if (is_static) {
+				signature.append_keyword ("static");
+			} else if (is_abstract) {
+				signature.append_keyword ("abstract");
+			} else if (is_override) {
+				signature.append_keyword ("override");
+			} else if (is_virtual) {
+				signature.append_keyword ("virtual");
+			}
+			if (is_inline) {
+				signature.append_keyword ("inline");
+			}
+			if (is_yields) {
+				signature.append_keyword ("async");
+			}
+
+			signature.append_content (return_type.signature);
 		}
 
-		signature.append_content (return_type.signature);
 		signature.append_symbol (this);
 
 		var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]