コード例 #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;
 }
コード例 #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;
        }
コード例 #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);
 }
コード例 #4
0
 protected override MSAst.Expression VisitLambda <T>(MSAst.Expression <T> node)
 {
     // Don't trace into embedded function
     return(node);
 }