private void ToStringHelper(StringBuilder sb, Literal previous, Literal current)
{
if (previous.type == LiteralType.Root)
{
sb.Append("(" + current.description);
}
if (previous.type == LiteralType.Param && current.type == LiteralType.Param)
{
sb.Append(')', previous.depth - current.depth);
sb.Append("," + current.description);
}
if (previous.type == LiteralType.Param && current.type == LiteralType.Root)
{
sb.Append(')', previous.depth - current.depth);
sb.Append("," + current.description);
}
}