[valadoc] libvaladoc: fix "throws" statement in build_signature for methods and delegates
- From: Florian Brosch <flobrosch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc: fix "throws" statement in build_signature for methods and delegates
- Date: Wed, 28 Oct 2009 13:06:35 +0000 (UTC)
commit e24dad5e290aea224ff9f20358aa0b7e886e0085
Author: Florian Brosch <flo brosch gmail com>
Date: Wed Oct 28 13:17:46 2009 +0100
libvaladoc: fix "throws" statement in build_signature for methods and delegates
src/libvaladoc/api/delegate.vala | 4 ++--
src/libvaladoc/api/method.vala | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libvaladoc/api/delegate.vala b/src/libvaladoc/api/delegate.vala
index 1f76a81..903c778 100644
--- a/src/libvaladoc/api/delegate.vala
+++ b/src/libvaladoc/api/delegate.vala
@@ -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;
}
}
diff --git a/src/libvaladoc/api/method.vala b/src/libvaladoc/api/method.vala
index 3ef2620..893ab30 100644
--- a/src/libvaladoc/api/method.vala
+++ b/src/libvaladoc/api/method.vala
@@ -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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]