MCPcopy Create free account
hub / github.com/TruthHun/BookStack / inScope

Function inScope

static/editor.md/lib/codemirror/mode/javascript/javascript.js:231–238  ·  view source on GitHub ↗
(state, varname)

Source from the content-addressed store, hash-verified

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

Callers 1

parseJSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected