internal override void Add(Opcode op)
 {
     NumberIntervalOpcode opcode = op as NumberIntervalOpcode;
     if (opcode == null)
     {
         base.Add(op);
     }
     else
     {
         NumberIntervalBranchOpcode with = new NumberIntervalBranchOpcode();
         base.prev.Replace(this, with);
         with.Add(this);
         with.Add(opcode);
     }
 }
        internal override void Add(Opcode op)
        {
            NumberIntervalOpcode opcode = op as NumberIntervalOpcode;

            if (opcode == null)
            {
                base.Add(op);
            }
            else
            {
                NumberIntervalBranchOpcode with = new NumberIntervalBranchOpcode();
                base.prev.Replace(this, with);
                with.Add(this);
                with.Add(opcode);
            }
        }
예제 #3
0
        internal override void Add(Opcode op)
        {
            NumberIntervalOpcode intervalOp = op as NumberIntervalOpcode;

            if (null == intervalOp)
            {
                base.Add(op);
                return;
            }

            Fx.Assert(null != this.prev, "");

            NumberIntervalBranchOpcode branch = new NumberIntervalBranchOpcode();

            this.prev.Replace(this, branch);
            branch.Add(this);
            branch.Add(intervalOp);
        }
        internal override void Add(Opcode op)
        {
            NumberIntervalOpcode intervalOp = op as NumberIntervalOpcode;
            if (null == intervalOp)
            {
                base.Add(op);
                return;
            }

            Fx.Assert(null != this.prev, "");

            NumberIntervalBranchOpcode branch = new NumberIntervalBranchOpcode();
            this.prev.Replace(this, branch);
            branch.Add(this);
            branch.Add(intervalOp);
        }