示例#1
0
文件: If.cs 项目: halak/bibim
 protected override void GenerateBlockEnd(ScriptCompiler.Context context)
 {
     if (Else != null)
     {
         context.Jump(EndLabel);
         context.InidicateLabel(ElseLabel);
         context.Generate(Else);
     }
 }
示例#2
0
文件: Continue.cs 项目: halak/bibim
        public override void Generate(ScriptCompiler.Context context)
        {
            Iteration iterationBlock = FindIterationBlock(context);

            if (iterationBlock != null)
            {
                context.Jump(iterationBlock.LoopLabel);
            }
            else
            {
                throw new InvalidOperationException("continue must be in iteration block");
            }
        }
示例#3
0
文件: Break.cs 项目: halak/bibim
 public override void Generate(ScriptCompiler.Context context)
 {
     context.Jump(context.CurrentBlock.EndLabel);
 }
示例#4
0
 protected override void GenerateBlockEnd(ScriptCompiler.Context context)
 {
     context.Jump(LoopLabel);
 }