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); }
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); }