IronPython.Compiler.Ast.ComprehensionFor.Transform C# (CSharp) Method

Transform() private method

private Transform ( System.Linq.Expressions body ) : Expression
body System.Linq.Expressions
return System.Linq.Expressions.Expression
        internal override MSAst.Expression Transform(MSAst.Expression body) {
            MSAst.ParameterExpression temp = Ast.Parameter(typeof(KeyValuePair<IEnumerator, IDisposable>), "list_comprehension_for");

            return Ast.Block(
                new[] { temp },
                ForStatement.TransformFor(Parent, temp, _list, _lhs, body, null, Span, GlobalParent.IndexToLocation(_lhs.EndIndex), null, null, false)
            );
        }