private void Dump(StringBuilder str, int i) { for (var c = 0; c < i; c++) str.Append(" "); if (Comment == true) str.Append('*'); if (Name != null) str.AppendLine(Name); else if (CodeElement == null) str.AppendLine("?"); else str.AppendLine(CodeElement.ToString()); foreach (var child in Children) child.Dump(str, i + 1); }
public override string ToString() { return(root.ToString()); }