예제 #1
0
 internal override void RewriteBody(PythonAst.LookupVisitor visitor) {
     _dlrBody = null;
     _body = new PythonAst.RewrittenBodyStatement(Body, visitor.Visit(Body));
 }
예제 #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));
 }