mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43: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 input Template string input strings
|
||||||
* @param args Names which need to be made file-level unique
|
* @param args Names which need to be made file-level unique
|
||||||
*/
|
*/
|
||||||
function helpers.string(input) {
|
function helperString(input) {
|
||||||
var args = [];
|
var args = [];
|
||||||
for (var _i = 1; _i < arguments.length; _i++) {
|
for (var _i = 1; _i < arguments.length; _i++) {
|
||||||
args[_i - 1] = arguments[_i];
|
args[_i - 1] = arguments[_i];
|
||||||
@ -26183,7 +26183,7 @@ var ts;
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
ts.helpers.string( = helpers.string(;
|
ts.helperString = helperString;
|
||||||
// TypeScript Helpers
|
// TypeScript Helpers
|
||||||
ts.decorateHelper = {
|
ts.decorateHelper = {
|
||||||
name: "typescript:decorate",
|
name: "typescript:decorate",
|
||||||
@ -26538,12 +26538,12 @@ var ts;
|
|||||||
ts.asyncSuperHelper = {
|
ts.asyncSuperHelper = {
|
||||||
name: "typescript:async-super",
|
name: "typescript:async-super",
|
||||||
scoped: true,
|
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 = {
|
ts.advancedAsyncSuperHelper = {
|
||||||
name: "typescript:advanced-async-super",
|
name: "typescript:advanced-async-super",
|
||||||
scoped: true,
|
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) {
|
function isCallToHelper(firstSegment, helperName) {
|
||||||
return ts.isCallExpression(firstSegment)
|
return ts.isCallExpression(firstSegment)
|
||||||
|
Loading…
Reference in New Issue
Block a user