mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Revert change to tsworker?
This commit is contained in:
parent
208495e269
commit
c7ee92bd71
@ -26168,7 +26168,7 @@ var ts;
|
||||
* @param input Template string input strings
|
||||
* @param args Names which need to be made file-level unique
|
||||
*/
|
||||
function helpers.string(input) {
|
||||
function helperString(input) {
|
||||
var args = [];
|
||||
for (var _i = 1; _i < arguments.length; _i++) {
|
||||
args[_i - 1] = arguments[_i];
|
||||
@ -26183,7 +26183,7 @@ var ts;
|
||||
return result;
|
||||
};
|
||||
}
|
||||
ts.helpers.string( = helpers.string(;
|
||||
ts.helperString = helperString;
|
||||
// TypeScript Helpers
|
||||
ts.decorateHelper = {
|
||||
name: "typescript:decorate",
|
||||
@ -26538,12 +26538,12 @@ var ts;
|
||||
ts.asyncSuperHelper = {
|
||||
name: "typescript:async-super",
|
||||
scoped: true,
|
||||
text: helpers.string(__makeTemplateObject(["\n const ", " = name => super[name];"], ["\n const ", " = name => super[name];"]), "_superIndex")
|
||||
text: helperString(__makeTemplateObject(["\n const ", " = name => super[name];"], ["\n const ", " = name => super[name];"]), "_superIndex")
|
||||
};
|
||||
ts.advancedAsyncSuperHelper = {
|
||||
name: "typescript:advanced-async-super",
|
||||
scoped: true,
|
||||
text: helpers.string(__makeTemplateObject(["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"], ["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]), "_superIndex")
|
||||
text: helperString(__makeTemplateObject(["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"], ["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]), "_superIndex")
|
||||
};
|
||||
function isCallToHelper(firstSegment, helperName) {
|
||||
return ts.isCallExpression(firstSegment)
|
||||
|
Loading…
Reference in New Issue
Block a user