MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / register

Function register

mini-code-edit/cm/mode/javascript/javascript.js:164–172  ·  view source on GitHub ↗
(varname)

Source from the content-addressed store, hash-verified

162 return true;
163 }
164 function register(varname) {
165 var state = cx.state;
166 if (state.context) {
167 cx.marked = "def";
168 for (var v = state.localVars; v; v = v.next)
169 if (v.name == varname) return;
170 state.localVars = {name: varname, next: state.localVars};
171 }
172 }
173
174 // Combinators
175

Callers 3

vardef1Function · 0.85
functiondefFunction · 0.85
funargFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected