MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / reachable

Function reachable

ServerEditorWeb/ace/worker-javascript.js:3638–3664  ·  view source on GitHub ↗
(controlToken)

Source from the content-addressed store, hash-verified

3636
3637
3638 function reachable(controlToken) {
3639 var i = 0, t;
3640 if (state.tokens.next.id !== ";" || controlToken.inBracelessBlock) {
3641 return;
3642 }
3643 for (;;) {
3644 do {
3645 t = peek(i);
3646 i += 1;
3647 } while (t.id != "(end)" && t.id === "(comment)");
3648
3649 if (t.reach) {
3650 return;
3651 }
3652 if (t.id !== "(endline)") {
3653 if (t.id === "function") {
3654 if (state.option.latedef === true) {
3655 warning("W026", t);
3656 }
3657 break;
3658 }
3659
3660 warning("W027", t, t.value, controlToken.value);
3661 break;
3662 }
3663 }
3664 }
3665
3666 function parseFinalSemicolon() {
3667 if (state.tokens.next.id !== ";") {

Callers 1

Calls 2

peekFunction · 0.85
warningFunction · 0.85

Tested by

no test coverage detected