Commit 7a5cb598 authored by Rico Tzschichholz's avatar Rico Tzschichholz

libvaladoc: Match property signature with vala's codewriter

parent bf8c09bf
......@@ -169,14 +169,14 @@ public class Valadoc.Api.Property : Member {
signature.append_symbol (this);
signature.append ("{");
if (setter != null && setter.do_document) {
signature.append_content (setter.signature);
}
if (getter != null && getter.do_document) {
signature.append_content (getter.signature);
}
if (setter != null && setter.do_document) {
signature.append_content (setter.signature);
}
signature.append ("}");
return signature.get ();
......
......@@ -113,12 +113,15 @@ public class Valadoc.Api.PropertyAccessor : Symbol {
}
if (is_set || is_construct) {
if (is_construct) {
signature.append_keyword ("construct");
if (is_owned) {
signature.append_keyword ("owned");
}
if (is_set) {
signature.append_keyword ("set");
}
if (is_construct) {
signature.append_keyword ("construct");
}
} else if (is_get) {
if (is_owned) {
signature.append_keyword ("owned");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment