MCPcopy
hub / github.com/jquerytools/jquerytools / prefix

Function prefix

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

Source from the content-addressed store, hash-verified

137function reserveName(x){var c=x.id.charAt(0);if((c>='a'&&c<='z')||(c>='A'&&c<='Z')){x.identifier=x.reserved=true;}
138return x;}
139function prefix(s,f){var x=symbol(s,150);reserveName(x);x.nud=(typeof f==='function')?f:function(){if(option.plusplus&&(this.id==='++'||this.id==='--')){warning("Unexpected use of '{a}'.",this,this.id);}
140parse(150);return this;};return x;}
141function type(s,f){var x=delim(s);x.type=s;x.nud=f;return x;}
142function reserve(s,f){var x=type(s,f);x.identifier=x.reserved=true;return x;}
143function reservevar(s){return reserve(s,function(){if(this.id==='this'){if(option.adsafe){warning("ADsafe violation.",this);}}

Callers 1

jslint.jsFile · 0.85

Calls 4

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

Tested by

no test coverage detected