Exemple #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;
		}
Exemple #2
0
		public Argument Clone (CloneContext clonectx)
		{
			return Clone (Expr.Clone (clonectx));
		}
Exemple #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);
		}
Exemple #4
0
		protected override void CloneTo (CloneContext clonectx, Expression target)
		{
			// TODO: nothing ??
		}
Exemple #5
0
		protected override void CloneTo (CloneContext clonectx, Expression target)
		{
			throw new NotSupportedException ("should not be reached");
		}
Exemple #6
0
		protected override void CloneTo (CloneContext clonectx, Expression t)
		{
			Assign _target = (Assign) t;

			_target.target = target.Clone (clonectx);
			_target.source = source.Clone (clonectx);
		}
Exemple #7
0
		protected override void CloneTo (CloneContext clonectx, Expression t)
		{
			// Nothing
		}
Exemple #8
0
 protected override void CloneTo(CloneContext clonectx, Expression t)
 {
     // Nothing
 }
Exemple #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);
		}
Exemple #10
0
		protected override void CloneTo (CloneContext clonectx, Expression target)
		{
		}
Exemple #11
0
 protected override void CloneTo(CloneContext clonectx, Statement target)
 {
     throw new NotSupportedException();
 }
Exemple #12
0
        protected override void CloneTo(CloneContext clonectx, Statement t)
        {
            var target = (YieldStatement <T>)t;

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

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

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