]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: fix "throws" statement in build_signature for methods and delegates
authorFlorian Brosch <flo.brosch@gmail.com>
Wed, 28 Oct 2009 12:17:46 +0000 (13:17 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Wed, 28 Oct 2009 12:17:46 +0000 (13:17 +0100)
src/libvaladoc/api/delegate.vala
src/libvaladoc/api/method.vala

index 1f76a81f72010630cd90f015da69724460136eaf..903c778c8100f96d4d1e3710ee08e620b06fb8bb 100644 (file)
@@ -94,12 +94,12 @@ public class Valadoc.Api.Delegate : TypeSymbol {
                var exceptions = get_children_by_type (NodeType.ERROR_DOMAIN);
                if (exceptions.size > 0) {
                        signature.append_keyword ("throws");
-
+                       first = true;
                        foreach (Node param in exceptions) {
                                if (!first) {
                                        signature.append (",", false);
                                }
-                               signature.append_content (param.signature, !first);
+                               signature.append_type (param);
                                first = false;
                        }
                }
index 3ef2620c95d5e6fc1cef2b0040d6a3b1b9738c30..893ab30fd3d266dc34eb9565d7935c292b81b262 100644 (file)
@@ -171,12 +171,12 @@ public class Valadoc.Api.Method : Member {
                var exceptions = get_children_by_type (NodeType.ERROR_DOMAIN);
                if (exceptions.size > 0) {
                        signature.append_keyword ("throws");
-
+                       first = true;
                        foreach (Node param in exceptions) {
                                if (!first) {
                                        signature.append (",", false);
                                }
-                               signature.append_content (param.signature, !first);
+                               signature.append_type (param);
                                first = false;
                        }
                }