Example #1
0
		public Arguments Clone (CloneContext ctx)
		{
			Arguments cloned = new Arguments (args.Count);
			foreach (Argument a in args)
				cloned.Add (a.Clone (ctx));

			return cloned;
		}
Example #2
0
		public Argument Clone (CloneContext clonectx)
		{
			return Clone (Expr.Clone (clonectx));
		}
Example #3
0
		protected override void CloneTo (CloneContext clonectx, Expression t)
		{
			CompoundAssign ctarget = (CompoundAssign) t;

			ctarget.right = ctarget.source = source.Clone (clonectx);
			ctarget.target = target.Clone (clonectx);
		}
Example #4
0
		protected override void CloneTo (CloneContext clonectx, Expression target)
		{
			// TODO: nothing ??
		}
Example #5
0
		protected override void CloneTo (CloneContext clonectx, Expression target)
		{
			throw new NotSupportedException ("should not be reached");
		}
Example #6
0
		protected override void CloneTo (CloneContext clonectx, Expression t)
		{
			Assign _target = (Assign) t;

			_target.target = target.Clone (clonectx);
			_target.source = source.Clone (clonectx);
		}
Example #7
0
		protected override void CloneTo (CloneContext clonectx, Expression t)
		{
			// Nothing
		}
Example #8
0
 protected override void CloneTo(CloneContext clonectx, Expression t)
 {
     // Nothing
 }
Example #9
0
		protected override void CloneTo (CloneContext clonectx, Expression t)
		{
			CompletionMemberAccess target = (CompletionMemberAccess) t;

			if (targs != null)
				target.targs = targs.Clone ();

			target.expr = expr.Clone (clonectx);
		}
Example #10
0
		protected override void CloneTo (CloneContext clonectx, Expression target)
		{
		}
Example #11
0
 protected override void CloneTo(CloneContext clonectx, Statement target)
 {
     throw new NotSupportedException();
 }
Example #12
0
        protected override void CloneTo(CloneContext clonectx, Statement t)
        {
            var target = (YieldStatement <T>)t;

            target.expr = expr.Clone(clonectx);
        }
Example #13
0
        protected override void CloneTo(CloneContext clonectx, Expression target)
        {
            var t = (Await)target;

            t.expr = expr.Clone(clonectx);
        }
Example #14
0
		protected override void CloneTo (CloneContext clonectx, Expression t)
		{
			AnonymousMethodExpression target = (AnonymousMethodExpression) t;

			target.Block = (ParametersBlock) clonectx.LookupBlock (Block);
		}
Example #15
0
		public sealed override Expression Clone (CloneContext clonectx)
		{
			// No cloning is not needed for constants
			return this;
		}
Example #16
0
			protected override void CloneTo (CloneContext clonectx, Statement target)
			{
				// Nothing to clone
			}
Example #17
0
 protected override void CloneTo(CloneContext clonectx, Expression target)
 {
 }