MCPcopy Index your code
hub / github.com/node-inspector/node-inspector / register

Function register

front-end/cm/javascript.js:268–284  ·  view source on GitHub ↗
(varname)

Source from the content-addressed store, hash-verified

266 return true;
267 }
268 function register(varname) {
269 function inList(list) {
270 for (var v = list; v; v = v.next)
271 if (v.name == varname) return true;
272 return false;
273 }
274 var state = cx.state;
275 if (state.context) {
276 cx.marked = "def";
277 if (inList(state.localVars)) return;
278 state.localVars = {name: varname, next: state.localVars};
279 } else {
280 if (inList(state.globalVars)) return;
281 if (parserConfig.globalVars)
282 state.globalVars = {name: varname, next: state.globalVars};
283 }
284 }
285
286 // Combinators
287

Callers 6

patternFunction · 0.70
proppatternFunction · 0.70
functiondefFunction · 0.70
classNameFunction · 0.70
afterModuleFunction · 0.70
importSpecFunction · 0.70

Calls 1

inListFunction · 0.85

Tested by

no test coverage detected