internal override void RewriteBody(PythonAst.LookupVisitor visitor)
        {
            _dlrBody = null;    // clear the cached body if we've been reduced

            MSAst.Expression funcCode = GlobalParent.Constant(GetOrMakeFunctionCode());
            FuncCodeExpr = funcCode;

            Body = new PythonAst.RewrittenBodyStatement(Body, visitor.Visit(Body));
        }
Ejemplo n.º 2
0
 internal override void RewriteBody(PythonAst.LookupVisitor visitor) {
     _dlrBody = null;    // clear the cached body if we've been reduced
     
     MSAst.Expression funcCode = GlobalParent.Constant(GetOrMakeFunctionCode());
     FuncCodeExpr = funcCode;
     
     Body = new PythonAst.RewrittenBodyStatement(Body, visitor.Visit(Body));
 }