generator: Implement attribute to hide method parameters

A hidden parameter is dropped from the signature and the default value is filled in.
This commit is contained in:
Stephan Sundermann 2013-10-11 22:49:24 +02:00 committed by Bertrand Lorentz
parent 8e307d8eaa
commit 72b51cc712
2 changed files with 9 additions and 0 deletions

View File

@ -266,6 +266,12 @@ namespace GtkSharp.Generation {
}
}
public bool IsHidden {
get {
return elem.GetAttributeAsBoolean ("hidden");
}
}
public virtual string[] Prepare {
get {
IGeneratable gen = Generatable;

View File

@ -88,6 +88,9 @@ namespace GtkSharp.Generation {
if (p.IsCount)
return true;
if (p.IsHidden)
return true;
if (p.CType == "GError**" && Throws)
return true;