Пример #1
0
        private static T MakeFunc <T>(AstNode astFunction)
        {
            var generator      = new ExpressionGenerator();
            var expressionBody = astFunction.Accept(generator);
            var lambda         = Expression.Lambda <T>(expressionBody, generator.GetParameters());
            var f = lambda.Compile(DebugInfoGenerator.CreatePdbGenerator());

            return(f);
        }