MCPcopy
hub / github.com/jquerytools/jquerytools / peek

Function peek

lib/jslint.js:100–102  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

98obj[t.value]=b;}
99if(filter){assume();}}
100function peek(p){var i=p||0,j=0,t;while(j<=i){t=lookahead[j];if(!t){t=lookahead[j]=lex.token();}
101j+=1;}
102return t;}
103var badbreak={')':true,']':true,'++':true,'--':true};function advance(id,t){var l;switch(token.id){case'(number)':if(nexttoken.id==='.'){warning("A dot following a number can be confused with a decimal point.",token);}
104break;case'-':if(nexttoken.id==='-'||nexttoken.id==='--'){warning("Confusing minusses.");}
105break;case'+':if(nexttoken.id==='+'||nexttoken.id==='++'){warning("Confusing plusses.");}

Callers 5

reachableFunction · 0.85
statementFunction · 0.85
statementsFunction · 0.85
jslint.jsFile · 0.85
varstatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected