コード例 #1
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));
        }
コード例 #2
0
ファイル: FunctionDefinition.cs プロジェクト: mstram/ironruby
 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));
 }