MCPcopy Index your code
hub / github.com/DHTMLX/gantt / inScope

Function inScope

samples/common/codehighlight/javascript.js:234–242  ·  view source on GitHub ↗
(state, varname)

Source from the content-addressed store, hash-verified

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

Callers 1

parseJSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected