PowerAssert.Infrastructure.Nodes.BinaryNode.Walk C# (CSharp) Method

Walk() private method

private Walk ( NodeWalker walker, int depth, bool wrap ) : void
walker NodeWalker
depth int
wrap bool
return void
        internal override void Walk(NodeWalker walker, int depth, bool wrap)
        {
            if (wrap)
            {
                walker("(", Value, depth);
                depth += 1;
            }
            Left.Walk(walker, depth + 1, Priority < Left.Priority);
            walker(" ");
            walker(Operator, Value, depth);
            walker(" ");
            Right.Walk(walker, depth + 1, Priority <= Right.Priority);
            if (wrap)
                walker(")");
        }
BinaryNode