public string AsString()
{
// TODO Refactor to String Builder
string result = string.Empty;
if (this.localVariables.Count > 0)
{
result += "|";
foreach (var local in this.localVariables)
result += " " + local;
result += " | ";
}
int nexpressions = 0;
foreach (IExpression expression in this.body)
{
if (nexpressions > 0)
result += ". ";
result += expression.AsString();
nexpressions++;
}
return result;
}