MCPcopy
hub / github.com/jquerytools/jquerytools / nospace

Function nospace

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

Source from the content-addressed store, hash-verified

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);}}}
131function nolinebreak(t){if(t.line!==nexttoken.line){warning("Line breaking error '{a}'.",t,t.id);}}

Callers 2

jslint.jsFile · 0.85
functionparamsFunction · 0.85

Calls 1

adjacentFunction · 0.85

Tested by

no test coverage detected