MCPcopy
hub / github.com/jquerytools/jquerytools / jsonObject

Function jsonObject

lib/jslint.js:341–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339advance();}
340reachable('continue');});stmt('return',function(){nolinebreak(this);if(nexttoken.id!==';'&&!nexttoken.reach){nonadjacent(token,nexttoken);parse(20);}
341reachable('return');});stmt('throw',function(){nolinebreak(this);nonadjacent(token,nexttoken);parse(20);reachable('throw');});reserve('void');reserve('class');reserve('const');reserve('enum');reserve('export');reserve('extends');reserve('goto');reserve('import');reserve('super');function jsonValue(){function jsonObject(){var t=nexttoken;advance('{');if(nexttoken.id!=='}'){for(;;){if(nexttoken.id==='(end)'){error("Missing '}' to match '{' from line {a}.",nexttoken,t.line+1);}else if(nexttoken.id==='}'){warning("Unexpected comma.",token);break;}else if(nexttoken.id===','){error("Unexpected comma.",nexttoken);}else if(nexttoken.id!=='(string)'){warning("Expected a string and instead saw {a}.",nexttoken,nexttoken.value);}
342advance();advance(':');jsonValue();if(nexttoken.id!==','){break;}
343advance(',');}}
344advance('}');}
345function jsonArray(){var t=nexttoken;advance('[');if(nexttoken.id!==']'){for(;;){if(nexttoken.id==='(end)'){error("Missing ']' to match '[' from line {a}.",nexttoken,t.line+1);}else if(nexttoken.id===']'){warning("Unexpected comma.",token);break;}else if(nexttoken.id===','){error("Unexpected comma.",nexttoken);}
346jsonValue();if(nexttoken.id!==','){break;}
347advance(',');}}

Callers 1

jsonValueFunction · 0.85

Calls 4

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

Tested by

no test coverage detected