return false;
}
+ if (get_attribute ("GtkChild") != null && variable_type.value_owned) {
+ Report.warning (source_reference, "[GtkChild] fields must be declared as `unowned'");
+ variable_type.value_owned = false;
+ }
+
variable_type.check (context);
if (!external_package) {
context.analyzer.check_type (variable_type);
Report.error (source_reference, "Property setter must have a body");
}
if (!get_has_body && !set_has_body) {
+ if (get_attribute ("GtkChild") != null && property_type.value_owned) {
+ Report.warning (source_reference, "[GtkChild] properties must be declared as `unowned'");
+ property_type.value_owned = false;
+ }
+
/* automatic property accessor body generation */
_field = new Field ("_%s".printf (name), property_type.copy (), initializer, source_reference);
_field.access = SymbolAccessibility.PRIVATE;
return false;
}
+ if (field != null) {
+ field.check (context);
+ }
+
property_type.check (context);
if (!external_package) {
context.analyzer.check_type (property_type);