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