(prefix)
| 303 | countMember(i);advance(':');nonadjacent(token,nexttoken);parse(10);if(nexttoken.id===','){adjacent(token,nexttoken);advance(',');if(nexttoken.id===','||nexttoken.id==='}'){warning("Extra comma.",token);} |
| 304 | nonadjacent(token,nexttoken);}else{if(b){indent-=option.indent;indentation();} |
| 305 | advance('}',this);return;}}};x.fud=function(){error("Expected to see a statement and instead saw a block.",token);};})(delim('{'));function varstatement(prefix){if(funct['(global)']&&option.glovar){warning("Use '/*global "+nexttoken.value+"*/' instead of 'var'.",token);} |
| 306 | for(;;){nonadjacent(token,nexttoken);addlabel(identifier(),'unused');if(prefix){return;} |
| 307 | if(nexttoken.id==='='){nonadjacent(token,nexttoken);advance('=');nonadjacent(token,nexttoken);if(peek(0).id==='='){error("Variable {a} was not declared correctly.",nexttoken,nexttoken.value);} |
| 308 | parse(20);} |
| 309 | if(nexttoken.id!==','){return;} |
| 310 | adjacent(token,nexttoken);advance(',');nonadjacent(token,nexttoken);}} |
| 311 | stmt('var',varstatement);stmt('new',function(){error("'new' should not be used as a statement.");});function functionparams(){var i,t=nexttoken,p=[];advance('(');nospace();if(nexttoken.id===')'){advance(')');nospace(prevtoken,token);return;} |
| 312 | for(;;){i=identifier();p.push(i);addlabel(i,'parameter');if(nexttoken.id===','){advance(',');nonadjacent(token,nexttoken);}else{advance(')',t);nospace(prevtoken,token);return p.join(', ');}}} |
| 313 | function doFunction(i){var s=scope;scope=Object.beget(s);funct={'(name)':i||'"'+anonname+'"','(line)':nexttoken.line+1,'(context)':funct,'(breakage)':0,'(loopage)':0,'(scope)':scope};functions.push(funct);if(i){addlabel(i,'function');} |
no test coverage detected