]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc/taglets: Allow to inherit class and struct documentation
authorFlorian Brosch <flo.brosch@gmail.com>
Thu, 28 Oct 2010 17:35:50 +0000 (19:35 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Thu, 28 Oct 2010 17:35:50 +0000 (19:35 +0200)
src/libvaladoc/taglets/tagletinheritdoc.vala

index dbba7e57be95d6beff5fdf64acdf565002f3e371..71054304687fdd5f3cd46c0aae0e2738bb73fcd9 100755 (executable)
@@ -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