示例#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
 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)));
 }