mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 01:15:27 +00:00
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:
parent
8e307d8eaa
commit
72b51cc712
|
@ -266,6 +266,12 @@ namespace GtkSharp.Generation {
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsHidden {
|
||||
get {
|
||||
return elem.GetAttributeAsBoolean ("hidden");
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string[] Prepare {
|
||||
get {
|
||||
IGeneratable gen = Generatable;
|
||||
|
|
|
@ -88,6 +88,9 @@ namespace GtkSharp.Generation {
|
|||
if (p.IsCount)
|
||||
return true;
|
||||
|
||||
if (p.IsHidden)
|
||||
return true;
|
||||
|
||||
if (p.CType == "GError**" && Throws)
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue