MCPcopy Index your code
hub / github.com/jquerytools/jquerytools / relation

Function relation

lib/jslint.js:146–147  ·  view source on GitHub ↗
(s,f)

Source from the content-addressed store, hash-verified

144return this;});}
145function infix(s,f,p){var x=symbol(s,p);reserveName(x);x.led=(typeof f==='function')?f:function(left){nonadjacent(prevtoken,token);nonadjacent(token,nexttoken);this.left=left;this.right=parse(p);return this;};return x;}
146function relation(s,f){var x=symbol(s,100);x.led=function(left){nonadjacent(prevtoken,token);nonadjacent(token,nexttoken);var right=parse(100);if((left&&left.id==='NaN')||(right&&right.id==='NaN')){warning("Use the isNaN function to compare with NaN.",this);}else if(f){f.apply(this,[left,right]);}
147this.left=left;this.right=right;return this;};return x;}
148function isPoorRelation(node){var n=+node.value;return(node.type==='(number)'&&!n)||(node.type==='(string)'&&!node.value)||node.type==='true'||node.type==='false'||node.type==='undefined'||node.type==='null';}
149function assignop(s,f){symbol(s,20).exps=true;return infix(s,function(left){var l;this.left=left;nonadjacent(prevtoken,token);nonadjacent(token,nexttoken);if(option.adsafe){l=left;do{if(predefined[l.value]===true){warning('ADsafe violation.',l);}
150l=l.left;}while(l);}

Callers 1

jslint.jsFile · 0.85

Calls 4

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

Tested by

no test coverage detected