public Arguments Clone (CloneContext ctx) { Arguments cloned = new Arguments (args.Count); foreach (Argument a in args) cloned.Add (a.Clone (ctx)); return cloned; }
public Argument Clone (CloneContext clonectx) { return Clone (Expr.Clone (clonectx)); }
protected override void CloneTo (CloneContext clonectx, Expression t) { CompoundAssign ctarget = (CompoundAssign) t; ctarget.right = ctarget.source = source.Clone (clonectx); ctarget.target = target.Clone (clonectx); }
protected override void CloneTo (CloneContext clonectx, Expression target) { // TODO: nothing ?? }
protected override void CloneTo (CloneContext clonectx, Expression target) { throw new NotSupportedException ("should not be reached"); }
protected override void CloneTo (CloneContext clonectx, Expression t) { Assign _target = (Assign) t; _target.target = target.Clone (clonectx); _target.source = source.Clone (clonectx); }
protected override void CloneTo (CloneContext clonectx, Expression t) { // Nothing }
protected override void CloneTo(CloneContext clonectx, Expression t) { // Nothing }
protected override void CloneTo (CloneContext clonectx, Expression t) { CompletionMemberAccess target = (CompletionMemberAccess) t; if (targs != null) target.targs = targs.Clone (); target.expr = expr.Clone (clonectx); }
protected override void CloneTo (CloneContext clonectx, Expression target) { }
protected override void CloneTo(CloneContext clonectx, Statement target) { throw new NotSupportedException(); }
protected override void CloneTo(CloneContext clonectx, Statement t) { var target = (YieldStatement <T>)t; target.expr = expr.Clone(clonectx); }
protected override void CloneTo(CloneContext clonectx, Expression target) { var t = (Await)target; t.expr = expr.Clone(clonectx); }
protected override void CloneTo (CloneContext clonectx, Expression t) { AnonymousMethodExpression target = (AnonymousMethodExpression) t; target.Block = (ParametersBlock) clonectx.LookupBlock (Block); }
public sealed override Expression Clone (CloneContext clonectx) { // No cloning is not needed for constants return this; }
protected override void CloneTo (CloneContext clonectx, Statement target) { // Nothing to clone }
protected override void CloneTo(CloneContext clonectx, Expression target) { }