示例#1
0
 public Block(BlockKind kind = BlockKind.ControlFlow) : base(OpCode.Block)
 {
     this.Kind             = kind;
     this.Instructions     = new InstructionCollection <ILInstruction>(this, 0);
     this.FinalInstruction = new Nop();
 }
示例#2
0
 public TryCatch(ILInstruction tryBlock) : base(OpCode.TryCatch, tryBlock)
 {
     this.Handlers = new InstructionCollection <TryCatchHandler>(this, 1);
 }
示例#3
0
 public Block(BlockType type = BlockType.ControlFlow) : base(OpCode.Block)
 {
     this.Type             = type;
     this.Instructions     = new InstructionCollection <ILInstruction>(this, 0);
     this.FinalInstruction = new Nop();
 }
示例#4
0
 public BlockContainer(StackType expectedResultType = StackType.Void) : base(OpCode.BlockContainer)
 {
     this.Blocks             = new InstructionCollection <Block>(this, 0);
     this.ExpectedResultType = expectedResultType;
 }