typescript 4.8.0-dev.20220807 → 4.8.1-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cancellationToken.js +1 -1
- package/lib/lib.es2015.promise.d.ts +4 -9
- package/lib/lib.es5.d.ts +2 -2
- package/lib/tsc.js +278 -278
- package/lib/tsserver.js +19064 -19064
- package/lib/tsserverlibrary.js +19032 -19032
- package/lib/typescript.js +18854 -18854
- package/lib/typescriptServices.js +18854 -18854
- package/lib/typingsInstaller.js +14188 -14188
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -22,7 +22,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
22
22
|
ar[i] = from[i];
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
return to.concat(ar || from);
|
|
25
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
26
|
};
|
|
27
27
|
var __assign = (this && this.__assign) || function () {
|
|
28
28
|
__assign = Object.assign || function(t) {
|
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.8";
|
|
72
|
-
ts.version =
|
|
72
|
+
ts.version = "4.8.1-rc";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -94,7 +94,7 @@ var ts;
|
|
|
94
94
|
var constructor = (_a = NativeCollections[nativeFactory]()) !== null && _a !== void 0 ? _a : ts.ShimCollections === null || ts.ShimCollections === void 0 ? void 0 : ts.ShimCollections[shimFactory](ts.getIterator);
|
|
95
95
|
if (constructor)
|
|
96
96
|
return constructor;
|
|
97
|
-
throw new Error("TypeScript requires an environment that provides a compatible native "
|
|
97
|
+
throw new Error("TypeScript requires an environment that provides a compatible native ".concat(name, " implementation."));
|
|
98
98
|
}
|
|
99
99
|
})(ts || (ts = {}));
|
|
100
100
|
var ts;
|
|
@@ -1479,7 +1479,7 @@ var ts;
|
|
|
1479
1479
|
function cast(value, test) {
|
|
1480
1480
|
if (value !== undefined && test(value))
|
|
1481
1481
|
return value;
|
|
1482
|
-
return ts.Debug.fail("Invalid cast. The supplied value "
|
|
1482
|
+
return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'."));
|
|
1483
1483
|
}
|
|
1484
1484
|
ts.cast = cast;
|
|
1485
1485
|
function noop(_) { }
|
|
@@ -1533,7 +1533,7 @@ var ts;
|
|
|
1533
1533
|
function memoizeOne(callback) {
|
|
1534
1534
|
var map = new ts.Map();
|
|
1535
1535
|
return function (arg) {
|
|
1536
|
-
var key = typeof arg
|
|
1536
|
+
var key = "".concat(typeof arg, ":").concat(arg);
|
|
1537
1537
|
var value = map.get(key);
|
|
1538
1538
|
if (value === undefined && !map.has(key)) {
|
|
1539
1539
|
value = callback(arg);
|
|
@@ -1868,7 +1868,7 @@ var ts;
|
|
|
1868
1868
|
ts.createGetCanonicalFileName = createGetCanonicalFileName;
|
|
1869
1869
|
function patternText(_a) {
|
|
1870
1870
|
var prefix = _a.prefix, suffix = _a.suffix;
|
|
1871
|
-
return prefix
|
|
1871
|
+
return "".concat(prefix, "*").concat(suffix);
|
|
1872
1872
|
}
|
|
1873
1873
|
ts.patternText = patternText;
|
|
1874
1874
|
function matchedText(pattern, candidate) {
|
|
@@ -2140,7 +2140,7 @@ var ts;
|
|
|
2140
2140
|
}
|
|
2141
2141
|
function fail(message, stackCrawlMark) {
|
|
2142
2142
|
debugger;
|
|
2143
|
-
var e = new Error(message ? "Debug Failure. "
|
|
2143
|
+
var e = new Error(message ? "Debug Failure. ".concat(message) : "Debug Failure.");
|
|
2144
2144
|
if (Error.captureStackTrace) {
|
|
2145
2145
|
Error.captureStackTrace(e, stackCrawlMark || fail);
|
|
2146
2146
|
}
|
|
@@ -2148,12 +2148,12 @@ var ts;
|
|
|
2148
2148
|
}
|
|
2149
2149
|
Debug.fail = fail;
|
|
2150
2150
|
function failBadSyntaxKind(node, message, stackCrawlMark) {
|
|
2151
|
-
return fail((message || "Unexpected node."
|
|
2151
|
+
return fail("".concat(message || "Unexpected node.", "\r\nNode ").concat(formatSyntaxKind(node.kind), " was unexpected."), stackCrawlMark || failBadSyntaxKind);
|
|
2152
2152
|
}
|
|
2153
2153
|
Debug.failBadSyntaxKind = failBadSyntaxKind;
|
|
2154
2154
|
function assert(expression, message, verboseDebugInfo, stackCrawlMark) {
|
|
2155
2155
|
if (!expression) {
|
|
2156
|
-
message = message ? "False expression: "
|
|
2156
|
+
message = message ? "False expression: ".concat(message) : "False expression.";
|
|
2157
2157
|
if (verboseDebugInfo) {
|
|
2158
2158
|
message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo());
|
|
2159
2159
|
}
|
|
@@ -2163,26 +2163,26 @@ var ts;
|
|
|
2163
2163
|
Debug.assert = assert;
|
|
2164
2164
|
function assertEqual(a, b, msg, msg2, stackCrawlMark) {
|
|
2165
2165
|
if (a !== b) {
|
|
2166
|
-
var message = msg ? msg2 ? msg
|
|
2167
|
-
fail("Expected "
|
|
2166
|
+
var message = msg ? msg2 ? "".concat(msg, " ").concat(msg2) : msg : "";
|
|
2167
|
+
fail("Expected ".concat(a, " === ").concat(b, ". ").concat(message), stackCrawlMark || assertEqual);
|
|
2168
2168
|
}
|
|
2169
2169
|
}
|
|
2170
2170
|
Debug.assertEqual = assertEqual;
|
|
2171
2171
|
function assertLessThan(a, b, msg, stackCrawlMark) {
|
|
2172
2172
|
if (a >= b) {
|
|
2173
|
-
fail("Expected "
|
|
2173
|
+
fail("Expected ".concat(a, " < ").concat(b, ". ").concat(msg || ""), stackCrawlMark || assertLessThan);
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
Debug.assertLessThan = assertLessThan;
|
|
2177
2177
|
function assertLessThanOrEqual(a, b, stackCrawlMark) {
|
|
2178
2178
|
if (a > b) {
|
|
2179
|
-
fail("Expected "
|
|
2179
|
+
fail("Expected ".concat(a, " <= ").concat(b), stackCrawlMark || assertLessThanOrEqual);
|
|
2180
2180
|
}
|
|
2181
2181
|
}
|
|
2182
2182
|
Debug.assertLessThanOrEqual = assertLessThanOrEqual;
|
|
2183
2183
|
function assertGreaterThanOrEqual(a, b, stackCrawlMark) {
|
|
2184
2184
|
if (a < b) {
|
|
2185
|
-
fail("Expected "
|
|
2185
|
+
fail("Expected ".concat(a, " >= ").concat(b), stackCrawlMark || assertGreaterThanOrEqual);
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
2188
|
Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;
|
|
@@ -2212,42 +2212,42 @@ var ts;
|
|
|
2212
2212
|
function assertNever(member, message, stackCrawlMark) {
|
|
2213
2213
|
if (message === void 0) { message = "Illegal value:"; }
|
|
2214
2214
|
var detail = typeof member === "object" && ts.hasProperty(member, "kind") && ts.hasProperty(member, "pos") ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member);
|
|
2215
|
-
return fail(message
|
|
2215
|
+
return fail("".concat(message, " ").concat(detail), stackCrawlMark || assertNever);
|
|
2216
2216
|
}
|
|
2217
2217
|
Debug.assertNever = assertNever;
|
|
2218
2218
|
function assertEachNode(nodes, test, message, stackCrawlMark) {
|
|
2219
2219
|
if (shouldAssertFunction(1, "assertEachNode")) {
|
|
2220
|
-
assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '"
|
|
2220
|
+
assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
2223
|
Debug.assertEachNode = assertEachNode;
|
|
2224
2224
|
function assertNode(node, test, message, stackCrawlMark) {
|
|
2225
2225
|
if (shouldAssertFunction(1, "assertNode")) {
|
|
2226
|
-
assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node "
|
|
2226
|
+
assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNode);
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
2229
|
Debug.assertNode = assertNode;
|
|
2230
2230
|
function assertNotNode(node, test, message, stackCrawlMark) {
|
|
2231
2231
|
if (shouldAssertFunction(1, "assertNotNode")) {
|
|
2232
|
-
assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node "
|
|
2232
|
+
assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " should not have passed test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertNotNode);
|
|
2233
2233
|
}
|
|
2234
2234
|
}
|
|
2235
2235
|
Debug.assertNotNode = assertNotNode;
|
|
2236
2236
|
function assertOptionalNode(node, test, message, stackCrawlMark) {
|
|
2237
2237
|
if (shouldAssertFunction(1, "assertOptionalNode")) {
|
|
2238
|
-
assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node "
|
|
2238
|
+
assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertOptionalNode);
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
2241
|
Debug.assertOptionalNode = assertOptionalNode;
|
|
2242
2242
|
function assertOptionalToken(node, kind, message, stackCrawlMark) {
|
|
2243
2243
|
if (shouldAssertFunction(1, "assertOptionalToken")) {
|
|
2244
|
-
assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node "
|
|
2244
|
+
assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " was not a '").concat(formatSyntaxKind(kind), "' token."); }, stackCrawlMark || assertOptionalToken);
|
|
2245
2245
|
}
|
|
2246
2246
|
}
|
|
2247
2247
|
Debug.assertOptionalToken = assertOptionalToken;
|
|
2248
2248
|
function assertMissingNode(node, message, stackCrawlMark) {
|
|
2249
2249
|
if (shouldAssertFunction(1, "assertMissingNode")) {
|
|
2250
|
-
assert(node === undefined, message || "Unexpected node.", function () { return "Node "
|
|
2250
|
+
assert(node === undefined, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " was unexpected'."); }, stackCrawlMark || assertMissingNode);
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
2253
2253
|
Debug.assertMissingNode = assertMissingNode;
|
|
@@ -2268,7 +2268,7 @@ var ts;
|
|
|
2268
2268
|
}
|
|
2269
2269
|
Debug.getFunctionName = getFunctionName;
|
|
2270
2270
|
function formatSymbol(symbol) {
|
|
2271
|
-
return "{ name: "
|
|
2271
|
+
return "{ name: ".concat(ts.unescapeLeadingUnderscores(symbol.escapedName), "; flags: ").concat(formatSymbolFlags(symbol.flags), "; declarations: ").concat(ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }), " }");
|
|
2272
2272
|
}
|
|
2273
2273
|
Debug.formatSymbol = formatSymbol;
|
|
2274
2274
|
function formatEnum(value, enumObject, isFlags) {
|
|
@@ -2418,7 +2418,7 @@ var ts;
|
|
|
2418
2418
|
this.flags & 1 ? "FlowUnreachable" :
|
|
2419
2419
|
"UnknownFlow";
|
|
2420
2420
|
var remainingFlags = this.flags & ~(2048 - 1);
|
|
2421
|
-
return ""
|
|
2421
|
+
return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
|
|
2422
2422
|
}
|
|
2423
2423
|
},
|
|
2424
2424
|
__debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, true); } },
|
|
@@ -2448,7 +2448,7 @@ var ts;
|
|
|
2448
2448
|
__tsDebuggerDisplay: {
|
|
2449
2449
|
value: function (defaultValue) {
|
|
2450
2450
|
defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]");
|
|
2451
|
-
return "NodeArray "
|
|
2451
|
+
return "NodeArray ".concat(defaultValue);
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
2454
|
});
|
|
@@ -2494,7 +2494,7 @@ var ts;
|
|
|
2494
2494
|
var symbolHeader = this.flags & 33554432 ? "TransientSymbol" :
|
|
2495
2495
|
"Symbol";
|
|
2496
2496
|
var remainingSymbolFlags = this.flags & ~33554432;
|
|
2497
|
-
return symbolHeader
|
|
2497
|
+
return "".concat(symbolHeader, " '").concat(ts.symbolName(this), "'").concat(remainingSymbolFlags ? " (".concat(formatSymbolFlags(remainingSymbolFlags), ")") : "");
|
|
2498
2498
|
}
|
|
2499
2499
|
},
|
|
2500
2500
|
__debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }
|
|
@@ -2503,11 +2503,11 @@ var ts;
|
|
|
2503
2503
|
__tsDebuggerDisplay: {
|
|
2504
2504
|
value: function () {
|
|
2505
2505
|
var typeHeader = this.flags & 98304 ? "NullableType" :
|
|
2506
|
-
this.flags & 384 ? "LiteralType "
|
|
2507
|
-
this.flags & 2048 ? "LiteralType "
|
|
2506
|
+
this.flags & 384 ? "LiteralType ".concat(JSON.stringify(this.value)) :
|
|
2507
|
+
this.flags & 2048 ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") :
|
|
2508
2508
|
this.flags & 8192 ? "UniqueESSymbolType" :
|
|
2509
2509
|
this.flags & 32 ? "EnumType" :
|
|
2510
|
-
this.flags & 67359327 ? "IntrinsicType "
|
|
2510
|
+
this.flags & 67359327 ? "IntrinsicType ".concat(this.intrinsicName) :
|
|
2511
2511
|
this.flags & 1048576 ? "UnionType" :
|
|
2512
2512
|
this.flags & 2097152 ? "IntersectionType" :
|
|
2513
2513
|
this.flags & 4194304 ? "IndexType" :
|
|
@@ -2526,7 +2526,7 @@ var ts;
|
|
|
2526
2526
|
"ObjectType" :
|
|
2527
2527
|
"Type";
|
|
2528
2528
|
var remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
|
|
2529
|
-
return ""
|
|
2529
|
+
return "".concat(typeHeader).concat(this.symbol ? " '".concat(ts.symbolName(this.symbol), "'") : "").concat(remainingObjectFlags ? " (".concat(formatObjectFlags(remainingObjectFlags), ")") : "");
|
|
2530
2530
|
}
|
|
2531
2531
|
},
|
|
2532
2532
|
__debugFlags: { get: function () { return formatTypeFlags(this.flags); } },
|
|
@@ -2560,11 +2560,11 @@ var ts;
|
|
|
2560
2560
|
__tsDebuggerDisplay: {
|
|
2561
2561
|
value: function () {
|
|
2562
2562
|
var nodeHeader = ts.isGeneratedIdentifier(this) ? "GeneratedIdentifier" :
|
|
2563
|
-
ts.isIdentifier(this) ? "Identifier '"
|
|
2564
|
-
ts.isPrivateIdentifier(this) ? "PrivateIdentifier '"
|
|
2565
|
-
ts.isStringLiteral(this) ? "StringLiteral "
|
|
2566
|
-
ts.isNumericLiteral(this) ? "NumericLiteral "
|
|
2567
|
-
ts.isBigIntLiteral(this) ? "BigIntLiteral "
|
|
2563
|
+
ts.isIdentifier(this) ? "Identifier '".concat(ts.idText(this), "'") :
|
|
2564
|
+
ts.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(ts.idText(this), "'") :
|
|
2565
|
+
ts.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) :
|
|
2566
|
+
ts.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) :
|
|
2567
|
+
ts.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") :
|
|
2568
2568
|
ts.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" :
|
|
2569
2569
|
ts.isParameter(this) ? "ParameterDeclaration" :
|
|
2570
2570
|
ts.isConstructorDeclaration(this) ? "ConstructorDeclaration" :
|
|
@@ -2596,7 +2596,7 @@ var ts;
|
|
|
2596
2596
|
ts.isNamedTupleMember(this) ? "NamedTupleMember" :
|
|
2597
2597
|
ts.isImportTypeNode(this) ? "ImportTypeNode" :
|
|
2598
2598
|
formatSyntaxKind(this.kind);
|
|
2599
|
-
return ""
|
|
2599
|
+
return "".concat(nodeHeader).concat(this.flags ? " (".concat(formatNodeFlags(this.flags), ")") : "");
|
|
2600
2600
|
}
|
|
2601
2601
|
},
|
|
2602
2602
|
__debugKind: { get: function () { return formatSyntaxKind(this.kind); } },
|
|
@@ -2640,10 +2640,10 @@ var ts;
|
|
|
2640
2640
|
Debug.enableDebugInfo = enableDebugInfo;
|
|
2641
2641
|
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
2642
2642
|
var deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
2643
|
-
deprecationMessage += "'"
|
|
2644
|
-
deprecationMessage += since ? "has been deprecated since v"
|
|
2645
|
-
deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v"
|
|
2646
|
-
deprecationMessage += message ? " "
|
|
2643
|
+
deprecationMessage += "'".concat(name, "' ");
|
|
2644
|
+
deprecationMessage += since ? "has been deprecated since v".concat(since) : "is deprecated";
|
|
2645
|
+
deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v".concat(errorAfter, ".") : ".";
|
|
2646
|
+
deprecationMessage += message ? " ".concat(ts.formatStringFromArgs(message, [name], 0)) : "";
|
|
2647
2647
|
return deprecationMessage;
|
|
2648
2648
|
}
|
|
2649
2649
|
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
@@ -2711,11 +2711,11 @@ var ts;
|
|
|
2711
2711
|
type(this);
|
|
2712
2712
|
switch (this.kind) {
|
|
2713
2713
|
case 3: return ((_a = this.debugInfo) === null || _a === void 0 ? void 0 : _a.call(this)) || "(function mapper)";
|
|
2714
|
-
case 0: return this.source.__debugTypeToString()
|
|
2715
|
-
case 1: return ts.zipWith(this.sources, this.targets || ts.map(this.sources, function () { return "any"; }), function (s, t) { return s.__debugTypeToString()
|
|
2716
|
-
case 2: return ts.zipWith(this.sources, this.targets, function (s, t) { return s.__debugTypeToString()
|
|
2714
|
+
case 0: return "".concat(this.source.__debugTypeToString(), " -> ").concat(this.target.__debugTypeToString());
|
|
2715
|
+
case 1: return ts.zipWith(this.sources, this.targets || ts.map(this.sources, function () { return "any"; }), function (s, t) { return "".concat(s.__debugTypeToString(), " -> ").concat(typeof t === "string" ? t : t.__debugTypeToString()); }).join(", ");
|
|
2716
|
+
case 2: return ts.zipWith(this.sources, this.targets, function (s, t) { return "".concat(s.__debugTypeToString(), " -> ").concat(t().__debugTypeToString()); }).join(", ");
|
|
2717
2717
|
case 5:
|
|
2718
|
-
case 4: return "m1: "
|
|
2718
|
+
case 4: return "m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "), "\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));
|
|
2719
2719
|
default: return assertNever(this);
|
|
2720
2720
|
}
|
|
2721
2721
|
};
|
|
@@ -2784,11 +2784,11 @@ var ts;
|
|
|
2784
2784
|
}
|
|
2785
2785
|
};
|
|
2786
2786
|
Version.prototype.toString = function () {
|
|
2787
|
-
var result = this.major
|
|
2787
|
+
var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
|
|
2788
2788
|
if (ts.some(this.prerelease))
|
|
2789
|
-
result += "-"
|
|
2789
|
+
result += "-".concat(this.prerelease.join("."));
|
|
2790
2790
|
if (ts.some(this.build))
|
|
2791
|
-
result += "+"
|
|
2791
|
+
result += "+".concat(this.build.join("."));
|
|
2792
2792
|
return result;
|
|
2793
2793
|
};
|
|
2794
2794
|
Version.zero = new Version(0, 0, 0);
|
|
@@ -3010,7 +3010,7 @@ var ts;
|
|
|
3010
3010
|
return ts.map(comparators, formatComparator).join(" ");
|
|
3011
3011
|
}
|
|
3012
3012
|
function formatComparator(comparator) {
|
|
3013
|
-
return ""
|
|
3013
|
+
return "".concat(comparator.operator).concat(comparator.operand);
|
|
3014
3014
|
}
|
|
3015
3015
|
})(ts || (ts = {}));
|
|
3016
3016
|
var ts;
|
|
@@ -3239,7 +3239,7 @@ var ts;
|
|
|
3239
3239
|
fs = require("fs");
|
|
3240
3240
|
}
|
|
3241
3241
|
catch (e) {
|
|
3242
|
-
throw new Error("tracing requires having fs\n(original error: "
|
|
3242
|
+
throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")"));
|
|
3243
3243
|
}
|
|
3244
3244
|
}
|
|
3245
3245
|
mode = tracingMode;
|
|
@@ -3250,11 +3250,11 @@ var ts;
|
|
|
3250
3250
|
if (!fs.existsSync(traceDir)) {
|
|
3251
3251
|
fs.mkdirSync(traceDir, { recursive: true });
|
|
3252
3252
|
}
|
|
3253
|
-
var countPart = mode === "build" ? "."
|
|
3254
|
-
: mode === "server" ? "."
|
|
3253
|
+
var countPart = mode === "build" ? ".".concat(process.pid, "-").concat(++traceCount)
|
|
3254
|
+
: mode === "server" ? ".".concat(process.pid)
|
|
3255
3255
|
: "";
|
|
3256
|
-
var tracePath = ts.combinePaths(traceDir, "trace"
|
|
3257
|
-
var typesPath = ts.combinePaths(traceDir, "types"
|
|
3256
|
+
var tracePath = ts.combinePaths(traceDir, "trace".concat(countPart, ".json"));
|
|
3257
|
+
var typesPath = ts.combinePaths(traceDir, "types".concat(countPart, ".json"));
|
|
3258
3258
|
legend.push({
|
|
3259
3259
|
configFilePath: configFilePath,
|
|
3260
3260
|
tracePath: tracePath,
|
|
@@ -3323,7 +3323,7 @@ var ts;
|
|
|
3323
3323
|
writeEvent("E", phase, name, args, undefined, endTime);
|
|
3324
3324
|
}
|
|
3325
3325
|
else if (sampleInterval - (time % sampleInterval) <= endTime - time) {
|
|
3326
|
-
writeEvent("X", phase, name, __assign(__assign({}, args), { results: results }), "\"dur\":"
|
|
3326
|
+
writeEvent("X", phase, name, __assign(__assign({}, args), { results: results }), "\"dur\":".concat(endTime - time), time);
|
|
3327
3327
|
}
|
|
3328
3328
|
}
|
|
3329
3329
|
function writeEvent(eventType, phase, name, args, extras, time) {
|
|
@@ -3331,11 +3331,11 @@ var ts;
|
|
|
3331
3331
|
if (mode === "server" && phase === "checkTypes")
|
|
3332
3332
|
return;
|
|
3333
3333
|
ts.performance.mark("beginTracing");
|
|
3334
|
-
fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\""
|
|
3334
|
+
fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"".concat(eventType, "\",\"cat\":\"").concat(phase, "\",\"ts\":").concat(time, ",\"name\":\"").concat(name, "\""));
|
|
3335
3335
|
if (extras)
|
|
3336
|
-
fs.writeSync(traceFd, ","
|
|
3336
|
+
fs.writeSync(traceFd, ",".concat(extras));
|
|
3337
3337
|
if (args)
|
|
3338
|
-
fs.writeSync(traceFd, ",\"args\":"
|
|
3338
|
+
fs.writeSync(traceFd, ",\"args\":".concat(JSON.stringify(args)));
|
|
3339
3339
|
fs.writeSync(traceFd, "}");
|
|
3340
3340
|
ts.performance.mark("endTracing");
|
|
3341
3341
|
ts.performance.measure("Tracing", "beginTracing", "endTracing");
|
|
@@ -3662,7 +3662,7 @@ var ts;
|
|
|
3662
3662
|
pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize;
|
|
3663
3663
|
ts.unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || ts.unchangedPollThresholds;
|
|
3664
3664
|
function getLevel(envVar, level) {
|
|
3665
|
-
return system.getEnvironmentVariable(envVar
|
|
3665
|
+
return system.getEnvironmentVariable("".concat(envVar, "_").concat(level.toUpperCase()));
|
|
3666
3666
|
}
|
|
3667
3667
|
function getCustomLevels(baseVariable) {
|
|
3668
3668
|
var customLevels;
|
|
@@ -4086,7 +4086,7 @@ var ts;
|
|
|
4086
4086
|
}
|
|
4087
4087
|
function onTimerToUpdateChildWatches() {
|
|
4088
4088
|
timerToUpdateChildWatches = undefined;
|
|
4089
|
-
sysLog("sysLog:: onTimerToUpdateChildWatches:: "
|
|
4089
|
+
sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size));
|
|
4090
4090
|
var start = ts.timestamp();
|
|
4091
4091
|
var invokeMap = new ts.Map();
|
|
4092
4092
|
while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
|
|
@@ -4097,7 +4097,7 @@ var ts;
|
|
|
4097
4097
|
var hasChanges = updateChildWatches(dirName, dirPath, options);
|
|
4098
4098
|
invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);
|
|
4099
4099
|
}
|
|
4100
|
-
sysLog("sysLog:: invokingWatchers:: Elapsed:: "
|
|
4100
|
+
sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(ts.timestamp() - start, "ms:: ").concat(cacheToUpdateChildWatches.size));
|
|
4101
4101
|
callbackCache.forEach(function (callbacks, rootDirName) {
|
|
4102
4102
|
var existing = invokeMap.get(rootDirName);
|
|
4103
4103
|
if (existing) {
|
|
@@ -4113,7 +4113,7 @@ var ts;
|
|
|
4113
4113
|
}
|
|
4114
4114
|
});
|
|
4115
4115
|
var elapsed = ts.timestamp() - start;
|
|
4116
|
-
sysLog("sysLog:: Elapsed:: "
|
|
4116
|
+
sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
|
|
4117
4117
|
}
|
|
4118
4118
|
function removeChildWatches(parentWatcher) {
|
|
4119
4119
|
if (!parentWatcher)
|
|
@@ -4329,14 +4329,14 @@ var ts;
|
|
|
4329
4329
|
};
|
|
4330
4330
|
function updateWatcher(createWatcher) {
|
|
4331
4331
|
if (watcher) {
|
|
4332
|
-
sysLog("sysLog:: "
|
|
4332
|
+
sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing", "FileSystemEntryWatcher"));
|
|
4333
4333
|
watcher.close();
|
|
4334
4334
|
watcher = createWatcher();
|
|
4335
4335
|
}
|
|
4336
4336
|
}
|
|
4337
4337
|
function watchPresentFileSystemEntry() {
|
|
4338
4338
|
if (hitSystemWatcherLimit) {
|
|
4339
|
-
sysLog("sysLog:: "
|
|
4339
|
+
sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to watchFile"));
|
|
4340
4340
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
4341
4341
|
}
|
|
4342
4342
|
try {
|
|
@@ -4351,7 +4351,7 @@ var ts;
|
|
|
4351
4351
|
}
|
|
4352
4352
|
catch (e) {
|
|
4353
4353
|
hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC");
|
|
4354
|
-
sysLog("sysLog:: "
|
|
4354
|
+
sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to watchFile"));
|
|
4355
4355
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
4356
4356
|
}
|
|
4357
4357
|
}
|
|
@@ -4595,7 +4595,7 @@ var ts;
|
|
|
4595
4595
|
var externalFileCounter = 0;
|
|
4596
4596
|
var remappedPaths = new ts.Map();
|
|
4597
4597
|
var normalizedDir = ts.normalizeSlashes(__dirname);
|
|
4598
|
-
var fileUrlRoot = "file://"
|
|
4598
|
+
var fileUrlRoot = "file://".concat(ts.getRootLength(normalizedDir) === 1 ? "" : "/").concat(normalizedDir);
|
|
4599
4599
|
for (var _i = 0, _a = profile.nodes; _i < _a.length; _i++) {
|
|
4600
4600
|
var node = _a[_i];
|
|
4601
4601
|
if (node.callFrame.url) {
|
|
@@ -4604,7 +4604,7 @@ var ts;
|
|
|
4604
4604
|
node.callFrame.url = ts.getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, ts.createGetCanonicalFileName(useCaseSensitiveFileNames), true);
|
|
4605
4605
|
}
|
|
4606
4606
|
else if (!nativePattern.test(url)) {
|
|
4607
|
-
node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external"
|
|
4607
|
+
node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external".concat(externalFileCounter, ".js"))).get(url);
|
|
4608
4608
|
externalFileCounter++;
|
|
4609
4609
|
}
|
|
4610
4610
|
}
|
|
@@ -4620,7 +4620,7 @@ var ts;
|
|
|
4620
4620
|
if (!err) {
|
|
4621
4621
|
try {
|
|
4622
4622
|
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
|
4623
|
-
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-")
|
|
4623
|
+
profilePath = _path.join(profilePath, "".concat((new Date()).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"));
|
|
4624
4624
|
}
|
|
4625
4625
|
}
|
|
4626
4626
|
catch (_c) {
|
|
@@ -7416,7 +7416,7 @@ var ts;
|
|
|
7416
7416
|
line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;
|
|
7417
7417
|
}
|
|
7418
7418
|
else {
|
|
7419
|
-
ts.Debug.fail("Bad line number. Line: "
|
|
7419
|
+
ts.Debug.fail("Bad line number. Line: ".concat(line, ", lineStarts.length: ").concat(lineStarts.length, " , line map is correct? ").concat(debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"));
|
|
7420
7420
|
}
|
|
7421
7421
|
}
|
|
7422
7422
|
var res = lineStarts[line] + character;
|
|
@@ -9943,7 +9943,7 @@ var ts;
|
|
|
9943
9943
|
: "linkplain";
|
|
9944
9944
|
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
9945
9945
|
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
9946
|
-
return "{@"
|
|
9946
|
+
return "{@".concat(kind, " ").concat(name).concat(space).concat(link.text, "}");
|
|
9947
9947
|
}
|
|
9948
9948
|
function getEffectiveTypeParameterDeclarations(node) {
|
|
9949
9949
|
if (ts.isJSDocSignature(node)) {
|
|
@@ -11070,11 +11070,11 @@ var ts;
|
|
|
11070
11070
|
}
|
|
11071
11071
|
function packageIdToPackageName(_a) {
|
|
11072
11072
|
var name = _a.name, subModuleName = _a.subModuleName;
|
|
11073
|
-
return subModuleName ? name
|
|
11073
|
+
return subModuleName ? "".concat(name, "/").concat(subModuleName) : name;
|
|
11074
11074
|
}
|
|
11075
11075
|
ts.packageIdToPackageName = packageIdToPackageName;
|
|
11076
11076
|
function packageIdToString(packageId) {
|
|
11077
|
-
return packageIdToPackageName(packageId)
|
|
11077
|
+
return "".concat(packageIdToPackageName(packageId), "@").concat(packageId.version);
|
|
11078
11078
|
}
|
|
11079
11079
|
ts.packageIdToString = packageIdToString;
|
|
11080
11080
|
function typeDirectiveIsEqualTo(oldResolution, newResolution) {
|
|
@@ -11151,7 +11151,7 @@ var ts;
|
|
|
11151
11151
|
function nodePosToString(node) {
|
|
11152
11152
|
var file = getSourceFileOfNode(node);
|
|
11153
11153
|
var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
|
|
11154
|
-
return file.fileName
|
|
11154
|
+
return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
|
|
11155
11155
|
}
|
|
11156
11156
|
ts.nodePosToString = nodePosToString;
|
|
11157
11157
|
function getEndLinePosition(line, sourceFile) {
|
|
@@ -11252,7 +11252,7 @@ var ts;
|
|
|
11252
11252
|
ts.isPinnedComment = isPinnedComment;
|
|
11253
11253
|
function createCommentDirectivesMap(sourceFile, commentDirectives) {
|
|
11254
11254
|
var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([
|
|
11255
|
-
""
|
|
11255
|
+
"".concat(ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line),
|
|
11256
11256
|
commentDirective,
|
|
11257
11257
|
]); }));
|
|
11258
11258
|
var usedLines = new ts.Map();
|
|
@@ -11269,10 +11269,10 @@ var ts;
|
|
|
11269
11269
|
});
|
|
11270
11270
|
}
|
|
11271
11271
|
function markUsed(line) {
|
|
11272
|
-
if (!directivesByLine.has(""
|
|
11272
|
+
if (!directivesByLine.has("".concat(line))) {
|
|
11273
11273
|
return false;
|
|
11274
11274
|
}
|
|
11275
|
-
usedLines.set(""
|
|
11275
|
+
usedLines.set("".concat(line), true);
|
|
11276
11276
|
return true;
|
|
11277
11277
|
}
|
|
11278
11278
|
}
|
|
@@ -11472,7 +11472,7 @@ var ts;
|
|
|
11472
11472
|
}
|
|
11473
11473
|
return node.text;
|
|
11474
11474
|
}
|
|
11475
|
-
return ts.Debug.fail("Literal kind '"
|
|
11475
|
+
return ts.Debug.fail("Literal kind '".concat(node.kind, "' not accounted for."));
|
|
11476
11476
|
}
|
|
11477
11477
|
ts.getLiteralText = getLiteralText;
|
|
11478
11478
|
function canUseOriginalText(node, flags) {
|
|
@@ -13831,11 +13831,11 @@ var ts;
|
|
|
13831
13831
|
}
|
|
13832
13832
|
ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;
|
|
13833
13833
|
function getPropertyNameForUniqueESSymbol(symbol) {
|
|
13834
|
-
return "__@"
|
|
13834
|
+
return "__@".concat(ts.getSymbolId(symbol), "@").concat(symbol.escapedName);
|
|
13835
13835
|
}
|
|
13836
13836
|
ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;
|
|
13837
13837
|
function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {
|
|
13838
|
-
return "__#"
|
|
13838
|
+
return "__#".concat(ts.getSymbolId(containingClassSymbol), "@").concat(description);
|
|
13839
13839
|
}
|
|
13840
13840
|
ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;
|
|
13841
13841
|
function isKnownSymbol(symbol) {
|
|
@@ -16232,7 +16232,7 @@ var ts;
|
|
|
16232
16232
|
}
|
|
16233
16233
|
ts.getJSXImplicitImportBase = getJSXImplicitImportBase;
|
|
16234
16234
|
function getJSXRuntimeImport(base, options) {
|
|
16235
|
-
return base ? base
|
|
16235
|
+
return base ? "".concat(base, "/").concat(options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
|
|
16236
16236
|
}
|
|
16237
16237
|
ts.getJSXRuntimeImport = getJSXRuntimeImport;
|
|
16238
16238
|
function hasZeroOrOneAsteriskCharacter(str) {
|
|
@@ -16330,15 +16330,15 @@ var ts;
|
|
|
16330
16330
|
}
|
|
16331
16331
|
var wildcardCharCodes = [42, 63];
|
|
16332
16332
|
ts.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
|
|
16333
|
-
var implicitExcludePathRegexPattern = "(?!("
|
|
16333
|
+
var implicitExcludePathRegexPattern = "(?!(".concat(ts.commonPackageFolders.join("|"), ")(/|$))");
|
|
16334
16334
|
var filesMatcher = {
|
|
16335
16335
|
singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*",
|
|
16336
|
-
doubleAsteriskRegexFragment: "(/"
|
|
16336
|
+
doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
|
|
16337
16337
|
replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }
|
|
16338
16338
|
};
|
|
16339
16339
|
var directoriesMatcher = {
|
|
16340
16340
|
singleAsteriskRegexFragment: "[^/]*",
|
|
16341
|
-
doubleAsteriskRegexFragment: "(/"
|
|
16341
|
+
doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
|
|
16342
16342
|
replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }
|
|
16343
16343
|
};
|
|
16344
16344
|
var excludeMatcher = {
|
|
@@ -16356,9 +16356,9 @@ var ts;
|
|
|
16356
16356
|
if (!patterns || !patterns.length) {
|
|
16357
16357
|
return undefined;
|
|
16358
16358
|
}
|
|
16359
|
-
var pattern = patterns.map(function (pattern) { return "("
|
|
16359
|
+
var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|");
|
|
16360
16360
|
var terminator = usage === "exclude" ? "($|/)" : "$";
|
|
16361
|
-
return "^("
|
|
16361
|
+
return "^(".concat(pattern, ")").concat(terminator);
|
|
16362
16362
|
}
|
|
16363
16363
|
ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
|
|
16364
16364
|
function getRegularExpressionsForWildcards(specs, basePath, usage) {
|
|
@@ -16376,7 +16376,7 @@ var ts;
|
|
|
16376
16376
|
ts.isImplicitGlob = isImplicitGlob;
|
|
16377
16377
|
function getPatternFromSpec(spec, basePath, usage) {
|
|
16378
16378
|
var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
|
|
16379
|
-
return pattern && "^("
|
|
16379
|
+
return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
|
|
16380
16380
|
}
|
|
16381
16381
|
ts.getPatternFromSpec = getPatternFromSpec;
|
|
16382
16382
|
function getSubPatternFromSpec(spec, basePath, usage, _a) {
|
|
@@ -16442,7 +16442,7 @@ var ts;
|
|
|
16442
16442
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
16443
16443
|
var absolutePath = ts.combinePaths(currentDirectory, path);
|
|
16444
16444
|
return {
|
|
16445
|
-
includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^"
|
|
16445
|
+
includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^".concat(pattern, "$"); }),
|
|
16446
16446
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
16447
16447
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
16448
16448
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
@@ -16688,7 +16688,7 @@ var ts;
|
|
|
16688
16688
|
ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;
|
|
16689
16689
|
function extensionFromPath(path) {
|
|
16690
16690
|
var ext = tryGetExtensionFromPath(path);
|
|
16691
|
-
return ext !== undefined ? ext : ts.Debug.fail("File "
|
|
16691
|
+
return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension."));
|
|
16692
16692
|
}
|
|
16693
16693
|
ts.extensionFromPath = extensionFromPath;
|
|
16694
16694
|
function isAnySupportedFileExtension(path) {
|
|
@@ -22021,7 +22021,7 @@ var ts;
|
|
|
22021
22021
|
case 328: return "augments";
|
|
22022
22022
|
case 329: return "implements";
|
|
22023
22023
|
default:
|
|
22024
|
-
return ts.Debug.fail("Unsupported kind: "
|
|
22024
|
+
return ts.Debug.fail("Unsupported kind: ".concat(ts.Debug.formatSyntaxKind(kind)));
|
|
22025
22025
|
}
|
|
22026
22026
|
}
|
|
22027
22027
|
var rawTextScanner;
|
|
@@ -22348,7 +22348,7 @@ var ts;
|
|
|
22348
22348
|
};
|
|
22349
22349
|
var definedTextGetter_1 = function (path) {
|
|
22350
22350
|
var result = textGetter_1(path);
|
|
22351
|
-
return result !== undefined ? result : "/* Input file "
|
|
22351
|
+
return result !== undefined ? result : "/* Input file ".concat(path, " was missing */\r\n");
|
|
22352
22352
|
};
|
|
22353
22353
|
var buildInfo_1;
|
|
22354
22354
|
var getAndCacheBuildInfo_1 = function (getText) {
|
|
@@ -26204,7 +26204,7 @@ var ts;
|
|
|
26204
26204
|
for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
|
|
26205
26205
|
var keyword = viableKeywordSuggestions_1[_i];
|
|
26206
26206
|
if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
|
|
26207
|
-
return keyword
|
|
26207
|
+
return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
|
|
26208
26208
|
}
|
|
26209
26209
|
}
|
|
26210
26210
|
return undefined;
|
|
@@ -31812,7 +31812,7 @@ var ts;
|
|
|
31812
31812
|
if (namedArgRegExCache.has(name)) {
|
|
31813
31813
|
return namedArgRegExCache.get(name);
|
|
31814
31814
|
}
|
|
31815
|
-
var result = new RegExp("(\\s"
|
|
31815
|
+
var result = new RegExp("(\\s".concat(name, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im");
|
|
31816
31816
|
namedArgRegExCache.set(name, result);
|
|
31817
31817
|
return result;
|
|
31818
31818
|
}
|
|
@@ -33331,8 +33331,8 @@ var ts;
|
|
|
33331
33331
|
}
|
|
33332
33332
|
ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;
|
|
33333
33333
|
function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
|
|
33334
|
-
var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'"
|
|
33335
|
-
return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--"
|
|
33334
|
+
var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", ");
|
|
33335
|
+
return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType);
|
|
33336
33336
|
}
|
|
33337
33337
|
function parseCustomTypeOption(opt, value, errors) {
|
|
33338
33338
|
return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors);
|
|
@@ -34050,10 +34050,10 @@ var ts;
|
|
|
34050
34050
|
var newValue = compilerOptionsMap.get(cmd.name);
|
|
34051
34051
|
var defaultValue = getDefaultValueForOption(cmd);
|
|
34052
34052
|
if (newValue !== defaultValue) {
|
|
34053
|
-
result.push(""
|
|
34053
|
+
result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
|
|
34054
34054
|
}
|
|
34055
34055
|
else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
|
|
34056
|
-
result.push(""
|
|
34056
|
+
result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
|
|
34057
34057
|
}
|
|
34058
34058
|
});
|
|
34059
34059
|
return result.join(newLine) + newLine;
|
|
@@ -34091,19 +34091,19 @@ var ts;
|
|
|
34091
34091
|
if (entries.length !== 0) {
|
|
34092
34092
|
entries.push({ value: "" });
|
|
34093
34093
|
}
|
|
34094
|
-
entries.push({ value: "/* "
|
|
34094
|
+
entries.push({ value: "/* ".concat(category, " */") });
|
|
34095
34095
|
for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
|
|
34096
34096
|
var option = options_1[_i];
|
|
34097
34097
|
var optionName = void 0;
|
|
34098
34098
|
if (compilerOptionsMap.has(option.name)) {
|
|
34099
|
-
optionName = "\""
|
|
34099
|
+
optionName = "\"".concat(option.name, "\": ").concat(JSON.stringify(compilerOptionsMap.get(option.name))).concat((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
|
|
34100
34100
|
}
|
|
34101
34101
|
else {
|
|
34102
|
-
optionName = "// \""
|
|
34102
|
+
optionName = "// \"".concat(option.name, "\": ").concat(JSON.stringify(getDefaultValueForOption(option)), ",");
|
|
34103
34103
|
}
|
|
34104
34104
|
entries.push({
|
|
34105
34105
|
value: optionName,
|
|
34106
|
-
description: "/* "
|
|
34106
|
+
description: "/* ".concat(option.description && ts.getLocaleSpecificMessage(option.description) || option.name, " */")
|
|
34107
34107
|
});
|
|
34108
34108
|
marginLength = Math.max(optionName.length, marginLength);
|
|
34109
34109
|
}
|
|
@@ -34111,24 +34111,24 @@ var ts;
|
|
|
34111
34111
|
var tab = makePadding(2);
|
|
34112
34112
|
var result = [];
|
|
34113
34113
|
result.push("{");
|
|
34114
|
-
result.push(tab
|
|
34115
|
-
result.push(""
|
|
34114
|
+
result.push("".concat(tab, "\"compilerOptions\": {"));
|
|
34115
|
+
result.push("".concat(tab).concat(tab, "/* ").concat(ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file), " */"));
|
|
34116
34116
|
result.push("");
|
|
34117
34117
|
for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {
|
|
34118
34118
|
var entry = entries_2[_a];
|
|
34119
34119
|
var value = entry.value, _b = entry.description, description = _b === void 0 ? "" : _b;
|
|
34120
|
-
result.push(value && ""
|
|
34120
|
+
result.push(value && "".concat(tab).concat(tab).concat(value).concat(description && (makePadding(marginLength - value.length + 2) + description)));
|
|
34121
34121
|
}
|
|
34122
34122
|
if (fileNames.length) {
|
|
34123
|
-
result.push(tab
|
|
34124
|
-
result.push(tab
|
|
34123
|
+
result.push("".concat(tab, "},"));
|
|
34124
|
+
result.push("".concat(tab, "\"files\": ["));
|
|
34125
34125
|
for (var i = 0; i < fileNames.length; i++) {
|
|
34126
|
-
result.push(""
|
|
34126
|
+
result.push("".concat(tab).concat(tab).concat(JSON.stringify(fileNames[i])).concat(i === fileNames.length - 1 ? "" : ","));
|
|
34127
34127
|
}
|
|
34128
|
-
result.push(tab
|
|
34128
|
+
result.push("".concat(tab, "]"));
|
|
34129
34129
|
}
|
|
34130
34130
|
else {
|
|
34131
|
-
result.push(tab
|
|
34131
|
+
result.push("".concat(tab, "}"));
|
|
34132
34132
|
}
|
|
34133
34133
|
result.push("}");
|
|
34134
34134
|
return result.join(newLine) + newLine;
|
|
@@ -34485,7 +34485,7 @@ var ts;
|
|
|
34485
34485
|
if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, "./") || ts.startsWith(extendedConfig, "../")) {
|
|
34486
34486
|
var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);
|
|
34487
34487
|
if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json")) {
|
|
34488
|
-
extendedConfigPath = extendedConfigPath
|
|
34488
|
+
extendedConfigPath = "".concat(extendedConfigPath, ".json");
|
|
34489
34489
|
if (!host.fileExists(extendedConfigPath)) {
|
|
34490
34490
|
errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
|
|
34491
34491
|
return undefined;
|
|
@@ -34681,7 +34681,7 @@ var ts;
|
|
|
34681
34681
|
if (ts.fileExtensionIs(file, ".json")) {
|
|
34682
34682
|
if (!jsonOnlyIncludeRegexes) {
|
|
34683
34683
|
var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, ".json"); });
|
|
34684
|
-
var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^"
|
|
34684
|
+
var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^".concat(pattern, "$"); });
|
|
34685
34685
|
jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;
|
|
34686
34686
|
}
|
|
34687
34687
|
var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });
|
|
@@ -34909,7 +34909,7 @@ var ts;
|
|
|
34909
34909
|
return true;
|
|
34910
34910
|
case "string":
|
|
34911
34911
|
var defaultValue = option.defaultValueDescription;
|
|
34912
|
-
return option.isFilePath ? "./"
|
|
34912
|
+
return option.isFilePath ? "./".concat(defaultValue && typeof defaultValue === "string" ? defaultValue : "") : "";
|
|
34913
34913
|
case "list":
|
|
34914
34914
|
return [];
|
|
34915
34915
|
case "object":
|
|
@@ -35058,7 +35058,7 @@ var ts;
|
|
|
35058
35058
|
var bestVersionKey = result.version, bestVersionPaths = result.paths;
|
|
35059
35059
|
if (typeof bestVersionPaths !== "object") {
|
|
35060
35060
|
if (state.traceEnabled) {
|
|
35061
|
-
trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['"
|
|
35061
|
+
trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(bestVersionKey, "']"), "object", typeof bestVersionPaths);
|
|
35062
35062
|
}
|
|
35063
35063
|
return;
|
|
35064
35064
|
}
|
|
@@ -35440,7 +35440,7 @@ var ts;
|
|
|
35440
35440
|
};
|
|
35441
35441
|
return cache;
|
|
35442
35442
|
function getUnderlyingCacheKey(specifier, mode) {
|
|
35443
|
-
var result = mode === undefined ? specifier : mode
|
|
35443
|
+
var result = mode === undefined ? specifier : "".concat(mode, "|").concat(specifier);
|
|
35444
35444
|
memoizedReverseKeys.set(result, [specifier, mode]);
|
|
35445
35445
|
return result;
|
|
35446
35446
|
}
|
|
@@ -35476,7 +35476,7 @@ var ts;
|
|
|
35476
35476
|
}
|
|
35477
35477
|
function getOrCreateCacheForModuleName(nonRelativeModuleName, mode, redirectedReference) {
|
|
35478
35478
|
ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));
|
|
35479
|
-
return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : mode
|
|
35479
|
+
return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : "".concat(mode, "|").concat(nonRelativeModuleName), createPerModuleNameCache);
|
|
35480
35480
|
}
|
|
35481
35481
|
function createPerModuleNameCache() {
|
|
35482
35482
|
var directoryPathMap = new ts.Map();
|
|
@@ -35607,10 +35607,10 @@ var ts;
|
|
|
35607
35607
|
result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
|
|
35608
35608
|
break;
|
|
35609
35609
|
default:
|
|
35610
|
-
return ts.Debug.fail("Unexpected moduleResolution: "
|
|
35610
|
+
return ts.Debug.fail("Unexpected moduleResolution: ".concat(moduleResolution));
|
|
35611
35611
|
}
|
|
35612
35612
|
if (result && result.resolvedModule)
|
|
35613
|
-
ts.perfLogger.logInfoEvent("Module \""
|
|
35613
|
+
ts.perfLogger.logInfoEvent("Module \"".concat(moduleName, "\" resolved to \"").concat(result.resolvedModule.resolvedFileName, "\""));
|
|
35614
35614
|
ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null");
|
|
35615
35615
|
if (perFolderCache) {
|
|
35616
35616
|
perFolderCache.set(moduleName, resolutionMode, result);
|
|
@@ -35740,7 +35740,7 @@ var ts;
|
|
|
35740
35740
|
function resolveJSModule(moduleName, initialDir, host) {
|
|
35741
35741
|
var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;
|
|
35742
35742
|
if (!resolvedModule) {
|
|
35743
|
-
throw new Error("Could not resolve JS module '"
|
|
35743
|
+
throw new Error("Could not resolve JS module '".concat(moduleName, "' starting at '").concat(initialDir, "'. Looked in: ").concat(failedLookupLocations.join(", ")));
|
|
35744
35744
|
}
|
|
35745
35745
|
return resolvedModule.resolvedFileName;
|
|
35746
35746
|
}
|
|
@@ -35873,7 +35873,7 @@ var ts;
|
|
|
35873
35873
|
if (traceEnabled) {
|
|
35874
35874
|
trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);
|
|
35875
35875
|
}
|
|
35876
|
-
ts.Debug.assert(host.fileExists(real), path
|
|
35876
|
+
ts.Debug.assert(host.fileExists(real), "".concat(path, " linked to nonexistent file ").concat(real));
|
|
35877
35877
|
return real;
|
|
35878
35878
|
}
|
|
35879
35879
|
function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
|
|
@@ -36330,7 +36330,7 @@ var ts;
|
|
|
36330
36330
|
return undefined;
|
|
36331
36331
|
}
|
|
36332
36332
|
var trailingParts = parts.slice(nameParts.length);
|
|
36333
|
-
return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : "."
|
|
36333
|
+
return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : ".".concat(ts.directorySeparator).concat(trailingParts.join(ts.directorySeparator)), state, cache, redirectedReference);
|
|
36334
36334
|
}
|
|
36335
36335
|
function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
|
|
36336
36336
|
if (!scope.packageJsonContent.exports) {
|
|
@@ -36757,7 +36757,7 @@ var ts;
|
|
|
36757
36757
|
return mangled;
|
|
36758
36758
|
}
|
|
36759
36759
|
function getTypesPackageName(packageName) {
|
|
36760
|
-
return "@types/"
|
|
36760
|
+
return "@types/".concat(mangleScopedPackageName(packageName));
|
|
36761
36761
|
}
|
|
36762
36762
|
ts.getTypesPackageName = getTypesPackageName;
|
|
36763
36763
|
function mangleScopedPackageName(packageName) {
|
|
@@ -37109,7 +37109,7 @@ var ts;
|
|
|
37109
37109
|
if (name) {
|
|
37110
37110
|
if (ts.isAmbientModule(node)) {
|
|
37111
37111
|
var moduleName = ts.getTextOfIdentifierOrLiteral(name);
|
|
37112
|
-
return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\""
|
|
37112
|
+
return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"".concat(moduleName, "\""));
|
|
37113
37113
|
}
|
|
37114
37114
|
if (name.kind === 162) {
|
|
37115
37115
|
var nameExpression = name.expression;
|
|
@@ -37158,7 +37158,7 @@ var ts;
|
|
|
37158
37158
|
case 317:
|
|
37159
37159
|
return (ts.isJSDocConstructSignature(node) ? "__new" : "__call");
|
|
37160
37160
|
case 164:
|
|
37161
|
-
ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: "
|
|
37161
|
+
ts.Debug.assert(node.parent.kind === 317, "Impossible parameter parent kind", function () { return "parent is: ".concat(ts.Debug.formatSyntaxKind(node.parent.kind), ", expected JSDocFunctionType"); });
|
|
37162
37162
|
var functionType = node.parent;
|
|
37163
37163
|
var index = functionType.parameters.indexOf(node);
|
|
37164
37164
|
return "arg" + index;
|
|
@@ -37224,7 +37224,7 @@ var ts;
|
|
|
37224
37224
|
}
|
|
37225
37225
|
var relatedInformation_1 = [];
|
|
37226
37226
|
if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {
|
|
37227
|
-
relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { "
|
|
37227
|
+
relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { ".concat(ts.unescapeLeadingUnderscores(node.name.escapedText), " }")));
|
|
37228
37228
|
}
|
|
37229
37229
|
var declarationName_1 = ts.getNameOfDeclaration(node) || node;
|
|
37230
37230
|
ts.forEach(symbol.declarations, function (declaration, index) {
|
|
@@ -39028,7 +39028,7 @@ var ts;
|
|
|
39028
39028
|
}
|
|
39029
39029
|
}
|
|
39030
39030
|
function bindSourceFileAsExternalModule() {
|
|
39031
|
-
bindAnonymousDeclaration(file, 512, "\""
|
|
39031
|
+
bindAnonymousDeclaration(file, 512, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
|
|
39032
39032
|
}
|
|
39033
39033
|
function bindExportAssignment(node) {
|
|
39034
39034
|
if (!container.symbol || !container.symbol.exports) {
|
|
@@ -40780,7 +40780,7 @@ var ts;
|
|
|
40780
40780
|
if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
|
|
40781
40781
|
var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;
|
|
40782
40782
|
var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
|
|
40783
|
-
var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path
|
|
40783
|
+
var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, "".concat(firstFile_1.path, "|").concat(secondFile_1.path), function () {
|
|
40784
40784
|
return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });
|
|
40785
40785
|
});
|
|
40786
40786
|
var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {
|
|
@@ -43130,7 +43130,7 @@ var ts;
|
|
|
43130
43130
|
var links = getSymbolLinks(symbol);
|
|
43131
43131
|
var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));
|
|
43132
43132
|
var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });
|
|
43133
|
-
var key = (useOnlyExternalAliasing ? 0 : 1
|
|
43133
|
+
var key = "".concat(useOnlyExternalAliasing ? 0 : 1, "|").concat(firstRelevantLocation && getNodeId(firstRelevantLocation), "|").concat(meaning);
|
|
43134
43134
|
if (cache.has(key)) {
|
|
43135
43135
|
return cache.get(key);
|
|
43136
43136
|
}
|
|
@@ -43963,7 +43963,7 @@ var ts;
|
|
|
43963
43963
|
context.symbolDepth = new ts.Map();
|
|
43964
43964
|
}
|
|
43965
43965
|
var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
|
|
43966
|
-
var key = getTypeId(type)
|
|
43966
|
+
var key = "".concat(getTypeId(type), "|").concat(context.flags);
|
|
43967
43967
|
if (links) {
|
|
43968
43968
|
links.serializedTypes || (links.serializedTypes = new ts.Map());
|
|
43969
43969
|
}
|
|
@@ -44224,7 +44224,7 @@ var ts;
|
|
|
44224
44224
|
}
|
|
44225
44225
|
}
|
|
44226
44226
|
if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {
|
|
44227
|
-
typeElements.push(ts.factory.createPropertySignature(undefined, "... "
|
|
44227
|
+
typeElements.push(ts.factory.createPropertySignature(undefined, "... ".concat(properties.length - i, " more ..."), undefined, undefined));
|
|
44228
44228
|
addPropertyToElementList(properties[properties.length - 1], context, typeElements);
|
|
44229
44229
|
break;
|
|
44230
44230
|
}
|
|
@@ -44332,7 +44332,7 @@ var ts;
|
|
|
44332
44332
|
else if (types.length > 2) {
|
|
44333
44333
|
return [
|
|
44334
44334
|
typeToTypeNodeHelper(types[0], context),
|
|
44335
|
-
ts.factory.createTypeReferenceNode("... "
|
|
44335
|
+
ts.factory.createTypeReferenceNode("... ".concat(types.length - 2, " more ..."), undefined),
|
|
44336
44336
|
typeToTypeNodeHelper(types[types.length - 1], context)
|
|
44337
44337
|
];
|
|
44338
44338
|
}
|
|
@@ -44345,7 +44345,7 @@ var ts;
|
|
|
44345
44345
|
var type = types_2[_i];
|
|
44346
44346
|
i++;
|
|
44347
44347
|
if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
|
|
44348
|
-
result_5.push(ts.factory.createTypeReferenceNode("... "
|
|
44348
|
+
result_5.push(ts.factory.createTypeReferenceNode("... ".concat(types.length - i, " more ..."), undefined));
|
|
44349
44349
|
var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);
|
|
44350
44350
|
if (typeNode_1) {
|
|
44351
44351
|
result_5.push(typeNode_1);
|
|
@@ -44707,7 +44707,7 @@ var ts;
|
|
|
44707
44707
|
}
|
|
44708
44708
|
return specifier;
|
|
44709
44709
|
function getSpecifierCacheKey(path, mode) {
|
|
44710
|
-
return mode === undefined ? path : mode
|
|
44710
|
+
return mode === undefined ? path : "".concat(mode, "|").concat(path);
|
|
44711
44711
|
}
|
|
44712
44712
|
}
|
|
44713
44713
|
function symbolToEntityNameNode(symbol) {
|
|
@@ -44874,7 +44874,7 @@ var ts;
|
|
|
44874
44874
|
var text = rawtext;
|
|
44875
44875
|
while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {
|
|
44876
44876
|
i++;
|
|
44877
|
-
text = rawtext
|
|
44877
|
+
text = "".concat(rawtext, "_").concat(i);
|
|
44878
44878
|
}
|
|
44879
44879
|
if (text !== rawtext) {
|
|
44880
44880
|
result = ts.factory.createIdentifier(text, result.typeArguments);
|
|
@@ -45166,7 +45166,7 @@ var ts;
|
|
|
45166
45166
|
function getNameForJSDocFunctionParameter(p, index) {
|
|
45167
45167
|
return p.name && ts.isIdentifier(p.name) && p.name.escapedText === "this" ? "this"
|
|
45168
45168
|
: getEffectiveDotDotDotForParameter(p) ? "args"
|
|
45169
|
-
: "arg"
|
|
45169
|
+
: "arg".concat(index);
|
|
45170
45170
|
}
|
|
45171
45171
|
function rewriteModuleSpecifier(parent, lit) {
|
|
45172
45172
|
if (bundled) {
|
|
@@ -45978,7 +45978,7 @@ var ts;
|
|
|
45978
45978
|
}
|
|
45979
45979
|
return results_1;
|
|
45980
45980
|
}
|
|
45981
|
-
return ts.Debug.fail("Unhandled class member kind! "
|
|
45981
|
+
return ts.Debug.fail("Unhandled class member kind! ".concat(p.__debugFlags || p.flags));
|
|
45982
45982
|
};
|
|
45983
45983
|
}
|
|
45984
45984
|
function serializePropertySymbolForInterface(p, baseType) {
|
|
@@ -46048,7 +46048,7 @@ var ts;
|
|
|
46048
46048
|
if (ref) {
|
|
46049
46049
|
return ref;
|
|
46050
46050
|
}
|
|
46051
|
-
var tempName = getUnusedName(rootName
|
|
46051
|
+
var tempName = getUnusedName("".concat(rootName, "_base"));
|
|
46052
46052
|
var statement = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([
|
|
46053
46053
|
ts.factory.createVariableDeclaration(tempName, undefined, typeToTypeNodeHelper(staticType, context))
|
|
46054
46054
|
], 2));
|
|
@@ -46093,7 +46093,7 @@ var ts;
|
|
|
46093
46093
|
var original = input;
|
|
46094
46094
|
while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {
|
|
46095
46095
|
i++;
|
|
46096
|
-
input = original
|
|
46096
|
+
input = "".concat(original, "_").concat(i);
|
|
46097
46097
|
}
|
|
46098
46098
|
(_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);
|
|
46099
46099
|
if (id) {
|
|
@@ -46199,15 +46199,15 @@ var ts;
|
|
|
46199
46199
|
if (nameType.flags & 384) {
|
|
46200
46200
|
var name = "" + nameType.value;
|
|
46201
46201
|
if (!ts.isIdentifierText(name, ts.getEmitScriptTarget(compilerOptions)) && !ts.isNumericLiteralName(name)) {
|
|
46202
|
-
return "\""
|
|
46202
|
+
return "\"".concat(ts.escapeString(name, 34), "\"");
|
|
46203
46203
|
}
|
|
46204
46204
|
if (ts.isNumericLiteralName(name) && ts.startsWith(name, "-")) {
|
|
46205
|
-
return "["
|
|
46205
|
+
return "[".concat(name, "]");
|
|
46206
46206
|
}
|
|
46207
46207
|
return name;
|
|
46208
46208
|
}
|
|
46209
46209
|
if (nameType.flags & 8192) {
|
|
46210
|
-
return "["
|
|
46210
|
+
return "[".concat(getNameOfSymbolAsWritten(nameType.symbol, context), "]");
|
|
46211
46211
|
}
|
|
46212
46212
|
}
|
|
46213
46213
|
}
|
|
@@ -48635,7 +48635,7 @@ var ts;
|
|
|
48635
48635
|
!leftName ? rightName :
|
|
48636
48636
|
!rightName ? leftName :
|
|
48637
48637
|
undefined;
|
|
48638
|
-
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg"
|
|
48638
|
+
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
|
|
48639
48639
|
paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
|
|
48640
48640
|
params[i] = paramSymbol;
|
|
48641
48641
|
}
|
|
@@ -50375,7 +50375,7 @@ var ts;
|
|
|
50375
50375
|
return result;
|
|
50376
50376
|
}
|
|
50377
50377
|
function getAliasId(aliasSymbol, aliasTypeArguments) {
|
|
50378
|
-
return aliasSymbol ? "@"
|
|
50378
|
+
return aliasSymbol ? "@".concat(getSymbolId(aliasSymbol)) + (aliasTypeArguments ? ":".concat(getTypeListId(aliasTypeArguments)) : "") : "";
|
|
50379
50379
|
}
|
|
50380
50380
|
function getPropagatingFlagsOfTypes(types, excludeKinds) {
|
|
50381
50381
|
var result = 0;
|
|
@@ -50538,7 +50538,7 @@ var ts;
|
|
|
50538
50538
|
return undefined;
|
|
50539
50539
|
}
|
|
50540
50540
|
function getSymbolPath(symbol) {
|
|
50541
|
-
return symbol.parent ? getSymbolPath(symbol.parent)
|
|
50541
|
+
return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
|
|
50542
50542
|
}
|
|
50543
50543
|
function getUnresolvedSymbolForEntityName(name) {
|
|
50544
50544
|
var identifier = name.kind === 161 ? name.right :
|
|
@@ -50549,7 +50549,7 @@ var ts;
|
|
|
50549
50549
|
var parentSymbol = name.kind === 161 ? getUnresolvedSymbolForEntityName(name.left) :
|
|
50550
50550
|
name.kind === 206 ? getUnresolvedSymbolForEntityName(name.expression) :
|
|
50551
50551
|
undefined;
|
|
50552
|
-
var path = parentSymbol ? getSymbolPath(parentSymbol)
|
|
50552
|
+
var path = parentSymbol ? "".concat(getSymbolPath(parentSymbol), ".").concat(text) : text;
|
|
50553
50553
|
var result = unresolvedSymbols.get(path);
|
|
50554
50554
|
if (!result) {
|
|
50555
50555
|
unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));
|
|
@@ -50615,7 +50615,7 @@ var ts;
|
|
|
50615
50615
|
if (substitute.flags & 3 || substitute === baseType) {
|
|
50616
50616
|
return baseType;
|
|
50617
50617
|
}
|
|
50618
|
-
var id = getTypeId(baseType)
|
|
50618
|
+
var id = "".concat(getTypeId(baseType), ">").concat(getTypeId(substitute));
|
|
50619
50619
|
var cached = substitutionTypes.get(id);
|
|
50620
50620
|
if (cached) {
|
|
50621
50621
|
return cached;
|
|
@@ -51474,9 +51474,9 @@ var ts;
|
|
|
51474
51474
|
return types[0];
|
|
51475
51475
|
}
|
|
51476
51476
|
var typeKey = !origin ? getTypeListId(types) :
|
|
51477
|
-
origin.flags & 1048576 ? "|"
|
|
51478
|
-
origin.flags & 2097152 ? "&"
|
|
51479
|
-
"#"
|
|
51477
|
+
origin.flags & 1048576 ? "|".concat(getTypeListId(origin.types)) :
|
|
51478
|
+
origin.flags & 2097152 ? "&".concat(getTypeListId(origin.types)) :
|
|
51479
|
+
"#".concat(origin.type.id, "|").concat(getTypeListId(types));
|
|
51480
51480
|
var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);
|
|
51481
51481
|
var type = unionTypes.get(id);
|
|
51482
51482
|
if (!type) {
|
|
@@ -51949,7 +51949,7 @@ var ts;
|
|
|
51949
51949
|
if (ts.every(newTexts, function (t) { return t === ""; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4); })) {
|
|
51950
51950
|
return stringType;
|
|
51951
51951
|
}
|
|
51952
|
-
var id = getTypeListId(newTypes)
|
|
51952
|
+
var id = "".concat(getTypeListId(newTypes), "|").concat(ts.map(newTexts, function (t) { return t.length; }).join(","), "|").concat(newTexts.join(""));
|
|
51953
51953
|
var type = templateLiteralTypes.get(id);
|
|
51954
51954
|
if (!type) {
|
|
51955
51955
|
templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));
|
|
@@ -52031,7 +52031,7 @@ var ts;
|
|
|
52031
52031
|
return [texts, types];
|
|
52032
52032
|
}
|
|
52033
52033
|
function getStringMappingTypeForGenericType(symbol, type) {
|
|
52034
|
-
var id = getSymbolId(symbol)
|
|
52034
|
+
var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
|
|
52035
52035
|
var result = stringMappingTypes.get(id);
|
|
52036
52036
|
if (!result) {
|
|
52037
52037
|
stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
|
|
@@ -52980,7 +52980,7 @@ var ts;
|
|
|
52980
52980
|
function createUniqueESSymbolType(symbol) {
|
|
52981
52981
|
var type = createType(8192);
|
|
52982
52982
|
type.symbol = symbol;
|
|
52983
|
-
type.escapedName = "__@"
|
|
52983
|
+
type.escapedName = "__@".concat(type.symbol.escapedName, "@").concat(getSymbolId(type.symbol));
|
|
52984
52984
|
return type;
|
|
52985
52985
|
}
|
|
52986
52986
|
function getESSymbolLikeTypeForNode(node) {
|
|
@@ -54552,20 +54552,20 @@ var ts;
|
|
|
54552
54552
|
switch (msg.code) {
|
|
54553
54553
|
case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {
|
|
54554
54554
|
if (path.indexOf("new ") === 0) {
|
|
54555
|
-
path = "("
|
|
54555
|
+
path = "(".concat(path, ")");
|
|
54556
54556
|
}
|
|
54557
54557
|
var str = "" + args[0];
|
|
54558
54558
|
if (path.length === 0) {
|
|
54559
|
-
path = ""
|
|
54559
|
+
path = "".concat(str);
|
|
54560
54560
|
}
|
|
54561
54561
|
else if (ts.isIdentifierText(str, ts.getEmitScriptTarget(compilerOptions))) {
|
|
54562
|
-
path = path
|
|
54562
|
+
path = "".concat(path, ".").concat(str);
|
|
54563
54563
|
}
|
|
54564
54564
|
else if (str[0] === "[" && str[str.length - 1] === "]") {
|
|
54565
|
-
path = ""
|
|
54565
|
+
path = "".concat(path).concat(str);
|
|
54566
54566
|
}
|
|
54567
54567
|
else {
|
|
54568
|
-
path = path
|
|
54568
|
+
path = "".concat(path, "[").concat(str, "]");
|
|
54569
54569
|
}
|
|
54570
54570
|
break;
|
|
54571
54571
|
}
|
|
@@ -54592,7 +54592,7 @@ var ts;
|
|
|
54592
54592
|
msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)
|
|
54593
54593
|
? ""
|
|
54594
54594
|
: "...";
|
|
54595
|
-
path = ""
|
|
54595
|
+
path = "".concat(prefix).concat(path, "(").concat(params, ")");
|
|
54596
54596
|
}
|
|
54597
54597
|
break;
|
|
54598
54598
|
}
|
|
@@ -54605,7 +54605,7 @@ var ts;
|
|
|
54605
54605
|
break;
|
|
54606
54606
|
}
|
|
54607
54607
|
default:
|
|
54608
|
-
return ts.Debug.fail("Unhandled Diagnostic: "
|
|
54608
|
+
return ts.Debug.fail("Unhandled Diagnostic: ".concat(msg.code));
|
|
54609
54609
|
}
|
|
54610
54610
|
}
|
|
54611
54611
|
if (path) {
|
|
@@ -56500,7 +56500,7 @@ var ts;
|
|
|
56500
56500
|
var constraintMarker = "";
|
|
56501
56501
|
var sourceId = getTypeReferenceId(source, 0);
|
|
56502
56502
|
var targetId = getTypeReferenceId(target, 0);
|
|
56503
|
-
return ""
|
|
56503
|
+
return "".concat(constraintMarker).concat(sourceId, ",").concat(targetId).concat(postFix);
|
|
56504
56504
|
function getTypeReferenceId(type, depth) {
|
|
56505
56505
|
if (depth === void 0) { depth = 0; }
|
|
56506
56506
|
var result = "" + type.target.id;
|
|
@@ -56536,7 +56536,7 @@ var ts;
|
|
|
56536
56536
|
var postFix = intersectionState ? ":" + intersectionState : "";
|
|
56537
56537
|
return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ?
|
|
56538
56538
|
getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) :
|
|
56539
|
-
source.id
|
|
56539
|
+
"".concat(source.id, ",").concat(target.id).concat(postFix);
|
|
56540
56540
|
}
|
|
56541
56541
|
function forEachProperty(prop, callback) {
|
|
56542
56542
|
if (ts.getCheckFlags(prop) & 6) {
|
|
@@ -56855,7 +56855,7 @@ var ts;
|
|
|
56855
56855
|
}
|
|
56856
56856
|
function getBaseTypeOfLiteralTypeUnion(type) {
|
|
56857
56857
|
var _a;
|
|
56858
|
-
var key = "B"
|
|
56858
|
+
var key = "B".concat(getTypeId(type));
|
|
56859
56859
|
return (_a = getCachedType(key)) !== null && _a !== void 0 ? _a : setCachedType(key, mapType(type, getBaseTypeOfLiteralType));
|
|
56860
56860
|
}
|
|
56861
56861
|
function getWidenedLiteralType(type) {
|
|
@@ -57578,7 +57578,7 @@ var ts;
|
|
|
57578
57578
|
}
|
|
57579
57579
|
function parseBigIntLiteralType(text) {
|
|
57580
57580
|
var negative = text.startsWith("-");
|
|
57581
|
-
var base10Value = ts.parsePseudoBigInt((negative ? text.slice(1) : text
|
|
57581
|
+
var base10Value = ts.parsePseudoBigInt("".concat(negative ? text.slice(1) : text, "n"));
|
|
57582
57582
|
return getBigIntLiteralType({ negative: negative, base10Value: base10Value });
|
|
57583
57583
|
}
|
|
57584
57584
|
function isValidBigIntString(s, roundTripOnly) {
|
|
@@ -58449,10 +58449,10 @@ var ts;
|
|
|
58449
58449
|
case 79:
|
|
58450
58450
|
if (!ts.isThisInTypeQuery(node)) {
|
|
58451
58451
|
var symbol = getResolvedSymbol(node);
|
|
58452
|
-
return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : "-1"
|
|
58452
|
+
return symbol !== unknownSymbol ? "".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType), "|").concat(getSymbolId(symbol)) : undefined;
|
|
58453
58453
|
}
|
|
58454
58454
|
case 108:
|
|
58455
|
-
return "0|"
|
|
58455
|
+
return "0|".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType));
|
|
58456
58456
|
case 230:
|
|
58457
58457
|
case 212:
|
|
58458
58458
|
return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);
|
|
@@ -58473,7 +58473,7 @@ var ts;
|
|
|
58473
58473
|
case 213:
|
|
58474
58474
|
case 214:
|
|
58475
58475
|
case 169:
|
|
58476
|
-
return getNodeId(node)
|
|
58476
|
+
return "".concat(getNodeId(node), "#").concat(getTypeId(declaredType));
|
|
58477
58477
|
}
|
|
58478
58478
|
return undefined;
|
|
58479
58479
|
}
|
|
@@ -58726,7 +58726,7 @@ var ts;
|
|
|
58726
58726
|
if (assignedType.flags & 131072) {
|
|
58727
58727
|
return assignedType;
|
|
58728
58728
|
}
|
|
58729
|
-
var key = "A"
|
|
58729
|
+
var key = "A".concat(getTypeId(declaredType), ",").concat(getTypeId(assignedType));
|
|
58730
58730
|
return (_a = getCachedType(key)) !== null && _a !== void 0 ? _a : setCachedType(key, getAssignmentReducedTypeWorker(declaredType, assignedType));
|
|
58731
58731
|
}
|
|
58732
58732
|
function getAssignmentReducedTypeWorker(declaredType, assignedType) {
|
|
@@ -60214,7 +60214,7 @@ var ts;
|
|
|
60214
60214
|
}
|
|
60215
60215
|
function getNarrowedType(type, candidate, assumeTrue, checkDerived) {
|
|
60216
60216
|
var _a;
|
|
60217
|
-
var key = type.flags & 1048576 ? "N"
|
|
60217
|
+
var key = type.flags & 1048576 ? "N".concat(getTypeId(type), ",").concat(getTypeId(candidate), ",").concat((assumeTrue ? 1 : 0) | (checkDerived ? 2 : 0)) : undefined;
|
|
60218
60218
|
return (_a = getCachedType(key)) !== null && _a !== void 0 ? _a : setCachedType(key, getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived));
|
|
60219
60219
|
}
|
|
60220
60220
|
function getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived) {
|
|
@@ -61878,7 +61878,7 @@ var ts;
|
|
|
61878
61878
|
!leftName ? rightName :
|
|
61879
61879
|
!rightName ? leftName :
|
|
61880
61880
|
undefined;
|
|
61881
|
-
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg"
|
|
61881
|
+
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
|
|
61882
61882
|
paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
|
|
61883
61883
|
params[i] = paramSymbol;
|
|
61884
61884
|
}
|
|
@@ -70660,7 +70660,7 @@ var ts;
|
|
|
70660
70660
|
function getPropertyNameForKnownSymbolName(symbolName) {
|
|
70661
70661
|
var ctorType = getGlobalESSymbolConstructorSymbol(false);
|
|
70662
70662
|
var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
|
|
70663
|
-
return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@"
|
|
70663
|
+
return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
|
|
70664
70664
|
}
|
|
70665
70665
|
function getIterationTypesOfIterableSlow(type, resolver, errorNode, errorOutputContainer, noCache) {
|
|
70666
70666
|
var _a;
|
|
@@ -72271,7 +72271,7 @@ var ts;
|
|
|
72271
72271
|
var importDeclaration = ts.findAncestor(node, ts.or(ts.isImportDeclaration, ts.isImportEqualsDeclaration));
|
|
72272
72272
|
var moduleSpecifier = (_e = (importDeclaration && ((_d = ts.tryGetModuleSpecifierFromDeclaration(importDeclaration)) === null || _d === void 0 ? void 0 : _d.text))) !== null && _e !== void 0 ? _e : "...";
|
|
72273
72273
|
var importedIdentifier = ts.unescapeLeadingUnderscores(ts.isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName);
|
|
72274
|
-
error(errorNode, ts.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, "import(\""
|
|
72274
|
+
error(errorNode, ts.Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, importedIdentifier, "import(\"".concat(moduleSpecifier, "\").").concat(importedIdentifier));
|
|
72275
72275
|
}
|
|
72276
72276
|
return;
|
|
72277
72277
|
}
|
|
@@ -77208,7 +77208,7 @@ var ts;
|
|
|
77208
77208
|
value >= 52 && value < 62 ? 48 + value - 52 :
|
|
77209
77209
|
value === 62 ? 43 :
|
|
77210
77210
|
value === 63 ? 47 :
|
|
77211
|
-
ts.Debug.fail(value
|
|
77211
|
+
ts.Debug.fail("".concat(value, ": not a base64 value"));
|
|
77212
77212
|
}
|
|
77213
77213
|
function base64FormatDecode(ch) {
|
|
77214
77214
|
return ch >= 65 && ch <= 90 ? ch - 65 :
|
|
@@ -77281,7 +77281,7 @@ var ts;
|
|
|
77281
77281
|
var mappings = ts.arrayFrom(decoder, processMapping);
|
|
77282
77282
|
if (decoder.error !== undefined) {
|
|
77283
77283
|
if (host.log) {
|
|
77284
|
-
host.log("Encountered error while decoding sourcemap: "
|
|
77284
|
+
host.log("Encountered error while decoding sourcemap: ".concat(decoder.error));
|
|
77285
77285
|
}
|
|
77286
77286
|
decodedMappings = ts.emptyArray;
|
|
77287
77287
|
}
|
|
@@ -79368,7 +79368,7 @@ var ts;
|
|
|
79368
79368
|
var substitute = typeof constantValue === "string" ? factory.createStringLiteral(constantValue) : factory.createNumericLiteral(constantValue);
|
|
79369
79369
|
if (!compilerOptions.removeComments) {
|
|
79370
79370
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
79371
|
-
ts.addSyntheticTrailingComment(substitute, 3, " "
|
|
79371
|
+
ts.addSyntheticTrailingComment(substitute, 3, " ".concat(safeMultiLineComment(ts.getTextOfNode(originalNode)), " "));
|
|
79372
79372
|
}
|
|
79373
79373
|
return substitute;
|
|
79374
79374
|
}
|
|
@@ -80620,8 +80620,8 @@ var ts;
|
|
|
80620
80620
|
}
|
|
80621
80621
|
function createHoistedVariableForClass(name, node) {
|
|
80622
80622
|
var className = getPrivateIdentifierEnvironment().className;
|
|
80623
|
-
var prefix = className ? "_"
|
|
80624
|
-
var identifier = factory.createUniqueName(prefix
|
|
80623
|
+
var prefix = className ? "_".concat(className) : "";
|
|
80624
|
+
var identifier = factory.createUniqueName("".concat(prefix, "_").concat(name), 16);
|
|
80625
80625
|
if (resolver.getNodeCheckFlags(node) & 524288) {
|
|
80626
80626
|
addBlockScopedVariable(identifier);
|
|
80627
80627
|
}
|
|
@@ -82932,7 +82932,7 @@ var ts;
|
|
|
82932
82932
|
specifierSourceImports = new ts.Map();
|
|
82933
82933
|
currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
|
|
82934
82934
|
}
|
|
82935
|
-
var generatedName = factory.createUniqueName("_"
|
|
82935
|
+
var generatedName = factory.createUniqueName("_".concat(name), 16 | 32 | 64);
|
|
82936
82936
|
var specifier = factory.createImportSpecifier(false, factory.createIdentifier(name), generatedName);
|
|
82937
82937
|
generatedName.generatedImportReference = specifier;
|
|
82938
82938
|
specifierSourceImports.set(name, specifier);
|
|
@@ -83880,11 +83880,11 @@ var ts;
|
|
|
83880
83880
|
}
|
|
83881
83881
|
else {
|
|
83882
83882
|
if (node.kind === 246) {
|
|
83883
|
-
labelMarker = "break-"
|
|
83883
|
+
labelMarker = "break-".concat(label.escapedText);
|
|
83884
83884
|
setLabeledJump(convertedLoopState, true, ts.idText(label), labelMarker);
|
|
83885
83885
|
}
|
|
83886
83886
|
else {
|
|
83887
|
-
labelMarker = "continue-"
|
|
83887
|
+
labelMarker = "continue-".concat(label.escapedText);
|
|
83888
83888
|
setLabeledJump(convertedLoopState, false, ts.idText(label), labelMarker);
|
|
83889
83889
|
}
|
|
83890
83890
|
}
|
|
@@ -89539,7 +89539,7 @@ var ts;
|
|
|
89539
89539
|
return getTypeAliasDeclarationVisibilityError;
|
|
89540
89540
|
}
|
|
89541
89541
|
else {
|
|
89542
|
-
return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: "
|
|
89542
|
+
return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(ts.Debug.formatSyntaxKind(node.kind)));
|
|
89543
89543
|
}
|
|
89544
89544
|
function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {
|
|
89545
89545
|
if (node.kind === 254 || node.kind === 203) {
|
|
@@ -89736,7 +89736,7 @@ var ts;
|
|
|
89736
89736
|
ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :
|
|
89737
89737
|
ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;
|
|
89738
89738
|
default:
|
|
89739
|
-
return ts.Debug.fail("Unknown parent for parameter: "
|
|
89739
|
+
return ts.Debug.fail("Unknown parent for parameter: ".concat(ts.Debug.formatSyntaxKind(node.parent.kind)));
|
|
89740
89740
|
}
|
|
89741
89741
|
}
|
|
89742
89742
|
function getTypeParameterConstraintVisibilityError() {
|
|
@@ -90443,7 +90443,7 @@ var ts;
|
|
|
90443
90443
|
while (ts.length(lateMarkedStatements)) {
|
|
90444
90444
|
var i = lateMarkedStatements.shift();
|
|
90445
90445
|
if (!ts.isLateVisibilityPaintedStatement(i)) {
|
|
90446
|
-
return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "
|
|
90446
|
+
return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ts.Debug.formatSyntaxKind(i.kind)));
|
|
90447
90447
|
}
|
|
90448
90448
|
var priorNeedsDeclare = needsDeclare;
|
|
90449
90449
|
needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);
|
|
@@ -90608,7 +90608,7 @@ var ts;
|
|
|
90608
90608
|
return cleanup(input);
|
|
90609
90609
|
return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.assertions, input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));
|
|
90610
90610
|
}
|
|
90611
|
-
default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: "
|
|
90611
|
+
default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: ".concat(ts.Debug.formatSyntaxKind(input.kind)));
|
|
90612
90612
|
}
|
|
90613
90613
|
}
|
|
90614
90614
|
if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {
|
|
@@ -90858,7 +90858,7 @@ var ts;
|
|
|
90858
90858
|
var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);
|
|
90859
90859
|
if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104) {
|
|
90860
90860
|
var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : "default";
|
|
90861
|
-
var newId_1 = factory.createUniqueName(oldId
|
|
90861
|
+
var newId_1 = factory.createUniqueName("".concat(oldId, "_base"), 16);
|
|
90862
90862
|
getSymbolAccessibilityDiagnostic = function () { return ({
|
|
90863
90863
|
diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
|
|
90864
90864
|
errorNode: extendsClause_1,
|
|
@@ -90895,7 +90895,7 @@ var ts;
|
|
|
90895
90895
|
}))));
|
|
90896
90896
|
}
|
|
90897
90897
|
}
|
|
90898
|
-
return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: "
|
|
90898
|
+
return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: ".concat(ts.Debug.formatSyntaxKind(input.kind)));
|
|
90899
90899
|
function cleanup(node) {
|
|
90900
90900
|
if (isEnclosingDeclaration(input)) {
|
|
90901
90901
|
enclosingDeclaration = previousEnclosingDeclaration;
|
|
@@ -91665,13 +91665,13 @@ var ts;
|
|
|
91665
91665
|
if (ts.fileExtensionIs(inputFileName, ".json"))
|
|
91666
91666
|
return;
|
|
91667
91667
|
if (js && configFile.options.sourceMap) {
|
|
91668
|
-
addOutput(js
|
|
91668
|
+
addOutput("".concat(js, ".map"));
|
|
91669
91669
|
}
|
|
91670
91670
|
if (ts.getEmitDeclarations(configFile.options)) {
|
|
91671
91671
|
var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);
|
|
91672
91672
|
addOutput(dts);
|
|
91673
91673
|
if (configFile.options.declarationMap) {
|
|
91674
|
-
addOutput(dts
|
|
91674
|
+
addOutput("".concat(dts, ".map"));
|
|
91675
91675
|
}
|
|
91676
91676
|
}
|
|
91677
91677
|
}
|
|
@@ -91731,7 +91731,7 @@ var ts;
|
|
|
91731
91731
|
function getFirstProjectOutput(configFile, ignoreCase) {
|
|
91732
91732
|
if (ts.outFile(configFile.options)) {
|
|
91733
91733
|
var jsFilePath = getOutputPathsForBundle(configFile.options, false).jsFilePath;
|
|
91734
|
-
return ts.Debug.checkDefined(jsFilePath, "project "
|
|
91734
|
+
return ts.Debug.checkDefined(jsFilePath, "project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
|
|
91735
91735
|
}
|
|
91736
91736
|
var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });
|
|
91737
91737
|
for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {
|
|
@@ -91750,7 +91750,7 @@ var ts;
|
|
|
91750
91750
|
var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);
|
|
91751
91751
|
if (buildInfoPath)
|
|
91752
91752
|
return buildInfoPath;
|
|
91753
|
-
return ts.Debug.fail("project "
|
|
91753
|
+
return ts.Debug.fail("project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
|
|
91754
91754
|
}
|
|
91755
91755
|
ts.getFirstProjectOutput = getFirstProjectOutput;
|
|
91756
91756
|
function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {
|
|
@@ -91958,7 +91958,7 @@ var ts;
|
|
|
91958
91958
|
if (!writer.isAtStartOfLine())
|
|
91959
91959
|
writer.rawWrite(newLine);
|
|
91960
91960
|
sourceMapUrlPos = writer.getTextPos();
|
|
91961
|
-
writer.writeComment("//# "
|
|
91961
|
+
writer.writeComment("//# ".concat("sourceMappingURL", "=").concat(sourceMappingURL));
|
|
91962
91962
|
}
|
|
91963
91963
|
if (sourceMapFilePath) {
|
|
91964
91964
|
var sourceMap = sourceMapGenerator.toString();
|
|
@@ -92003,7 +92003,7 @@ var ts;
|
|
|
92003
92003
|
if (mapOptions.inlineSourceMap) {
|
|
92004
92004
|
var sourceMapText = sourceMapGenerator.toString();
|
|
92005
92005
|
var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);
|
|
92006
|
-
return "data:application/json;base64,"
|
|
92006
|
+
return "data:application/json;base64,".concat(base64SourceMapText);
|
|
92007
92007
|
}
|
|
92008
92008
|
var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));
|
|
92009
92009
|
if (mapOptions.mapRoot) {
|
|
@@ -92192,7 +92192,7 @@ var ts;
|
|
|
92192
92192
|
return;
|
|
92193
92193
|
break;
|
|
92194
92194
|
default:
|
|
92195
|
-
ts.Debug.fail("Unexpected path: "
|
|
92195
|
+
ts.Debug.fail("Unexpected path: ".concat(name));
|
|
92196
92196
|
}
|
|
92197
92197
|
outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });
|
|
92198
92198
|
},
|
|
@@ -93006,7 +93006,7 @@ var ts;
|
|
|
93006
93006
|
return writeTokenNode(node, writeKeyword);
|
|
93007
93007
|
if (ts.isTokenKind(node.kind))
|
|
93008
93008
|
return writeTokenNode(node, writePunctuation);
|
|
93009
|
-
ts.Debug.fail("Unhandled SyntaxKind: "
|
|
93009
|
+
ts.Debug.fail("Unhandled SyntaxKind: ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
|
|
93010
93010
|
}
|
|
93011
93011
|
function emitMappedTypeParameter(node) {
|
|
93012
93012
|
emit(node.name);
|
|
@@ -93146,14 +93146,14 @@ var ts;
|
|
|
93146
93146
|
}
|
|
93147
93147
|
}
|
|
93148
93148
|
function emitPlaceholder(hint, node, snippet) {
|
|
93149
|
-
nonEscapingWrite("${"
|
|
93149
|
+
nonEscapingWrite("${".concat(snippet.order, ":"));
|
|
93150
93150
|
pipelineEmitWithHintWorker(hint, node, false);
|
|
93151
93151
|
nonEscapingWrite("}");
|
|
93152
93152
|
}
|
|
93153
93153
|
function emitTabStop(hint, node, snippet) {
|
|
93154
|
-
ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind "
|
|
93154
|
+
ts.Debug.assert(node.kind === 236, "A tab stop cannot be attached to a node of kind ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
|
|
93155
93155
|
ts.Debug.assert(hint !== 5, "A tab stop cannot be attached to an embedded statement.");
|
|
93156
|
-
nonEscapingWrite("$"
|
|
93156
|
+
nonEscapingWrite("$".concat(snippet.order));
|
|
93157
93157
|
}
|
|
93158
93158
|
function emitIdentifier(node) {
|
|
93159
93159
|
var writeText = node.symbol ? writeSymbol : write;
|
|
@@ -94812,17 +94812,17 @@ var ts;
|
|
|
94812
94812
|
writeLine();
|
|
94813
94813
|
}
|
|
94814
94814
|
if (currentSourceFile && currentSourceFile.moduleName) {
|
|
94815
|
-
writeComment("/// <amd-module name=\""
|
|
94815
|
+
writeComment("/// <amd-module name=\"".concat(currentSourceFile.moduleName, "\" />"));
|
|
94816
94816
|
writeLine();
|
|
94817
94817
|
}
|
|
94818
94818
|
if (currentSourceFile && currentSourceFile.amdDependencies) {
|
|
94819
94819
|
for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {
|
|
94820
94820
|
var dep = _b[_a];
|
|
94821
94821
|
if (dep.name) {
|
|
94822
|
-
writeComment("/// <amd-dependency name=\""
|
|
94822
|
+
writeComment("/// <amd-dependency name=\"".concat(dep.name, "\" path=\"").concat(dep.path, "\" />"));
|
|
94823
94823
|
}
|
|
94824
94824
|
else {
|
|
94825
|
-
writeComment("/// <amd-dependency path=\""
|
|
94825
|
+
writeComment("/// <amd-dependency path=\"".concat(dep.path, "\" />"));
|
|
94826
94826
|
}
|
|
94827
94827
|
writeLine();
|
|
94828
94828
|
}
|
|
@@ -94830,7 +94830,7 @@ var ts;
|
|
|
94830
94830
|
for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {
|
|
94831
94831
|
var directive = files_2[_c];
|
|
94832
94832
|
var pos = writer.getTextPos();
|
|
94833
|
-
writeComment("/// <reference path=\""
|
|
94833
|
+
writeComment("/// <reference path=\"".concat(directive.fileName, "\" />"));
|
|
94834
94834
|
if (bundleFileInfo)
|
|
94835
94835
|
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
|
|
94836
94836
|
writeLine();
|
|
@@ -94839,9 +94839,9 @@ var ts;
|
|
|
94839
94839
|
var directive = types_23[_d];
|
|
94840
94840
|
var pos = writer.getTextPos();
|
|
94841
94841
|
var resolutionMode = directive.resolutionMode && directive.resolutionMode !== (currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.impliedNodeFormat)
|
|
94842
|
-
? "resolution-mode=\""
|
|
94842
|
+
? "resolution-mode=\"".concat(directive.resolutionMode === ts.ModuleKind.ESNext ? "import" : "require", "\"")
|
|
94843
94843
|
: "";
|
|
94844
|
-
writeComment("/// <reference types=\""
|
|
94844
|
+
writeComment("/// <reference types=\"".concat(directive.fileName, "\" ").concat(resolutionMode, "/>"));
|
|
94845
94845
|
if (bundleFileInfo)
|
|
94846
94846
|
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: !directive.resolutionMode ? "type" : directive.resolutionMode === ts.ModuleKind.ESNext ? "type-import" : "type-require", data: directive.fileName });
|
|
94847
94847
|
writeLine();
|
|
@@ -94849,7 +94849,7 @@ var ts;
|
|
|
94849
94849
|
for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {
|
|
94850
94850
|
var directive = libs_1[_e];
|
|
94851
94851
|
var pos = writer.getTextPos();
|
|
94852
|
-
writeComment("/// <reference lib=\""
|
|
94852
|
+
writeComment("/// <reference lib=\"".concat(directive.fileName, "\" />"));
|
|
94853
94853
|
if (bundleFileInfo)
|
|
94854
94854
|
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "lib", data: directive.fileName });
|
|
94855
94855
|
writeLine();
|
|
@@ -95576,9 +95576,9 @@ var ts;
|
|
|
95576
95576
|
var textSourceNode = node.textSourceNode;
|
|
95577
95577
|
if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {
|
|
95578
95578
|
var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);
|
|
95579
|
-
return jsxAttributeEscape ? "\""
|
|
95580
|
-
neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\""
|
|
95581
|
-
"\""
|
|
95579
|
+
return jsxAttributeEscape ? "\"".concat(ts.escapeJsxAttributeString(text), "\"") :
|
|
95580
|
+
neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"".concat(ts.escapeString(text), "\"") :
|
|
95581
|
+
"\"".concat(ts.escapeNonAsciiString(text), "\"");
|
|
95582
95582
|
}
|
|
95583
95583
|
else {
|
|
95584
95584
|
return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
|
|
@@ -95981,8 +95981,8 @@ var ts;
|
|
|
95981
95981
|
}
|
|
95982
95982
|
function formatSynthesizedComment(comment) {
|
|
95983
95983
|
return comment.kind === 3
|
|
95984
|
-
? "/*"
|
|
95985
|
-
: "//"
|
|
95984
|
+
? "/*".concat(comment.text, "*/")
|
|
95985
|
+
: "//".concat(comment.text);
|
|
95986
95986
|
}
|
|
95987
95987
|
function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {
|
|
95988
95988
|
enterComment();
|
|
@@ -96616,18 +96616,18 @@ var ts;
|
|
|
96616
96616
|
var watchedDirPath = _a.watchedDirPath, fileOrDirectory = _a.fileOrDirectory, fileOrDirectoryPath = _a.fileOrDirectoryPath, configFileName = _a.configFileName, options = _a.options, program = _a.program, extraFileExtensions = _a.extraFileExtensions, currentDirectory = _a.currentDirectory, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, writeLog = _a.writeLog, toPath = _a.toPath;
|
|
96617
96617
|
var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);
|
|
96618
96618
|
if (!newPath) {
|
|
96619
|
-
writeLog("Project: "
|
|
96619
|
+
writeLog("Project: ".concat(configFileName, " Detected ignored path: ").concat(fileOrDirectory));
|
|
96620
96620
|
return true;
|
|
96621
96621
|
}
|
|
96622
96622
|
fileOrDirectoryPath = newPath;
|
|
96623
96623
|
if (fileOrDirectoryPath === watchedDirPath)
|
|
96624
96624
|
return false;
|
|
96625
96625
|
if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
|
|
96626
|
-
writeLog("Project: "
|
|
96626
|
+
writeLog("Project: ".concat(configFileName, " Detected file add/remove of non supported extension: ").concat(fileOrDirectory));
|
|
96627
96627
|
return true;
|
|
96628
96628
|
}
|
|
96629
96629
|
if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
|
|
96630
|
-
writeLog("Project: "
|
|
96630
|
+
writeLog("Project: ".concat(configFileName, " Detected excluded file: ").concat(fileOrDirectory));
|
|
96631
96631
|
return true;
|
|
96632
96632
|
}
|
|
96633
96633
|
if (!program)
|
|
@@ -96646,7 +96646,7 @@ var ts;
|
|
|
96646
96646
|
var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;
|
|
96647
96647
|
if (hasSourceFile((filePathWithoutExtension + ".ts")) ||
|
|
96648
96648
|
hasSourceFile((filePathWithoutExtension + ".tsx"))) {
|
|
96649
|
-
writeLog("Project: "
|
|
96649
|
+
writeLog("Project: ".concat(configFileName, " Detected output file: ").concat(fileOrDirectory));
|
|
96650
96650
|
return true;
|
|
96651
96651
|
}
|
|
96652
96652
|
return false;
|
|
@@ -96714,36 +96714,36 @@ var ts;
|
|
|
96714
96714
|
host.useCaseSensitiveFileNames();
|
|
96715
96715
|
}
|
|
96716
96716
|
function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
|
|
96717
|
-
log("ExcludeWatcher:: Added:: "
|
|
96717
|
+
log("ExcludeWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
|
|
96718
96718
|
return {
|
|
96719
|
-
close: function () { return log("ExcludeWatcher:: Close:: "
|
|
96719
|
+
close: function () { return log("ExcludeWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo))); }
|
|
96720
96720
|
};
|
|
96721
96721
|
}
|
|
96722
96722
|
function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
96723
|
-
log("FileWatcher:: Added:: "
|
|
96723
|
+
log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
|
|
96724
96724
|
var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
96725
96725
|
return {
|
|
96726
96726
|
close: function () {
|
|
96727
|
-
log("FileWatcher:: Close:: "
|
|
96727
|
+
log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
|
|
96728
96728
|
watcher.close();
|
|
96729
96729
|
}
|
|
96730
96730
|
};
|
|
96731
96731
|
}
|
|
96732
96732
|
function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
96733
|
-
var watchInfo = "DirectoryWatcher:: Added:: "
|
|
96733
|
+
var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
|
|
96734
96734
|
log(watchInfo);
|
|
96735
96735
|
var start = ts.timestamp();
|
|
96736
96736
|
var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
96737
96737
|
var elapsed = ts.timestamp() - start;
|
|
96738
|
-
log("Elapsed:: "
|
|
96738
|
+
log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
|
|
96739
96739
|
return {
|
|
96740
96740
|
close: function () {
|
|
96741
|
-
var watchInfo = "DirectoryWatcher:: Close:: "
|
|
96741
|
+
var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
|
|
96742
96742
|
log(watchInfo);
|
|
96743
96743
|
var start = ts.timestamp();
|
|
96744
96744
|
watcher.close();
|
|
96745
96745
|
var elapsed = ts.timestamp() - start;
|
|
96746
|
-
log("Elapsed:: "
|
|
96746
|
+
log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
|
|
96747
96747
|
}
|
|
96748
96748
|
};
|
|
96749
96749
|
}
|
|
@@ -96753,16 +96753,16 @@ var ts;
|
|
|
96753
96753
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
96754
96754
|
args[_i] = arguments[_i];
|
|
96755
96755
|
}
|
|
96756
|
-
var triggerredInfo = (key === "watchFile" ? "FileWatcher" : "DirectoryWatcher"
|
|
96756
|
+
var triggerredInfo = "".concat(key === "watchFile" ? "FileWatcher" : "DirectoryWatcher", ":: Triggered with ").concat(args[0], " ").concat(args[1] !== undefined ? args[1] : "", ":: ").concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
|
|
96757
96757
|
log(triggerredInfo);
|
|
96758
96758
|
var start = ts.timestamp();
|
|
96759
96759
|
cb.call.apply(cb, __spreadArray([undefined], args, false));
|
|
96760
96760
|
var elapsed = ts.timestamp() - start;
|
|
96761
|
-
log("Elapsed:: "
|
|
96761
|
+
log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
|
|
96762
96762
|
}, flags, options, detailInfo1, detailInfo2); };
|
|
96763
96763
|
}
|
|
96764
96764
|
function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
|
|
96765
|
-
return "WatchInfo: "
|
|
96765
|
+
return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
|
|
96766
96766
|
}
|
|
96767
96767
|
}
|
|
96768
96768
|
ts.getWatchFactory = getWatchFactory;
|
|
@@ -97029,12 +97029,12 @@ var ts;
|
|
|
97029
97029
|
}
|
|
97030
97030
|
ts.formatDiagnostics = formatDiagnostics;
|
|
97031
97031
|
function formatDiagnostic(diagnostic, host) {
|
|
97032
|
-
var errorMessage = ts.diagnosticCategoryName(diagnostic)
|
|
97032
|
+
var errorMessage = "".concat(ts.diagnosticCategoryName(diagnostic), " TS").concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())).concat(host.getNewLine());
|
|
97033
97033
|
if (diagnostic.file) {
|
|
97034
97034
|
var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character;
|
|
97035
97035
|
var fileName = diagnostic.file.fileName;
|
|
97036
97036
|
var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });
|
|
97037
|
-
return relativeFileName
|
|
97037
|
+
return "".concat(relativeFileName, "(").concat(line + 1, ",").concat(character + 1, "): ") + errorMessage;
|
|
97038
97038
|
}
|
|
97039
97039
|
return errorMessage;
|
|
97040
97040
|
}
|
|
@@ -97112,9 +97112,9 @@ var ts;
|
|
|
97112
97112
|
var output = "";
|
|
97113
97113
|
output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);
|
|
97114
97114
|
output += ":";
|
|
97115
|
-
output += color(""
|
|
97115
|
+
output += color("".concat(firstLine + 1), ForegroundColorEscapeSequences.Yellow);
|
|
97116
97116
|
output += ":";
|
|
97117
|
-
output += color(""
|
|
97117
|
+
output += color("".concat(firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
|
|
97118
97118
|
return output;
|
|
97119
97119
|
}
|
|
97120
97120
|
ts.formatLocation = formatLocation;
|
|
@@ -97128,7 +97128,7 @@ var ts;
|
|
|
97128
97128
|
output += " - ";
|
|
97129
97129
|
}
|
|
97130
97130
|
output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
|
|
97131
|
-
output += formatColorAndReset(" TS"
|
|
97131
|
+
output += formatColorAndReset(" TS".concat(diagnostic.code, ": "), ForegroundColorEscapeSequences.Grey);
|
|
97132
97132
|
output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
|
|
97133
97133
|
if (diagnostic.file) {
|
|
97134
97134
|
output += host.getNewLine();
|
|
@@ -97189,7 +97189,7 @@ var ts;
|
|
|
97189
97189
|
var result = void 0;
|
|
97190
97190
|
var mode = getModeForFileReference(name, containingFileMode);
|
|
97191
97191
|
var strName = ts.isString(name) ? name : name.fileName.toLowerCase();
|
|
97192
|
-
var cacheKey = mode !== undefined ? mode
|
|
97192
|
+
var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(strName) : strName;
|
|
97193
97193
|
if (cache.has(cacheKey)) {
|
|
97194
97194
|
result = cache.get(cacheKey);
|
|
97195
97195
|
}
|
|
@@ -97284,7 +97284,7 @@ var ts;
|
|
|
97284
97284
|
var result = void 0;
|
|
97285
97285
|
var mode = getModeForResolutionAtIndex(containingFile, i);
|
|
97286
97286
|
i++;
|
|
97287
|
-
var cacheKey = mode !== undefined ? mode
|
|
97287
|
+
var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(name) : name;
|
|
97288
97288
|
if (cache.has(cacheKey)) {
|
|
97289
97289
|
result = cache.get(cacheKey);
|
|
97290
97290
|
}
|
|
@@ -99228,7 +99228,7 @@ var ts;
|
|
|
99228
99228
|
path += (i === 2 ? "/" : "-") + components[i];
|
|
99229
99229
|
i++;
|
|
99230
99230
|
}
|
|
99231
|
-
var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_"
|
|
99231
|
+
var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_".concat(libFileName, "__.ts"));
|
|
99232
99232
|
var localOverrideModuleResult = ts.resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
|
|
99233
99233
|
if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
|
|
99234
99234
|
return localOverrideModuleResult.resolvedModule.resolvedFileName;
|
|
@@ -99982,10 +99982,10 @@ var ts;
|
|
|
99982
99982
|
}
|
|
99983
99983
|
function directoryExistsIfProjectReferenceDeclDir(dir) {
|
|
99984
99984
|
var dirPath = host.toPath(dir);
|
|
99985
|
-
var dirPathWithTrailingDirectorySeparator = ""
|
|
99985
|
+
var dirPathWithTrailingDirectorySeparator = "".concat(dirPath).concat(ts.directorySeparator);
|
|
99986
99986
|
return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||
|
|
99987
99987
|
ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||
|
|
99988
|
-
ts.startsWith(dirPath, declDirPath
|
|
99988
|
+
ts.startsWith(dirPath, "".concat(declDirPath, "/")); });
|
|
99989
99989
|
}
|
|
99990
99990
|
function handleDirectoryCouldBeSymlink(directory) {
|
|
99991
99991
|
var _a;
|
|
@@ -100033,7 +100033,7 @@ var ts;
|
|
|
100033
100033
|
var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));
|
|
100034
100034
|
if (isFile && result) {
|
|
100035
100035
|
var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());
|
|
100036
|
-
symlinkCache.setSymlinkedFile(fileOrDirectoryPath, ""
|
|
100036
|
+
symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "".concat(symlinkedDirectory.real).concat(absolutePath.replace(new RegExp(directoryPath, "i"), "")));
|
|
100037
100037
|
}
|
|
100038
100038
|
return result;
|
|
100039
100039
|
}) || false;
|
|
@@ -100394,7 +100394,7 @@ var ts;
|
|
|
100394
100394
|
var latestSignature;
|
|
100395
100395
|
if (!sourceFile.isDeclarationFile && !useFileVersionAsSignature) {
|
|
100396
100396
|
programOfThisState.emit(sourceFile, function (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) {
|
|
100397
|
-
ts.Debug.assert(ts.isDeclarationFileName(fileName), "File extension for signature expected to be dts: Got:: "
|
|
100397
|
+
ts.Debug.assert(ts.isDeclarationFileName(fileName), "File extension for signature expected to be dts: Got:: ".concat(fileName));
|
|
100398
100398
|
latestSignature = ts.computeSignatureWithDiagnostics(sourceFile, text, computeHash, getCanonicalFileName, data);
|
|
100399
100399
|
if (latestSignature !== prevSignature) {
|
|
100400
100400
|
updateExportedModules(state, sourceFile, sourceFiles[0].exportedModulesFromDeclarationEmit);
|
|
@@ -101161,7 +101161,7 @@ var ts;
|
|
|
101161
101161
|
var sourceFileDirectory;
|
|
101162
101162
|
if ((_a = data === null || data === void 0 ? void 0 : data.diagnostics) === null || _a === void 0 ? void 0 : _a.length) {
|
|
101163
101163
|
text += data.diagnostics.map(function (diagnostic) {
|
|
101164
|
-
return ""
|
|
101164
|
+
return "".concat(locationInfo(diagnostic)).concat(ts.DiagnosticCategory[diagnostic.category]).concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText));
|
|
101165
101165
|
}).join("\n");
|
|
101166
101166
|
}
|
|
101167
101167
|
return (computeHash !== null && computeHash !== void 0 ? computeHash : ts.generateDjb2Hash)(text);
|
|
@@ -101176,10 +101176,10 @@ var ts;
|
|
|
101176
101176
|
}
|
|
101177
101177
|
function locationInfo(diagnostic) {
|
|
101178
101178
|
if (diagnostic.file.resolvedPath === sourceFile.resolvedPath)
|
|
101179
|
-
return "("
|
|
101179
|
+
return "(".concat(diagnostic.start, ",").concat(diagnostic.length, ")");
|
|
101180
101180
|
if (sourceFileDirectory === undefined)
|
|
101181
101181
|
sourceFileDirectory = ts.getDirectoryPath(sourceFile.resolvedPath);
|
|
101182
|
-
return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName))
|
|
101182
|
+
return "".concat(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceFileDirectory, diagnostic.file.resolvedPath, getCanonicalFileName)), "(").concat(diagnostic.start, ",").concat(diagnostic.length, ")");
|
|
101183
101183
|
}
|
|
101184
101184
|
}
|
|
101185
101185
|
ts.computeSignatureWithDiagnostics = computeSignatureWithDiagnostics;
|
|
@@ -101962,7 +101962,7 @@ var ts;
|
|
|
101962
101962
|
failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
|
|
101963
101963
|
var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);
|
|
101964
101964
|
var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);
|
|
101965
|
-
ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: "
|
|
101965
|
+
ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: ".concat(failedLookupLocation, " failedLookupLocationPath: ").concat(failedLookupLocationPath));
|
|
101966
101966
|
if (failedLookupPathSplit.length > rootSplitLength + 1) {
|
|
101967
101967
|
return {
|
|
101968
101968
|
dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),
|
|
@@ -103042,7 +103042,7 @@ var ts;
|
|
|
103042
103042
|
}
|
|
103043
103043
|
function getJSExtensionForFile(fileName, options) {
|
|
103044
103044
|
var _a;
|
|
103045
|
-
return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension "
|
|
103045
|
+
return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
|
|
103046
103046
|
}
|
|
103047
103047
|
function tryGetJSExtensionForFile(fileName, options) {
|
|
103048
103048
|
var ext = ts.tryGetExtensionFromPath(fileName);
|
|
@@ -103132,8 +103132,8 @@ var ts;
|
|
|
103132
103132
|
return pretty ?
|
|
103133
103133
|
function (diagnostic, newLine, options) {
|
|
103134
103134
|
clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
|
|
103135
|
-
var output = "["
|
|
103136
|
-
output += ""
|
|
103135
|
+
var output = "[".concat(ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ");
|
|
103136
|
+
output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(newLine + newLine);
|
|
103137
103137
|
system.write(output);
|
|
103138
103138
|
} :
|
|
103139
103139
|
function (diagnostic, newLine, options) {
|
|
@@ -103141,8 +103141,8 @@ var ts;
|
|
|
103141
103141
|
if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
|
|
103142
103142
|
output += newLine;
|
|
103143
103143
|
}
|
|
103144
|
-
output += getLocaleTimeString(system)
|
|
103145
|
-
output += ""
|
|
103144
|
+
output += "".concat(getLocaleTimeString(system), " - ");
|
|
103145
|
+
output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(getPlainDiagnosticFollowingNewLines(diagnostic, newLine));
|
|
103146
103146
|
system.write(output);
|
|
103147
103147
|
};
|
|
103148
103148
|
}
|
|
@@ -103164,7 +103164,7 @@ var ts;
|
|
|
103164
103164
|
.map(function (errorDiagnostic) {
|
|
103165
103165
|
if (errorDiagnostic.file === undefined)
|
|
103166
103166
|
return;
|
|
103167
|
-
return ""
|
|
103167
|
+
return "".concat(errorDiagnostic.file.fileName);
|
|
103168
103168
|
});
|
|
103169
103169
|
return filesInError.map(function (fileName) {
|
|
103170
103170
|
var diagnosticForFileName = ts.find(diagnostics, function (diagnostic) {
|
|
@@ -103197,7 +103197,7 @@ var ts;
|
|
|
103197
103197
|
if (errorCount === 0)
|
|
103198
103198
|
return "";
|
|
103199
103199
|
var nonNilFiles = filesInError.filter(function (fileInError) { return fileInError !== undefined; });
|
|
103200
|
-
var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return fileInError.fileName
|
|
103200
|
+
var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return "".concat(fileInError.fileName, ":").concat(fileInError.line); })
|
|
103201
103201
|
.filter(function (value, index, self) { return self.indexOf(value) === index; });
|
|
103202
103202
|
var firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
|
|
103203
103203
|
var d = errorCount === 1 ?
|
|
@@ -103210,7 +103210,7 @@ var ts;
|
|
|
103210
103210
|
ts.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 :
|
|
103211
103211
|
ts.Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length === 1 ? firstFileReference : distinctFileNamesWithLines.length);
|
|
103212
103212
|
var suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : "";
|
|
103213
|
-
return ""
|
|
103213
|
+
return "".concat(newLine).concat(ts.flattenDiagnosticMessageText(d.messageText, newLine)).concat(newLine).concat(newLine).concat(suffix);
|
|
103214
103214
|
}
|
|
103215
103215
|
ts.getErrorSummaryText = getErrorSummaryText;
|
|
103216
103216
|
function createTabularErrorsDisplay(filesInError, host) {
|
|
@@ -103233,7 +103233,7 @@ var ts;
|
|
|
103233
103233
|
" ".repeat(leftPaddingGoal - errorCountDigitsLength)
|
|
103234
103234
|
: "";
|
|
103235
103235
|
var fileRef = prettyPathForFileError(file, host.getCurrentDirectory());
|
|
103236
|
-
tabularData += ""
|
|
103236
|
+
tabularData += "".concat(leftPadding).concat(errorCount, " ").concat(fileRef, "\n");
|
|
103237
103237
|
});
|
|
103238
103238
|
return tabularData;
|
|
103239
103239
|
}
|
|
@@ -103260,9 +103260,9 @@ var ts;
|
|
|
103260
103260
|
var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };
|
|
103261
103261
|
for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {
|
|
103262
103262
|
var file = _c[_i];
|
|
103263
|
-
write(""
|
|
103264
|
-
(_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" "
|
|
103265
|
-
(_b = explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" "
|
|
103263
|
+
write("".concat(toFileName(file, relativeFileName)));
|
|
103264
|
+
(_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" ".concat(fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText)); });
|
|
103265
|
+
(_b = explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" ".concat(d.messageText)); });
|
|
103266
103266
|
}
|
|
103267
103267
|
}
|
|
103268
103268
|
ts.explainFiles = explainFiles;
|
|
@@ -103322,7 +103322,7 @@ var ts;
|
|
|
103322
103322
|
if (isJsonFile && !ts.endsWith(includeSpec, ".json"))
|
|
103323
103323
|
return false;
|
|
103324
103324
|
var pattern = ts.getPatternFromSpec(includeSpec, basePath, "files");
|
|
103325
|
-
return !!pattern && ts.getRegexFromPattern("("
|
|
103325
|
+
return !!pattern && ts.getRegexFromPattern("(".concat(pattern, ")$"), useCaseSensitiveFileNames).test(fileName);
|
|
103326
103326
|
});
|
|
103327
103327
|
}
|
|
103328
103328
|
ts.getMatchedIncludeSpec = getMatchedIncludeSpec;
|
|
@@ -103331,7 +103331,7 @@ var ts;
|
|
|
103331
103331
|
var options = program.getCompilerOptions();
|
|
103332
103332
|
if (ts.isReferencedFile(reason)) {
|
|
103333
103333
|
var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);
|
|
103334
|
-
var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\""
|
|
103334
|
+
var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"".concat(referenceLocation.text, "\"");
|
|
103335
103335
|
var message = void 0;
|
|
103336
103336
|
ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, "Only synthetic references are imports");
|
|
103337
103337
|
switch (reason.kind) {
|
|
@@ -103444,7 +103444,7 @@ var ts;
|
|
|
103444
103444
|
var currentDir_1 = program.getCurrentDirectory();
|
|
103445
103445
|
ts.forEach(emittedFiles, function (file) {
|
|
103446
103446
|
var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);
|
|
103447
|
-
write("TSFILE: "
|
|
103447
|
+
write("TSFILE: ".concat(filepath));
|
|
103448
103448
|
});
|
|
103449
103449
|
listFiles(program, write);
|
|
103450
103450
|
}
|
|
@@ -103767,7 +103767,7 @@ var ts;
|
|
|
103767
103767
|
}
|
|
103768
103768
|
var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;
|
|
103769
103769
|
var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
103770
|
-
writeLog("Current directory: "
|
|
103770
|
+
writeLog("Current directory: ".concat(currentDirectory, " CaseSensitiveFileNames: ").concat(useCaseSensitiveFileNames));
|
|
103771
103771
|
var configFileWatcher;
|
|
103772
103772
|
if (configFileName) {
|
|
103773
103773
|
configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);
|
|
@@ -103913,10 +103913,10 @@ var ts;
|
|
|
103913
103913
|
}
|
|
103914
103914
|
function createNewProgram(hasInvalidatedResolution) {
|
|
103915
103915
|
writeLog("CreatingProgramWith::");
|
|
103916
|
-
writeLog(" roots: "
|
|
103917
|
-
writeLog(" options: "
|
|
103916
|
+
writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
|
|
103917
|
+
writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
|
|
103918
103918
|
if (projectReferences)
|
|
103919
|
-
writeLog(" projectReferences: "
|
|
103919
|
+
writeLog(" projectReferences: ".concat(JSON.stringify(projectReferences)));
|
|
103920
103920
|
var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();
|
|
103921
103921
|
hasChangedCompilerOptions = false;
|
|
103922
103922
|
hasChangedConfigFileParsingErrors = false;
|
|
@@ -104051,7 +104051,7 @@ var ts;
|
|
|
104051
104051
|
return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
|
|
104052
104052
|
}
|
|
104053
104053
|
var pending = clearInvalidateResolutionsOfFailedLookupLocations();
|
|
104054
|
-
writeLog("Scheduling invalidateFailedLookup"
|
|
104054
|
+
writeLog("Scheduling invalidateFailedLookup".concat(pending ? ", Cancelled earlier one" : ""));
|
|
104055
104055
|
timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
|
|
104056
104056
|
}
|
|
104057
104057
|
function invalidateResolutionsOfFailedLookup() {
|
|
@@ -104108,7 +104108,7 @@ var ts;
|
|
|
104108
104108
|
synchronizeProgram();
|
|
104109
104109
|
}
|
|
104110
104110
|
function reloadConfigFile() {
|
|
104111
|
-
writeLog("Reloading config file: "
|
|
104111
|
+
writeLog("Reloading config file: ".concat(configFileName));
|
|
104112
104112
|
reloadLevel = ts.ConfigFileProgramReloadLevel.None;
|
|
104113
104113
|
if (cachedDirectoryStructureHost) {
|
|
104114
104114
|
cachedDirectoryStructureHost.clearCache();
|
|
@@ -104146,7 +104146,7 @@ var ts;
|
|
|
104146
104146
|
return config.parsedCommandLine;
|
|
104147
104147
|
}
|
|
104148
104148
|
}
|
|
104149
|
-
writeLog("Loading config file: "
|
|
104149
|
+
writeLog("Loading config file: ".concat(configFileName));
|
|
104150
104150
|
var parsedCommandLine = host.getParsedCommandLine ?
|
|
104151
104151
|
host.getParsedCommandLine(configFileName) :
|
|
104152
104152
|
getParsedCommandLineFromConfigFileHost(configFileName);
|
|
@@ -104389,8 +104389,8 @@ var ts;
|
|
|
104389
104389
|
ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;
|
|
104390
104390
|
function createBuilderStatusReporter(system, pretty) {
|
|
104391
104391
|
return function (diagnostic) {
|
|
104392
|
-
var output = pretty ? "["
|
|
104393
|
-
output += ""
|
|
104392
|
+
var output = pretty ? "[".concat(ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(ts.getLocaleTimeString(system), " - ");
|
|
104393
|
+
output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(system.newLine + system.newLine);
|
|
104394
104394
|
system.write(output);
|
|
104395
104395
|
};
|
|
104396
104396
|
}
|
|
@@ -105167,7 +105167,7 @@ var ts;
|
|
|
105167
105167
|
function listEmittedFile(_a, proj, file) {
|
|
105168
105168
|
var write = _a.write;
|
|
105169
105169
|
if (write && proj.options.listEmittedFiles) {
|
|
105170
|
-
write("TSFILE: "
|
|
105170
|
+
write("TSFILE: ".concat(file));
|
|
105171
105171
|
}
|
|
105172
105172
|
}
|
|
105173
105173
|
function getOldProgram(_a, proj, parsed) {
|
|
@@ -105196,7 +105196,7 @@ var ts;
|
|
|
105196
105196
|
function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {
|
|
105197
105197
|
var canEmitBuildInfo = program && !ts.outFile(program.getCompilerOptions());
|
|
105198
105198
|
reportAndStoreErrors(state, resolvedPath, diagnostics);
|
|
105199
|
-
state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType
|
|
105199
|
+
state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: "".concat(errorType, " errors") });
|
|
105200
105200
|
if (canEmitBuildInfo)
|
|
105201
105201
|
return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };
|
|
105202
105202
|
afterProgramDone(state, program, config);
|
|
@@ -105399,7 +105399,7 @@ var ts;
|
|
|
105399
105399
|
if (inputTime === ts.missingFileModifiedTime) {
|
|
105400
105400
|
return {
|
|
105401
105401
|
type: ts.UpToDateStatusType.Unbuildable,
|
|
105402
|
-
reason: inputFile
|
|
105402
|
+
reason: "".concat(inputFile, " does not exist")
|
|
105403
105403
|
};
|
|
105404
105404
|
}
|
|
105405
105405
|
if (buildInfoTime && buildInfoTime < inputTime) {
|
|
@@ -105739,7 +105739,7 @@ var ts;
|
|
|
105739
105739
|
}
|
|
105740
105740
|
}
|
|
105741
105741
|
if (filesToDelete) {
|
|
105742
|
-
reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * "
|
|
105742
|
+
reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * ".concat(f); }).join(""));
|
|
105743
105743
|
}
|
|
105744
105744
|
return ts.ExitStatus.Success;
|
|
105745
105745
|
}
|
|
@@ -106099,7 +106099,7 @@ var ts;
|
|
|
106099
106099
|
};
|
|
106100
106100
|
}
|
|
106101
106101
|
function bold(str) {
|
|
106102
|
-
return "\u001B[1m"
|
|
106102
|
+
return "\u001B[1m".concat(str, "\u001B[22m");
|
|
106103
106103
|
}
|
|
106104
106104
|
var isWindows = sys.getEnvironmentVariable("OS") && ts.stringContains(sys.getEnvironmentVariable("OS").toLowerCase(), "windows");
|
|
106105
106105
|
var isWindowsTerminal = sys.getEnvironmentVariable("WT_SESSION");
|
|
@@ -106108,19 +106108,19 @@ var ts;
|
|
|
106108
106108
|
if (isWindows && !isWindowsTerminal && !isVSCode) {
|
|
106109
106109
|
return brightWhite(str);
|
|
106110
106110
|
}
|
|
106111
|
-
return "\u001B[94m"
|
|
106111
|
+
return "\u001B[94m".concat(str, "\u001B[39m");
|
|
106112
106112
|
}
|
|
106113
106113
|
var supportsRicherColors = sys.getEnvironmentVariable("COLORTERM") === "truecolor" || sys.getEnvironmentVariable("TERM") === "xterm-256color";
|
|
106114
106114
|
function blueBackground(str) {
|
|
106115
106115
|
if (supportsRicherColors) {
|
|
106116
|
-
return "\u001B[48;5;68m"
|
|
106116
|
+
return "\u001B[48;5;68m".concat(str, "\u001B[39;49m");
|
|
106117
106117
|
}
|
|
106118
106118
|
else {
|
|
106119
|
-
return "\u001B[44m"
|
|
106119
|
+
return "\u001B[44m".concat(str, "\u001B[39;49m");
|
|
106120
106120
|
}
|
|
106121
106121
|
}
|
|
106122
106122
|
function brightWhite(str) {
|
|
106123
|
-
return "\u001B[97m"
|
|
106123
|
+
return "\u001B[97m".concat(str, "\u001B[39m");
|
|
106124
106124
|
}
|
|
106125
106125
|
return {
|
|
106126
106126
|
bold: bold,
|
|
@@ -106130,7 +106130,7 @@ var ts;
|
|
|
106130
106130
|
};
|
|
106131
106131
|
}
|
|
106132
106132
|
function getDisplayNameTextOfOption(option) {
|
|
106133
|
-
return "--"
|
|
106133
|
+
return "--".concat(option.name).concat(option.shortName ? ", -".concat(option.shortName) : "");
|
|
106134
106134
|
}
|
|
106135
106135
|
function generateOptionOutput(sys, option, rightAlignOfLeft, leftAlignOfRight) {
|
|
106136
106136
|
var _a, _b;
|
|
@@ -106167,13 +106167,13 @@ var ts;
|
|
|
106167
106167
|
text.push(sys.newLine);
|
|
106168
106168
|
if (showAdditionalInfoOutput(valueCandidates, option)) {
|
|
106169
106169
|
if (valueCandidates) {
|
|
106170
|
-
text.push(valueCandidates.valueType
|
|
106170
|
+
text.push("".concat(valueCandidates.valueType, " ").concat(valueCandidates.possibleValues));
|
|
106171
106171
|
}
|
|
106172
106172
|
if (defaultValueDescription) {
|
|
106173
106173
|
if (valueCandidates)
|
|
106174
106174
|
text.push(sys.newLine);
|
|
106175
106175
|
var diagType = ts.getDiagnosticText(ts.Diagnostics.default_Colon);
|
|
106176
|
-
text.push(diagType
|
|
106176
|
+
text.push("".concat(diagType, " ").concat(defaultValueDescription));
|
|
106177
106177
|
}
|
|
106178
106178
|
text.push(sys.newLine);
|
|
106179
106179
|
}
|
|
@@ -106222,7 +106222,7 @@ var ts;
|
|
|
106222
106222
|
}
|
|
106223
106223
|
var curRight = remainRight.substr(0, rightCharacterNumber);
|
|
106224
106224
|
remainRight = remainRight.slice(rightCharacterNumber);
|
|
106225
|
-
res.push(""
|
|
106225
|
+
res.push("".concat(curLeft).concat(curRight));
|
|
106226
106226
|
isFirstLine = false;
|
|
106227
106227
|
}
|
|
106228
106228
|
return res;
|
|
@@ -106323,7 +106323,7 @@ var ts;
|
|
|
106323
106323
|
categoryMap.set(curCategory, optionsOfCurCategory);
|
|
106324
106324
|
}
|
|
106325
106325
|
categoryMap.forEach(function (value, key) {
|
|
106326
|
-
res.push("### "
|
|
106326
|
+
res.push("### ".concat(key).concat(sys.newLine).concat(sys.newLine));
|
|
106327
106327
|
res = __spreadArray(__spreadArray([], res, true), generateGroupOptionOutput(sys, value), true);
|
|
106328
106328
|
});
|
|
106329
106329
|
if (afterOptionsDescription) {
|
|
@@ -106333,7 +106333,7 @@ var ts;
|
|
|
106333
106333
|
}
|
|
106334
106334
|
function printEasyHelp(sys, simpleOptions) {
|
|
106335
106335
|
var colors = createColors(sys);
|
|
106336
|
-
var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler)
|
|
106336
|
+
var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
|
|
106337
106337
|
output.push(colors.bold(ts.getDiagnosticText(ts.Diagnostics.COMMON_COMMANDS)) + sys.newLine + sys.newLine);
|
|
106338
106338
|
example("tsc", ts.Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
|
|
106339
106339
|
example("tsc app.ts util.ts", ts.Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
|
|
@@ -106359,7 +106359,7 @@ var ts;
|
|
|
106359
106359
|
}
|
|
106360
106360
|
}
|
|
106361
106361
|
function printAllHelp(sys, compilerOptions, buildOptions, watchOptions) {
|
|
106362
|
-
var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler)
|
|
106362
|
+
var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
|
|
106363
106363
|
output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.ALL_COMPILER_OPTIONS), compilerOptions, true, undefined, ts.formatMessage(undefined, ts.Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc")), true);
|
|
106364
106364
|
output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.WATCH_OPTIONS), watchOptions, false, ts.getDiagnosticText(ts.Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon)), true);
|
|
106365
106365
|
output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
|
|
@@ -106369,7 +106369,7 @@ var ts;
|
|
|
106369
106369
|
}
|
|
106370
106370
|
}
|
|
106371
106371
|
function printBuildHelp(sys, buildOptions) {
|
|
106372
|
-
var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler)
|
|
106372
|
+
var output = __spreadArray([], getHeader(sys, "".concat(ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler), " - ").concat(ts.getDiagnosticText(ts.Diagnostics.Version_0, ts.version))), true);
|
|
106373
106373
|
output = __spreadArray(__spreadArray([], output, true), generateSectionOptionsOutput(sys, ts.getDiagnosticText(ts.Diagnostics.BUILD_OPTIONS), buildOptions, false, ts.formatMessage(undefined, ts.Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")), true);
|
|
106374
106374
|
for (var _i = 0, output_3 = output; _i < output_3.length; _i++) {
|
|
106375
106375
|
var line = output_3[_i];
|
|
@@ -106750,7 +106750,7 @@ var ts;
|
|
|
106750
106750
|
reportCountStatistic("Subtype cache size", caches.subtype);
|
|
106751
106751
|
reportCountStatistic("Strict subtype cache size", caches.strictSubtype);
|
|
106752
106752
|
if (isPerformanceEnabled) {
|
|
106753
|
-
ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic(name
|
|
106753
|
+
ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic("".concat(name, " time"), duration); });
|
|
106754
106754
|
}
|
|
106755
106755
|
}
|
|
106756
106756
|
else if (isPerformanceEnabled) {
|
|
@@ -106822,7 +106822,7 @@ var ts;
|
|
|
106822
106822
|
// enable deprecation logging
|
|
106823
106823
|
ts.Debug.loggingHost = {
|
|
106824
106824
|
log: function (_level, s) {
|
|
106825
|
-
ts.sys.write(""
|
|
106825
|
+
ts.sys.write("".concat(s || "").concat(ts.sys.newLine));
|
|
106826
106826
|
}
|
|
106827
106827
|
};
|
|
106828
106828
|
if (ts.Debug.isDebugging) {
|