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)); }
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)); }