mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-26 13:32:08 +00:00
32 lines
No EOL
705 B
C#
32 lines
No EOL
705 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace EcmaCil.IL
|
|
{
|
|
public class InstructionBranch: BaseInstruction
|
|
{
|
|
public InstructionBranch(InstructionKindEnum aKind, int aIndex)
|
|
: base(aKind, aIndex)
|
|
{
|
|
}
|
|
|
|
private BaseInstruction mTarget;
|
|
public BaseInstruction Target
|
|
{
|
|
get
|
|
{
|
|
return mTarget;
|
|
}
|
|
set
|
|
{
|
|
if (mTarget != null)
|
|
{
|
|
throw new Exception("Cannot change Target once set!");
|
|
}
|
|
mTarget = value;
|
|
}
|
|
}
|
|
}
|
|
} |