Predicates/SimpleParser/AbstractTree/NodeItem.cs
/// <summary>
/// Build a textual representation of this subtree starting from the current node
/// </summary>
/// <param name="sb"></param>
Build a textual representation of this subtree starting from the current node
Build a textual representation of this subtree starting from the current node
private void Accumulate(StringBuilder sb)
        {
            sb.Append(this.Name);
            if (NodeItems.Count > 0)
            {
                sb.Append('(');
                {
                    foreach (var child in NodeItems)
                    {
                        child.Accumulate(sb);
                    }
                }
                sb.Append(')');
            }
        }
private void Accumulate ( StringBuilder sb ) { sb . Append ( this . Name ) ; if ( NodeItems . Count > 0 ) { sb . Append ( ' ' ) ; { foreach ( var child in NodeItems ) { child . Accumulate ( sb ) ; } } sb . Append ( ' ' ) ; } }
Build a textual representation of this subtree starting from the current node
Build a textual representation of this subtree starting from the current node
sb
StringBuilder
None