protected override void CloneTo(CloneContext clonectx, Statement t) { var target = (AsLocalFunction)t; target.Name = Name; target.MethodExpr = MethodExpr.Clone(clonectx) as AnonymousMethodExpression; target.VarDecl = VarDecl.Clone(clonectx) as BlockVariableDeclaration; }