public EmitContext(CompilationContext context, EmitContext parent, LambdaExpression lambda) { this.context = context; this.parent = parent; this.lambda = lambda; this.hoisted = context.GetHoistedLocals(lambda); this.method = new DynamicMethod("lambda_method", lambda.GetReturnType(), EmitContext.CreateParameterTypes(lambda.Parameters), typeof(ExecutionScope), true); this.ig = this.method.GetILGenerator(); }