MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / hoist

Function hoist

beautify/script.ts:1160–1172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1158 },
1159 reference = function beautify_script_level_reference():void {
1160 const hoist = function beautify_script_level_reference_hoist():void {
1161 let func:number = data.begin[a];
1162 if (func < 0) {
1163 scopes.push([data.token[a], -1]);
1164 } else {
1165 if (data.stack[func + 1] !== "function") {
1166 do {
1167 func = data.begin[func];
1168 } while (func > -1 && data.stack[func + 1] !== "function");
1169 }
1170 scopes.push([data.token[a], func]);
1171 }
1172 };
1173 if (ltype !== "separator" && ltype !== "start" && ltype !== "end" && ltype.indexOf("template_string") < 0) {
1174 if (ltype === "word" || ltype === "operator") {
1175 level[a - 1] = -10;

Callers 1

referenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected