Exemplo n.º 1
0
 public RuntimeScriptCode(CompilerContext/*!*/ context, MSAst.Expression<Func<object>>/*!*/ expression, PythonAst/*!*/ ast, CodeContext/*!*/ codeContext)
     : base(context.SourceUnit) {
     _code = expression;
     _ast = ast;
     _context = context;
     _optimizedContext = codeContext;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 protected override MSAst.Expression VisitLambda <T>(MSAst.Expression <T> node)
 {
     // Don't trace into embedded function
     return(node);
 }