mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-07 07:23:18 +02: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 {
|
public virtual string[] Prepare {
|
||||||
get {
|
get {
|
||||||
IGeneratable gen = Generatable;
|
IGeneratable gen = Generatable;
|
||||||
|
@ -88,6 +88,9 @@ namespace GtkSharp.Generation {
|
|||||||
if (p.IsCount)
|
if (p.IsCount)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (p.IsHidden)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (p.CType == "GError**" && Throws)
|
if (p.CType == "GError**" && Throws)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user