예제 #1
0
        public static Expression AnalyzeConsExpr(SymplConsExpr expr,
                                                 AnalysisScope scope)
        {
            var mi = typeof(RuntimeHelpers).GetMethod("MakeCons");

            return(Expression.Call(mi, Expression.Convert(
                                       AnalyzeExpr(expr.Left, scope),
                                       typeof(object)),
                                   Expression.Convert(
                                       AnalyzeExpr(expr.Right, scope),
                                       typeof(object))));
        }
예제 #2
0
파일: ETGen.cs 프로젝트: rudimk/dlr-dotnet
 public static Expression AnalyzeConsExpr (SymplConsExpr expr,
                                           AnalysisScope scope) {
     var mi = typeof(RuntimeHelpers).GetMethod("MakeCons");
     return Expression.Call(mi, Expression.Convert(
                                    AnalyzeExpr(expr.Left, scope),
                                    typeof(object)),
                            Expression.Convert(
                                AnalyzeExpr(expr.Right, scope),
                                typeof(object)));
 }