typescript 4.6.0-dev.20220211 → 4.6.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/tsc.js +263 -263
- package/lib/tsserver.js +551 -551
- package/lib/tsserverlibrary.js +526 -526
- package/lib/typescript.js +431 -431
- package/lib/typescriptServices.js +431 -431
- package/lib/typingsInstaller.js +318 -318
- 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.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".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;
|
|
@@ -1293,7 +1293,7 @@ var ts;
|
|
|
1293
1293
|
function cast(value, test) {
|
|
1294
1294
|
if (value !== undefined && test(value))
|
|
1295
1295
|
return value;
|
|
1296
|
-
return ts.Debug.fail("Invalid cast. The supplied value "
|
|
1296
|
+
return ts.Debug.fail("Invalid cast. The supplied value ".concat(value, " did not pass the test '").concat(ts.Debug.getFunctionName(test), "'."));
|
|
1297
1297
|
}
|
|
1298
1298
|
ts.cast = cast;
|
|
1299
1299
|
function noop(_) { }
|
|
@@ -1343,7 +1343,7 @@ var ts;
|
|
|
1343
1343
|
function memoizeOne(callback) {
|
|
1344
1344
|
var map = new ts.Map();
|
|
1345
1345
|
return function (arg) {
|
|
1346
|
-
var key = typeof arg
|
|
1346
|
+
var key = "".concat(typeof arg, ":").concat(arg);
|
|
1347
1347
|
var value = map.get(key);
|
|
1348
1348
|
if (value === undefined && !map.has(key)) {
|
|
1349
1349
|
value = callback(arg);
|
|
@@ -1678,7 +1678,7 @@ var ts;
|
|
|
1678
1678
|
ts.createGetCanonicalFileName = createGetCanonicalFileName;
|
|
1679
1679
|
function patternText(_a) {
|
|
1680
1680
|
var prefix = _a.prefix, suffix = _a.suffix;
|
|
1681
|
-
return prefix
|
|
1681
|
+
return "".concat(prefix, "*").concat(suffix);
|
|
1682
1682
|
}
|
|
1683
1683
|
ts.patternText = patternText;
|
|
1684
1684
|
function matchedText(pattern, candidate) {
|
|
@@ -1947,7 +1947,7 @@ var ts;
|
|
|
1947
1947
|
}
|
|
1948
1948
|
function fail(message, stackCrawlMark) {
|
|
1949
1949
|
debugger;
|
|
1950
|
-
var e = new Error(message ? "Debug Failure. "
|
|
1950
|
+
var e = new Error(message ? "Debug Failure. ".concat(message) : "Debug Failure.");
|
|
1951
1951
|
if (Error.captureStackTrace) {
|
|
1952
1952
|
Error.captureStackTrace(e, stackCrawlMark || fail);
|
|
1953
1953
|
}
|
|
@@ -1955,12 +1955,12 @@ var ts;
|
|
|
1955
1955
|
}
|
|
1956
1956
|
Debug.fail = fail;
|
|
1957
1957
|
function failBadSyntaxKind(node, message, stackCrawlMark) {
|
|
1958
|
-
return fail((message || "Unexpected node."
|
|
1958
|
+
return fail("".concat(message || "Unexpected node.", "\r\nNode ").concat(formatSyntaxKind(node.kind), " was unexpected."), stackCrawlMark || failBadSyntaxKind);
|
|
1959
1959
|
}
|
|
1960
1960
|
Debug.failBadSyntaxKind = failBadSyntaxKind;
|
|
1961
1961
|
function assert(expression, message, verboseDebugInfo, stackCrawlMark) {
|
|
1962
1962
|
if (!expression) {
|
|
1963
|
-
message = message ? "False expression: "
|
|
1963
|
+
message = message ? "False expression: ".concat(message) : "False expression.";
|
|
1964
1964
|
if (verboseDebugInfo) {
|
|
1965
1965
|
message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo());
|
|
1966
1966
|
}
|
|
@@ -1970,26 +1970,26 @@ var ts;
|
|
|
1970
1970
|
Debug.assert = assert;
|
|
1971
1971
|
function assertEqual(a, b, msg, msg2, stackCrawlMark) {
|
|
1972
1972
|
if (a !== b) {
|
|
1973
|
-
var message = msg ? msg2 ? msg
|
|
1974
|
-
fail("Expected "
|
|
1973
|
+
var message = msg ? msg2 ? "".concat(msg, " ").concat(msg2) : msg : "";
|
|
1974
|
+
fail("Expected ".concat(a, " === ").concat(b, ". ").concat(message), stackCrawlMark || assertEqual);
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
Debug.assertEqual = assertEqual;
|
|
1978
1978
|
function assertLessThan(a, b, msg, stackCrawlMark) {
|
|
1979
1979
|
if (a >= b) {
|
|
1980
|
-
fail("Expected "
|
|
1980
|
+
fail("Expected ".concat(a, " < ").concat(b, ". ").concat(msg || ""), stackCrawlMark || assertLessThan);
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|
|
1983
1983
|
Debug.assertLessThan = assertLessThan;
|
|
1984
1984
|
function assertLessThanOrEqual(a, b, stackCrawlMark) {
|
|
1985
1985
|
if (a > b) {
|
|
1986
|
-
fail("Expected "
|
|
1986
|
+
fail("Expected ".concat(a, " <= ").concat(b), stackCrawlMark || assertLessThanOrEqual);
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
1989
|
Debug.assertLessThanOrEqual = assertLessThanOrEqual;
|
|
1990
1990
|
function assertGreaterThanOrEqual(a, b, stackCrawlMark) {
|
|
1991
1991
|
if (a < b) {
|
|
1992
|
-
fail("Expected "
|
|
1992
|
+
fail("Expected ".concat(a, " >= ").concat(b), stackCrawlMark || assertGreaterThanOrEqual);
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
1995
|
Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;
|
|
@@ -2019,42 +2019,42 @@ var ts;
|
|
|
2019
2019
|
function assertNever(member, message, stackCrawlMark) {
|
|
2020
2020
|
if (message === void 0) { message = "Illegal value:"; }
|
|
2021
2021
|
var detail = typeof member === "object" && ts.hasProperty(member, "kind") && ts.hasProperty(member, "pos") && formatSyntaxKind ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member);
|
|
2022
|
-
return fail(message
|
|
2022
|
+
return fail("".concat(message, " ").concat(detail), stackCrawlMark || assertNever);
|
|
2023
2023
|
}
|
|
2024
2024
|
Debug.assertNever = assertNever;
|
|
2025
2025
|
function assertEachNode(nodes, test, message, stackCrawlMark) {
|
|
2026
2026
|
if (shouldAssertFunction(1, "assertEachNode")) {
|
|
2027
|
-
assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '"
|
|
2027
|
+
assert(test === undefined || ts.every(nodes, test), message || "Unexpected node.", function () { return "Node array did not pass test '".concat(getFunctionName(test), "'."); }, stackCrawlMark || assertEachNode);
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
2030
|
Debug.assertEachNode = assertEachNode;
|
|
2031
2031
|
function assertNode(node, test, message, stackCrawlMark) {
|
|
2032
2032
|
if (shouldAssertFunction(1, "assertNode")) {
|
|
2033
|
-
assert(node !== undefined && (test === undefined || test(node)), message || "Unexpected node.", function () { return "Node "
|
|
2033
|
+
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);
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
2036
|
Debug.assertNode = assertNode;
|
|
2037
2037
|
function assertNotNode(node, test, message, stackCrawlMark) {
|
|
2038
2038
|
if (shouldAssertFunction(1, "assertNotNode")) {
|
|
2039
|
-
assert(node === undefined || test === undefined || !test(node), message || "Unexpected node.", function () { return "Node "
|
|
2039
|
+
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);
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
Debug.assertNotNode = assertNotNode;
|
|
2043
2043
|
function assertOptionalNode(node, test, message, stackCrawlMark) {
|
|
2044
2044
|
if (shouldAssertFunction(1, "assertOptionalNode")) {
|
|
2045
|
-
assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node "
|
|
2045
|
+
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);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
Debug.assertOptionalNode = assertOptionalNode;
|
|
2049
2049
|
function assertOptionalToken(node, kind, message, stackCrawlMark) {
|
|
2050
2050
|
if (shouldAssertFunction(1, "assertOptionalToken")) {
|
|
2051
|
-
assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node "
|
|
2051
|
+
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);
|
|
2052
2052
|
}
|
|
2053
2053
|
}
|
|
2054
2054
|
Debug.assertOptionalToken = assertOptionalToken;
|
|
2055
2055
|
function assertMissingNode(node, message, stackCrawlMark) {
|
|
2056
2056
|
if (shouldAssertFunction(1, "assertMissingNode")) {
|
|
2057
|
-
assert(node === undefined, message || "Unexpected node.", function () { return "Node "
|
|
2057
|
+
assert(node === undefined, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node.kind), " was unexpected'."); }, stackCrawlMark || assertMissingNode);
|
|
2058
2058
|
}
|
|
2059
2059
|
}
|
|
2060
2060
|
Debug.assertMissingNode = assertMissingNode;
|
|
@@ -2075,7 +2075,7 @@ var ts;
|
|
|
2075
2075
|
}
|
|
2076
2076
|
Debug.getFunctionName = getFunctionName;
|
|
2077
2077
|
function formatSymbol(symbol) {
|
|
2078
|
-
return "{ name: "
|
|
2078
|
+
return "{ name: ".concat(ts.unescapeLeadingUnderscores(symbol.escapedName), "; flags: ").concat(formatSymbolFlags(symbol.flags), "; declarations: ").concat(ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }), " }");
|
|
2079
2079
|
}
|
|
2080
2080
|
Debug.formatSymbol = formatSymbol;
|
|
2081
2081
|
function formatEnum(value, enumObject, isFlags) {
|
|
@@ -2093,7 +2093,7 @@ var ts;
|
|
|
2093
2093
|
break;
|
|
2094
2094
|
}
|
|
2095
2095
|
if (enumValue !== 0 && enumValue & value) {
|
|
2096
|
-
result = ""
|
|
2096
|
+
result = "".concat(result).concat(result ? "|" : "").concat(enumName);
|
|
2097
2097
|
remainingFlags &= ~enumValue;
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
@@ -2202,7 +2202,7 @@ var ts;
|
|
|
2202
2202
|
this.flags & 1 ? "FlowUnreachable" :
|
|
2203
2203
|
"UnknownFlow";
|
|
2204
2204
|
var remainingFlags = this.flags & ~(2048 - 1);
|
|
2205
|
-
return ""
|
|
2205
|
+
return "".concat(flowHeader).concat(remainingFlags ? " (".concat(formatFlowFlags(remainingFlags), ")") : "");
|
|
2206
2206
|
}
|
|
2207
2207
|
},
|
|
2208
2208
|
__debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, true); } },
|
|
@@ -2232,7 +2232,7 @@ var ts;
|
|
|
2232
2232
|
__tsDebuggerDisplay: {
|
|
2233
2233
|
value: function (defaultValue) {
|
|
2234
2234
|
defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]");
|
|
2235
|
-
return "NodeArray "
|
|
2235
|
+
return "NodeArray ".concat(defaultValue);
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
2238
|
});
|
|
@@ -2278,7 +2278,7 @@ var ts;
|
|
|
2278
2278
|
var symbolHeader = this.flags & 33554432 ? "TransientSymbol" :
|
|
2279
2279
|
"Symbol";
|
|
2280
2280
|
var remainingSymbolFlags = this.flags & ~33554432;
|
|
2281
|
-
return symbolHeader
|
|
2281
|
+
return "".concat(symbolHeader, " '").concat(ts.symbolName(this), "'").concat(remainingSymbolFlags ? " (".concat(formatSymbolFlags(remainingSymbolFlags), ")") : "");
|
|
2282
2282
|
}
|
|
2283
2283
|
},
|
|
2284
2284
|
__debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }
|
|
@@ -2287,11 +2287,11 @@ var ts;
|
|
|
2287
2287
|
__tsDebuggerDisplay: {
|
|
2288
2288
|
value: function () {
|
|
2289
2289
|
var typeHeader = this.flags & 98304 ? "NullableType" :
|
|
2290
|
-
this.flags & 384 ? "LiteralType "
|
|
2291
|
-
this.flags & 2048 ? "LiteralType "
|
|
2290
|
+
this.flags & 384 ? "LiteralType ".concat(JSON.stringify(this.value)) :
|
|
2291
|
+
this.flags & 2048 ? "LiteralType ".concat(this.value.negative ? "-" : "").concat(this.value.base10Value, "n") :
|
|
2292
2292
|
this.flags & 8192 ? "UniqueESSymbolType" :
|
|
2293
2293
|
this.flags & 32 ? "EnumType" :
|
|
2294
|
-
this.flags & 67359327 ? "IntrinsicType "
|
|
2294
|
+
this.flags & 67359327 ? "IntrinsicType ".concat(this.intrinsicName) :
|
|
2295
2295
|
this.flags & 1048576 ? "UnionType" :
|
|
2296
2296
|
this.flags & 2097152 ? "IntersectionType" :
|
|
2297
2297
|
this.flags & 4194304 ? "IndexType" :
|
|
@@ -2310,7 +2310,7 @@ var ts;
|
|
|
2310
2310
|
"ObjectType" :
|
|
2311
2311
|
"Type";
|
|
2312
2312
|
var remainingObjectFlags = this.flags & 524288 ? this.objectFlags & ~1343 : 0;
|
|
2313
|
-
return ""
|
|
2313
|
+
return "".concat(typeHeader).concat(this.symbol ? " '".concat(ts.symbolName(this.symbol), "'") : "").concat(remainingObjectFlags ? " (".concat(formatObjectFlags(remainingObjectFlags), ")") : "");
|
|
2314
2314
|
}
|
|
2315
2315
|
},
|
|
2316
2316
|
__debugFlags: { get: function () { return formatTypeFlags(this.flags); } },
|
|
@@ -2344,11 +2344,11 @@ var ts;
|
|
|
2344
2344
|
__tsDebuggerDisplay: {
|
|
2345
2345
|
value: function () {
|
|
2346
2346
|
var nodeHeader = ts.isGeneratedIdentifier(this) ? "GeneratedIdentifier" :
|
|
2347
|
-
ts.isIdentifier(this) ? "Identifier '"
|
|
2348
|
-
ts.isPrivateIdentifier(this) ? "PrivateIdentifier '"
|
|
2349
|
-
ts.isStringLiteral(this) ? "StringLiteral "
|
|
2350
|
-
ts.isNumericLiteral(this) ? "NumericLiteral "
|
|
2351
|
-
ts.isBigIntLiteral(this) ? "BigIntLiteral "
|
|
2347
|
+
ts.isIdentifier(this) ? "Identifier '".concat(ts.idText(this), "'") :
|
|
2348
|
+
ts.isPrivateIdentifier(this) ? "PrivateIdentifier '".concat(ts.idText(this), "'") :
|
|
2349
|
+
ts.isStringLiteral(this) ? "StringLiteral ".concat(JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")) :
|
|
2350
|
+
ts.isNumericLiteral(this) ? "NumericLiteral ".concat(this.text) :
|
|
2351
|
+
ts.isBigIntLiteral(this) ? "BigIntLiteral ".concat(this.text, "n") :
|
|
2352
2352
|
ts.isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" :
|
|
2353
2353
|
ts.isParameter(this) ? "ParameterDeclaration" :
|
|
2354
2354
|
ts.isConstructorDeclaration(this) ? "ConstructorDeclaration" :
|
|
@@ -2380,7 +2380,7 @@ var ts;
|
|
|
2380
2380
|
ts.isNamedTupleMember(this) ? "NamedTupleMember" :
|
|
2381
2381
|
ts.isImportTypeNode(this) ? "ImportTypeNode" :
|
|
2382
2382
|
formatSyntaxKind(this.kind);
|
|
2383
|
-
return ""
|
|
2383
|
+
return "".concat(nodeHeader).concat(this.flags ? " (".concat(formatNodeFlags(this.flags), ")") : "");
|
|
2384
2384
|
}
|
|
2385
2385
|
},
|
|
2386
2386
|
__debugKind: { get: function () { return formatSyntaxKind(this.kind); } },
|
|
@@ -2424,10 +2424,10 @@ var ts;
|
|
|
2424
2424
|
Debug.enableDebugInfo = enableDebugInfo;
|
|
2425
2425
|
function formatDeprecationMessage(name, error, errorAfter, since, message) {
|
|
2426
2426
|
var deprecationMessage = error ? "DeprecationError: " : "DeprecationWarning: ";
|
|
2427
|
-
deprecationMessage += "'"
|
|
2428
|
-
deprecationMessage += since ? "has been deprecated since v"
|
|
2429
|
-
deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v"
|
|
2430
|
-
deprecationMessage += message ? " "
|
|
2427
|
+
deprecationMessage += "'".concat(name, "' ");
|
|
2428
|
+
deprecationMessage += since ? "has been deprecated since v".concat(since) : "is deprecated";
|
|
2429
|
+
deprecationMessage += error ? " and can no longer be used." : errorAfter ? " and will no longer be usable after v".concat(errorAfter, ".") : ".";
|
|
2430
|
+
deprecationMessage += message ? " ".concat(ts.formatStringFromArgs(message, [name], 0)) : "";
|
|
2431
2431
|
return deprecationMessage;
|
|
2432
2432
|
}
|
|
2433
2433
|
function createErrorDeprecation(name, errorAfter, since, message) {
|
|
@@ -2524,11 +2524,11 @@ var ts;
|
|
|
2524
2524
|
}
|
|
2525
2525
|
};
|
|
2526
2526
|
Version.prototype.toString = function () {
|
|
2527
|
-
var result = this.major
|
|
2527
|
+
var result = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
|
|
2528
2528
|
if (ts.some(this.prerelease))
|
|
2529
|
-
result += "-"
|
|
2529
|
+
result += "-".concat(this.prerelease.join("."));
|
|
2530
2530
|
if (ts.some(this.build))
|
|
2531
|
-
result += "+"
|
|
2531
|
+
result += "+".concat(this.build.join("."));
|
|
2532
2532
|
return result;
|
|
2533
2533
|
};
|
|
2534
2534
|
Version.zero = new Version(0, 0, 0);
|
|
@@ -2750,7 +2750,7 @@ var ts;
|
|
|
2750
2750
|
return ts.map(comparators, formatComparator).join(" ");
|
|
2751
2751
|
}
|
|
2752
2752
|
function formatComparator(comparator) {
|
|
2753
|
-
return ""
|
|
2753
|
+
return "".concat(comparator.operator).concat(comparator.operand);
|
|
2754
2754
|
}
|
|
2755
2755
|
})(ts || (ts = {}));
|
|
2756
2756
|
var ts;
|
|
@@ -2979,7 +2979,7 @@ var ts;
|
|
|
2979
2979
|
fs = require("fs");
|
|
2980
2980
|
}
|
|
2981
2981
|
catch (e) {
|
|
2982
|
-
throw new Error("tracing requires having fs\n(original error: "
|
|
2982
|
+
throw new Error("tracing requires having fs\n(original error: ".concat(e.message || e, ")"));
|
|
2983
2983
|
}
|
|
2984
2984
|
}
|
|
2985
2985
|
mode = tracingMode;
|
|
@@ -2990,11 +2990,11 @@ var ts;
|
|
|
2990
2990
|
if (!fs.existsSync(traceDir)) {
|
|
2991
2991
|
fs.mkdirSync(traceDir, { recursive: true });
|
|
2992
2992
|
}
|
|
2993
|
-
var countPart = mode === "build" ? "."
|
|
2994
|
-
: mode === "server" ? "."
|
|
2993
|
+
var countPart = mode === "build" ? ".".concat(process.pid, "-").concat(++traceCount)
|
|
2994
|
+
: mode === "server" ? ".".concat(process.pid)
|
|
2995
2995
|
: "";
|
|
2996
|
-
var tracePath = ts.combinePaths(traceDir, "trace"
|
|
2997
|
-
var typesPath = ts.combinePaths(traceDir, "types"
|
|
2996
|
+
var tracePath = ts.combinePaths(traceDir, "trace".concat(countPart, ".json"));
|
|
2997
|
+
var typesPath = ts.combinePaths(traceDir, "types".concat(countPart, ".json"));
|
|
2998
2998
|
legend.push({
|
|
2999
2999
|
configFilePath: configFilePath,
|
|
3000
3000
|
tracePath: tracePath,
|
|
@@ -3062,7 +3062,7 @@ var ts;
|
|
|
3062
3062
|
writeEvent("E", phase, name, args, undefined, endTime);
|
|
3063
3063
|
}
|
|
3064
3064
|
else if (sampleInterval - (time % sampleInterval) <= endTime - time) {
|
|
3065
|
-
writeEvent("X", phase, name, args, "\"dur\":"
|
|
3065
|
+
writeEvent("X", phase, name, args, "\"dur\":".concat(endTime - time), time);
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
3068
|
function writeEvent(eventType, phase, name, args, extras, time) {
|
|
@@ -3070,11 +3070,11 @@ var ts;
|
|
|
3070
3070
|
if (mode === "server" && phase === "checkTypes")
|
|
3071
3071
|
return;
|
|
3072
3072
|
ts.performance.mark("beginTracing");
|
|
3073
|
-
fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\""
|
|
3073
|
+
fs.writeSync(traceFd, ",\n{\"pid\":1,\"tid\":1,\"ph\":\"".concat(eventType, "\",\"cat\":\"").concat(phase, "\",\"ts\":").concat(time, ",\"name\":\"").concat(name, "\""));
|
|
3074
3074
|
if (extras)
|
|
3075
|
-
fs.writeSync(traceFd, ","
|
|
3075
|
+
fs.writeSync(traceFd, ",".concat(extras));
|
|
3076
3076
|
if (args)
|
|
3077
|
-
fs.writeSync(traceFd, ",\"args\":"
|
|
3077
|
+
fs.writeSync(traceFd, ",\"args\":".concat(JSON.stringify(args)));
|
|
3078
3078
|
fs.writeSync(traceFd, "}");
|
|
3079
3079
|
ts.performance.mark("endTracing");
|
|
3080
3080
|
ts.performance.measure("Tracing", "beginTracing", "endTracing");
|
|
@@ -3394,7 +3394,7 @@ var ts;
|
|
|
3394
3394
|
pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize;
|
|
3395
3395
|
ts.unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || ts.unchangedPollThresholds;
|
|
3396
3396
|
function getLevel(envVar, level) {
|
|
3397
|
-
return system.getEnvironmentVariable(envVar
|
|
3397
|
+
return system.getEnvironmentVariable("".concat(envVar, "_").concat(level.toUpperCase()));
|
|
3398
3398
|
}
|
|
3399
3399
|
function getCustomLevels(baseVariable) {
|
|
3400
3400
|
var customLevels;
|
|
@@ -3818,7 +3818,7 @@ var ts;
|
|
|
3818
3818
|
}
|
|
3819
3819
|
function onTimerToUpdateChildWatches() {
|
|
3820
3820
|
timerToUpdateChildWatches = undefined;
|
|
3821
|
-
sysLog("sysLog:: onTimerToUpdateChildWatches:: "
|
|
3821
|
+
sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(cacheToUpdateChildWatches.size));
|
|
3822
3822
|
var start = ts.timestamp();
|
|
3823
3823
|
var invokeMap = new ts.Map();
|
|
3824
3824
|
while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
|
|
@@ -3829,7 +3829,7 @@ var ts;
|
|
|
3829
3829
|
var hasChanges = updateChildWatches(dirName, dirPath, options);
|
|
3830
3830
|
invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);
|
|
3831
3831
|
}
|
|
3832
|
-
sysLog("sysLog:: invokingWatchers:: Elapsed:: "
|
|
3832
|
+
sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(ts.timestamp() - start, "ms:: ").concat(cacheToUpdateChildWatches.size));
|
|
3833
3833
|
callbackCache.forEach(function (callbacks, rootDirName) {
|
|
3834
3834
|
var existing = invokeMap.get(rootDirName);
|
|
3835
3835
|
if (existing) {
|
|
@@ -3845,7 +3845,7 @@ var ts;
|
|
|
3845
3845
|
}
|
|
3846
3846
|
});
|
|
3847
3847
|
var elapsed = ts.timestamp() - start;
|
|
3848
|
-
sysLog("sysLog:: Elapsed:: "
|
|
3848
|
+
sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
|
|
3849
3849
|
}
|
|
3850
3850
|
function removeChildWatches(parentWatcher) {
|
|
3851
3851
|
if (!parentWatcher)
|
|
@@ -4237,7 +4237,7 @@ var ts;
|
|
|
4237
4237
|
var externalFileCounter = 0;
|
|
4238
4238
|
var remappedPaths = new ts.Map();
|
|
4239
4239
|
var normalizedDir = ts.normalizeSlashes(__dirname);
|
|
4240
|
-
var fileUrlRoot = "file://"
|
|
4240
|
+
var fileUrlRoot = "file://".concat(ts.getRootLength(normalizedDir) === 1 ? "" : "/").concat(normalizedDir);
|
|
4241
4241
|
for (var _i = 0, _a = profile.nodes; _i < _a.length; _i++) {
|
|
4242
4242
|
var node = _a[_i];
|
|
4243
4243
|
if (node.callFrame.url) {
|
|
@@ -4246,7 +4246,7 @@ var ts;
|
|
|
4246
4246
|
node.callFrame.url = ts.getRelativePathToDirectoryOrUrl(fileUrlRoot, url, fileUrlRoot, ts.createGetCanonicalFileName(useCaseSensitiveFileNames), true);
|
|
4247
4247
|
}
|
|
4248
4248
|
else if (!nativePattern.test(url)) {
|
|
4249
|
-
node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external"
|
|
4249
|
+
node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, "external".concat(externalFileCounter, ".js"))).get(url);
|
|
4250
4250
|
externalFileCounter++;
|
|
4251
4251
|
}
|
|
4252
4252
|
}
|
|
@@ -4262,7 +4262,7 @@ var ts;
|
|
|
4262
4262
|
if (!err) {
|
|
4263
4263
|
try {
|
|
4264
4264
|
if ((_b = statSync(profilePath)) === null || _b === void 0 ? void 0 : _b.isDirectory()) {
|
|
4265
|
-
profilePath = _path.join(profilePath, (new Date()).toISOString().replace(/:/g, "-")
|
|
4265
|
+
profilePath = _path.join(profilePath, "".concat((new Date()).toISOString().replace(/:/g, "-"), "+P").concat(process.pid, ".cpuprofile"));
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
catch (_c) {
|
|
@@ -4347,7 +4347,7 @@ var ts;
|
|
|
4347
4347
|
}
|
|
4348
4348
|
};
|
|
4349
4349
|
function invokeCallbackAndUpdateWatcher(createWatcher) {
|
|
4350
|
-
sysLog("sysLog:: "
|
|
4350
|
+
sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing watcher to ").concat(createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing", "FileSystemEntryWatcher"));
|
|
4351
4351
|
callback("rename", "");
|
|
4352
4352
|
if (watcher) {
|
|
4353
4353
|
watcher.close();
|
|
@@ -4364,7 +4364,7 @@ var ts;
|
|
|
4364
4364
|
}
|
|
4365
4365
|
}
|
|
4366
4366
|
if (hitSystemWatcherLimit) {
|
|
4367
|
-
sysLog("sysLog:: "
|
|
4367
|
+
sysLog("sysLog:: ".concat(fileOrDirectory, ":: Defaulting to fsWatchFile"));
|
|
4368
4368
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
4369
4369
|
}
|
|
4370
4370
|
try {
|
|
@@ -4376,7 +4376,7 @@ var ts;
|
|
|
4376
4376
|
}
|
|
4377
4377
|
catch (e) {
|
|
4378
4378
|
hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC");
|
|
4379
|
-
sysLog("sysLog:: "
|
|
4379
|
+
sysLog("sysLog:: ".concat(fileOrDirectory, ":: Changing to fsWatchFile"));
|
|
4380
4380
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
4381
4381
|
}
|
|
4382
4382
|
}
|
|
@@ -7082,7 +7082,7 @@ var ts;
|
|
|
7082
7082
|
line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;
|
|
7083
7083
|
}
|
|
7084
7084
|
else {
|
|
7085
|
-
ts.Debug.fail("Bad line number. Line: "
|
|
7085
|
+
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"));
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
7088
7088
|
var res = lineStarts[line] + character;
|
|
@@ -9597,7 +9597,7 @@ var ts;
|
|
|
9597
9597
|
: "linkplain";
|
|
9598
9598
|
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
9599
9599
|
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
9600
|
-
return "{@"
|
|
9600
|
+
return "{@".concat(kind, " ").concat(name).concat(space).concat(link.text, "}");
|
|
9601
9601
|
}
|
|
9602
9602
|
function getEffectiveTypeParameterDeclarations(node) {
|
|
9603
9603
|
if (ts.isJSDocSignature(node)) {
|
|
@@ -10691,11 +10691,11 @@ var ts;
|
|
|
10691
10691
|
}
|
|
10692
10692
|
function packageIdToPackageName(_a) {
|
|
10693
10693
|
var name = _a.name, subModuleName = _a.subModuleName;
|
|
10694
|
-
return subModuleName ? name
|
|
10694
|
+
return subModuleName ? "".concat(name, "/").concat(subModuleName) : name;
|
|
10695
10695
|
}
|
|
10696
10696
|
ts.packageIdToPackageName = packageIdToPackageName;
|
|
10697
10697
|
function packageIdToString(packageId) {
|
|
10698
|
-
return packageIdToPackageName(packageId)
|
|
10698
|
+
return "".concat(packageIdToPackageName(packageId), "@").concat(packageId.version);
|
|
10699
10699
|
}
|
|
10700
10700
|
ts.packageIdToString = packageIdToString;
|
|
10701
10701
|
function typeDirectiveIsEqualTo(oldResolution, newResolution) {
|
|
@@ -10769,7 +10769,7 @@ var ts;
|
|
|
10769
10769
|
function nodePosToString(node) {
|
|
10770
10770
|
var file = getSourceFileOfNode(node);
|
|
10771
10771
|
var loc = ts.getLineAndCharacterOfPosition(file, node.pos);
|
|
10772
|
-
return file.fileName
|
|
10772
|
+
return "".concat(file.fileName, "(").concat(loc.line + 1, ",").concat(loc.character + 1, ")");
|
|
10773
10773
|
}
|
|
10774
10774
|
ts.nodePosToString = nodePosToString;
|
|
10775
10775
|
function getEndLinePosition(line, sourceFile) {
|
|
@@ -10870,7 +10870,7 @@ var ts;
|
|
|
10870
10870
|
ts.isPinnedComment = isPinnedComment;
|
|
10871
10871
|
function createCommentDirectivesMap(sourceFile, commentDirectives) {
|
|
10872
10872
|
var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([
|
|
10873
|
-
""
|
|
10873
|
+
"".concat(ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line),
|
|
10874
10874
|
commentDirective,
|
|
10875
10875
|
]); }));
|
|
10876
10876
|
var usedLines = new ts.Map();
|
|
@@ -10887,10 +10887,10 @@ var ts;
|
|
|
10887
10887
|
});
|
|
10888
10888
|
}
|
|
10889
10889
|
function markUsed(line) {
|
|
10890
|
-
if (!directivesByLine.has(""
|
|
10890
|
+
if (!directivesByLine.has("".concat(line))) {
|
|
10891
10891
|
return false;
|
|
10892
10892
|
}
|
|
10893
|
-
usedLines.set(""
|
|
10893
|
+
usedLines.set("".concat(line), true);
|
|
10894
10894
|
return true;
|
|
10895
10895
|
}
|
|
10896
10896
|
}
|
|
@@ -11089,7 +11089,7 @@ var ts;
|
|
|
11089
11089
|
}
|
|
11090
11090
|
return node.text;
|
|
11091
11091
|
}
|
|
11092
|
-
return ts.Debug.fail("Literal kind '"
|
|
11092
|
+
return ts.Debug.fail("Literal kind '".concat(node.kind, "' not accounted for."));
|
|
11093
11093
|
}
|
|
11094
11094
|
ts.getLiteralText = getLiteralText;
|
|
11095
11095
|
function canUseOriginalText(node, flags) {
|
|
@@ -13424,11 +13424,11 @@ var ts;
|
|
|
13424
13424
|
}
|
|
13425
13425
|
ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;
|
|
13426
13426
|
function getPropertyNameForUniqueESSymbol(symbol) {
|
|
13427
|
-
return "__@"
|
|
13427
|
+
return "__@".concat(ts.getSymbolId(symbol), "@").concat(symbol.escapedName);
|
|
13428
13428
|
}
|
|
13429
13429
|
ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;
|
|
13430
13430
|
function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {
|
|
13431
|
-
return "__#"
|
|
13431
|
+
return "__#".concat(ts.getSymbolId(containingClassSymbol), "@").concat(description);
|
|
13432
13432
|
}
|
|
13433
13433
|
ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;
|
|
13434
13434
|
function isKnownSymbol(symbol) {
|
|
@@ -15725,7 +15725,7 @@ var ts;
|
|
|
15725
15725
|
}
|
|
15726
15726
|
ts.getJSXImplicitImportBase = getJSXImplicitImportBase;
|
|
15727
15727
|
function getJSXRuntimeImport(base, options) {
|
|
15728
|
-
return base ? base
|
|
15728
|
+
return base ? "".concat(base, "/").concat(options.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime") : undefined;
|
|
15729
15729
|
}
|
|
15730
15730
|
ts.getJSXRuntimeImport = getJSXRuntimeImport;
|
|
15731
15731
|
function hasZeroOrOneAsteriskCharacter(str) {
|
|
@@ -15823,15 +15823,15 @@ var ts;
|
|
|
15823
15823
|
}
|
|
15824
15824
|
var wildcardCharCodes = [42, 63];
|
|
15825
15825
|
ts.commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
|
|
15826
|
-
var implicitExcludePathRegexPattern = "(?!("
|
|
15826
|
+
var implicitExcludePathRegexPattern = "(?!(".concat(ts.commonPackageFolders.join("|"), ")(/|$))");
|
|
15827
15827
|
var filesMatcher = {
|
|
15828
15828
|
singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*",
|
|
15829
|
-
doubleAsteriskRegexFragment: "(/"
|
|
15829
|
+
doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
|
|
15830
15830
|
replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }
|
|
15831
15831
|
};
|
|
15832
15832
|
var directoriesMatcher = {
|
|
15833
15833
|
singleAsteriskRegexFragment: "[^/]*",
|
|
15834
|
-
doubleAsteriskRegexFragment: "(/"
|
|
15834
|
+
doubleAsteriskRegexFragment: "(/".concat(implicitExcludePathRegexPattern, "[^/.][^/]*)*?"),
|
|
15835
15835
|
replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }
|
|
15836
15836
|
};
|
|
15837
15837
|
var excludeMatcher = {
|
|
@@ -15849,9 +15849,9 @@ var ts;
|
|
|
15849
15849
|
if (!patterns || !patterns.length) {
|
|
15850
15850
|
return undefined;
|
|
15851
15851
|
}
|
|
15852
|
-
var pattern = patterns.map(function (pattern) { return "("
|
|
15852
|
+
var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|");
|
|
15853
15853
|
var terminator = usage === "exclude" ? "($|/)" : "$";
|
|
15854
|
-
return "^("
|
|
15854
|
+
return "^(".concat(pattern, ")").concat(terminator);
|
|
15855
15855
|
}
|
|
15856
15856
|
ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;
|
|
15857
15857
|
function getRegularExpressionsForWildcards(specs, basePath, usage) {
|
|
@@ -15869,7 +15869,7 @@ var ts;
|
|
|
15869
15869
|
ts.isImplicitGlob = isImplicitGlob;
|
|
15870
15870
|
function getPatternFromSpec(spec, basePath, usage) {
|
|
15871
15871
|
var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);
|
|
15872
|
-
return pattern && "^("
|
|
15872
|
+
return pattern && "^(".concat(pattern, ")").concat(usage === "exclude" ? "($|/)" : "$");
|
|
15873
15873
|
}
|
|
15874
15874
|
ts.getPatternFromSpec = getPatternFromSpec;
|
|
15875
15875
|
function getSubPatternFromSpec(spec, basePath, usage, _a) {
|
|
@@ -15935,7 +15935,7 @@ var ts;
|
|
|
15935
15935
|
currentDirectory = ts.normalizePath(currentDirectory);
|
|
15936
15936
|
var absolutePath = ts.combinePaths(currentDirectory, path);
|
|
15937
15937
|
return {
|
|
15938
|
-
includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^"
|
|
15938
|
+
includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), function (pattern) { return "^".concat(pattern, "$"); }),
|
|
15939
15939
|
includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
|
|
15940
15940
|
includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
|
|
15941
15941
|
excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
|
|
@@ -16180,7 +16180,7 @@ var ts;
|
|
|
16180
16180
|
ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;
|
|
16181
16181
|
function extensionFromPath(path) {
|
|
16182
16182
|
var ext = tryGetExtensionFromPath(path);
|
|
16183
|
-
return ext !== undefined ? ext : ts.Debug.fail("File "
|
|
16183
|
+
return ext !== undefined ? ext : ts.Debug.fail("File ".concat(path, " has unknown extension."));
|
|
16184
16184
|
}
|
|
16185
16185
|
ts.extensionFromPath = extensionFromPath;
|
|
16186
16186
|
function isAnySupportedFileExtension(path) {
|
|
@@ -21251,7 +21251,7 @@ var ts;
|
|
|
21251
21251
|
case 326: return "augments";
|
|
21252
21252
|
case 327: return "implements";
|
|
21253
21253
|
default:
|
|
21254
|
-
return ts.Debug.fail("Unsupported kind: "
|
|
21254
|
+
return ts.Debug.fail("Unsupported kind: ".concat(ts.Debug.formatSyntaxKind(kind)));
|
|
21255
21255
|
}
|
|
21256
21256
|
}
|
|
21257
21257
|
var rawTextScanner;
|
|
@@ -21570,7 +21570,7 @@ var ts;
|
|
|
21570
21570
|
};
|
|
21571
21571
|
var definedTextGetter_1 = function (path) {
|
|
21572
21572
|
var result = textGetter_1(path);
|
|
21573
|
-
return result !== undefined ? result : "/* Input file "
|
|
21573
|
+
return result !== undefined ? result : "/* Input file ".concat(path, " was missing */\r\n");
|
|
21574
21574
|
};
|
|
21575
21575
|
var buildInfo_1;
|
|
21576
21576
|
var getAndCacheBuildInfo_1 = function (getText) {
|
|
@@ -25232,7 +25232,7 @@ var ts;
|
|
|
25232
25232
|
for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {
|
|
25233
25233
|
var keyword = viableKeywordSuggestions_1[_i];
|
|
25234
25234
|
if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {
|
|
25235
|
-
return keyword
|
|
25235
|
+
return "".concat(keyword, " ").concat(expressionText.slice(keyword.length));
|
|
25236
25236
|
}
|
|
25237
25237
|
}
|
|
25238
25238
|
return undefined;
|
|
@@ -30741,7 +30741,7 @@ var ts;
|
|
|
30741
30741
|
if (namedArgRegExCache.has(name)) {
|
|
30742
30742
|
return namedArgRegExCache.get(name);
|
|
30743
30743
|
}
|
|
30744
|
-
var result = new RegExp("(\\s"
|
|
30744
|
+
var result = new RegExp("(\\s".concat(name, "\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"), "im");
|
|
30745
30745
|
namedArgRegExCache.set(name, result);
|
|
30746
30746
|
return result;
|
|
30747
30747
|
}
|
|
@@ -32151,8 +32151,8 @@ var ts;
|
|
|
32151
32151
|
}
|
|
32152
32152
|
ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;
|
|
32153
32153
|
function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
|
|
32154
|
-
var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'"
|
|
32155
|
-
return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--"
|
|
32154
|
+
var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", ");
|
|
32155
|
+
return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType);
|
|
32156
32156
|
}
|
|
32157
32157
|
function parseCustomTypeOption(opt, value, errors) {
|
|
32158
32158
|
return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors);
|
|
@@ -32869,10 +32869,10 @@ var ts;
|
|
|
32869
32869
|
var newValue = compilerOptionsMap.get(cmd.name);
|
|
32870
32870
|
var defaultValue = getDefaultValueForOption(cmd);
|
|
32871
32871
|
if (newValue !== defaultValue) {
|
|
32872
|
-
result.push(""
|
|
32872
|
+
result.push("".concat(tab).concat(cmd.name, ": ").concat(newValue));
|
|
32873
32873
|
}
|
|
32874
32874
|
else if (ts.hasProperty(ts.defaultInitCompilerOptions, cmd.name)) {
|
|
32875
|
-
result.push(""
|
|
32875
|
+
result.push("".concat(tab).concat(cmd.name, ": ").concat(defaultValue));
|
|
32876
32876
|
}
|
|
32877
32877
|
});
|
|
32878
32878
|
return result.join(newLine) + newLine;
|
|
@@ -32910,19 +32910,19 @@ var ts;
|
|
|
32910
32910
|
if (entries.length !== 0) {
|
|
32911
32911
|
entries.push({ value: "" });
|
|
32912
32912
|
}
|
|
32913
|
-
entries.push({ value: "/* "
|
|
32913
|
+
entries.push({ value: "/* ".concat(category, " */") });
|
|
32914
32914
|
for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
|
|
32915
32915
|
var option = options_1[_i];
|
|
32916
32916
|
var optionName = void 0;
|
|
32917
32917
|
if (compilerOptionsMap.has(option.name)) {
|
|
32918
|
-
optionName = "\""
|
|
32918
|
+
optionName = "\"".concat(option.name, "\": ").concat(JSON.stringify(compilerOptionsMap.get(option.name))).concat((seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ",");
|
|
32919
32919
|
}
|
|
32920
32920
|
else {
|
|
32921
|
-
optionName = "// \""
|
|
32921
|
+
optionName = "// \"".concat(option.name, "\": ").concat(JSON.stringify(getDefaultValueForOption(option)), ",");
|
|
32922
32922
|
}
|
|
32923
32923
|
entries.push({
|
|
32924
32924
|
value: optionName,
|
|
32925
|
-
description: "/* "
|
|
32925
|
+
description: "/* ".concat(option.description && ts.getLocaleSpecificMessage(option.description) || option.name, " */")
|
|
32926
32926
|
});
|
|
32927
32927
|
marginLength = Math.max(optionName.length, marginLength);
|
|
32928
32928
|
}
|
|
@@ -32930,24 +32930,24 @@ var ts;
|
|
|
32930
32930
|
var tab = makePadding(2);
|
|
32931
32931
|
var result = [];
|
|
32932
32932
|
result.push("{");
|
|
32933
|
-
result.push(tab
|
|
32934
|
-
result.push(""
|
|
32933
|
+
result.push("".concat(tab, "\"compilerOptions\": {"));
|
|
32934
|
+
result.push("".concat(tab).concat(tab, "/* ").concat(ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file), " */"));
|
|
32935
32935
|
result.push("");
|
|
32936
32936
|
for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {
|
|
32937
32937
|
var entry = entries_2[_a];
|
|
32938
32938
|
var value = entry.value, _b = entry.description, description = _b === void 0 ? "" : _b;
|
|
32939
|
-
result.push(value && ""
|
|
32939
|
+
result.push(value && "".concat(tab).concat(tab).concat(value).concat(description && (makePadding(marginLength - value.length + 2) + description)));
|
|
32940
32940
|
}
|
|
32941
32941
|
if (fileNames.length) {
|
|
32942
|
-
result.push(tab
|
|
32943
|
-
result.push(tab
|
|
32942
|
+
result.push("".concat(tab, "},"));
|
|
32943
|
+
result.push("".concat(tab, "\"files\": ["));
|
|
32944
32944
|
for (var i = 0; i < fileNames.length; i++) {
|
|
32945
|
-
result.push(""
|
|
32945
|
+
result.push("".concat(tab).concat(tab).concat(JSON.stringify(fileNames[i])).concat(i === fileNames.length - 1 ? "" : ","));
|
|
32946
32946
|
}
|
|
32947
|
-
result.push(tab
|
|
32947
|
+
result.push("".concat(tab, "]"));
|
|
32948
32948
|
}
|
|
32949
32949
|
else {
|
|
32950
|
-
result.push(tab
|
|
32950
|
+
result.push("".concat(tab, "}"));
|
|
32951
32951
|
}
|
|
32952
32952
|
result.push("}");
|
|
32953
32953
|
return result.join(newLine) + newLine;
|
|
@@ -33297,7 +33297,7 @@ var ts;
|
|
|
33297
33297
|
if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, "./") || ts.startsWith(extendedConfig, "../")) {
|
|
33298
33298
|
var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);
|
|
33299
33299
|
if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, ".json")) {
|
|
33300
|
-
extendedConfigPath = extendedConfigPath
|
|
33300
|
+
extendedConfigPath = "".concat(extendedConfigPath, ".json");
|
|
33301
33301
|
if (!host.fileExists(extendedConfigPath)) {
|
|
33302
33302
|
errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));
|
|
33303
33303
|
return undefined;
|
|
@@ -33493,7 +33493,7 @@ var ts;
|
|
|
33493
33493
|
if (ts.fileExtensionIs(file, ".json")) {
|
|
33494
33494
|
if (!jsonOnlyIncludeRegexes) {
|
|
33495
33495
|
var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, ".json"); });
|
|
33496
|
-
var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^"
|
|
33496
|
+
var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, "files"), function (pattern) { return "^".concat(pattern, "$"); });
|
|
33497
33497
|
jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;
|
|
33498
33498
|
}
|
|
33499
33499
|
var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });
|
|
@@ -33865,7 +33865,7 @@ var ts;
|
|
|
33865
33865
|
var bestVersionKey = result.version, bestVersionPaths = result.paths;
|
|
33866
33866
|
if (typeof bestVersionPaths !== "object") {
|
|
33867
33867
|
if (state.traceEnabled) {
|
|
33868
|
-
trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['"
|
|
33868
|
+
trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, "typesVersions['".concat(bestVersionKey, "']"), "object", typeof bestVersionPaths);
|
|
33869
33869
|
}
|
|
33870
33870
|
return;
|
|
33871
33871
|
}
|
|
@@ -34234,7 +34234,7 @@ var ts;
|
|
|
34234
34234
|
};
|
|
34235
34235
|
return cache;
|
|
34236
34236
|
function getUnderlyingCacheKey(specifier, mode) {
|
|
34237
|
-
var result = mode === undefined ? specifier : mode
|
|
34237
|
+
var result = mode === undefined ? specifier : "".concat(mode, "|").concat(specifier);
|
|
34238
34238
|
memoizedReverseKeys.set(result, [specifier, mode]);
|
|
34239
34239
|
return result;
|
|
34240
34240
|
}
|
|
@@ -34264,7 +34264,7 @@ var ts;
|
|
|
34264
34264
|
}
|
|
34265
34265
|
function getOrCreateCacheForModuleName(nonRelativeModuleName, mode, redirectedReference) {
|
|
34266
34266
|
ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));
|
|
34267
|
-
return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : mode
|
|
34267
|
+
return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === undefined ? nonRelativeModuleName : "".concat(mode, "|").concat(nonRelativeModuleName), createPerModuleNameCache);
|
|
34268
34268
|
}
|
|
34269
34269
|
function createPerModuleNameCache() {
|
|
34270
34270
|
var directoryPathMap = new ts.Map();
|
|
@@ -34392,10 +34392,10 @@ var ts;
|
|
|
34392
34392
|
result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);
|
|
34393
34393
|
break;
|
|
34394
34394
|
default:
|
|
34395
|
-
return ts.Debug.fail("Unexpected moduleResolution: "
|
|
34395
|
+
return ts.Debug.fail("Unexpected moduleResolution: ".concat(moduleResolution));
|
|
34396
34396
|
}
|
|
34397
34397
|
if (result && result.resolvedModule)
|
|
34398
|
-
ts.perfLogger.logInfoEvent("Module \""
|
|
34398
|
+
ts.perfLogger.logInfoEvent("Module \"".concat(moduleName, "\" resolved to \"").concat(result.resolvedModule.resolvedFileName, "\""));
|
|
34399
34399
|
ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? "" + result.resolvedModule.resolvedFileName : "null");
|
|
34400
34400
|
if (perFolderCache) {
|
|
34401
34401
|
perFolderCache.set(moduleName, resolutionMode, result);
|
|
@@ -34525,7 +34525,7 @@ var ts;
|
|
|
34525
34525
|
function resolveJSModule(moduleName, initialDir, host) {
|
|
34526
34526
|
var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;
|
|
34527
34527
|
if (!resolvedModule) {
|
|
34528
|
-
throw new Error("Could not resolve JS module '"
|
|
34528
|
+
throw new Error("Could not resolve JS module '".concat(moduleName, "' starting at '").concat(initialDir, "'. Looked in: ").concat(failedLookupLocations.join(", ")));
|
|
34529
34529
|
}
|
|
34530
34530
|
return resolvedModule.resolvedFileName;
|
|
34531
34531
|
}
|
|
@@ -34624,7 +34624,7 @@ var ts;
|
|
|
34624
34624
|
if (traceEnabled) {
|
|
34625
34625
|
trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);
|
|
34626
34626
|
}
|
|
34627
|
-
ts.Debug.assert(host.fileExists(real), path
|
|
34627
|
+
ts.Debug.assert(host.fileExists(real), "".concat(path, " linked to nonexistent file ").concat(real));
|
|
34628
34628
|
return real;
|
|
34629
34629
|
}
|
|
34630
34630
|
function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {
|
|
@@ -35056,7 +35056,7 @@ var ts;
|
|
|
35056
35056
|
return undefined;
|
|
35057
35057
|
}
|
|
35058
35058
|
var trailingParts = parts.slice(nameParts.length);
|
|
35059
|
-
return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : "."
|
|
35059
|
+
return loadModuleFromExports(scope, extensions, !ts.length(trailingParts) ? "." : ".".concat(ts.directorySeparator).concat(trailingParts.join(ts.directorySeparator)), state, cache, redirectedReference);
|
|
35060
35060
|
}
|
|
35061
35061
|
function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
|
|
35062
35062
|
if (!scope.packageJsonContent.exports) {
|
|
@@ -35368,7 +35368,7 @@ var ts;
|
|
|
35368
35368
|
return mangled;
|
|
35369
35369
|
}
|
|
35370
35370
|
function getTypesPackageName(packageName) {
|
|
35371
|
-
return "@types/"
|
|
35371
|
+
return "@types/".concat(mangleScopedPackageName(packageName));
|
|
35372
35372
|
}
|
|
35373
35373
|
ts.getTypesPackageName = getTypesPackageName;
|
|
35374
35374
|
function mangleScopedPackageName(packageName) {
|
|
@@ -35694,7 +35694,7 @@ var ts;
|
|
|
35694
35694
|
if (name) {
|
|
35695
35695
|
if (ts.isAmbientModule(node)) {
|
|
35696
35696
|
var moduleName = ts.getTextOfIdentifierOrLiteral(name);
|
|
35697
|
-
return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\""
|
|
35697
|
+
return (ts.isGlobalScopeAugmentation(node) ? "__global" : "\"".concat(moduleName, "\""));
|
|
35698
35698
|
}
|
|
35699
35699
|
if (name.kind === 161) {
|
|
35700
35700
|
var nameExpression = name.expression;
|
|
@@ -35743,7 +35743,7 @@ var ts;
|
|
|
35743
35743
|
case 315:
|
|
35744
35744
|
return (ts.isJSDocConstructSignature(node) ? "__new" : "__call");
|
|
35745
35745
|
case 163:
|
|
35746
|
-
ts.Debug.assert(node.parent.kind === 315, "Impossible parameter parent kind", function () { return "parent is: "
|
|
35746
|
+
ts.Debug.assert(node.parent.kind === 315, "Impossible parameter parent kind", function () { return "parent is: ".concat(ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind, ", expected JSDocFunctionType"); });
|
|
35747
35747
|
var functionType = node.parent;
|
|
35748
35748
|
var index = functionType.parameters.indexOf(node);
|
|
35749
35749
|
return "arg" + index;
|
|
@@ -35809,7 +35809,7 @@ var ts;
|
|
|
35809
35809
|
}
|
|
35810
35810
|
var relatedInformation_1 = [];
|
|
35811
35811
|
if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1) && symbol.flags & (2097152 | 788968 | 1920)) {
|
|
35812
|
-
relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { "
|
|
35812
|
+
relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, "export type { ".concat(ts.unescapeLeadingUnderscores(node.name.escapedText), " }")));
|
|
35813
35813
|
}
|
|
35814
35814
|
var declarationName_1 = ts.getNameOfDeclaration(node) || node;
|
|
35815
35815
|
ts.forEach(symbol.declarations, function (declaration, index) {
|
|
@@ -37631,7 +37631,7 @@ var ts;
|
|
|
37631
37631
|
}
|
|
37632
37632
|
}
|
|
37633
37633
|
function bindSourceFileAsExternalModule() {
|
|
37634
|
-
bindAnonymousDeclaration(file, 512, "\""
|
|
37634
|
+
bindAnonymousDeclaration(file, 512, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
|
|
37635
37635
|
}
|
|
37636
37636
|
function bindExportAssignment(node) {
|
|
37637
37637
|
if (!container.symbol || !container.symbol.exports) {
|
|
@@ -39350,7 +39350,7 @@ var ts;
|
|
|
39350
39350
|
if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
|
|
39351
39351
|
var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 ? sourceSymbolFile : targetSymbolFile;
|
|
39352
39352
|
var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
|
|
39353
|
-
var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path
|
|
39353
|
+
var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, "".concat(firstFile_1.path, "|").concat(secondFile_1.path), function () {
|
|
39354
39354
|
return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });
|
|
39355
39355
|
});
|
|
39356
39356
|
var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {
|
|
@@ -41634,7 +41634,7 @@ var ts;
|
|
|
41634
41634
|
var links = getSymbolLinks(symbol);
|
|
41635
41635
|
var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));
|
|
41636
41636
|
var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });
|
|
41637
|
-
var key = (useOnlyExternalAliasing ? 0 : 1
|
|
41637
|
+
var key = "".concat(useOnlyExternalAliasing ? 0 : 1, "|").concat(firstRelevantLocation && getNodeId(firstRelevantLocation), "|").concat(meaning);
|
|
41638
41638
|
if (cache.has(key)) {
|
|
41639
41639
|
return cache.get(key);
|
|
41640
41640
|
}
|
|
@@ -42402,7 +42402,7 @@ var ts;
|
|
|
42402
42402
|
context.symbolDepth = new ts.Map();
|
|
42403
42403
|
}
|
|
42404
42404
|
var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
|
|
42405
|
-
var key = getTypeId(type)
|
|
42405
|
+
var key = "".concat(getTypeId(type), "|").concat(context.flags);
|
|
42406
42406
|
if (links) {
|
|
42407
42407
|
links.serializedTypes || (links.serializedTypes = new ts.Map());
|
|
42408
42408
|
}
|
|
@@ -42657,7 +42657,7 @@ var ts;
|
|
|
42657
42657
|
}
|
|
42658
42658
|
}
|
|
42659
42659
|
if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {
|
|
42660
|
-
typeElements.push(ts.factory.createPropertySignature(undefined, "... "
|
|
42660
|
+
typeElements.push(ts.factory.createPropertySignature(undefined, "... ".concat(properties.length - i, " more ..."), undefined, undefined));
|
|
42661
42661
|
addPropertyToElementList(properties[properties.length - 1], context, typeElements);
|
|
42662
42662
|
break;
|
|
42663
42663
|
}
|
|
@@ -42765,7 +42765,7 @@ var ts;
|
|
|
42765
42765
|
else if (types.length > 2) {
|
|
42766
42766
|
return [
|
|
42767
42767
|
typeToTypeNodeHelper(types[0], context),
|
|
42768
|
-
ts.factory.createTypeReferenceNode("... "
|
|
42768
|
+
ts.factory.createTypeReferenceNode("... ".concat(types.length - 2, " more ..."), undefined),
|
|
42769
42769
|
typeToTypeNodeHelper(types[types.length - 1], context)
|
|
42770
42770
|
];
|
|
42771
42771
|
}
|
|
@@ -42778,7 +42778,7 @@ var ts;
|
|
|
42778
42778
|
var type = types_2[_i];
|
|
42779
42779
|
i++;
|
|
42780
42780
|
if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {
|
|
42781
|
-
result_5.push(ts.factory.createTypeReferenceNode("... "
|
|
42781
|
+
result_5.push(ts.factory.createTypeReferenceNode("... ".concat(types.length - i, " more ..."), undefined));
|
|
42782
42782
|
var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);
|
|
42783
42783
|
if (typeNode_1) {
|
|
42784
42784
|
result_5.push(typeNode_1);
|
|
@@ -43254,7 +43254,7 @@ var ts;
|
|
|
43254
43254
|
var text = rawtext;
|
|
43255
43255
|
while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {
|
|
43256
43256
|
i++;
|
|
43257
|
-
text = rawtext
|
|
43257
|
+
text = "".concat(rawtext, "_").concat(i);
|
|
43258
43258
|
}
|
|
43259
43259
|
if (text !== rawtext) {
|
|
43260
43260
|
result = ts.factory.createIdentifier(text, result.typeArguments);
|
|
@@ -43536,7 +43536,7 @@ var ts;
|
|
|
43536
43536
|
function getNameForJSDocFunctionParameter(p, index) {
|
|
43537
43537
|
return p.name && ts.isIdentifier(p.name) && p.name.escapedText === "this" ? "this"
|
|
43538
43538
|
: getEffectiveDotDotDotForParameter(p) ? "args"
|
|
43539
|
-
: "arg"
|
|
43539
|
+
: "arg".concat(index);
|
|
43540
43540
|
}
|
|
43541
43541
|
function rewriteModuleSpecifier(parent, lit) {
|
|
43542
43542
|
if (bundled) {
|
|
@@ -44345,7 +44345,7 @@ var ts;
|
|
|
44345
44345
|
}
|
|
44346
44346
|
return results_1;
|
|
44347
44347
|
}
|
|
44348
|
-
return ts.Debug.fail("Unhandled class member kind! "
|
|
44348
|
+
return ts.Debug.fail("Unhandled class member kind! ".concat(p.__debugFlags || p.flags));
|
|
44349
44349
|
};
|
|
44350
44350
|
}
|
|
44351
44351
|
function serializePropertySymbolForInterface(p, baseType) {
|
|
@@ -44415,7 +44415,7 @@ var ts;
|
|
|
44415
44415
|
if (ref) {
|
|
44416
44416
|
return ref;
|
|
44417
44417
|
}
|
|
44418
|
-
var tempName = getUnusedName(rootName
|
|
44418
|
+
var tempName = getUnusedName("".concat(rootName, "_base"));
|
|
44419
44419
|
var statement = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([
|
|
44420
44420
|
ts.factory.createVariableDeclaration(tempName, undefined, typeToTypeNodeHelper(staticType, context))
|
|
44421
44421
|
], 2));
|
|
@@ -44460,7 +44460,7 @@ var ts;
|
|
|
44460
44460
|
var original = input;
|
|
44461
44461
|
while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {
|
|
44462
44462
|
i++;
|
|
44463
|
-
input = original
|
|
44463
|
+
input = "".concat(original, "_").concat(i);
|
|
44464
44464
|
}
|
|
44465
44465
|
(_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);
|
|
44466
44466
|
if (id) {
|
|
@@ -44566,15 +44566,15 @@ var ts;
|
|
|
44566
44566
|
if (nameType.flags & 384) {
|
|
44567
44567
|
var name = "" + nameType.value;
|
|
44568
44568
|
if (!ts.isIdentifierText(name, ts.getEmitScriptTarget(compilerOptions)) && !ts.isNumericLiteralName(name)) {
|
|
44569
|
-
return "\""
|
|
44569
|
+
return "\"".concat(ts.escapeString(name, 34), "\"");
|
|
44570
44570
|
}
|
|
44571
44571
|
if (ts.isNumericLiteralName(name) && ts.startsWith(name, "-")) {
|
|
44572
|
-
return "["
|
|
44572
|
+
return "[".concat(name, "]");
|
|
44573
44573
|
}
|
|
44574
44574
|
return name;
|
|
44575
44575
|
}
|
|
44576
44576
|
if (nameType.flags & 8192) {
|
|
44577
|
-
return "["
|
|
44577
|
+
return "[".concat(getNameOfSymbolAsWritten(nameType.symbol, context), "]");
|
|
44578
44578
|
}
|
|
44579
44579
|
}
|
|
44580
44580
|
}
|
|
@@ -47019,7 +47019,7 @@ var ts;
|
|
|
47019
47019
|
!leftName ? rightName :
|
|
47020
47020
|
!rightName ? leftName :
|
|
47021
47021
|
undefined;
|
|
47022
|
-
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg"
|
|
47022
|
+
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
|
|
47023
47023
|
paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
|
|
47024
47024
|
params[i] = paramSymbol;
|
|
47025
47025
|
}
|
|
@@ -48732,7 +48732,7 @@ var ts;
|
|
|
48732
48732
|
return result;
|
|
48733
48733
|
}
|
|
48734
48734
|
function getAliasId(aliasSymbol, aliasTypeArguments) {
|
|
48735
|
-
return aliasSymbol ? "@"
|
|
48735
|
+
return aliasSymbol ? "@".concat(getSymbolId(aliasSymbol)) + (aliasTypeArguments ? ":".concat(getTypeListId(aliasTypeArguments)) : "") : "";
|
|
48736
48736
|
}
|
|
48737
48737
|
function getPropagatingFlagsOfTypes(types, excludeKinds) {
|
|
48738
48738
|
var result = 0;
|
|
@@ -48895,7 +48895,7 @@ var ts;
|
|
|
48895
48895
|
return undefined;
|
|
48896
48896
|
}
|
|
48897
48897
|
function getSymbolPath(symbol) {
|
|
48898
|
-
return symbol.parent ? getSymbolPath(symbol.parent)
|
|
48898
|
+
return symbol.parent ? "".concat(getSymbolPath(symbol.parent), ".").concat(symbol.escapedName) : symbol.escapedName;
|
|
48899
48899
|
}
|
|
48900
48900
|
function getUnresolvedSymbolForEntityName(name) {
|
|
48901
48901
|
var identifier = name.kind === 160 ? name.right :
|
|
@@ -48906,7 +48906,7 @@ var ts;
|
|
|
48906
48906
|
var parentSymbol = name.kind === 160 ? getUnresolvedSymbolForEntityName(name.left) :
|
|
48907
48907
|
name.kind === 205 ? getUnresolvedSymbolForEntityName(name.expression) :
|
|
48908
48908
|
undefined;
|
|
48909
|
-
var path = parentSymbol ? getSymbolPath(parentSymbol)
|
|
48909
|
+
var path = parentSymbol ? "".concat(getSymbolPath(parentSymbol), ".").concat(text) : text;
|
|
48910
48910
|
var result = unresolvedSymbols.get(path);
|
|
48911
48911
|
if (!result) {
|
|
48912
48912
|
unresolvedSymbols.set(path, result = createSymbol(524288, text, 1048576));
|
|
@@ -48972,7 +48972,7 @@ var ts;
|
|
|
48972
48972
|
if (substitute.flags & 3 || substitute === baseType) {
|
|
48973
48973
|
return baseType;
|
|
48974
48974
|
}
|
|
48975
|
-
var id = getTypeId(baseType)
|
|
48975
|
+
var id = "".concat(getTypeId(baseType), ">").concat(getTypeId(substitute));
|
|
48976
48976
|
var cached = substitutionTypes.get(id);
|
|
48977
48977
|
if (cached) {
|
|
48978
48978
|
return cached;
|
|
@@ -49816,9 +49816,9 @@ var ts;
|
|
|
49816
49816
|
return types[0];
|
|
49817
49817
|
}
|
|
49818
49818
|
var typeKey = !origin ? getTypeListId(types) :
|
|
49819
|
-
origin.flags & 1048576 ? "|"
|
|
49820
|
-
origin.flags & 2097152 ? "&"
|
|
49821
|
-
"#"
|
|
49819
|
+
origin.flags & 1048576 ? "|".concat(getTypeListId(origin.types)) :
|
|
49820
|
+
origin.flags & 2097152 ? "&".concat(getTypeListId(origin.types)) :
|
|
49821
|
+
"#".concat(origin.type.id, "|").concat(getTypeListId(types));
|
|
49822
49822
|
var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);
|
|
49823
49823
|
var type = unionTypes.get(id);
|
|
49824
49824
|
if (!type) {
|
|
@@ -50268,7 +50268,7 @@ var ts;
|
|
|
50268
50268
|
if (ts.every(newTexts, function (t) { return t === ""; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4); })) {
|
|
50269
50269
|
return stringType;
|
|
50270
50270
|
}
|
|
50271
|
-
var id = getTypeListId(newTypes)
|
|
50271
|
+
var id = "".concat(getTypeListId(newTypes), "|").concat(ts.map(newTexts, function (t) { return t.length; }).join(","), "|").concat(newTexts.join(""));
|
|
50272
50272
|
var type = templateLiteralTypes.get(id);
|
|
50273
50273
|
if (!type) {
|
|
50274
50274
|
templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));
|
|
@@ -50328,7 +50328,7 @@ var ts;
|
|
|
50328
50328
|
return str;
|
|
50329
50329
|
}
|
|
50330
50330
|
function getStringMappingTypeForGenericType(symbol, type) {
|
|
50331
|
-
var id = getSymbolId(symbol)
|
|
50331
|
+
var id = "".concat(getSymbolId(symbol), ",").concat(getTypeId(type));
|
|
50332
50332
|
var result = stringMappingTypes.get(id);
|
|
50333
50333
|
if (!result) {
|
|
50334
50334
|
stringMappingTypes.set(id, result = createStringMappingType(symbol, type));
|
|
@@ -51236,7 +51236,7 @@ var ts;
|
|
|
51236
51236
|
function createUniqueESSymbolType(symbol) {
|
|
51237
51237
|
var type = createType(8192);
|
|
51238
51238
|
type.symbol = symbol;
|
|
51239
|
-
type.escapedName = "__@"
|
|
51239
|
+
type.escapedName = "__@".concat(type.symbol.escapedName, "@").concat(getSymbolId(type.symbol));
|
|
51240
51240
|
return type;
|
|
51241
51241
|
}
|
|
51242
51242
|
function getESSymbolLikeTypeForNode(node) {
|
|
@@ -52757,20 +52757,20 @@ var ts;
|
|
|
52757
52757
|
switch (msg.code) {
|
|
52758
52758
|
case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {
|
|
52759
52759
|
if (path.indexOf("new ") === 0) {
|
|
52760
|
-
path = "("
|
|
52760
|
+
path = "(".concat(path, ")");
|
|
52761
52761
|
}
|
|
52762
52762
|
var str = "" + args[0];
|
|
52763
52763
|
if (path.length === 0) {
|
|
52764
|
-
path = ""
|
|
52764
|
+
path = "".concat(str);
|
|
52765
52765
|
}
|
|
52766
52766
|
else if (ts.isIdentifierText(str, ts.getEmitScriptTarget(compilerOptions))) {
|
|
52767
|
-
path = path
|
|
52767
|
+
path = "".concat(path, ".").concat(str);
|
|
52768
52768
|
}
|
|
52769
52769
|
else if (str[0] === "[" && str[str.length - 1] === "]") {
|
|
52770
|
-
path = ""
|
|
52770
|
+
path = "".concat(path).concat(str);
|
|
52771
52771
|
}
|
|
52772
52772
|
else {
|
|
52773
|
-
path = path
|
|
52773
|
+
path = "".concat(path, "[").concat(str, "]");
|
|
52774
52774
|
}
|
|
52775
52775
|
break;
|
|
52776
52776
|
}
|
|
@@ -52797,7 +52797,7 @@ var ts;
|
|
|
52797
52797
|
msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)
|
|
52798
52798
|
? ""
|
|
52799
52799
|
: "...";
|
|
52800
|
-
path = ""
|
|
52800
|
+
path = "".concat(prefix).concat(path, "(").concat(params, ")");
|
|
52801
52801
|
}
|
|
52802
52802
|
break;
|
|
52803
52803
|
}
|
|
@@ -52810,7 +52810,7 @@ var ts;
|
|
|
52810
52810
|
break;
|
|
52811
52811
|
}
|
|
52812
52812
|
default:
|
|
52813
|
-
return ts.Debug.fail("Unhandled Diagnostic: "
|
|
52813
|
+
return ts.Debug.fail("Unhandled Diagnostic: ".concat(msg.code));
|
|
52814
52814
|
}
|
|
52815
52815
|
}
|
|
52816
52816
|
if (path) {
|
|
@@ -54658,7 +54658,7 @@ var ts;
|
|
|
54658
54658
|
var constraintMarker = "";
|
|
54659
54659
|
var sourceId = getTypeReferenceId(source, 0);
|
|
54660
54660
|
var targetId = getTypeReferenceId(target, 0);
|
|
54661
|
-
return ""
|
|
54661
|
+
return "".concat(constraintMarker).concat(sourceId, ",").concat(targetId).concat(postFix);
|
|
54662
54662
|
function getTypeReferenceId(type, depth) {
|
|
54663
54663
|
if (depth === void 0) { depth = 0; }
|
|
54664
54664
|
var result = "" + type.target.id;
|
|
@@ -54694,7 +54694,7 @@ var ts;
|
|
|
54694
54694
|
var postFix = intersectionState ? ":" + intersectionState : "";
|
|
54695
54695
|
return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ?
|
|
54696
54696
|
getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) :
|
|
54697
|
-
source.id
|
|
54697
|
+
"".concat(source.id, ",").concat(target.id).concat(postFix);
|
|
54698
54698
|
}
|
|
54699
54699
|
function forEachProperty(prop, callback) {
|
|
54700
54700
|
if (ts.getCheckFlags(prop) & 6) {
|
|
@@ -56517,10 +56517,10 @@ var ts;
|
|
|
56517
56517
|
case 79:
|
|
56518
56518
|
if (!ts.isThisInTypeQuery(node)) {
|
|
56519
56519
|
var symbol = getResolvedSymbol(node);
|
|
56520
|
-
return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : "-1"
|
|
56520
|
+
return symbol !== unknownSymbol ? "".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType), "|").concat(getSymbolId(symbol)) : undefined;
|
|
56521
56521
|
}
|
|
56522
56522
|
case 108:
|
|
56523
|
-
return "0|"
|
|
56523
|
+
return "0|".concat(flowContainer ? getNodeId(flowContainer) : "-1", "|").concat(getTypeId(declaredType), "|").concat(getTypeId(initialType));
|
|
56524
56524
|
case 229:
|
|
56525
56525
|
case 211:
|
|
56526
56526
|
return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);
|
|
@@ -59837,7 +59837,7 @@ var ts;
|
|
|
59837
59837
|
!leftName ? rightName :
|
|
59838
59838
|
!rightName ? leftName :
|
|
59839
59839
|
undefined;
|
|
59840
|
-
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg"
|
|
59840
|
+
var paramSymbol = createSymbol(1 | (isOptional && !isRestParam ? 16777216 : 0), paramName || "arg".concat(i));
|
|
59841
59841
|
paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;
|
|
59842
59842
|
params[i] = paramSymbol;
|
|
59843
59843
|
}
|
|
@@ -68256,7 +68256,7 @@ var ts;
|
|
|
68256
68256
|
function getPropertyNameForKnownSymbolName(symbolName) {
|
|
68257
68257
|
var ctorType = getGlobalESSymbolConstructorSymbol(false);
|
|
68258
68258
|
var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
|
|
68259
|
-
return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@"
|
|
68259
|
+
return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
|
|
68260
68260
|
}
|
|
68261
68261
|
function getIterationTypesOfIterableSlow(type, resolver, errorNode) {
|
|
68262
68262
|
var _a;
|
|
@@ -74582,7 +74582,7 @@ var ts;
|
|
|
74582
74582
|
value >= 52 && value < 62 ? 48 + value - 52 :
|
|
74583
74583
|
value === 62 ? 43 :
|
|
74584
74584
|
value === 63 ? 47 :
|
|
74585
|
-
ts.Debug.fail(value
|
|
74585
|
+
ts.Debug.fail("".concat(value, ": not a base64 value"));
|
|
74586
74586
|
}
|
|
74587
74587
|
function base64FormatDecode(ch) {
|
|
74588
74588
|
return ch >= 65 && ch <= 90 ? ch - 65 :
|
|
@@ -74655,7 +74655,7 @@ var ts;
|
|
|
74655
74655
|
var mappings = ts.arrayFrom(decoder, processMapping);
|
|
74656
74656
|
if (decoder.error !== undefined) {
|
|
74657
74657
|
if (host.log) {
|
|
74658
|
-
host.log("Encountered error while decoding sourcemap: "
|
|
74658
|
+
host.log("Encountered error while decoding sourcemap: ".concat(decoder.error));
|
|
74659
74659
|
}
|
|
74660
74660
|
decodedMappings = ts.emptyArray;
|
|
74661
74661
|
}
|
|
@@ -77098,7 +77098,7 @@ var ts;
|
|
|
77098
77098
|
var propertyName = ts.isPropertyAccessExpression(originalNode)
|
|
77099
77099
|
? ts.declarationNameToString(originalNode.name)
|
|
77100
77100
|
: ts.getTextOfNode(originalNode.argumentExpression);
|
|
77101
|
-
ts.addSyntheticTrailingComment(substitute, 3, " "
|
|
77101
|
+
ts.addSyntheticTrailingComment(substitute, 3, " ".concat(propertyName, " "));
|
|
77102
77102
|
}
|
|
77103
77103
|
return substitute;
|
|
77104
77104
|
}
|
|
@@ -78348,8 +78348,8 @@ var ts;
|
|
|
78348
78348
|
}
|
|
78349
78349
|
function createHoistedVariableForClass(name, node) {
|
|
78350
78350
|
var className = getPrivateIdentifierEnvironment().className;
|
|
78351
|
-
var prefix = className ? "_"
|
|
78352
|
-
var identifier = factory.createUniqueName(prefix
|
|
78351
|
+
var prefix = className ? "_".concat(className) : "";
|
|
78352
|
+
var identifier = factory.createUniqueName("".concat(prefix, "_").concat(name), 16);
|
|
78353
78353
|
if (resolver.getNodeCheckFlags(node) & 524288) {
|
|
78354
78354
|
addBlockScopedVariable(identifier);
|
|
78355
78355
|
}
|
|
@@ -80007,7 +80007,7 @@ var ts;
|
|
|
80007
80007
|
specifierSourceImports = new ts.Map();
|
|
80008
80008
|
currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
|
|
80009
80009
|
}
|
|
80010
|
-
var generatedName = factory.createUniqueName("_"
|
|
80010
|
+
var generatedName = factory.createUniqueName("_".concat(name), 16 | 32 | 64);
|
|
80011
80011
|
var specifier = factory.createImportSpecifier(false, factory.createIdentifier(name), generatedName);
|
|
80012
80012
|
generatedName.generatedImportReference = specifier;
|
|
80013
80013
|
specifierSourceImports.set(name, specifier);
|
|
@@ -80948,11 +80948,11 @@ var ts;
|
|
|
80948
80948
|
}
|
|
80949
80949
|
else {
|
|
80950
80950
|
if (node.kind === 245) {
|
|
80951
|
-
labelMarker = "break-"
|
|
80951
|
+
labelMarker = "break-".concat(label.escapedText);
|
|
80952
80952
|
setLabeledJump(convertedLoopState, true, ts.idText(label), labelMarker);
|
|
80953
80953
|
}
|
|
80954
80954
|
else {
|
|
80955
|
-
labelMarker = "continue-"
|
|
80955
|
+
labelMarker = "continue-".concat(label.escapedText);
|
|
80956
80956
|
setLabeledJump(convertedLoopState, false, ts.idText(label), labelMarker);
|
|
80957
80957
|
}
|
|
80958
80958
|
}
|
|
@@ -86607,7 +86607,7 @@ var ts;
|
|
|
86607
86607
|
return getTypeAliasDeclarationVisibilityError;
|
|
86608
86608
|
}
|
|
86609
86609
|
else {
|
|
86610
|
-
return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: "
|
|
86610
|
+
return ts.Debug.assertNever(node, "Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(ts.SyntaxKind[node.kind]));
|
|
86611
86611
|
}
|
|
86612
86612
|
function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {
|
|
86613
86613
|
if (node.kind === 253 || node.kind === 202) {
|
|
@@ -86804,7 +86804,7 @@ var ts;
|
|
|
86804
86804
|
ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :
|
|
86805
86805
|
ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;
|
|
86806
86806
|
default:
|
|
86807
|
-
return ts.Debug.fail("Unknown parent for parameter: "
|
|
86807
|
+
return ts.Debug.fail("Unknown parent for parameter: ".concat(ts.SyntaxKind[node.parent.kind]));
|
|
86808
86808
|
}
|
|
86809
86809
|
}
|
|
86810
86810
|
function getTypeParameterConstraintVisibilityError() {
|
|
@@ -87491,7 +87491,7 @@ var ts;
|
|
|
87491
87491
|
while (ts.length(lateMarkedStatements)) {
|
|
87492
87492
|
var i = lateMarkedStatements.shift();
|
|
87493
87493
|
if (!ts.isLateVisibilityPaintedStatement(i)) {
|
|
87494
|
-
return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "
|
|
87494
|
+
return ts.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));
|
|
87495
87495
|
}
|
|
87496
87496
|
var priorNeedsDeclare = needsDeclare;
|
|
87497
87497
|
needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);
|
|
@@ -87656,7 +87656,7 @@ var ts;
|
|
|
87656
87656
|
return cleanup(input);
|
|
87657
87657
|
return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));
|
|
87658
87658
|
}
|
|
87659
|
-
default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: "
|
|
87659
|
+
default: ts.Debug.assertNever(input, "Attempted to process unhandled node kind: ".concat(ts.SyntaxKind[input.kind]));
|
|
87660
87660
|
}
|
|
87661
87661
|
}
|
|
87662
87662
|
if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {
|
|
@@ -87900,7 +87900,7 @@ var ts;
|
|
|
87900
87900
|
var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);
|
|
87901
87901
|
if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104) {
|
|
87902
87902
|
var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : "default";
|
|
87903
|
-
var newId_1 = factory.createUniqueName(oldId
|
|
87903
|
+
var newId_1 = factory.createUniqueName("".concat(oldId, "_base"), 16);
|
|
87904
87904
|
getSymbolAccessibilityDiagnostic = function () { return ({
|
|
87905
87905
|
diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
|
|
87906
87906
|
errorNode: extendsClause_1,
|
|
@@ -87937,7 +87937,7 @@ var ts;
|
|
|
87937
87937
|
}))));
|
|
87938
87938
|
}
|
|
87939
87939
|
}
|
|
87940
|
-
return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: "
|
|
87940
|
+
return ts.Debug.assertNever(input, "Unhandled top-level node in declaration emit: ".concat(ts.SyntaxKind[input.kind]));
|
|
87941
87941
|
function cleanup(node) {
|
|
87942
87942
|
if (isEnclosingDeclaration(input)) {
|
|
87943
87943
|
enclosingDeclaration = previousEnclosingDeclaration;
|
|
@@ -88706,13 +88706,13 @@ var ts;
|
|
|
88706
88706
|
if (ts.fileExtensionIs(inputFileName, ".json"))
|
|
88707
88707
|
return;
|
|
88708
88708
|
if (js && configFile.options.sourceMap) {
|
|
88709
|
-
addOutput(js
|
|
88709
|
+
addOutput("".concat(js, ".map"));
|
|
88710
88710
|
}
|
|
88711
88711
|
if (ts.getEmitDeclarations(configFile.options)) {
|
|
88712
88712
|
var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);
|
|
88713
88713
|
addOutput(dts);
|
|
88714
88714
|
if (configFile.options.declarationMap) {
|
|
88715
|
-
addOutput(dts
|
|
88715
|
+
addOutput("".concat(dts, ".map"));
|
|
88716
88716
|
}
|
|
88717
88717
|
}
|
|
88718
88718
|
}
|
|
@@ -88772,7 +88772,7 @@ var ts;
|
|
|
88772
88772
|
function getFirstProjectOutput(configFile, ignoreCase) {
|
|
88773
88773
|
if (ts.outFile(configFile.options)) {
|
|
88774
88774
|
var jsFilePath = getOutputPathsForBundle(configFile.options, false).jsFilePath;
|
|
88775
|
-
return ts.Debug.checkDefined(jsFilePath, "project "
|
|
88775
|
+
return ts.Debug.checkDefined(jsFilePath, "project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
|
|
88776
88776
|
}
|
|
88777
88777
|
var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });
|
|
88778
88778
|
for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {
|
|
@@ -88791,7 +88791,7 @@ var ts;
|
|
|
88791
88791
|
var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);
|
|
88792
88792
|
if (buildInfoPath)
|
|
88793
88793
|
return buildInfoPath;
|
|
88794
|
-
return ts.Debug.fail("project "
|
|
88794
|
+
return ts.Debug.fail("project ".concat(configFile.options.configFilePath, " expected to have at least one output"));
|
|
88795
88795
|
}
|
|
88796
88796
|
ts.getFirstProjectOutput = getFirstProjectOutput;
|
|
88797
88797
|
function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {
|
|
@@ -89001,7 +89001,7 @@ var ts;
|
|
|
89001
89001
|
if (sourceMappingURL) {
|
|
89002
89002
|
if (!writer.isAtStartOfLine())
|
|
89003
89003
|
writer.rawWrite(newLine);
|
|
89004
|
-
writer.writeComment("//# "
|
|
89004
|
+
writer.writeComment("//# ".concat("sourceMappingURL", "=").concat(sourceMappingURL));
|
|
89005
89005
|
}
|
|
89006
89006
|
if (sourceMapFilePath) {
|
|
89007
89007
|
var sourceMap = sourceMapGenerator.toString();
|
|
@@ -89041,7 +89041,7 @@ var ts;
|
|
|
89041
89041
|
if (mapOptions.inlineSourceMap) {
|
|
89042
89042
|
var sourceMapText = sourceMapGenerator.toString();
|
|
89043
89043
|
var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);
|
|
89044
|
-
return "data:application/json;base64,"
|
|
89044
|
+
return "data:application/json;base64,".concat(base64SourceMapText);
|
|
89045
89045
|
}
|
|
89046
89046
|
var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));
|
|
89047
89047
|
if (mapOptions.mapRoot) {
|
|
@@ -89205,7 +89205,7 @@ var ts;
|
|
|
89205
89205
|
return;
|
|
89206
89206
|
break;
|
|
89207
89207
|
default:
|
|
89208
|
-
ts.Debug.fail("Unexpected path: "
|
|
89208
|
+
ts.Debug.fail("Unexpected path: ".concat(name));
|
|
89209
89209
|
}
|
|
89210
89210
|
outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });
|
|
89211
89211
|
},
|
|
@@ -90013,7 +90013,7 @@ var ts;
|
|
|
90013
90013
|
return writeTokenNode(node, writeKeyword);
|
|
90014
90014
|
if (ts.isTokenKind(node.kind))
|
|
90015
90015
|
return writeTokenNode(node, writePunctuation);
|
|
90016
|
-
ts.Debug.fail("Unhandled SyntaxKind: "
|
|
90016
|
+
ts.Debug.fail("Unhandled SyntaxKind: ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
|
|
90017
90017
|
}
|
|
90018
90018
|
function emitMappedTypeParameter(node) {
|
|
90019
90019
|
emit(node.name);
|
|
@@ -90153,14 +90153,14 @@ var ts;
|
|
|
90153
90153
|
}
|
|
90154
90154
|
}
|
|
90155
90155
|
function emitPlaceholder(hint, node, snippet) {
|
|
90156
|
-
nonEscapingWrite("${"
|
|
90156
|
+
nonEscapingWrite("${".concat(snippet.order, ":"));
|
|
90157
90157
|
pipelineEmitWithHintWorker(hint, node, false);
|
|
90158
90158
|
nonEscapingWrite("}");
|
|
90159
90159
|
}
|
|
90160
90160
|
function emitTabStop(hint, node, snippet) {
|
|
90161
|
-
ts.Debug.assert(node.kind === 235, "A tab stop cannot be attached to a node of kind "
|
|
90161
|
+
ts.Debug.assert(node.kind === 235, "A tab stop cannot be attached to a node of kind ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));
|
|
90162
90162
|
ts.Debug.assert(hint !== 5, "A tab stop cannot be attached to an embedded statement.");
|
|
90163
|
-
nonEscapingWrite("$"
|
|
90163
|
+
nonEscapingWrite("$".concat(snippet.order));
|
|
90164
90164
|
}
|
|
90165
90165
|
function emitIdentifier(node) {
|
|
90166
90166
|
var writeText = node.symbol ? writeSymbol : write;
|
|
@@ -91823,17 +91823,17 @@ var ts;
|
|
|
91823
91823
|
writeLine();
|
|
91824
91824
|
}
|
|
91825
91825
|
if (currentSourceFile && currentSourceFile.moduleName) {
|
|
91826
|
-
writeComment("/// <amd-module name=\""
|
|
91826
|
+
writeComment("/// <amd-module name=\"".concat(currentSourceFile.moduleName, "\" />"));
|
|
91827
91827
|
writeLine();
|
|
91828
91828
|
}
|
|
91829
91829
|
if (currentSourceFile && currentSourceFile.amdDependencies) {
|
|
91830
91830
|
for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {
|
|
91831
91831
|
var dep = _b[_a];
|
|
91832
91832
|
if (dep.name) {
|
|
91833
|
-
writeComment("/// <amd-dependency name=\""
|
|
91833
|
+
writeComment("/// <amd-dependency name=\"".concat(dep.name, "\" path=\"").concat(dep.path, "\" />"));
|
|
91834
91834
|
}
|
|
91835
91835
|
else {
|
|
91836
|
-
writeComment("/// <amd-dependency path=\""
|
|
91836
|
+
writeComment("/// <amd-dependency path=\"".concat(dep.path, "\" />"));
|
|
91837
91837
|
}
|
|
91838
91838
|
writeLine();
|
|
91839
91839
|
}
|
|
@@ -91841,7 +91841,7 @@ var ts;
|
|
|
91841
91841
|
for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {
|
|
91842
91842
|
var directive = files_2[_c];
|
|
91843
91843
|
var pos = writer.getTextPos();
|
|
91844
|
-
writeComment("/// <reference path=\""
|
|
91844
|
+
writeComment("/// <reference path=\"".concat(directive.fileName, "\" />"));
|
|
91845
91845
|
if (bundleFileInfo)
|
|
91846
91846
|
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "reference", data: directive.fileName });
|
|
91847
91847
|
writeLine();
|
|
@@ -91849,7 +91849,7 @@ var ts;
|
|
|
91849
91849
|
for (var _d = 0, types_24 = types; _d < types_24.length; _d++) {
|
|
91850
91850
|
var directive = types_24[_d];
|
|
91851
91851
|
var pos = writer.getTextPos();
|
|
91852
|
-
writeComment("/// <reference types=\""
|
|
91852
|
+
writeComment("/// <reference types=\"".concat(directive.fileName, "\" />"));
|
|
91853
91853
|
if (bundleFileInfo)
|
|
91854
91854
|
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "type", data: directive.fileName });
|
|
91855
91855
|
writeLine();
|
|
@@ -91857,7 +91857,7 @@ var ts;
|
|
|
91857
91857
|
for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {
|
|
91858
91858
|
var directive = libs_1[_e];
|
|
91859
91859
|
var pos = writer.getTextPos();
|
|
91860
|
-
writeComment("/// <reference lib=\""
|
|
91860
|
+
writeComment("/// <reference lib=\"".concat(directive.fileName, "\" />"));
|
|
91861
91861
|
if (bundleFileInfo)
|
|
91862
91862
|
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "lib", data: directive.fileName });
|
|
91863
91863
|
writeLine();
|
|
@@ -92556,9 +92556,9 @@ var ts;
|
|
|
92556
92556
|
var textSourceNode = node.textSourceNode;
|
|
92557
92557
|
if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {
|
|
92558
92558
|
var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);
|
|
92559
|
-
return jsxAttributeEscape ? "\""
|
|
92560
|
-
neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\""
|
|
92561
|
-
"\""
|
|
92559
|
+
return jsxAttributeEscape ? "\"".concat(ts.escapeJsxAttributeString(text), "\"") :
|
|
92560
|
+
neverAsciiEscape || (ts.getEmitFlags(node) & 16777216) ? "\"".concat(ts.escapeString(text), "\"") :
|
|
92561
|
+
"\"".concat(ts.escapeNonAsciiString(text), "\"");
|
|
92562
92562
|
}
|
|
92563
92563
|
else {
|
|
92564
92564
|
return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
|
|
@@ -92957,8 +92957,8 @@ var ts;
|
|
|
92957
92957
|
}
|
|
92958
92958
|
function formatSynthesizedComment(comment) {
|
|
92959
92959
|
return comment.kind === 3
|
|
92960
|
-
? "/*"
|
|
92961
|
-
: "//"
|
|
92960
|
+
? "/*".concat(comment.text, "*/")
|
|
92961
|
+
: "//".concat(comment.text);
|
|
92962
92962
|
}
|
|
92963
92963
|
function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {
|
|
92964
92964
|
enterComment();
|
|
@@ -93572,18 +93572,18 @@ var ts;
|
|
|
93572
93572
|
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;
|
|
93573
93573
|
var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);
|
|
93574
93574
|
if (!newPath) {
|
|
93575
|
-
writeLog("Project: "
|
|
93575
|
+
writeLog("Project: ".concat(configFileName, " Detected ignored path: ").concat(fileOrDirectory));
|
|
93576
93576
|
return true;
|
|
93577
93577
|
}
|
|
93578
93578
|
fileOrDirectoryPath = newPath;
|
|
93579
93579
|
if (fileOrDirectoryPath === watchedDirPath)
|
|
93580
93580
|
return false;
|
|
93581
93581
|
if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
|
|
93582
|
-
writeLog("Project: "
|
|
93582
|
+
writeLog("Project: ".concat(configFileName, " Detected file add/remove of non supported extension: ").concat(fileOrDirectory));
|
|
93583
93583
|
return true;
|
|
93584
93584
|
}
|
|
93585
93585
|
if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
|
|
93586
|
-
writeLog("Project: "
|
|
93586
|
+
writeLog("Project: ".concat(configFileName, " Detected excluded file: ").concat(fileOrDirectory));
|
|
93587
93587
|
return true;
|
|
93588
93588
|
}
|
|
93589
93589
|
if (!program)
|
|
@@ -93602,7 +93602,7 @@ var ts;
|
|
|
93602
93602
|
var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;
|
|
93603
93603
|
if (hasSourceFile((filePathWithoutExtension + ".ts")) ||
|
|
93604
93604
|
hasSourceFile((filePathWithoutExtension + ".tsx"))) {
|
|
93605
|
-
writeLog("Project: "
|
|
93605
|
+
writeLog("Project: ".concat(configFileName, " Detected output file: ").concat(fileOrDirectory));
|
|
93606
93606
|
return true;
|
|
93607
93607
|
}
|
|
93608
93608
|
return false;
|
|
@@ -93670,36 +93670,36 @@ var ts;
|
|
|
93670
93670
|
host.useCaseSensitiveFileNames();
|
|
93671
93671
|
}
|
|
93672
93672
|
function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
|
|
93673
|
-
log("ExcludeWatcher:: Added:: "
|
|
93673
|
+
log("ExcludeWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
|
|
93674
93674
|
return {
|
|
93675
|
-
close: function () { return log("ExcludeWatcher:: Close:: "
|
|
93675
|
+
close: function () { return log("ExcludeWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo))); }
|
|
93676
93676
|
};
|
|
93677
93677
|
}
|
|
93678
93678
|
function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
93679
|
-
log("FileWatcher:: Added:: "
|
|
93679
|
+
log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
|
|
93680
93680
|
var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
93681
93681
|
return {
|
|
93682
93682
|
close: function () {
|
|
93683
|
-
log("FileWatcher:: Close:: "
|
|
93683
|
+
log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
|
|
93684
93684
|
watcher.close();
|
|
93685
93685
|
}
|
|
93686
93686
|
};
|
|
93687
93687
|
}
|
|
93688
93688
|
function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
|
|
93689
|
-
var watchInfo = "DirectoryWatcher:: Added:: "
|
|
93689
|
+
var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
|
|
93690
93690
|
log(watchInfo);
|
|
93691
93691
|
var start = ts.timestamp();
|
|
93692
93692
|
var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
|
|
93693
93693
|
var elapsed = ts.timestamp() - start;
|
|
93694
|
-
log("Elapsed:: "
|
|
93694
|
+
log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
|
|
93695
93695
|
return {
|
|
93696
93696
|
close: function () {
|
|
93697
|
-
var watchInfo = "DirectoryWatcher:: Close:: "
|
|
93697
|
+
var watchInfo = "DirectoryWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
|
|
93698
93698
|
log(watchInfo);
|
|
93699
93699
|
var start = ts.timestamp();
|
|
93700
93700
|
watcher.close();
|
|
93701
93701
|
var elapsed = ts.timestamp() - start;
|
|
93702
|
-
log("Elapsed:: "
|
|
93702
|
+
log("Elapsed:: ".concat(elapsed, "ms ").concat(watchInfo));
|
|
93703
93703
|
}
|
|
93704
93704
|
};
|
|
93705
93705
|
}
|
|
@@ -93709,16 +93709,16 @@ var ts;
|
|
|
93709
93709
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
93710
93710
|
args[_i] = arguments[_i];
|
|
93711
93711
|
}
|
|
93712
|
-
var triggerredInfo = (key === "watchFile" ? "FileWatcher" : "DirectoryWatcher"
|
|
93712
|
+
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));
|
|
93713
93713
|
log(triggerredInfo);
|
|
93714
93714
|
var start = ts.timestamp();
|
|
93715
93715
|
cb.call.apply(cb, __spreadArray([undefined], args, false));
|
|
93716
93716
|
var elapsed = ts.timestamp() - start;
|
|
93717
|
-
log("Elapsed:: "
|
|
93717
|
+
log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
|
|
93718
93718
|
}, flags, options, detailInfo1, detailInfo2); };
|
|
93719
93719
|
}
|
|
93720
93720
|
function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
|
|
93721
|
-
return "WatchInfo: "
|
|
93721
|
+
return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
|
|
93722
93722
|
}
|
|
93723
93723
|
}
|
|
93724
93724
|
ts.getWatchFactory = getWatchFactory;
|
|
@@ -94008,12 +94008,12 @@ var ts;
|
|
|
94008
94008
|
}
|
|
94009
94009
|
ts.formatDiagnostics = formatDiagnostics;
|
|
94010
94010
|
function formatDiagnostic(diagnostic, host) {
|
|
94011
|
-
var errorMessage = ts.diagnosticCategoryName(diagnostic)
|
|
94011
|
+
var errorMessage = "".concat(ts.diagnosticCategoryName(diagnostic), " TS").concat(diagnostic.code, ": ").concat(flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())).concat(host.getNewLine());
|
|
94012
94012
|
if (diagnostic.file) {
|
|
94013
94013
|
var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character;
|
|
94014
94014
|
var fileName = diagnostic.file.fileName;
|
|
94015
94015
|
var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });
|
|
94016
|
-
return relativeFileName
|
|
94016
|
+
return "".concat(relativeFileName, "(").concat(line + 1, ",").concat(character + 1, "): ") + errorMessage;
|
|
94017
94017
|
}
|
|
94018
94018
|
return errorMessage;
|
|
94019
94019
|
}
|
|
@@ -94091,9 +94091,9 @@ var ts;
|
|
|
94091
94091
|
var output = "";
|
|
94092
94092
|
output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);
|
|
94093
94093
|
output += ":";
|
|
94094
|
-
output += color(""
|
|
94094
|
+
output += color("".concat(firstLine + 1), ForegroundColorEscapeSequences.Yellow);
|
|
94095
94095
|
output += ":";
|
|
94096
|
-
output += color(""
|
|
94096
|
+
output += color("".concat(firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);
|
|
94097
94097
|
return output;
|
|
94098
94098
|
}
|
|
94099
94099
|
ts.formatLocation = formatLocation;
|
|
@@ -94107,7 +94107,7 @@ var ts;
|
|
|
94107
94107
|
output += " - ";
|
|
94108
94108
|
}
|
|
94109
94109
|
output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
|
|
94110
|
-
output += formatColorAndReset(" TS"
|
|
94110
|
+
output += formatColorAndReset(" TS".concat(diagnostic.code, ": "), ForegroundColorEscapeSequences.Grey);
|
|
94111
94111
|
output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
|
|
94112
94112
|
if (diagnostic.file) {
|
|
94113
94113
|
output += host.getNewLine();
|
|
@@ -94207,7 +94207,7 @@ var ts;
|
|
|
94207
94207
|
var result = void 0;
|
|
94208
94208
|
var mode = getModeForResolutionAtIndex(containingFile, i);
|
|
94209
94209
|
i++;
|
|
94210
|
-
var cacheKey = mode !== undefined ? mode
|
|
94210
|
+
var cacheKey = mode !== undefined ? "".concat(mode, "|").concat(name) : name;
|
|
94211
94211
|
if (cache.has(cacheKey)) {
|
|
94212
94212
|
result = cache.get(cacheKey);
|
|
94213
94213
|
}
|
|
@@ -96078,7 +96078,7 @@ var ts;
|
|
|
96078
96078
|
path += (i === 2 ? "/" : "-") + components[i];
|
|
96079
96079
|
i++;
|
|
96080
96080
|
}
|
|
96081
|
-
var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_"
|
|
96081
|
+
var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_".concat(libFileName, "__.ts"));
|
|
96082
96082
|
var localOverrideModuleResult = ts.resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
|
|
96083
96083
|
if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
|
|
96084
96084
|
return localOverrideModuleResult.resolvedModule.resolvedFileName;
|
|
@@ -96847,10 +96847,10 @@ var ts;
|
|
|
96847
96847
|
}
|
|
96848
96848
|
function directoryExistsIfProjectReferenceDeclDir(dir) {
|
|
96849
96849
|
var dirPath = host.toPath(dir);
|
|
96850
|
-
var dirPathWithTrailingDirectorySeparator = ""
|
|
96850
|
+
var dirPathWithTrailingDirectorySeparator = "".concat(dirPath).concat(ts.directorySeparator);
|
|
96851
96851
|
return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||
|
|
96852
96852
|
ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||
|
|
96853
|
-
ts.startsWith(dirPath, declDirPath
|
|
96853
|
+
ts.startsWith(dirPath, "".concat(declDirPath, "/")); });
|
|
96854
96854
|
}
|
|
96855
96855
|
function handleDirectoryCouldBeSymlink(directory) {
|
|
96856
96856
|
var _a;
|
|
@@ -96898,7 +96898,7 @@ var ts;
|
|
|
96898
96898
|
var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));
|
|
96899
96899
|
if (isFile && result) {
|
|
96900
96900
|
var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());
|
|
96901
|
-
symlinkCache.setSymlinkedFile(fileOrDirectoryPath, ""
|
|
96901
|
+
symlinkCache.setSymlinkedFile(fileOrDirectoryPath, "".concat(symlinkedDirectory.real).concat(absolutePath.replace(new RegExp(directoryPath, "i"), "")));
|
|
96902
96902
|
}
|
|
96903
96903
|
return result;
|
|
96904
96904
|
}) || false;
|
|
@@ -97282,7 +97282,7 @@ var ts;
|
|
|
97282
97282
|
var emitOutput_1 = getFileEmitOutput(programOfThisState, sourceFile, true, cancellationToken, undefined, true);
|
|
97283
97283
|
var firstDts_1 = ts.firstOrUndefined(emitOutput_1.outputFiles);
|
|
97284
97284
|
if (firstDts_1) {
|
|
97285
|
-
ts.Debug.assert(ts.fileExtensionIsOneOf(firstDts_1.name, [".d.ts", ".d.mts", ".d.cts"]), "File extension for signature expected to be dts", function () { return "Found: "
|
|
97285
|
+
ts.Debug.assert(ts.fileExtensionIsOneOf(firstDts_1.name, [".d.ts", ".d.mts", ".d.cts"]), "File extension for signature expected to be dts", function () { return "Found: ".concat(ts.getAnyExtensionFromPath(firstDts_1.name), " for ").concat(firstDts_1.name, ":: All output files: ").concat(JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; }))); });
|
|
97286
97286
|
latestSignature = (computeHash || ts.generateDjb2Hash)(firstDts_1.text);
|
|
97287
97287
|
if (exportedModulesMapCache && latestSignature !== prevSignature) {
|
|
97288
97288
|
updateExportedModules(sourceFile, emitOutput_1.exportedModulesFromDeclarationEmit, exportedModulesMapCache);
|
|
@@ -97678,7 +97678,7 @@ var ts;
|
|
|
97678
97678
|
return;
|
|
97679
97679
|
}
|
|
97680
97680
|
else {
|
|
97681
|
-
ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: "
|
|
97681
|
+
ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), "Signature not updated for affected file: ".concat(affectedFile.fileName));
|
|
97682
97682
|
}
|
|
97683
97683
|
if (!state.compilerOptions.assumeChangesOnlyAffectDirectDependencies) {
|
|
97684
97684
|
forEachReferencingModulesOfExportOfAffectedFile(state, affectedFile, function (state, path) { return handleDtsMayChangeOf(state, path, cancellationToken, computeHash); });
|
|
@@ -98650,7 +98650,7 @@ var ts;
|
|
|
98650
98650
|
failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());
|
|
98651
98651
|
var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);
|
|
98652
98652
|
var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);
|
|
98653
|
-
ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: "
|
|
98653
|
+
ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, "FailedLookup: ".concat(failedLookupLocation, " failedLookupLocationPath: ").concat(failedLookupLocationPath));
|
|
98654
98654
|
if (failedLookupPathSplit.length > rootSplitLength + 1) {
|
|
98655
98655
|
return {
|
|
98656
98656
|
dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),
|
|
@@ -99572,7 +99572,7 @@ var ts;
|
|
|
99572
99572
|
}
|
|
99573
99573
|
function getJSExtensionForFile(fileName, options) {
|
|
99574
99574
|
var _a;
|
|
99575
|
-
return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension "
|
|
99575
|
+
return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail("Extension ".concat(ts.extensionFromPath(fileName), " is unsupported:: FileName:: ").concat(fileName));
|
|
99576
99576
|
}
|
|
99577
99577
|
function tryGetJSExtensionForFile(fileName, options) {
|
|
99578
99578
|
var ext = ts.tryGetExtensionFromPath(fileName);
|
|
@@ -99662,8 +99662,8 @@ var ts;
|
|
|
99662
99662
|
return pretty ?
|
|
99663
99663
|
function (diagnostic, newLine, options) {
|
|
99664
99664
|
clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);
|
|
99665
|
-
var output = "["
|
|
99666
|
-
output += ""
|
|
99665
|
+
var output = "[".concat(ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ");
|
|
99666
|
+
output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(newLine + newLine);
|
|
99667
99667
|
system.write(output);
|
|
99668
99668
|
} :
|
|
99669
99669
|
function (diagnostic, newLine, options) {
|
|
@@ -99671,8 +99671,8 @@ var ts;
|
|
|
99671
99671
|
if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {
|
|
99672
99672
|
output += newLine;
|
|
99673
99673
|
}
|
|
99674
|
-
output += getLocaleTimeString(system)
|
|
99675
|
-
output += ""
|
|
99674
|
+
output += "".concat(getLocaleTimeString(system), " - ");
|
|
99675
|
+
output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(getPlainDiagnosticFollowingNewLines(diagnostic, newLine));
|
|
99676
99676
|
system.write(output);
|
|
99677
99677
|
};
|
|
99678
99678
|
}
|
|
@@ -99694,7 +99694,7 @@ var ts;
|
|
|
99694
99694
|
.map(function (errorDiagnostic) {
|
|
99695
99695
|
if (errorDiagnostic.file === undefined)
|
|
99696
99696
|
return;
|
|
99697
|
-
return ""
|
|
99697
|
+
return "".concat(errorDiagnostic.file.fileName);
|
|
99698
99698
|
});
|
|
99699
99699
|
return filesInError.map(function (fileName) {
|
|
99700
99700
|
var diagnosticForFileName = ts.find(diagnostics, function (diagnostic) {
|
|
@@ -99727,7 +99727,7 @@ var ts;
|
|
|
99727
99727
|
if (errorCount === 0)
|
|
99728
99728
|
return "";
|
|
99729
99729
|
var nonNilFiles = filesInError.filter(function (fileInError) { return fileInError !== undefined; });
|
|
99730
|
-
var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return fileInError.fileName
|
|
99730
|
+
var distinctFileNamesWithLines = nonNilFiles.map(function (fileInError) { return "".concat(fileInError.fileName, ":").concat(fileInError.line); })
|
|
99731
99731
|
.filter(function (value, index, self) { return self.indexOf(value) === index; });
|
|
99732
99732
|
var firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
|
|
99733
99733
|
var d = errorCount === 1 ?
|
|
@@ -99740,7 +99740,7 @@ var ts;
|
|
|
99740
99740
|
ts.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1 :
|
|
99741
99741
|
ts.Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length === 1 ? firstFileReference : distinctFileNamesWithLines.length);
|
|
99742
99742
|
var suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : "";
|
|
99743
|
-
return ""
|
|
99743
|
+
return "".concat(newLine).concat(ts.flattenDiagnosticMessageText(d.messageText, newLine)).concat(newLine).concat(newLine).concat(suffix);
|
|
99744
99744
|
}
|
|
99745
99745
|
ts.getErrorSummaryText = getErrorSummaryText;
|
|
99746
99746
|
function createTabularErrorsDisplay(filesInError, host) {
|
|
@@ -99763,7 +99763,7 @@ var ts;
|
|
|
99763
99763
|
" ".repeat(leftPaddingGoal - errorCountDigitsLength)
|
|
99764
99764
|
: "";
|
|
99765
99765
|
var fileRef = prettyPathForFileError(file, host.getCurrentDirectory());
|
|
99766
|
-
tabularData += ""
|
|
99766
|
+
tabularData += "".concat(leftPadding).concat(errorCount, " ").concat(fileRef, "\n");
|
|
99767
99767
|
});
|
|
99768
99768
|
return tabularData;
|
|
99769
99769
|
}
|
|
@@ -99790,9 +99790,9 @@ var ts;
|
|
|
99790
99790
|
var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };
|
|
99791
99791
|
for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {
|
|
99792
99792
|
var file = _c[_i];
|
|
99793
|
-
write(""
|
|
99794
|
-
(_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" "
|
|
99795
|
-
(_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" "
|
|
99793
|
+
write("".concat(toFileName(file, relativeFileName)));
|
|
99794
|
+
(_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(" ".concat(fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText)); });
|
|
99795
|
+
(_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(" ".concat(d.messageText)); });
|
|
99796
99796
|
}
|
|
99797
99797
|
}
|
|
99798
99798
|
ts.explainFiles = explainFiles;
|
|
@@ -99830,7 +99830,7 @@ var ts;
|
|
|
99830
99830
|
if (isJsonFile && !ts.endsWith(includeSpec, ".json"))
|
|
99831
99831
|
return false;
|
|
99832
99832
|
var pattern = ts.getPatternFromSpec(includeSpec, basePath, "files");
|
|
99833
|
-
return !!pattern && ts.getRegexFromPattern("("
|
|
99833
|
+
return !!pattern && ts.getRegexFromPattern("(".concat(pattern, ")$"), useCaseSensitiveFileNames).test(fileName);
|
|
99834
99834
|
});
|
|
99835
99835
|
}
|
|
99836
99836
|
ts.getMatchedIncludeSpec = getMatchedIncludeSpec;
|
|
@@ -99839,7 +99839,7 @@ var ts;
|
|
|
99839
99839
|
var options = program.getCompilerOptions();
|
|
99840
99840
|
if (ts.isReferencedFile(reason)) {
|
|
99841
99841
|
var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);
|
|
99842
|
-
var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\""
|
|
99842
|
+
var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : "\"".concat(referenceLocation.text, "\"");
|
|
99843
99843
|
var message = void 0;
|
|
99844
99844
|
ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, "Only synthetic references are imports");
|
|
99845
99845
|
switch (reason.kind) {
|
|
@@ -99950,7 +99950,7 @@ var ts;
|
|
|
99950
99950
|
var currentDir_1 = program.getCurrentDirectory();
|
|
99951
99951
|
ts.forEach(emittedFiles, function (file) {
|
|
99952
99952
|
var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);
|
|
99953
|
-
write("TSFILE: "
|
|
99953
|
+
write("TSFILE: ".concat(filepath));
|
|
99954
99954
|
});
|
|
99955
99955
|
listFiles(program, write);
|
|
99956
99956
|
}
|
|
@@ -100257,7 +100257,7 @@ var ts;
|
|
|
100257
100257
|
}
|
|
100258
100258
|
var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;
|
|
100259
100259
|
var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
100260
|
-
writeLog("Current directory: "
|
|
100260
|
+
writeLog("Current directory: ".concat(currentDirectory, " CaseSensitiveFileNames: ").concat(useCaseSensitiveFileNames));
|
|
100261
100261
|
var configFileWatcher;
|
|
100262
100262
|
if (configFileName) {
|
|
100263
100263
|
configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);
|
|
@@ -100404,10 +100404,10 @@ var ts;
|
|
|
100404
100404
|
}
|
|
100405
100405
|
function createNewProgram(hasInvalidatedResolution) {
|
|
100406
100406
|
writeLog("CreatingProgramWith::");
|
|
100407
|
-
writeLog(" roots: "
|
|
100408
|
-
writeLog(" options: "
|
|
100407
|
+
writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
|
|
100408
|
+
writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
|
|
100409
100409
|
if (projectReferences)
|
|
100410
|
-
writeLog(" projectReferences: "
|
|
100410
|
+
writeLog(" projectReferences: ".concat(JSON.stringify(projectReferences)));
|
|
100411
100411
|
var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();
|
|
100412
100412
|
hasChangedCompilerOptions = false;
|
|
100413
100413
|
hasChangedConfigFileParsingErrors = false;
|
|
@@ -100549,7 +100549,7 @@ var ts;
|
|
|
100549
100549
|
return resolutionCache.invalidateResolutionsOfFailedLookupLocations();
|
|
100550
100550
|
}
|
|
100551
100551
|
var pending = clearInvalidateResolutionsOfFailedLookupLocations();
|
|
100552
|
-
writeLog("Scheduling invalidateFailedLookup"
|
|
100552
|
+
writeLog("Scheduling invalidateFailedLookup".concat(pending ? ", Cancelled earlier one" : ""));
|
|
100553
100553
|
timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
|
|
100554
100554
|
}
|
|
100555
100555
|
function invalidateResolutionsOfFailedLookup() {
|
|
@@ -100605,7 +100605,7 @@ var ts;
|
|
|
100605
100605
|
synchronizeProgram();
|
|
100606
100606
|
}
|
|
100607
100607
|
function reloadConfigFile() {
|
|
100608
|
-
writeLog("Reloading config file: "
|
|
100608
|
+
writeLog("Reloading config file: ".concat(configFileName));
|
|
100609
100609
|
reloadLevel = ts.ConfigFileProgramReloadLevel.None;
|
|
100610
100610
|
if (cachedDirectoryStructureHost) {
|
|
100611
100611
|
cachedDirectoryStructureHost.clearCache();
|
|
@@ -100643,7 +100643,7 @@ var ts;
|
|
|
100643
100643
|
return config.parsedCommandLine;
|
|
100644
100644
|
}
|
|
100645
100645
|
}
|
|
100646
|
-
writeLog("Loading config file: "
|
|
100646
|
+
writeLog("Loading config file: ".concat(configFileName));
|
|
100647
100647
|
var parsedCommandLine = host.getParsedCommandLine ?
|
|
100648
100648
|
host.getParsedCommandLine(configFileName) :
|
|
100649
100649
|
getParsedCommandLineFromConfigFileHost(configFileName);
|
|
@@ -100896,8 +100896,8 @@ var ts;
|
|
|
100896
100896
|
ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;
|
|
100897
100897
|
function createBuilderStatusReporter(system, pretty) {
|
|
100898
100898
|
return function (diagnostic) {
|
|
100899
|
-
var output = pretty ? "["
|
|
100900
|
-
output += ""
|
|
100899
|
+
var output = pretty ? "[".concat(ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey), "] ") : "".concat(ts.getLocaleTimeString(system), " - ");
|
|
100900
|
+
output += "".concat(ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)).concat(system.newLine + system.newLine);
|
|
100901
100901
|
system.write(output);
|
|
100902
100902
|
};
|
|
100903
100903
|
}
|
|
@@ -101640,7 +101640,7 @@ var ts;
|
|
|
101640
101640
|
function listEmittedFile(_a, proj, file) {
|
|
101641
101641
|
var write = _a.write;
|
|
101642
101642
|
if (write && proj.options.listEmittedFiles) {
|
|
101643
|
-
write("TSFILE: "
|
|
101643
|
+
write("TSFILE: ".concat(file));
|
|
101644
101644
|
}
|
|
101645
101645
|
}
|
|
101646
101646
|
function getOldProgram(_a, proj, parsed) {
|
|
@@ -101669,7 +101669,7 @@ var ts;
|
|
|
101669
101669
|
function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {
|
|
101670
101670
|
var canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !ts.outFile(program.getCompilerOptions());
|
|
101671
101671
|
reportAndStoreErrors(state, resolvedPath, diagnostics);
|
|
101672
|
-
state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType
|
|
101672
|
+
state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: "".concat(errorType, " errors") });
|
|
101673
101673
|
if (canEmitBuildInfo)
|
|
101674
101674
|
return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };
|
|
101675
101675
|
afterProgramDone(state, program, config);
|
|
@@ -101695,7 +101695,7 @@ var ts;
|
|
|
101695
101695
|
if (!host.fileExists(inputFile)) {
|
|
101696
101696
|
return {
|
|
101697
101697
|
type: ts.UpToDateStatusType.Unbuildable,
|
|
101698
|
-
reason: inputFile
|
|
101698
|
+
reason: "".concat(inputFile, " does not exist")
|
|
101699
101699
|
};
|
|
101700
101700
|
}
|
|
101701
101701
|
if (!force) {
|
|
@@ -102020,7 +102020,7 @@ var ts;
|
|
|
102020
102020
|
}
|
|
102021
102021
|
}
|
|
102022
102022
|
if (filesToDelete) {
|
|
102023
|
-
reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return "\r\n * "
|
|
102023
|
+
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(""));
|
|
102024
102024
|
}
|
|
102025
102025
|
return ts.ExitStatus.Success;
|
|
102026
102026
|
}
|
|
@@ -102370,7 +102370,7 @@ var ts;
|
|
|
102370
102370
|
};
|
|
102371
102371
|
}
|
|
102372
102372
|
function bold(str) {
|
|
102373
|
-
return "\u001B[1m"
|
|
102373
|
+
return "\u001B[1m".concat(str, "\u001B[22m");
|
|
102374
102374
|
}
|
|
102375
102375
|
var isWindows = sys.getEnvironmentVariable("OS") && ts.stringContains(sys.getEnvironmentVariable("OS").toLowerCase(), "windows");
|
|
102376
102376
|
var isWindowsTerminal = sys.getEnvironmentVariable("WT_SESSION");
|
|
@@ -102379,19 +102379,19 @@ var ts;
|
|
|
102379
102379
|
if (isWindows && !isWindowsTerminal && !isVSCode) {
|
|
102380
102380
|
return brightWhite(str);
|
|
102381
102381
|
}
|
|
102382
|
-
return "\u001B[94m"
|
|
102382
|
+
return "\u001B[94m".concat(str, "\u001B[39m");
|
|
102383
102383
|
}
|
|
102384
102384
|
var supportsRicherColors = sys.getEnvironmentVariable("COLORTERM") === "truecolor" || sys.getEnvironmentVariable("TERM") === "xterm-256color";
|
|
102385
102385
|
function blueBackground(str) {
|
|
102386
102386
|
if (supportsRicherColors) {
|
|
102387
|
-
return "\u001B[48;5;68m"
|
|
102387
|
+
return "\u001B[48;5;68m".concat(str, "\u001B[39;49m");
|
|
102388
102388
|
}
|
|
102389
102389
|
else {
|
|
102390
|
-
return "\u001B[44m"
|
|
102390
|
+
return "\u001B[44m".concat(str, "\u001B[39;49m");
|
|
102391
102391
|
}
|
|
102392
102392
|
}
|
|
102393
102393
|
function brightWhite(str) {
|
|
102394
|
-
return "\u001B[97m"
|
|
102394
|
+
return "\u001B[97m".concat(str, "\u001B[39m");
|
|
102395
102395
|
}
|
|
102396
102396
|
return {
|
|
102397
102397
|
bold: bold,
|
|
@@ -102401,7 +102401,7 @@ var ts;
|
|
|
102401
102401
|
};
|
|
102402
102402
|
}
|
|
102403
102403
|
function getDisplayNameTextOfOption(option) {
|
|
102404
|
-
return "--"
|
|
102404
|
+
return "--".concat(option.name).concat(option.shortName ? ", -".concat(option.shortName) : "");
|
|
102405
102405
|
}
|
|
102406
102406
|
function generateOptionOutput(sys, option, rightAlignOfLeft, leftAlignOfRight) {
|
|
102407
102407
|
var _a, _b;
|
|
@@ -102438,13 +102438,13 @@ var ts;
|
|
|
102438
102438
|
text.push(sys.newLine);
|
|
102439
102439
|
if (showAdditionalInfoOutput(valueCandidates, option)) {
|
|
102440
102440
|
if (valueCandidates) {
|
|
102441
|
-
text.push(valueCandidates.valueType
|
|
102441
|
+
text.push("".concat(valueCandidates.valueType, " ").concat(valueCandidates.possibleValues));
|
|
102442
102442
|
}
|
|
102443
102443
|
if (defaultValueDescription) {
|
|
102444
102444
|
if (valueCandidates)
|
|
102445
102445
|
text.push(sys.newLine);
|
|
102446
102446
|
var diagType = ts.getDiagnosticText(ts.Diagnostics.default_Colon);
|
|
102447
|
-
text.push(diagType
|
|
102447
|
+
text.push("".concat(diagType, " ").concat(defaultValueDescription));
|
|
102448
102448
|
}
|
|
102449
102449
|
text.push(sys.newLine);
|
|
102450
102450
|
}
|
|
@@ -102493,7 +102493,7 @@ var ts;
|
|
|
102493
102493
|
}
|
|
102494
102494
|
var curRight = remainRight.substr(0, rightCharacterNumber);
|
|
102495
102495
|
remainRight = remainRight.slice(rightCharacterNumber);
|
|
102496
|
-
res.push(""
|
|
102496
|
+
res.push("".concat(curLeft).concat(curRight));
|
|
102497
102497
|
isFirstLine = false;
|
|
102498
102498
|
}
|
|
102499
102499
|
return res;
|
|
@@ -102594,7 +102594,7 @@ var ts;
|
|
|
102594
102594
|
categoryMap.set(curCategory, optionsOfCurCategory);
|
|
102595
102595
|
}
|
|
102596
102596
|
categoryMap.forEach(function (value, key) {
|
|
102597
|
-
res.push("### "
|
|
102597
|
+
res.push("### ".concat(key).concat(sys.newLine).concat(sys.newLine));
|
|
102598
102598
|
res = __spreadArray(__spreadArray([], res, true), generateGroupOptionOutput(sys, value), true);
|
|
102599
102599
|
});
|
|
102600
102600
|
if (afterOptionsDescription) {
|
|
@@ -102604,7 +102604,7 @@ var ts;
|
|
|
102604
102604
|
}
|
|
102605
102605
|
function printEasyHelp(sys, simpleOptions) {
|
|
102606
102606
|
var colors = createColors(sys);
|
|
102607
|
-
var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler)
|
|
102607
|
+
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);
|
|
102608
102608
|
output.push(colors.bold(ts.getDiagnosticText(ts.Diagnostics.COMMON_COMMANDS)) + sys.newLine + sys.newLine);
|
|
102609
102609
|
example("tsc", ts.Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
|
|
102610
102610
|
example("tsc app.ts util.ts", ts.Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
|
|
@@ -102630,7 +102630,7 @@ var ts;
|
|
|
102630
102630
|
}
|
|
102631
102631
|
}
|
|
102632
102632
|
function printAllHelp(sys, compilerOptions, buildOptions, watchOptions) {
|
|
102633
|
-
var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler)
|
|
102633
|
+
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);
|
|
102634
102634
|
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/tsconfig-reference")), true);
|
|
102635
102635
|
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);
|
|
102636
102636
|
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);
|
|
@@ -102640,7 +102640,7 @@ var ts;
|
|
|
102640
102640
|
}
|
|
102641
102641
|
}
|
|
102642
102642
|
function printBuildHelp(sys, buildOptions) {
|
|
102643
|
-
var output = __spreadArray([], getHeader(sys, ts.getDiagnosticText(ts.Diagnostics.tsc_Colon_The_TypeScript_Compiler)
|
|
102643
|
+
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);
|
|
102644
102644
|
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);
|
|
102645
102645
|
for (var _i = 0, output_3 = output; _i < output_3.length; _i++) {
|
|
102646
102646
|
var line = output_3[_i];
|
|
@@ -103021,7 +103021,7 @@ var ts;
|
|
|
103021
103021
|
reportCountStatistic("Subtype cache size", caches.subtype);
|
|
103022
103022
|
reportCountStatistic("Strict subtype cache size", caches.strictSubtype);
|
|
103023
103023
|
if (isPerformanceEnabled) {
|
|
103024
|
-
ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic(name
|
|
103024
|
+
ts.performance.forEachMeasure(function (name, duration) { return reportTimeStatistic("".concat(name, " time"), duration); });
|
|
103025
103025
|
}
|
|
103026
103026
|
}
|
|
103027
103027
|
else if (isPerformanceEnabled) {
|
|
@@ -103092,7 +103092,7 @@ var ts;
|
|
|
103092
103092
|
// This file actually uses arguments passed on commandline and executes it
|
|
103093
103093
|
ts.Debug.loggingHost = {
|
|
103094
103094
|
log: function (_level, s) {
|
|
103095
|
-
ts.sys.write(""
|
|
103095
|
+
ts.sys.write("".concat(s || "").concat(ts.sys.newLine));
|
|
103096
103096
|
}
|
|
103097
103097
|
};
|
|
103098
103098
|
if (ts.Debug.isDebugging) {
|