MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / inScope

Function inScope

lib/web/CodeMirror/mode/javascript/javascript.js:232–239  ·  view source on GitHub ↗
(state, varname)

Source from the content-addressed store, hash-verified

230 }
231
232 function inScope(state, varname) {
233 for (var v = state.localVars; v; v = v.next)
234 if (v.name == varname) return true;
235 for (var cx = state.context; cx; cx = cx.prev) {
236 for (var v = cx.vars; v; v = v.next)
237 if (v.name == varname) return true;
238 }
239 }
240
241 function parseJS(state, style, type, content, stream) {
242 var cc = state.cc;

Callers 1

parseJSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected