Пример #1
0
        internal static AnalyzedTree Bind(LambdaExpression lambda)
        {
            var binder = new VariableBinder();

            binder.Visit(lambda);
            return(binder._tree);
        }
Пример #2
0
        private static AnalyzedTree AnalyzeLambda(ref LambdaExpression lambda)
        {
            // Spill the stack for any exception handling blocks or other
            // constructs which require entering with an empty stack
            lambda = StackSpiller.AnalyzeLambda(lambda);

            // Bind any variable references in this lambda
            return(VariableBinder.Bind(lambda));
        }