public RuntimeScriptCode(CompilerContext/*!*/ context, MSAst.Expression<Func<object>>/*!*/ expression, PythonAst/*!*/ ast, CodeContext/*!*/ codeContext)
     : base(context.SourceUnit) {
     _code = expression;
     _ast = ast;
     _context = context;
     _optimizedContext = codeContext;
 }
        public RuntimeScriptCode(CompilerContext/*!*/ context, MSAst.Expression<Func<FunctionCode, object>>/*!*/ expression, PythonAst/*!*/ ast, CodeContext/*!*/ codeContext)
            : base(context.SourceUnit) {
            Debug.Assert(codeContext.GlobalScope.GetExtension(codeContext.LanguageContext.ContextId) != null);

            _code = expression;
            _ast = ast;
            _context = context;
            _optimizedContext = codeContext;
        }
Exemple #3
0
 protected override MSAst.Expression VisitLambda <T>(MSAst.Expression <T> node)
 {
     // Explicitely don't walk nested lambdas.  They should already have been transformed
     return(node);
 }
Exemple #4
0
 protected override MSAst.Expression VisitLambda <T>(MSAst.Expression <T> node)
 {
     // Don't trace into embedded function
     return(node);
 }