private void GenCode(Procedure proc, StringWriter sb) { sb.WriteLine("{0}()", proc.Name); sb.WriteLine("{"); var cf = new AbsynCodeFormatter(new TextFormatter(sb)); cf.WriteStatementList(proc.Body); sb.WriteLine("}"); }
private void GenCode(Procedure proc, StringWriter sw) { sw.WriteLine("{0}()", proc.Name); sw.WriteLine("{"); var cf = new AbsynCodeFormatter(new TextFormatter(sw) { UseTabs = false }); cf.WriteStatementList(proc.Body); sw.WriteLine("}"); }