generator: public accessor in method overloads

This commit is contained in:
Stephan Sundermann 2013-10-09 20:37:18 +02:00 committed by Andrés G. Aragoneses
parent 53312d5fc0
commit 31e2c02e94

View File

@ -215,7 +215,7 @@ namespace GtkSharp.Generation {
public void GenerateOverloads (StreamWriter sw)
{
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}");
}