public void VisitBreakStmt(BreakStmt stmt) { if (loopDepth == 0) // not inside loop { Lox.Error(stmt.Keyword, "Cannot break outside of loop."); } }
public void VisitBreakStmt(BreakStmt stmt) { throw new Break(); }