()
| 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');} |
| 314 | funct['(params)']=functionparams();block(false);scope=s;funct=funct['(context)'];} |
| 315 | blockstmt('function',function(){if(inblock){warning("Function statements cannot be placed in blocks. Use a function expression or move the statement to the top of the outer function.",token);} |
no test coverage detected