MCPcopy
hub / github.com/jquerytools/jquerytools / nonadjacent

Function nonadjacent

lib/jslint.js:129–129  ·  view source on GitHub ↗
(left,right)

Source from the content-addressed store, hash-verified

127function adjacent(left,right){left=left||token;right=right||nexttoken;if(option.white){if(left.character!==right.from&&left.line===right.line){warning("Unexpected space after '{a}'.",nexttoken,left.value);}}}
128function nospace(left,right){left=left||token;right=right||nexttoken;if(option.white&&!left.comment){if(left.line===right.line){adjacent(left,right);}}}
129function nonadjacent(left,right){left=left||token;right=right||nexttoken;if(option.white){if(left.character===right.from){warning("Missing space after '{a}'.",nexttoken,left.value);}}}
130function indentation(bias){var i;if(option.white&&nexttoken.id!=='(end)'){i=indent+(bias||0);if(nexttoken.from!==i){warning("Expected '{a}' to have an indentation of {b} instead of {c}.",nexttoken,nexttoken.value,i,nexttoken.from);}}}
131function nolinebreak(t){if(t.line!==nexttoken.line){warning("Line breaking error '{a}'.",t,t.id);}}
132function symbol(s,p){var x=syntax[s];if(!x||typeof x!=='object'){syntax[s]=x={id:s,lbp:p,value:s};}

Callers 10

infixFunction · 0.85
relationFunction · 0.85
assignopFunction · 0.85
bitwiseFunction · 0.85
bitwiseassignopFunction · 0.85
statementFunction · 0.85
blockFunction · 0.85
jslint.jsFile · 0.85
varstatementFunction · 0.85
functionparamsFunction · 0.85

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected