MCPcopy
hub / github.com/jquerytools/jquerytools / optionalidentifier

Function optionalidentifier

lib/jslint.js:163–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161function suffix(s,f){var x=symbol(s,150);x.led=function(left){if(option.plusplus){warning("Unexpected use of '{a}'.",this,this.id);}
162this.left=left;return this;};return x;}
163function optionalidentifier(){if(nexttoken.reserved){warning("Expected an identifier and instead saw '{a}' (a reserved word).",nexttoken,nexttoken.id);}
164if(nexttoken.identifier){advance();return token.value;}}
165function identifier(){var i=optionalidentifier();if(i){return i;}
166if(token.id==='function'&&nexttoken.id==='('){warning("Missing name in function statement.");}else{error("Expected an identifier and instead saw '{a}'.",nexttoken,nexttoken.value);}}
167function reachable(s){var i=0,t;if(nexttoken.id!==';'||noreach){return;}

Callers 2

identifierFunction · 0.85
jslint.jsFile · 0.85

Calls 2

warningFunction · 0.85
advanceFunction · 0.85

Tested by

no test coverage detected