MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / jsonArray

Function jsonArray

lib/web/jshint.js:24118–24139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24116 }
24117
24118 function jsonArray() {
24119 var t = state.tokens.next;
24120 advance("[");
24121 if (state.tokens.next.id !== "]") {
24122 for (;;) {
24123 if (state.tokens.next.id === "(end)") {
24124 error("E027", state.tokens.next, t.line);
24125 } else if (state.tokens.next.id === "]") {
24126 warning("W094", state.tokens.curr);
24127 break;
24128 } else if (state.tokens.next.id === ",") {
24129 error("E028", state.tokens.next);
24130 }
24131 jsonValue();
24132 if (state.tokens.next.id !== ",") {
24133 break;
24134 }
24135 advance(",");
24136 }
24137 }
24138 advance("]");
24139 }
24140
24141 switch (state.tokens.next.id) {
24142 case "{":

Callers 1

jsonValueFunction · 0.85

Calls 4

errorFunction · 0.85
warningFunction · 0.85
jsonValueFunction · 0.85
advanceFunction · 0.70

Tested by

no test coverage detected