IronPython.Compiler.Ast.ListExpression.Reduce C# (CSharp) Method

Reduce() public method

public Reduce ( ) : Expression
return System.Linq.Expressions.Expression
        public override MSAst.Expression Reduce() {
            if (Items.Count == 0) {
                return Ast.Call(
                    AstMethods.MakeEmptyListFromCode,
                    EmptyExpression
                );
            }

            return Ast.Call(
                AstMethods.MakeListNoCopy,  // method
                Ast.NewArrayInit(           // parameters
                    typeof(object),
                    ToObjectArray(Items)
                )
            );
        }