(controlToken)
| 3807 | |
| 3808 | |
| 3809 | function reachable(controlToken) { |
| 3810 | var i = 0, t; |
| 3811 | if (state.tokens.next.id !== ";" || controlToken.inBracelessBlock) { |
| 3812 | return; |
| 3813 | } |
| 3814 | for (;;) { |
| 3815 | do { |
| 3816 | t = peek(i); |
| 3817 | i += 1; |
| 3818 | } while (t.id != "(end)" && t.id === "(comment)"); |
| 3819 | |
| 3820 | if (t.reach) { |
| 3821 | return; |
| 3822 | } |
| 3823 | if (t.id !== "(endline)") { |
| 3824 | if (t.id === "function") { |
| 3825 | if (state.option.latedef === true) { |
| 3826 | warning("W026", t); |
| 3827 | } |
| 3828 | break; |
| 3829 | } |
| 3830 | |
| 3831 | warning("W027", t, t.value, controlToken.value); |
| 3832 | break; |
| 3833 | } |
| 3834 | } |
| 3835 | } |
| 3836 | |
| 3837 | function parseFinalSemicolon() { |
| 3838 | if (state.tokens.next.id !== ";") { |
no test coverage detected