System.Dynamic.BindingRestrictions.TestBuilder.Push C# (CSharp) Method

Push() private method

private Push ( Expression node, int depth ) : void
node System.Linq.Expressions.Expression
depth int
return void
            private void Push(Expression node, int depth)
            {
                while (_tests.Count > 0 && _tests.Peek().Depth == depth)
                {
                    node = Expression.AndAlso(_tests.Pop().Node, node);
                    depth++;
                }
                _tests.Push(new AndNode { Node = node, Depth = depth });
            }
        }
BindingRestrictions.TestBuilder