public void VisitClass(ClassDef c) { w.Write("class"); w.Write(" "); w.Write(c.name.Name); if (c.args != null && c.args.Count > 0) { w.Write("("); w.Write(string.Join(",", c.args.Select(e => e.ToString()))); w.Write(")"); } w.WriteLine(":"); ++w.IndentLevel; c.body.Accept(this); --w.IndentLevel; }
public void VisitAsync(AsyncStatement a) { w.Write("async"); w.Write(" "); a.Statement.Accept(this); }
public void VisitComment(CommentStatement c) { w.Write("#{0}", c.comment); }