[valadoc] libvaladoc/taglets: Allow to inherit class and struct documentation
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc/taglets: Allow to inherit class and struct documentation
- Date: Thu, 28 Oct 2010 18:30:05 +0000 (UTC)
commit bc8217857c9a4a236f44401853a11162dde36111
Author: Florian Brosch <flo brosch gmail com>
Date: Thu Oct 28 19:35:50 2010 +0200
libvaladoc/taglets: Allow to inherit class and struct documentation
src/libvaladoc/taglets/tagletinheritdoc.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/taglets/tagletinheritdoc.vala b/src/libvaladoc/taglets/tagletinheritdoc.vala
index dbba7e5..7105430 100755
--- a/src/libvaladoc/taglets/tagletinheritdoc.vala
+++ b/src/libvaladoc/taglets/tagletinheritdoc.vala
@@ -38,6 +38,10 @@ public class Valadoc.Taglets.InheritDoc : InlineTaglet {
_inherited = ((Api.Method) container).base_method;
} else if (container is Api.Property) {
_inherited = ((Api.Property) container).base_property;
+ } else if (container is Api.Class && ((Api.Class) container).base_type != null) {
+ _inherited = (Api.Node) ((Api.Class) container).base_type.data_type;
+ } else if (container is Api.Struct && ((Api.Struct) container).base_type != null) {
+ _inherited = (Api.Node) ((Api.Struct) container).base_type.data_type;
}
// TODO report error if inherited is null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]