mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-23 06:51:06 +00:00
generator: public accessor in method overloads
This commit is contained in:
parent
53312d5fc0
commit
31e2c02e94
|
@ -215,7 +215,7 @@ namespace GtkSharp.Generation {
|
||||||
public void GenerateOverloads (StreamWriter sw)
|
public void GenerateOverloads (StreamWriter sw)
|
||||||
{
|
{
|
||||||
sw.WriteLine ();
|
sw.WriteLine ();
|
||||||
sw.WriteLine ("\t\t" + retval.CSType + " " + Name + "(" + (Signature != null ? Signature.WithoutOptional () : "") + ") {");
|
sw.WriteLine ("\t\tpublic " + retval.CSType + " " + Name + "(" + (Signature != null ? Signature.WithoutOptional () : "") + ") {");
|
||||||
sw.WriteLine ("\t\t\t{0}{1} ({2});", !retval.IsVoid ? "return " : String.Empty, Name, Signature.CallWithoutOptionals ());
|
sw.WriteLine ("\t\t\t{0}{1} ({2});", !retval.IsVoid ? "return " : String.Empty, Name, Signature.CallWithoutOptionals ());
|
||||||
sw.WriteLine ("\t\t}");
|
sw.WriteLine ("\t\t}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue