예제 #1
0
 IXamlILEmitter Emit(Instruction i)
 {
     _body.Instructions.Add(i);
     if (_pendingDebugPoint != null)
     {
         _pendingDebugPoint.Create(i);
         _pendingDebugPoint = null;
     }
     foreach (var ml in _markedLabels)
     {
         ml.Mark(i);
     }
     _markedLabels.Clear();
     return(this);
 }
예제 #2
0
 IXamlIlEmitter Emit(Instruction i)
 {
     _body.Instructions.Add(i);
     if (_pendingDebugPoint != null)
     {
         _pendingDebugPoint.Create(i);
         _pendingDebugPoint = null;
     }
     foreach (var ml in _markedLabels)
     {
         foreach (var instruction in _body.Instructions)
         {
             if (instruction.Operand == ml.Instruction)
             {
                 instruction.Operand = i;
             }
         }
         ml.Instruction = i;
     }
     _markedLabels.Clear();
     return(this);
 }