MCPcopy
hub / github.com/jquerytools/jquerytools / adjacent

Function adjacent

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

Source from the content-addressed store, hash-verified

125if(!option.evil&&left&&left.value==='eval'){warning("eval is evil.",left);}
126return left;}
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);}}}

Callers 5

nospaceFunction · 0.85
statementFunction · 0.85
jslint.jsFile · 0.85
varstatementFunction · 0.85
jsonValueFunction · 0.85

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected