MCPcopy
hub / github.com/jquerytools/jquerytools / note_implied

Function note_implied

lib/jslint.js:196–196  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

194function countMember(m){if(membersOnly&&membersOnly[m]!==true){warning("Unexpected /*member '{a}'.",nexttoken,m);}
195if(typeof member[m]==='number'){member[m]+=1;}else{member[m]=1;}}
196function note_implied(token){var name=token.value,line=token.line+1,a=implied[name];if(!a){a=[line];implied[name]=a;}else if(a[a.length-1]!==line){a.push(line);}}
197var xmltype={html:{doBegin:function(n){xtype='html';option.browser=true;assume();},doTagName:function(n,p){var i,t=xmltype.html.tag[n],x;src=false;if(!t){error("Unrecognized tag '<{a}>'.",nexttoken,n===n.toLowerCase()?n:n+' (capitalization error)');}
198x=t.parent;if(option.adsafe&&n==='script'&&stack.length!==1){warning("ADsafe violation: Misplaced script");}
199if(!option.fragment||stack.length!==1){if(x){if(x.indexOf(' '+p+' ')<0){error("A '<{a}>' must be within '<{b}>'.",token,n,x);}}else{i=stack.length;do{if(i<=0){error("A '<{a}>' must be within '<{b}>'.",token,n,'body');}

Callers 1

jslint.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected