MCPcopy
hub / github.com/PaulTaykalo/objc-dependency-visualizer / reachable

Function reachable

Scripts/ace/worker-javascript.js:3809–3835  ·  view source on GitHub ↗
(controlToken)

Source from the content-addressed store, hash-verified

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 !== ";") {

Callers 1

Calls 2

peekFunction · 0.85
warningFunction · 0.85

Tested by

no test coverage detected