| 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; |