public static void emitPartialType(string name, ClassDescriptorSerialized serTy) { JavaPrettyPrint outputMaker = new JavaPrettyPrint(null); outputMaker.Filename = serTy.FileName; outputMaker.TraceDestination = Console.Error; outputMaker.TemplateLib = templates; outputMaker.Cfg = cfg; StringTemplate pkgST = outputMaker.emitPackage(serTy); if (cfg.DebugLevel >= 1) { Console.Out.WriteLine("Writing out {0}", serTy.FileName); } StreamWriter javaW = new StreamWriter(serTy.FileName); javaW.Write(pkgST.ToString()); javaW.Close(); }
public static void emitPartialType(string name, ClassDescriptorSerialized serTy) { JavaPrettyPrint outputMaker = new JavaPrettyPrint(null); outputMaker.Filename = serTy.FileName; outputMaker.TraceDestination = Console.Error; outputMaker.TemplateLib = templates; outputMaker.Cfg = cfg; StringTemplate pkgST = outputMaker.emitPackage(serTy); if (cfg.DebugLevel >= 1) Console.Out.WriteLine("Writing out {0}", serTy.FileName); StreamWriter javaW = new StreamWriter(serTy.FileName); javaW.Write(pkgST.ToString()); javaW.Close(); }