示例#1
0
文件: codegen.cs 项目: shugo/babel
 public override void VisitBreak(BreakExpression breakExpr)
 {
     ilGenerator.Emit(OpCodes.Leave, currentLoop.EndLabel);
 }
示例#2
0
文件: typecheck.cs 项目: shugo/babel
 public override void VisitBreak(BreakExpression breakExpr)
 {
     if (currentLoop == null) {
         report.Error(breakExpr.Location,
                      "`break!', `while!', `until!' calls " +
                      "must appear inside loops");
         return;
     }
     breakExpr.NodeType = typeManager.VoidType;
 }
示例#3
0
文件: node.cs 项目: shugo/babel
 public virtual void VisitBreak(BreakExpression breakExpr)
 {
 }