generator: do not generate methods without (C)Name
This commit is contained in:
parent
e031a4ff18
commit
139479036b
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,11 @@ namespace GtkSharp.Generation {
|
||||||
if (!retval.Validate (log) || !base.Validate (log))
|
if (!retval.Validate (log) || !base.Validate (log))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (Name == String.Empty || CName == String.Empty) {
|
||||||
|
log.Warn ("Method has no name or cname.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Parameters parms = Parameters;
|
Parameters parms = Parameters;
|
||||||
is_get = ((((parms.IsAccessor && retval.IsVoid) || (parms.Count == 0 && !retval.IsVoid)) || (parms.Count == 0 && !retval.IsVoid)) && HasGetterName);
|
is_get = ((((parms.IsAccessor && retval.IsVoid) || (parms.Count == 0 && !retval.IsVoid)) || (parms.Count == 0 && !retval.IsVoid)) && HasGetterName);
|
||||||
is_set = ((parms.IsAccessor || (parms.VisibleCount == 1 && retval.IsVoid)) && HasSetterName);
|
is_set = ((parms.IsAccessor || (parms.VisibleCount == 1 && retval.IsVoid)) && HasSetterName);
|
||||||
|
|
Loading…
Reference in a new issue