diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-11-21 09:10:09 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-11-22 21:50:42 +0100 |
commit | c89ef7fa2bd1c21e6a7a6be55292b1698cc1e878 (patch) | |
tree | 4b5d47bd5a915a21f2e9c5899da75a1a68fb598c /libvaladoc/ctyperesolver.vala | |
parent | 57f73f6018f47d2c83bda38f78d1804e5043430d (diff) | |
download | vala-c89ef7fa2bd1c21e6a7a6be55292b1698cc1e878.tar.gz |
valadoc: Acknowledge possible properties in structs
https://bugzilla.gnome.org/show_bug.cgi?id=784705
Diffstat (limited to 'libvaladoc/ctyperesolver.vala')
-rw-r--r-- | libvaladoc/ctyperesolver.vala | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libvaladoc/ctyperesolver.vala b/libvaladoc/ctyperesolver.vala index 2909df682..e6444e0ae 100644 --- a/libvaladoc/ctyperesolver.vala +++ b/libvaladoc/ctyperesolver.vala @@ -259,8 +259,8 @@ public class Valadoc.CTypeResolver : Visitor { register_symbol (parent_cname+":"+cname, item); - Vala.Collection<Interface> interfaces = null; - Vala.Collection<Class> classes = null; + Vala.Collection<Interface> interfaces; + Vala.Collection<Class> classes; if (item.parent is Interface) { interfaces = ((Api.Interface) item.parent).get_known_related_interfaces (); @@ -268,6 +268,11 @@ public class Valadoc.CTypeResolver : Visitor { } else if (item.parent is Class) { interfaces = ((Api.Class) item.parent).get_known_derived_interfaces (); classes = ((Api.Class) item.parent).get_known_child_classes (); + } else if (item.parent is Struct) { + // Properties are allowed here, similar to compact classes + return; + } else { + assert_not_reached (); } foreach (Interface iface in interfaces) { |