DebugContext.TransformLambda doesn't walk nested lambdas


I looked into the source code of Microsoft.Scripting.Debugging and have a better understanding of the problem. First of all, both LambdaWalker and DebugableLambdaBuilder does not handle Lambda expression. The comments said that they expect the lambda to have been transformed already. So we do not to transform each nexted lambda separately. Secondly a more severe problem, if the nested lambda reference parameter expressions in the parent lambda, the reference become invalid after the parent is transformed. Thirdly, if we transform the child that references parent parameters, the child cannot see the parent parameter after transform.


dinov wrote Apr 30, 2010 at 8:27 PM

Tracked as dev10 bug #896828

wrote Apr 30, 2010 at 8:27 PM

wrote Jun 11, 2010 at 8:44 PM

wrote Feb 21, 2013 at 10:41 PM