public override string ToString() { var sb = new StringBuilder("Function->"); sb.Append(Type.ToString()); sb.Append("->"); sb.Append(name); sb.Append("\n"); int i = 0; sb.Append("Parameters->"); foreach (var param in parameters) { sb.Append(param.ToString()); if (++i < parameters.Count()) { sb.Append(","); } } sb.Append("\n"); sb.Append(blockStatement.ToString()); return(sb.ToString()); }