typescript 5.3.0-dev.20230828 → 5.3.0-dev.20230830
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/tsc.js +105 -144
- package/lib/tsserver.js +101 -155
- package/lib/typescript.js +103 -152
- package/lib/typingsInstaller.js +19 -83
- package/package.json +2 -2
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230830`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -1580,12 +1580,6 @@ var ts = (() => {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
|
-
function padLeft(s, length2, padString = " ") {
|
|
1584
|
-
return length2 <= s.length ? s : padString.repeat(length2 - s.length) + s;
|
|
1585
|
-
}
|
|
1586
|
-
function padRight(s, length2, padString = " ") {
|
|
1587
|
-
return length2 <= s.length ? s : s + padString.repeat(length2 - s.length);
|
|
1588
|
-
}
|
|
1589
1583
|
function takeWhile(array, predicate) {
|
|
1590
1584
|
if (array) {
|
|
1591
1585
|
const len = array.length;
|
|
@@ -1606,19 +1600,10 @@ var ts = (() => {
|
|
|
1606
1600
|
return array.slice(index);
|
|
1607
1601
|
}
|
|
1608
1602
|
}
|
|
1609
|
-
function trimEndImpl(s) {
|
|
1610
|
-
let end = s.length - 1;
|
|
1611
|
-
while (end >= 0) {
|
|
1612
|
-
if (!isWhiteSpaceLike(s.charCodeAt(end)))
|
|
1613
|
-
break;
|
|
1614
|
-
end--;
|
|
1615
|
-
}
|
|
1616
|
-
return s.slice(0, end + 1);
|
|
1617
|
-
}
|
|
1618
1603
|
function isNodeLikeSystem() {
|
|
1619
1604
|
return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
|
|
1620
1605
|
}
|
|
1621
|
-
var emptyArray, emptyMap, emptySet, SortKind, elementAt, hasOwnProperty, fileNameLowerCaseRegExp, AssertionLevel, createUIStringComparer, uiComparerCaseSensitive, uiLocale
|
|
1606
|
+
var emptyArray, emptyMap, emptySet, SortKind, elementAt, hasOwnProperty, fileNameLowerCaseRegExp, AssertionLevel, createUIStringComparer, uiComparerCaseSensitive, uiLocale;
|
|
1622
1607
|
var init_core = __esm({
|
|
1623
1608
|
"src/compiler/core.ts"() {
|
|
1624
1609
|
"use strict";
|
|
@@ -1652,10 +1637,7 @@ var ts = (() => {
|
|
|
1652
1637
|
return AssertionLevel2;
|
|
1653
1638
|
})(AssertionLevel || {});
|
|
1654
1639
|
createUIStringComparer = (() => {
|
|
1655
|
-
|
|
1656
|
-
let enUSComparer;
|
|
1657
|
-
const stringComparerFactory = getStringComparerFactory();
|
|
1658
|
-
return createStringComparer;
|
|
1640
|
+
return createIntlCollatorStringComparer;
|
|
1659
1641
|
function compareWithCallback(a, b, comparer) {
|
|
1660
1642
|
if (a === b)
|
|
1661
1643
|
return 0 /* EqualTo */;
|
|
@@ -1670,45 +1652,7 @@ var ts = (() => {
|
|
|
1670
1652
|
const comparer = new Intl.Collator(locale, { usage: "sort", sensitivity: "variant" }).compare;
|
|
1671
1653
|
return (a, b) => compareWithCallback(a, b, comparer);
|
|
1672
1654
|
}
|
|
1673
|
-
function createLocaleCompareStringComparer(locale) {
|
|
1674
|
-
if (locale !== void 0)
|
|
1675
|
-
return createFallbackStringComparer();
|
|
1676
|
-
return (a, b) => compareWithCallback(a, b, compareStrings);
|
|
1677
|
-
function compareStrings(a, b) {
|
|
1678
|
-
return a.localeCompare(b);
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
function createFallbackStringComparer() {
|
|
1682
|
-
return (a, b) => compareWithCallback(a, b, compareDictionaryOrder);
|
|
1683
|
-
function compareDictionaryOrder(a, b) {
|
|
1684
|
-
return compareStrings(a.toUpperCase(), b.toUpperCase()) || compareStrings(a, b);
|
|
1685
|
-
}
|
|
1686
|
-
function compareStrings(a, b) {
|
|
1687
|
-
return a < b ? -1 /* LessThan */ : a > b ? 1 /* GreaterThan */ : 0 /* EqualTo */;
|
|
1688
|
-
}
|
|
1689
|
-
}
|
|
1690
|
-
function getStringComparerFactory() {
|
|
1691
|
-
if (typeof Intl === "object" && typeof Intl.Collator === "function") {
|
|
1692
|
-
return createIntlCollatorStringComparer;
|
|
1693
|
-
}
|
|
1694
|
-
if (typeof String.prototype.localeCompare === "function" && typeof String.prototype.toLocaleUpperCase === "function" && "a".localeCompare("B") < 0) {
|
|
1695
|
-
return createLocaleCompareStringComparer;
|
|
1696
|
-
}
|
|
1697
|
-
return createFallbackStringComparer;
|
|
1698
|
-
}
|
|
1699
|
-
function createStringComparer(locale) {
|
|
1700
|
-
if (locale === void 0) {
|
|
1701
|
-
return defaultComparer || (defaultComparer = stringComparerFactory(locale));
|
|
1702
|
-
} else if (locale === "en-US") {
|
|
1703
|
-
return enUSComparer || (enUSComparer = stringComparerFactory(locale));
|
|
1704
|
-
} else {
|
|
1705
|
-
return stringComparerFactory(locale);
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
1655
|
})();
|
|
1709
|
-
trimString = !!String.prototype.trim ? (s) => s.trim() : (s) => trimStringEnd(trimStringStart(s));
|
|
1710
|
-
trimStringEnd = !!String.prototype.trimEnd ? (s) => s.trimEnd() : trimEndImpl;
|
|
1711
|
-
trimStringStart = !!String.prototype.trimStart ? (s) => s.trimStart() : (s) => s.replace(/^\s+/g, "");
|
|
1712
1656
|
}
|
|
1713
1657
|
});
|
|
1714
1658
|
|
|
@@ -2807,18 +2751,18 @@ ${lanes.join("\n")}
|
|
|
2807
2751
|
}
|
|
2808
2752
|
function parseRange(text) {
|
|
2809
2753
|
const alternatives = [];
|
|
2810
|
-
for (let range of
|
|
2754
|
+
for (let range of text.trim().split(logicalOrRegExp)) {
|
|
2811
2755
|
if (!range)
|
|
2812
2756
|
continue;
|
|
2813
2757
|
const comparators = [];
|
|
2814
|
-
range =
|
|
2758
|
+
range = range.trim();
|
|
2815
2759
|
const match = hyphenRegExp.exec(range);
|
|
2816
2760
|
if (match) {
|
|
2817
2761
|
if (!parseHyphen(match[1], match[2], comparators))
|
|
2818
2762
|
return void 0;
|
|
2819
2763
|
} else {
|
|
2820
2764
|
for (const simple of range.split(whitespaceRegExp)) {
|
|
2821
|
-
const match2 = rangeRegExp.exec(
|
|
2765
|
+
const match2 = rangeRegExp.exec(simple.trim());
|
|
2822
2766
|
if (!match2 || !parseComparator(match2[1], match2[2], comparators))
|
|
2823
2767
|
return void 0;
|
|
2824
2768
|
}
|
|
@@ -10022,7 +9966,7 @@ ${lanes.join("\n")}
|
|
|
10022
9966
|
tokenFlags |= 2048 /* ContainsInvalidEscape */;
|
|
10023
9967
|
if (shouldEmitInvalidEscapeError) {
|
|
10024
9968
|
const code = parseInt(text.substring(start2 + 1, pos), 8);
|
|
10025
|
-
error2(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" +
|
|
9969
|
+
error2(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + code.toString(16).padStart(2, "0"));
|
|
10026
9970
|
return String.fromCharCode(code);
|
|
10027
9971
|
}
|
|
10028
9972
|
return text.substring(start2, pos);
|
|
@@ -10825,7 +10769,7 @@ ${lanes.join("\n")}
|
|
|
10825
10769
|
return token;
|
|
10826
10770
|
}
|
|
10827
10771
|
function appendIfCommentDirective(commentDirectives2, text2, commentDirectiveRegEx, lineStart) {
|
|
10828
|
-
const type = getDirectiveFromComment(
|
|
10772
|
+
const type = getDirectiveFromComment(text2.trimStart(), commentDirectiveRegEx);
|
|
10829
10773
|
if (type === void 0) {
|
|
10830
10774
|
return commentDirectives2;
|
|
10831
10775
|
}
|
|
@@ -11159,6 +11103,9 @@ ${lanes.join("\n")}
|
|
|
11159
11103
|
inJSDocType += inType ? 1 : -1;
|
|
11160
11104
|
}
|
|
11161
11105
|
}
|
|
11106
|
+
function codePointAt(s, i) {
|
|
11107
|
+
return s.codePointAt(i);
|
|
11108
|
+
}
|
|
11162
11109
|
function charSize(ch) {
|
|
11163
11110
|
if (ch >= 65536) {
|
|
11164
11111
|
return 2;
|
|
@@ -11177,7 +11124,7 @@ ${lanes.join("\n")}
|
|
|
11177
11124
|
function utf16EncodeAsString(codePoint) {
|
|
11178
11125
|
return utf16EncodeAsStringWorker(codePoint);
|
|
11179
11126
|
}
|
|
11180
|
-
var textToKeywordObj, textToKeyword, textToToken, unicodeES3IdentifierStart, unicodeES3IdentifierPart, unicodeES5IdentifierStart, unicodeES5IdentifierPart, unicodeESNextIdentifierStart, unicodeESNextIdentifierPart, commentDirectiveRegExSingleLine, commentDirectiveRegExMultiLine, tokenStrings, mergeConflictMarkerLength, shebangTriviaRegex,
|
|
11127
|
+
var textToKeywordObj, textToKeyword, textToToken, unicodeES3IdentifierStart, unicodeES3IdentifierPart, unicodeES5IdentifierStart, unicodeES5IdentifierPart, unicodeESNextIdentifierStart, unicodeESNextIdentifierPart, commentDirectiveRegExSingleLine, commentDirectiveRegExMultiLine, tokenStrings, mergeConflictMarkerLength, shebangTriviaRegex, utf16EncodeAsStringWorker;
|
|
11181
11128
|
var init_scanner = __esm({
|
|
11182
11129
|
"src/compiler/scanner.ts"() {
|
|
11183
11130
|
"use strict";
|
|
@@ -11343,20 +11290,6 @@ ${lanes.join("\n")}
|
|
|
11343
11290
|
tokenStrings = makeReverseMap(textToToken);
|
|
11344
11291
|
mergeConflictMarkerLength = "<<<<<<<".length;
|
|
11345
11292
|
shebangTriviaRegex = /^#!.*/;
|
|
11346
|
-
codePointAt = String.prototype.codePointAt ? (s, i) => s.codePointAt(i) : function codePointAt2(str, i) {
|
|
11347
|
-
const size = str.length;
|
|
11348
|
-
if (i < 0 || i >= size) {
|
|
11349
|
-
return void 0;
|
|
11350
|
-
}
|
|
11351
|
-
const first2 = str.charCodeAt(i);
|
|
11352
|
-
if (first2 >= 55296 && first2 <= 56319 && size > i + 1) {
|
|
11353
|
-
const second = str.charCodeAt(i + 1);
|
|
11354
|
-
if (second >= 56320 && second <= 57343) {
|
|
11355
|
-
return (first2 - 55296) * 1024 + second - 56320 + 65536;
|
|
11356
|
-
}
|
|
11357
|
-
}
|
|
11358
|
-
return first2;
|
|
11359
|
-
};
|
|
11360
11293
|
utf16EncodeAsStringWorker = String.fromCodePoint ? (codePoint) => String.fromCodePoint(codePoint) : utf16EncodeAsStringFallback;
|
|
11361
11294
|
}
|
|
11362
11295
|
});
|
|
@@ -13305,7 +13238,7 @@ ${lanes.join("\n")}
|
|
|
13305
13238
|
}
|
|
13306
13239
|
let text = sourceText.substring(includeTrivia ? node.pos : skipTrivia(sourceText, node.pos), node.end);
|
|
13307
13240
|
if (isJSDocTypeExpressionOrChild(node)) {
|
|
13308
|
-
text = text.split(/\r\n|\n|\r/).map((line) =>
|
|
13241
|
+
text = text.split(/\r\n|\n|\r/).map((line) => line.replace(/^\s*\*/, "").trimStart()).join("\n");
|
|
13309
13242
|
}
|
|
13310
13243
|
return text;
|
|
13311
13244
|
}
|
|
@@ -16605,7 +16538,7 @@ ${lanes.join("\n")}
|
|
|
16605
16538
|
}
|
|
16606
16539
|
function writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart) {
|
|
16607
16540
|
const end = Math.min(commentEnd, nextLineStart - 1);
|
|
16608
|
-
const currentLineText =
|
|
16541
|
+
const currentLineText = text.substring(pos, end).trim();
|
|
16609
16542
|
if (currentLineText) {
|
|
16610
16543
|
writer.writeComment(currentLineText);
|
|
16611
16544
|
if (end !== commentEnd) {
|
|
@@ -28379,7 +28312,7 @@ ${lanes.join("\n")}
|
|
|
28379
28312
|
return {};
|
|
28380
28313
|
if (!pragma.args)
|
|
28381
28314
|
return {};
|
|
28382
|
-
const args =
|
|
28315
|
+
const args = text.trim().split(/\s+/);
|
|
28383
28316
|
const argMap = {};
|
|
28384
28317
|
for (let i = 0; i < pragma.args.length; i++) {
|
|
28385
28318
|
const argument = pragma.args[i];
|
|
@@ -34216,7 +34149,7 @@ ${lanes.join("\n")}
|
|
|
34216
34149
|
}
|
|
34217
34150
|
function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) {
|
|
34218
34151
|
const namespaceFlag = flags & 32 /* Namespace */;
|
|
34219
|
-
const name = parseIdentifier();
|
|
34152
|
+
const name = flags & 8 /* NestedNamespace */ ? parseIdentifierName() : parseIdentifier();
|
|
34220
34153
|
const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration(
|
|
34221
34154
|
getNodePos(),
|
|
34222
34155
|
/*hasJSDoc*/
|
|
@@ -34686,8 +34619,6 @@ ${lanes.join("\n")}
|
|
|
34686
34619
|
PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter";
|
|
34687
34620
|
})(PropertyLikeParse || (PropertyLikeParse = {}));
|
|
34688
34621
|
function parseJSDocCommentWorker(start = 0, length2) {
|
|
34689
|
-
const saveParsingContext = parsingContext;
|
|
34690
|
-
parsingContext |= 1 << 25 /* JSDocComment */;
|
|
34691
34622
|
const content = sourceText;
|
|
34692
34623
|
const end = length2 === void 0 ? content.length : start + length2;
|
|
34693
34624
|
length2 = end - start;
|
|
@@ -34704,6 +34635,8 @@ ${lanes.join("\n")}
|
|
|
34704
34635
|
let commentsPos;
|
|
34705
34636
|
let comments = [];
|
|
34706
34637
|
const parts = [];
|
|
34638
|
+
const saveParsingContext = parsingContext;
|
|
34639
|
+
parsingContext |= 1 << 25 /* JSDocComment */;
|
|
34707
34640
|
const result = scanner2.scanRange(start + 3, length2 - 5, doJSDocScan);
|
|
34708
34641
|
parsingContext = saveParsingContext;
|
|
34709
34642
|
return result;
|
|
@@ -34795,7 +34728,7 @@ ${lanes.join("\n")}
|
|
|
34795
34728
|
nextTokenJSDoc();
|
|
34796
34729
|
}
|
|
34797
34730
|
}
|
|
34798
|
-
const trimmedComments =
|
|
34731
|
+
const trimmedComments = comments.join("").trimEnd();
|
|
34799
34732
|
if (parts.length && trimmedComments.length) {
|
|
34800
34733
|
parts.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd ?? start, commentsPos));
|
|
34801
34734
|
}
|
|
@@ -34811,7 +34744,7 @@ ${lanes.join("\n")}
|
|
|
34811
34744
|
}
|
|
34812
34745
|
function removeTrailingWhitespace(comments2) {
|
|
34813
34746
|
while (comments2.length) {
|
|
34814
|
-
const trimmed =
|
|
34747
|
+
const trimmed = comments2[comments2.length - 1].trimEnd();
|
|
34815
34748
|
if (trimmed === "") {
|
|
34816
34749
|
comments2.pop();
|
|
34817
34750
|
} else if (trimmed.length < comments2[comments2.length - 1].length) {
|
|
@@ -35051,7 +34984,7 @@ ${lanes.join("\n")}
|
|
|
35051
34984
|
}
|
|
35052
34985
|
}
|
|
35053
34986
|
removeLeadingNewlines(comments2);
|
|
35054
|
-
const trimmedComments =
|
|
34987
|
+
const trimmedComments = comments2.join("").trimEnd();
|
|
35055
34988
|
if (parts2.length) {
|
|
35056
34989
|
if (trimmedComments.length) {
|
|
35057
34990
|
parts2.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd2 ?? commentsPos2));
|
|
@@ -35977,10 +35910,10 @@ ${lanes.join("\n")}
|
|
|
35977
35910
|
return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames);
|
|
35978
35911
|
}
|
|
35979
35912
|
function parseCustomTypeOption(opt, value, errors) {
|
|
35980
|
-
return convertJsonOptionOfCustomType(opt,
|
|
35913
|
+
return convertJsonOptionOfCustomType(opt, (value ?? "").trim(), errors);
|
|
35981
35914
|
}
|
|
35982
35915
|
function parseListTypeOption(opt, value = "", errors) {
|
|
35983
|
-
value =
|
|
35916
|
+
value = value.trim();
|
|
35984
35917
|
if (startsWith(value, "-")) {
|
|
35985
35918
|
return void 0;
|
|
35986
35919
|
}
|
|
@@ -46045,6 +45978,7 @@ ${lanes.join("\n")}
|
|
|
46045
45978
|
var anyType = createIntrinsicType(1 /* Any */, "any");
|
|
46046
45979
|
var autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */);
|
|
46047
45980
|
var wildcardType = createIntrinsicType(1 /* Any */, "any");
|
|
45981
|
+
var blockedStringType = createIntrinsicType(1 /* Any */, "any");
|
|
46048
45982
|
var errorType = createIntrinsicType(1 /* Any */, "error");
|
|
46049
45983
|
var unresolvedType = createIntrinsicType(1 /* Any */, "unresolved");
|
|
46050
45984
|
var nonInferrableAnyType = createIntrinsicType(1 /* Any */, "any", 65536 /* ContainsWideningType */);
|
|
@@ -47731,7 +47665,7 @@ ${lanes.join("\n")}
|
|
|
47731
47665
|
}
|
|
47732
47666
|
}
|
|
47733
47667
|
function isSameScopeDescendentOf(initial, parent2, stopAt) {
|
|
47734
|
-
return !!parent2 && !!findAncestor(initial, (n) => n === parent2 || (n === stopAt || isFunctionLike(n) && (!getImmediatelyInvokedFunctionExpression(n) ||
|
|
47668
|
+
return !!parent2 && !!findAncestor(initial, (n) => n === parent2 || (n === stopAt || isFunctionLike(n) && (!getImmediatelyInvokedFunctionExpression(n) || getFunctionFlags(n) & 3 /* AsyncGenerator */) ? "quit" : false));
|
|
47735
47669
|
}
|
|
47736
47670
|
function getAnyImportSyntax(node) {
|
|
47737
47671
|
switch (node.kind) {
|
|
@@ -51955,6 +51889,7 @@ ${lanes.join("\n")}
|
|
|
51955
51889
|
}
|
|
51956
51890
|
}
|
|
51957
51891
|
function symbolTableToDeclarationStatements(symbolTable, context, bundled) {
|
|
51892
|
+
var _a;
|
|
51958
51893
|
const serializePropertySymbolForClass = makeSerializePropertySymbol(
|
|
51959
51894
|
factory.createPropertyDeclaration,
|
|
51960
51895
|
174 /* MethodDeclaration */,
|
|
@@ -51976,12 +51911,15 @@ ${lanes.join("\n")}
|
|
|
51976
51911
|
...oldcontext,
|
|
51977
51912
|
usedSymbolNames: new Set(oldcontext.usedSymbolNames),
|
|
51978
51913
|
remappedSymbolNames: /* @__PURE__ */ new Map(),
|
|
51914
|
+
remappedSymbolReferences: new Map((_a = oldcontext.remappedSymbolReferences) == null ? void 0 : _a.entries()),
|
|
51979
51915
|
tracker: void 0
|
|
51980
51916
|
};
|
|
51981
51917
|
const tracker = {
|
|
51982
51918
|
...oldcontext.tracker.inner,
|
|
51983
51919
|
trackSymbol: (sym, decl, meaning) => {
|
|
51984
|
-
var
|
|
51920
|
+
var _a2, _b;
|
|
51921
|
+
if ((_a2 = context.remappedSymbolNames) == null ? void 0 : _a2.has(getSymbolId(sym)))
|
|
51922
|
+
return false;
|
|
51985
51923
|
const accessibleResult = isSymbolAccessible(
|
|
51986
51924
|
sym,
|
|
51987
51925
|
decl,
|
|
@@ -51998,7 +51936,7 @@ ${lanes.join("\n")}
|
|
|
51998
51936
|
includePrivateSymbol(root);
|
|
51999
51937
|
}
|
|
52000
51938
|
}
|
|
52001
|
-
} else if ((
|
|
51939
|
+
} else if ((_b = oldcontext.tracker.inner) == null ? void 0 : _b.trackSymbol) {
|
|
52002
51940
|
return oldcontext.tracker.inner.trackSymbol(sym, decl, meaning);
|
|
52003
51941
|
}
|
|
52004
51942
|
return false;
|
|
@@ -52207,10 +52145,10 @@ ${lanes.join("\n")}
|
|
|
52207
52145
|
context = oldContext;
|
|
52208
52146
|
}
|
|
52209
52147
|
}
|
|
52210
|
-
function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias) {
|
|
52211
|
-
var
|
|
52212
|
-
const symbolName2 = unescapeLeadingUnderscores(
|
|
52213
|
-
const isDefault =
|
|
52148
|
+
function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias, escapedSymbolName = symbol.escapedName) {
|
|
52149
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
52150
|
+
const symbolName2 = unescapeLeadingUnderscores(escapedSymbolName);
|
|
52151
|
+
const isDefault = escapedSymbolName === "default" /* Default */;
|
|
52214
52152
|
if (isPrivate && !(context.flags & 131072 /* AllowAnonymousIdentifier */) && isStringANonContextualKeyword(symbolName2) && !isDefault) {
|
|
52215
52153
|
context.encounteredError = true;
|
|
52216
52154
|
return;
|
|
@@ -52221,7 +52159,7 @@ ${lanes.join("\n")}
|
|
|
52221
52159
|
isPrivate = true;
|
|
52222
52160
|
}
|
|
52223
52161
|
const modifierFlags = (!isPrivate ? 1 /* Export */ : 0) | (isDefault && !needsPostExportDefault ? 1024 /* Default */ : 0);
|
|
52224
|
-
const isConstMergedWithNS = symbol.flags & 1536 /* Module */ && symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */) &&
|
|
52162
|
+
const isConstMergedWithNS = symbol.flags & 1536 /* Module */ && symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */) && escapedSymbolName !== "export=" /* ExportEquals */;
|
|
52225
52163
|
const isConstMergedWithNSPrintableAsSignatureMerge = isConstMergedWithNS && isTypeRepresentableAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol);
|
|
52226
52164
|
if (symbol.flags & (16 /* Function */ | 8192 /* Method */) || isConstMergedWithNSPrintableAsSignatureMerge) {
|
|
52227
52165
|
serializeAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags);
|
|
@@ -52229,7 +52167,7 @@ ${lanes.join("\n")}
|
|
|
52229
52167
|
if (symbol.flags & 524288 /* TypeAlias */) {
|
|
52230
52168
|
serializeTypeAlias(symbol, symbolName2, modifierFlags);
|
|
52231
52169
|
}
|
|
52232
|
-
if (symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */ | 98304 /* Accessor */) &&
|
|
52170
|
+
if (symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */ | 98304 /* Accessor */) && escapedSymbolName !== "export=" /* ExportEquals */ && !(symbol.flags & 4194304 /* Prototype */) && !(symbol.flags & 32 /* Class */) && !(symbol.flags & 8192 /* Method */) && !isConstMergedWithNSPrintableAsSignatureMerge) {
|
|
52233
52171
|
if (propertyAsAlias) {
|
|
52234
52172
|
const createdExport = serializeMaybeAliasAssignment(symbol);
|
|
52235
52173
|
if (createdExport) {
|
|
@@ -52239,17 +52177,24 @@ ${lanes.join("\n")}
|
|
|
52239
52177
|
} else {
|
|
52240
52178
|
const type = getTypeOfSymbol(symbol);
|
|
52241
52179
|
const localName = getInternalSymbolName(symbol, symbolName2);
|
|
52242
|
-
if (
|
|
52180
|
+
if (type.symbol && type.symbol !== symbol && type.symbol.flags & 16 /* Function */ && some(type.symbol.declarations, isFunctionExpressionOrArrowFunction) && (((_a2 = type.symbol.members) == null ? void 0 : _a2.size) || ((_b = type.symbol.exports) == null ? void 0 : _b.size))) {
|
|
52181
|
+
if (!context.remappedSymbolReferences) {
|
|
52182
|
+
context.remappedSymbolReferences = /* @__PURE__ */ new Map();
|
|
52183
|
+
}
|
|
52184
|
+
context.remappedSymbolReferences.set(getSymbolId(type.symbol), symbol);
|
|
52185
|
+
serializeSymbolWorker(type.symbol, isPrivate, propertyAsAlias, escapedSymbolName);
|
|
52186
|
+
context.remappedSymbolReferences.delete(getSymbolId(type.symbol));
|
|
52187
|
+
} else if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) {
|
|
52243
52188
|
serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags);
|
|
52244
52189
|
} else {
|
|
52245
|
-
const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((
|
|
52190
|
+
const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_c = symbol.parent) == null ? void 0 : _c.valueDeclaration) && isSourceFile((_d = symbol.parent) == null ? void 0 : _d.valueDeclaration) ? 2 /* Const */ : void 0 : isConstantVariable(symbol) ? 2 /* Const */ : 1 /* Let */;
|
|
52246
52191
|
const name = needsPostExportDefault || !(symbol.flags & 4 /* Property */) ? localName : getUnusedName(localName, symbol);
|
|
52247
52192
|
let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d));
|
|
52248
52193
|
if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) {
|
|
52249
52194
|
textRange = textRange.parent.parent;
|
|
52250
52195
|
}
|
|
52251
|
-
const propertyAccessRequire = (
|
|
52252
|
-
if (propertyAccessRequire && isBinaryExpression(propertyAccessRequire.parent) && isIdentifier(propertyAccessRequire.parent.right) && ((
|
|
52196
|
+
const propertyAccessRequire = (_e = symbol.declarations) == null ? void 0 : _e.find(isPropertyAccessExpression);
|
|
52197
|
+
if (propertyAccessRequire && isBinaryExpression(propertyAccessRequire.parent) && isIdentifier(propertyAccessRequire.parent.right) && ((_f = type.symbol) == null ? void 0 : _f.valueDeclaration) && isSourceFile(type.symbol.valueDeclaration)) {
|
|
52253
52198
|
const alias = localName === propertyAccessRequire.parent.right.escapedText ? void 0 : propertyAccessRequire.parent.right;
|
|
52254
52199
|
addResult(
|
|
52255
52200
|
factory.createExportDeclaration(
|
|
@@ -52404,11 +52349,11 @@ ${lanes.join("\n")}
|
|
|
52404
52349
|
results.push(node);
|
|
52405
52350
|
}
|
|
52406
52351
|
function serializeTypeAlias(symbol, symbolName2, modifierFlags) {
|
|
52407
|
-
var
|
|
52352
|
+
var _a2;
|
|
52408
52353
|
const aliasType = getDeclaredTypeOfTypeAlias(symbol);
|
|
52409
52354
|
const typeParams = getSymbolLinks(symbol).typeParameters;
|
|
52410
52355
|
const typeParamDecls = map(typeParams, (p) => typeParameterToDeclaration(p, context));
|
|
52411
|
-
const jsdocAliasDecl = (
|
|
52356
|
+
const jsdocAliasDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isJSDocTypeAlias);
|
|
52412
52357
|
const commentText = getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : void 0);
|
|
52413
52358
|
const oldFlags = context.flags;
|
|
52414
52359
|
context.flags |= 8388608 /* InTypeAlias */;
|
|
@@ -52479,12 +52424,12 @@ ${lanes.join("\n")}
|
|
|
52479
52424
|
/*isTypeOnly*/
|
|
52480
52425
|
false,
|
|
52481
52426
|
factory.createNamedExports(mapDefined(filter(mergedMembers, (n) => n.escapedName !== "export=" /* ExportEquals */), (s) => {
|
|
52482
|
-
var
|
|
52427
|
+
var _a2, _b;
|
|
52483
52428
|
const name = unescapeLeadingUnderscores(s.escapedName);
|
|
52484
52429
|
const localName2 = getInternalSymbolName(s, name);
|
|
52485
52430
|
const aliasDecl = s.declarations && getDeclarationOfAliasSymbol(s);
|
|
52486
52431
|
if (containingFile && (aliasDecl ? containingFile !== getSourceFileOfNode(aliasDecl) : !some(s.declarations, (d) => getSourceFileOfNode(d) === containingFile))) {
|
|
52487
|
-
(_b = (
|
|
52432
|
+
(_b = (_a2 = context.tracker) == null ? void 0 : _a2.reportNonlocalAugmentation) == null ? void 0 : _b.call(_a2, containingFile, symbol, s);
|
|
52488
52433
|
return void 0;
|
|
52489
52434
|
}
|
|
52490
52435
|
const target = aliasDecl && getTargetOfAliasDeclaration(
|
|
@@ -52650,8 +52595,8 @@ ${lanes.join("\n")}
|
|
|
52650
52595
|
return void 0;
|
|
52651
52596
|
}
|
|
52652
52597
|
function serializeAsClass(symbol, localName, modifierFlags) {
|
|
52653
|
-
var
|
|
52654
|
-
const originalDecl = (
|
|
52598
|
+
var _a2, _b;
|
|
52599
|
+
const originalDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isClassLike);
|
|
52655
52600
|
const oldEnclosing = context.enclosingDeclaration;
|
|
52656
52601
|
context.enclosingDeclaration = originalDecl || oldEnclosing;
|
|
52657
52602
|
const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
|
|
@@ -52747,7 +52692,7 @@ ${lanes.join("\n")}
|
|
|
52747
52692
|
});
|
|
52748
52693
|
}
|
|
52749
52694
|
function serializeAsAlias(symbol, localName, modifierFlags) {
|
|
52750
|
-
var
|
|
52695
|
+
var _a2, _b, _c, _d, _e;
|
|
52751
52696
|
const node = getDeclarationOfAliasSymbol(symbol);
|
|
52752
52697
|
if (!node)
|
|
52753
52698
|
return Debug.fail();
|
|
@@ -52767,7 +52712,7 @@ ${lanes.join("\n")}
|
|
|
52767
52712
|
includePrivateSymbol(target);
|
|
52768
52713
|
switch (node.kind) {
|
|
52769
52714
|
case 208 /* BindingElement */:
|
|
52770
|
-
if (((_b = (
|
|
52715
|
+
if (((_b = (_a2 = node.parent) == null ? void 0 : _a2.parent) == null ? void 0 : _b.kind) === 260 /* VariableDeclaration */) {
|
|
52771
52716
|
const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context);
|
|
52772
52717
|
const { propertyName } = node;
|
|
52773
52718
|
addResult(
|
|
@@ -52986,7 +52931,7 @@ ${lanes.join("\n")}
|
|
|
52986
52931
|
);
|
|
52987
52932
|
}
|
|
52988
52933
|
function serializeMaybeAliasAssignment(symbol) {
|
|
52989
|
-
var
|
|
52934
|
+
var _a2;
|
|
52990
52935
|
if (symbol.flags & 4194304 /* Prototype */) {
|
|
52991
52936
|
return false;
|
|
52992
52937
|
}
|
|
@@ -53069,7 +53014,7 @@ ${lanes.join("\n")}
|
|
|
53069
53014
|
void 0,
|
|
53070
53015
|
serializeTypeForDeclaration(context, typeToSerialize, symbol, enclosingDeclaration, includePrivateSymbol, bundled)
|
|
53071
53016
|
)
|
|
53072
|
-
], ((
|
|
53017
|
+
], ((_a2 = context.enclosingDeclaration) == null ? void 0 : _a2.kind) === 267 /* ModuleDeclaration */ ? 1 /* Let */ : 2 /* Const */)
|
|
53073
53018
|
);
|
|
53074
53019
|
addResult(
|
|
53075
53020
|
statement,
|
|
@@ -53099,7 +53044,7 @@ ${lanes.join("\n")}
|
|
|
53099
53044
|
}
|
|
53100
53045
|
function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) {
|
|
53101
53046
|
return function serializePropertySymbol(p, isStatic2, baseType) {
|
|
53102
|
-
var
|
|
53047
|
+
var _a2, _b, _c, _d, _e;
|
|
53103
53048
|
const modifierFlags = getDeclarationModifierFlagsFromSymbol(p);
|
|
53104
53049
|
const isPrivate = !!(modifierFlags & 8 /* Private */);
|
|
53105
53050
|
if (isStatic2 && p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)) {
|
|
@@ -53110,7 +53055,7 @@ ${lanes.join("\n")}
|
|
|
53110
53055
|
}
|
|
53111
53056
|
const flag = modifierFlags & ~512 /* Async */ | (isStatic2 ? 32 /* Static */ : 0);
|
|
53112
53057
|
const name = getPropertyNameNodeForSymbol(p, context);
|
|
53113
|
-
const firstPropertyLikeDecl = (
|
|
53058
|
+
const firstPropertyLikeDecl = (_a2 = p.declarations) == null ? void 0 : _a2.find(or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression));
|
|
53114
53059
|
if (p.flags & 98304 /* Accessor */ && useAccessors) {
|
|
53115
53060
|
const result = [];
|
|
53116
53061
|
if (p.flags & 65536 /* SetAccessor */) {
|
|
@@ -53356,7 +53301,7 @@ ${lanes.join("\n")}
|
|
|
53356
53301
|
}
|
|
53357
53302
|
}
|
|
53358
53303
|
function getUnusedName(input, symbol) {
|
|
53359
|
-
var
|
|
53304
|
+
var _a2, _b;
|
|
53360
53305
|
const id = symbol ? getSymbolId(symbol) : void 0;
|
|
53361
53306
|
if (id) {
|
|
53362
53307
|
if (context.remappedSymbolNames.has(id)) {
|
|
@@ -53368,7 +53313,7 @@ ${lanes.join("\n")}
|
|
|
53368
53313
|
}
|
|
53369
53314
|
let i = 0;
|
|
53370
53315
|
const original = input;
|
|
53371
|
-
while ((
|
|
53316
|
+
while ((_a2 = context.usedSymbolNames) == null ? void 0 : _a2.has(input)) {
|
|
53372
53317
|
i++;
|
|
53373
53318
|
input = `${original}_${i}`;
|
|
53374
53319
|
}
|
|
@@ -53496,6 +53441,10 @@ ${lanes.join("\n")}
|
|
|
53496
53441
|
}
|
|
53497
53442
|
}
|
|
53498
53443
|
function getNameOfSymbolAsWritten(symbol, context) {
|
|
53444
|
+
var _a;
|
|
53445
|
+
if ((_a = context == null ? void 0 : context.remappedSymbolReferences) == null ? void 0 : _a.has(getSymbolId(symbol))) {
|
|
53446
|
+
symbol = context.remappedSymbolReferences.get(getSymbolId(symbol));
|
|
53447
|
+
}
|
|
53499
53448
|
if (context && symbol.escapedName === "default" /* Default */ && !(context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */) && // If it's not the first part of an entity name, it must print as `default`
|
|
53500
53449
|
(!(context.flags & 16777216 /* InInitialEntityName */) || // if the symbol is synthesized, it will only be referenced externally it must print as `default`
|
|
53501
53450
|
!symbol.declarations || // if not in the same binding context (source file, module declaration), it must print as `default`
|
|
@@ -55659,7 +55608,13 @@ ${lanes.join("\n")}
|
|
|
55659
55608
|
const baseTypes = getBaseTypes(source);
|
|
55660
55609
|
if (baseTypes.length) {
|
|
55661
55610
|
if (source.symbol && members === getMembersOfSymbol(source.symbol)) {
|
|
55662
|
-
|
|
55611
|
+
const symbolTable = createSymbolTable();
|
|
55612
|
+
for (const symbol of members.values()) {
|
|
55613
|
+
if (!(symbol.flags & 262144 /* TypeParameter */)) {
|
|
55614
|
+
symbolTable.set(symbol.escapedName, symbol);
|
|
55615
|
+
}
|
|
55616
|
+
}
|
|
55617
|
+
members = symbolTable;
|
|
55663
55618
|
}
|
|
55664
55619
|
setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);
|
|
55665
55620
|
const thisArgument = lastOrUndefined(typeArguments);
|
|
@@ -60957,7 +60912,12 @@ ${lanes.join("\n")}
|
|
|
60957
60912
|
function instantiateSymbol(symbol, mapper) {
|
|
60958
60913
|
const links = getSymbolLinks(symbol);
|
|
60959
60914
|
if (links.type && !couldContainTypeVariables(links.type)) {
|
|
60960
|
-
|
|
60915
|
+
if (!(symbol.flags & 65536 /* SetAccessor */)) {
|
|
60916
|
+
return symbol;
|
|
60917
|
+
}
|
|
60918
|
+
if (links.writeType && !couldContainTypeVariables(links.writeType)) {
|
|
60919
|
+
return symbol;
|
|
60920
|
+
}
|
|
60961
60921
|
}
|
|
60962
60922
|
if (getCheckFlags(symbol) & 1 /* Instantiated */) {
|
|
60963
60923
|
symbol = links.target;
|
|
@@ -66610,7 +66570,7 @@ ${lanes.join("\n")}
|
|
|
66610
66570
|
const constraint = getConstraintOfTypeParameter(inference.typeParameter);
|
|
66611
66571
|
if (constraint) {
|
|
66612
66572
|
const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper);
|
|
66613
|
-
if (!inferredType || inferredType ===
|
|
66573
|
+
if (!inferredType || inferredType === blockedStringType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) {
|
|
66614
66574
|
inference.inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint;
|
|
66615
66575
|
}
|
|
66616
66576
|
}
|
|
@@ -71793,7 +71753,7 @@ ${lanes.join("\n")}
|
|
|
71793
71753
|
apparentType,
|
|
71794
71754
|
right.escapedText,
|
|
71795
71755
|
/*skipObjectFunctionPropertyAugment*/
|
|
71796
|
-
|
|
71756
|
+
isConstEnumObjectType(apparentType),
|
|
71797
71757
|
/*includeTypeOnlyMembers*/
|
|
71798
71758
|
node.kind === 166 /* QualifiedName */
|
|
71799
71759
|
);
|
|
@@ -74760,18 +74720,16 @@ ${lanes.join("\n")}
|
|
|
74760
74720
|
const len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);
|
|
74761
74721
|
for (let i = 0; i < len; i++) {
|
|
74762
74722
|
const declaration = signature.parameters[i].valueDeclaration;
|
|
74763
|
-
|
|
74764
|
-
|
|
74765
|
-
|
|
74766
|
-
|
|
74767
|
-
|
|
74768
|
-
|
|
74769
|
-
|
|
74770
|
-
|
|
74771
|
-
|
|
74772
|
-
|
|
74773
|
-
inferTypes(inferenceContext.inferences, source, target);
|
|
74774
|
-
}
|
|
74723
|
+
const typeNode = getEffectiveTypeAnnotationNode(declaration);
|
|
74724
|
+
if (typeNode) {
|
|
74725
|
+
const source = addOptionality(
|
|
74726
|
+
getTypeFromTypeNode(typeNode),
|
|
74727
|
+
/*isProperty*/
|
|
74728
|
+
false,
|
|
74729
|
+
isOptionalDeclaration(declaration)
|
|
74730
|
+
);
|
|
74731
|
+
const target = getTypeAtPosition(context, i);
|
|
74732
|
+
inferTypes(inferenceContext.inferences, source, target);
|
|
74775
74733
|
}
|
|
74776
74734
|
}
|
|
74777
74735
|
}
|
|
@@ -77203,7 +77161,7 @@ ${lanes.join("\n")}
|
|
|
77203
77161
|
return nullWideningType;
|
|
77204
77162
|
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
77205
77163
|
case 11 /* StringLiteral */:
|
|
77206
|
-
return hasSkipDirectInferenceFlag(node) ?
|
|
77164
|
+
return hasSkipDirectInferenceFlag(node) ? blockedStringType : getFreshTypeOfLiteralType(getStringLiteralType(node.text));
|
|
77207
77165
|
case 9 /* NumericLiteral */: {
|
|
77208
77166
|
checkGrammarNumericLiteral(node);
|
|
77209
77167
|
const value = +node.text;
|
|
@@ -88088,7 +88046,7 @@ ${lanes.join("\n")}
|
|
|
88088
88046
|
const line = lineInfo.getLineText(index);
|
|
88089
88047
|
const comment = sourceMapCommentRegExp.exec(line);
|
|
88090
88048
|
if (comment) {
|
|
88091
|
-
return
|
|
88049
|
+
return comment[1].trimEnd();
|
|
88092
88050
|
} else if (!line.match(whitespaceOrMapCommentRegExp)) {
|
|
88093
88051
|
break;
|
|
88094
88052
|
}
|
|
@@ -109938,6 +109896,9 @@ ${lanes.join("\n")}
|
|
|
109938
109896
|
if (elem.kind === 232 /* OmittedExpression */) {
|
|
109939
109897
|
return elem;
|
|
109940
109898
|
}
|
|
109899
|
+
if (elem.propertyName && isComputedPropertyName(elem.propertyName) && isEntityNameExpression(elem.propertyName.expression)) {
|
|
109900
|
+
checkEntityNameVisibility(elem.propertyName.expression, enclosingDeclaration);
|
|
109901
|
+
}
|
|
109941
109902
|
if (elem.propertyName && isIdentifier(elem.propertyName) && isIdentifier(elem.name) && !elem.symbol.isReferenced && !isIdentifierANonContextualKeyword(elem.propertyName)) {
|
|
109942
109903
|
return factory2.updateBindingElement(
|
|
109943
109904
|
elem,
|
|
@@ -117931,17 +117892,17 @@ ${lanes.join("\n")}
|
|
|
117931
117892
|
for (let i = firstLine; i <= lastLine; i++) {
|
|
117932
117893
|
context += host.getNewLine();
|
|
117933
117894
|
if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) {
|
|
117934
|
-
context += indent3 + formatColorAndReset(
|
|
117895
|
+
context += indent3 + formatColorAndReset(ellipsis.padStart(gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();
|
|
117935
117896
|
i = lastLine - 1;
|
|
117936
117897
|
}
|
|
117937
117898
|
const lineStart = getPositionOfLineAndCharacter(file, i, 0);
|
|
117938
117899
|
const lineEnd = i < lastLineInFile ? getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length;
|
|
117939
117900
|
let lineContent = file.text.slice(lineStart, lineEnd);
|
|
117940
|
-
lineContent =
|
|
117901
|
+
lineContent = lineContent.trimEnd();
|
|
117941
117902
|
lineContent = lineContent.replace(/\t/g, " ");
|
|
117942
|
-
context += indent3 + formatColorAndReset(
|
|
117903
|
+
context += indent3 + formatColorAndReset((i + 1 + "").padStart(gutterWidth), gutterStyleSequence) + gutterSeparator;
|
|
117943
117904
|
context += lineContent + host.getNewLine();
|
|
117944
|
-
context += indent3 + formatColorAndReset(
|
|
117905
|
+
context += indent3 + formatColorAndReset("".padStart(gutterWidth), gutterStyleSequence) + gutterSeparator;
|
|
117945
117906
|
context += squiggleColor;
|
|
117946
117907
|
if (i === firstLine) {
|
|
117947
117908
|
const lastCharForLine = i === lastLine ? lastLineChar : void 0;
|
|
@@ -128321,7 +128282,7 @@ ${lanes.join("\n")}
|
|
|
128321
128282
|
}
|
|
128322
128283
|
function nowString() {
|
|
128323
128284
|
const d = /* @__PURE__ */ new Date();
|
|
128324
|
-
return `${
|
|
128285
|
+
return `${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}:${d.getSeconds().toString().padStart(2, "0")}.${d.getMilliseconds().toString().padStart(3, "0")}`;
|
|
128325
128286
|
}
|
|
128326
128287
|
var ActionSet, ActionInvalidate, ActionPackageInstalled, EventTypesRegistry, EventBeginInstallTypes, EventEndInstallTypes, EventInitializationFailed, ActionWatchTypingLocations, Arguments;
|
|
128327
128288
|
var init_shared = __esm({
|
|
@@ -165452,11 +165413,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
165452
165413
|
}
|
|
165453
165414
|
}
|
|
165454
165415
|
function isRegionDelimiter(lineText) {
|
|
165455
|
-
lineText =
|
|
165416
|
+
lineText = lineText.trimStart();
|
|
165456
165417
|
if (!startsWith(lineText, "//")) {
|
|
165457
165418
|
return null;
|
|
165458
165419
|
}
|
|
165459
|
-
lineText =
|
|
165420
|
+
lineText = lineText.slice(2).trim();
|
|
165460
165421
|
return regionDelimiterRegExp.exec(lineText);
|
|
165461
165422
|
}
|
|
165462
165423
|
function addOutliningForLeadingCommentsForPos(pos, sourceFile, cancellationToken, out) {
|
|
@@ -185043,8 +185004,6 @@ ${e.message}`;
|
|
|
185043
185004
|
outFile: () => outFile,
|
|
185044
185005
|
packageIdToPackageName: () => packageIdToPackageName,
|
|
185045
185006
|
packageIdToString: () => packageIdToString,
|
|
185046
|
-
padLeft: () => padLeft,
|
|
185047
|
-
padRight: () => padRight,
|
|
185048
185007
|
paramHelper: () => paramHelper,
|
|
185049
185008
|
parameterIsThisKeyword: () => parameterIsThisKeyword,
|
|
185050
185009
|
parameterNamePart: () => parameterNamePart,
|
|
@@ -185337,9 +185296,6 @@ ${e.message}`;
|
|
|
185337
185296
|
transpile: () => transpile,
|
|
185338
185297
|
transpileModule: () => transpileModule,
|
|
185339
185298
|
transpileOptionValueCompilerOptions: () => transpileOptionValueCompilerOptions,
|
|
185340
|
-
trimString: () => trimString,
|
|
185341
|
-
trimStringEnd: () => trimStringEnd,
|
|
185342
|
-
trimStringStart: () => trimStringStart,
|
|
185343
185299
|
tryAddToSet: () => tryAddToSet,
|
|
185344
185300
|
tryAndIgnoreErrors: () => tryAndIgnoreErrors,
|
|
185345
185301
|
tryCast: () => tryCast,
|
|
@@ -187451,8 +187407,6 @@ ${e.message}`;
|
|
|
187451
187407
|
outFile: () => outFile,
|
|
187452
187408
|
packageIdToPackageName: () => packageIdToPackageName,
|
|
187453
187409
|
packageIdToString: () => packageIdToString,
|
|
187454
|
-
padLeft: () => padLeft,
|
|
187455
|
-
padRight: () => padRight,
|
|
187456
187410
|
paramHelper: () => paramHelper,
|
|
187457
187411
|
parameterIsThisKeyword: () => parameterIsThisKeyword,
|
|
187458
187412
|
parameterNamePart: () => parameterNamePart,
|
|
@@ -187745,9 +187699,6 @@ ${e.message}`;
|
|
|
187745
187699
|
transpile: () => transpile,
|
|
187746
187700
|
transpileModule: () => transpileModule,
|
|
187747
187701
|
transpileOptionValueCompilerOptions: () => transpileOptionValueCompilerOptions,
|
|
187748
|
-
trimString: () => trimString,
|
|
187749
|
-
trimStringEnd: () => trimStringEnd,
|
|
187750
|
-
trimStringStart: () => trimStringStart,
|
|
187751
187702
|
tryAddToSet: () => tryAddToSet,
|
|
187752
187703
|
tryAndIgnoreErrors: () => tryAndIgnoreErrors,
|
|
187753
187704
|
tryCast: () => tryCast,
|