public void Accept(ForNode node) { }
public void Accept(ForNode node) { var startLabel = nextLabel(); var endLabel = nextLabel(); method.ContinueLabels.Push(startLabel); method.BreakLabels.Push(endLabel); node.StartStatement.Visit(this); method.EmitLabel(node.SourceLocation, startLabel); node.Predicate.Visit(this); method.Emit(node.SourceLocation, InstructionType.JumpIfFalse, endLabel); node.Body.Visit(this); node.RepeatStatement.Visit(this); method.Emit(node.SourceLocation, InstructionType.Jump, startLabel); method.EmitLabel(node.SourceLocation, endLabel); }