MCPcopy Create free account
hub / github.com/Paxa/postbird / inScope

Function inScope

public/codemirror/javascript/javascript.js:252–259  ·  view source on GitHub ↗
(state, varname)

Source from the content-addressed store, hash-verified

250 }
251
252 function inScope(state, varname) {
253 for (var v = state.localVars; v; v = v.next)
254 if (v.name == varname) return true;
255 for (var cx = state.context; cx; cx = cx.prev) {
256 for (var v = cx.vars; v; v = v.next)
257 if (v.name == varname) return true;
258 }
259 }
260
261 function parseJS(state, style, type, content, stream) {
262 var cc = state.cc;

Callers 1

parseJSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected