MCPcopy
hub / github.com/jquerytools/jquerytools / bitwise

Function bitwise

lib/jslint.js:155–156  ·  view source on GitHub ↗
(s,f,p)

Source from the content-addressed store, hash-verified

153if(left===syntax['function']){warning("Expected an identifier in an assignment and instead saw a function invocation.",token);}}
154error("Bad assignment.",this);},20);}
155function bitwise(s,f,p){var x=symbol(s,p);reserveName(x);x.led=(typeof f==='function')?f:function(left){if(option.bitwise){warning("Unexpected use of '{a}'.",this,this.id);}
156nonadjacent(prevtoken,token);nonadjacent(token,nexttoken);this.left=left;this.right=parse(p);return this;};return x;}
157function bitwiseassignop(s){symbol(s,20).exps=true;return infix(s,function(left){if(option.bitwise){warning("Unexpected use of '{a}'.",this,this.id);}
158nonadjacent(prevtoken,token);nonadjacent(token,nexttoken);if(left){if(left.id==='.'||left.id==='['||(left.identifier&&!left.reserved)){parse(19);return left;}
159if(left===syntax['function']){warning("Expected an identifier in an assignment, and instead saw a function invocation.",token);}}

Callers 1

jslint.jsFile · 0.85

Calls 5

symbolFunction · 0.85
reserveNameFunction · 0.85
warningFunction · 0.85
nonadjacentFunction · 0.85
parseFunction · 0.85

Tested by

no test coverage detected