void beginObject(tsObject o, string msg) { string s = o.Name(); if (msg != null) s += " " + msg; file.WriteLine("\n{"); file.WriteLine(s); }