// // // public TranslationContext(BatchNode batch) { if(_instance != null) throw new ApplicationException("Context already initialized"); _instance = this; _batch = batch; }
public string Write(BatchNode batch) { batch.Statements.ForEach((s) => { this.Write(s); _sql.WriteLine(";"); }); return _sql.ToString(); }