/// <summary> /// Generates the code for a ListConstant node. /// </summary> /// <param name="lc">The ListConstant node.</param> /// <returns>String containing C# code for ListConstant lc.</returns> private string GenerateListConstant(ListConstant lc) { StringBuilder retVal = new StringBuilder(); retVal.Append(Generate(String.Format("new {0}(", lc.Type), lc)); foreach (SYMBOL kid in lc.kids) retVal.Append(GenerateNode(kid)); retVal.Append(Generate(")")); return retVal.ToString(); }