typescript 5.0.0-dev.20221108 → 5.0.0-dev.20221110
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 +315 -330
- package/lib/tsserver.js +493 -501
- package/lib/tsserverlibrary.d.ts +10 -71
- package/lib/tsserverlibrary.js +504 -512
- package/lib/typescript.d.ts +6 -65
- package/lib/typescript.js +430 -436
- package/lib/typingsInstaller.js +57 -82
- package/package.json +6 -5
package/lib/tsserverlibrary.js
CHANGED
|
@@ -117,7 +117,6 @@ var ts = (() => {
|
|
|
117
117
|
LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
|
|
118
118
|
ListFormat: () => ListFormat,
|
|
119
119
|
LogLevel: () => LogLevel,
|
|
120
|
-
Map: () => Map,
|
|
121
120
|
MemberOverrideStatus: () => MemberOverrideStatus,
|
|
122
121
|
ModifierFlags: () => ModifierFlags,
|
|
123
122
|
ModuleDetectionKind: () => ModuleDetectionKind,
|
|
@@ -160,7 +159,6 @@ var ts = (() => {
|
|
|
160
159
|
SemanticClassificationFormat: () => SemanticClassificationFormat,
|
|
161
160
|
SemanticMeaning: () => SemanticMeaning,
|
|
162
161
|
SemicolonPreference: () => SemicolonPreference,
|
|
163
|
-
Set: () => Set,
|
|
164
162
|
SignatureCheckMode: () => SignatureCheckMode,
|
|
165
163
|
SignatureFlags: () => SignatureFlags,
|
|
166
164
|
SignatureHelp: () => ts_SignatureHelp_exports,
|
|
@@ -2551,37 +2549,13 @@ var ts = (() => {
|
|
|
2551
2549
|
|
|
2552
2550
|
// src/compiler/corePublic.ts
|
|
2553
2551
|
var versionMajorMinor = "5.0";
|
|
2554
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2552
|
+
var version = `${versionMajorMinor}.0-dev.20221110`;
|
|
2555
2553
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2556
2554
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2557
2555
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
2558
2556
|
Comparison3[Comparison3["GreaterThan"] = 1] = "GreaterThan";
|
|
2559
2557
|
return Comparison3;
|
|
2560
2558
|
})(Comparison || {});
|
|
2561
|
-
var NativeCollections;
|
|
2562
|
-
((NativeCollections2) => {
|
|
2563
|
-
const globals = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : void 0;
|
|
2564
|
-
function tryGetNativeMap() {
|
|
2565
|
-
const gMap = globals == null ? void 0 : globals.Map;
|
|
2566
|
-
const constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : void 0;
|
|
2567
|
-
if (!constructor) {
|
|
2568
|
-
throw new Error("No compatible Map implementation found.");
|
|
2569
|
-
}
|
|
2570
|
-
return constructor;
|
|
2571
|
-
}
|
|
2572
|
-
NativeCollections2.tryGetNativeMap = tryGetNativeMap;
|
|
2573
|
-
function tryGetNativeSet() {
|
|
2574
|
-
const gSet = globals == null ? void 0 : globals.Set;
|
|
2575
|
-
const constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : void 0;
|
|
2576
|
-
if (!constructor) {
|
|
2577
|
-
throw new Error("No compatible Set implementation found.");
|
|
2578
|
-
}
|
|
2579
|
-
return constructor;
|
|
2580
|
-
}
|
|
2581
|
-
NativeCollections2.tryGetNativeSet = tryGetNativeSet;
|
|
2582
|
-
})(NativeCollections || (NativeCollections = {}));
|
|
2583
|
-
var Map = NativeCollections.tryGetNativeMap();
|
|
2584
|
-
var Set = NativeCollections.tryGetNativeSet();
|
|
2585
2559
|
|
|
2586
2560
|
// src/compiler/core.ts
|
|
2587
2561
|
function getIterator(iterable) {
|
|
@@ -2596,8 +2570,8 @@ var ts = (() => {
|
|
|
2596
2570
|
}
|
|
2597
2571
|
}
|
|
2598
2572
|
var emptyArray = [];
|
|
2599
|
-
var emptyMap = new Map();
|
|
2600
|
-
var emptySet = new Set();
|
|
2573
|
+
var emptyMap = /* @__PURE__ */ new Map();
|
|
2574
|
+
var emptySet = /* @__PURE__ */ new Set();
|
|
2601
2575
|
function length(array) {
|
|
2602
2576
|
return array ? array.length : 0;
|
|
2603
2577
|
}
|
|
@@ -2679,7 +2653,7 @@ var ts = (() => {
|
|
|
2679
2653
|
}
|
|
2680
2654
|
function zipToMap(keys, values) {
|
|
2681
2655
|
Debug.assert(keys.length === values.length);
|
|
2682
|
-
const map2 = new Map();
|
|
2656
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
2683
2657
|
for (let i = 0; i < keys.length; ++i) {
|
|
2684
2658
|
map2.set(keys[i], values[i]);
|
|
2685
2659
|
}
|
|
@@ -2994,7 +2968,7 @@ var ts = (() => {
|
|
|
2994
2968
|
if (!map2) {
|
|
2995
2969
|
return void 0;
|
|
2996
2970
|
}
|
|
2997
|
-
const result = new Map();
|
|
2971
|
+
const result = /* @__PURE__ */ new Map();
|
|
2998
2972
|
map2.forEach((value, key) => {
|
|
2999
2973
|
const entry = f(key, value);
|
|
3000
2974
|
if (entry !== void 0) {
|
|
@@ -3008,7 +2982,7 @@ var ts = (() => {
|
|
|
3008
2982
|
}
|
|
3009
2983
|
function mapDefinedValues(set, f) {
|
|
3010
2984
|
if (set) {
|
|
3011
|
-
const result = new Set();
|
|
2985
|
+
const result = /* @__PURE__ */ new Set();
|
|
3012
2986
|
set.forEach((value) => {
|
|
3013
2987
|
const newValue = f(value);
|
|
3014
2988
|
if (newValue !== void 0) {
|
|
@@ -3081,7 +3055,7 @@ var ts = (() => {
|
|
|
3081
3055
|
if (!map2) {
|
|
3082
3056
|
return void 0;
|
|
3083
3057
|
}
|
|
3084
|
-
const result = new Map();
|
|
3058
|
+
const result = /* @__PURE__ */ new Map();
|
|
3085
3059
|
map2.forEach((value, key) => {
|
|
3086
3060
|
const [newKey, newValue] = f(key, value);
|
|
3087
3061
|
result.set(newKey, newValue);
|
|
@@ -3547,7 +3521,7 @@ var ts = (() => {
|
|
|
3547
3521
|
return true;
|
|
3548
3522
|
}
|
|
3549
3523
|
function arrayToMap(array, makeKey, makeValue = identity) {
|
|
3550
|
-
const result = new Map();
|
|
3524
|
+
const result = /* @__PURE__ */ new Map();
|
|
3551
3525
|
for (const value of array) {
|
|
3552
3526
|
const key = makeKey(value);
|
|
3553
3527
|
if (key !== void 0)
|
|
@@ -3606,7 +3580,7 @@ var ts = (() => {
|
|
|
3606
3580
|
return fn ? fn.bind(obj) : void 0;
|
|
3607
3581
|
}
|
|
3608
3582
|
function createMultiMap() {
|
|
3609
|
-
const map2 = new Map();
|
|
3583
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
3610
3584
|
map2.add = multiMapAdd;
|
|
3611
3585
|
map2.remove = multiMapRemove;
|
|
3612
3586
|
return map2;
|
|
@@ -3663,12 +3637,12 @@ var ts = (() => {
|
|
|
3663
3637
|
};
|
|
3664
3638
|
}
|
|
3665
3639
|
function createSet(getHashCode, equals) {
|
|
3666
|
-
const multiMap = new Map();
|
|
3640
|
+
const multiMap = /* @__PURE__ */ new Map();
|
|
3667
3641
|
let size = 0;
|
|
3668
3642
|
function getElementIterator() {
|
|
3669
3643
|
const valueIt = multiMap.values();
|
|
3670
3644
|
let arrayIt;
|
|
3671
|
-
|
|
3645
|
+
const it = {
|
|
3672
3646
|
next: () => {
|
|
3673
3647
|
while (true) {
|
|
3674
3648
|
if (arrayIt) {
|
|
@@ -3688,8 +3662,12 @@ var ts = (() => {
|
|
|
3688
3662
|
arrayIt = arrayIterator(n.value);
|
|
3689
3663
|
}
|
|
3690
3664
|
}
|
|
3665
|
+
},
|
|
3666
|
+
[Symbol.iterator]: () => {
|
|
3667
|
+
return it;
|
|
3691
3668
|
}
|
|
3692
3669
|
};
|
|
3670
|
+
return it;
|
|
3693
3671
|
}
|
|
3694
3672
|
const set = {
|
|
3695
3673
|
has(element) {
|
|
@@ -3768,11 +3746,11 @@ var ts = (() => {
|
|
|
3768
3746
|
for (const elements of arrayFrom(multiMap.values())) {
|
|
3769
3747
|
if (isArray(elements)) {
|
|
3770
3748
|
for (const element of elements) {
|
|
3771
|
-
action(element, element);
|
|
3749
|
+
action(element, element, set);
|
|
3772
3750
|
}
|
|
3773
3751
|
} else {
|
|
3774
3752
|
const element = elements;
|
|
3775
|
-
action(element, element);
|
|
3753
|
+
action(element, element, set);
|
|
3776
3754
|
}
|
|
3777
3755
|
}
|
|
3778
3756
|
},
|
|
@@ -3784,13 +3762,19 @@ var ts = (() => {
|
|
|
3784
3762
|
},
|
|
3785
3763
|
entries() {
|
|
3786
3764
|
const it = getElementIterator();
|
|
3787
|
-
|
|
3765
|
+
const it2 = {
|
|
3788
3766
|
next: () => {
|
|
3789
3767
|
const n = it.next();
|
|
3790
3768
|
return n.done ? n : { value: [n.value, n.value] };
|
|
3791
|
-
}
|
|
3769
|
+
},
|
|
3770
|
+
[Symbol.iterator]: () => it2
|
|
3792
3771
|
};
|
|
3793
|
-
|
|
3772
|
+
return it2;
|
|
3773
|
+
},
|
|
3774
|
+
[Symbol.iterator]: () => {
|
|
3775
|
+
return getElementIterator();
|
|
3776
|
+
},
|
|
3777
|
+
[Symbol.toStringTag]: multiMap[Symbol.toStringTag]
|
|
3794
3778
|
};
|
|
3795
3779
|
return set;
|
|
3796
3780
|
}
|
|
@@ -3853,7 +3837,7 @@ var ts = (() => {
|
|
|
3853
3837
|
};
|
|
3854
3838
|
}
|
|
3855
3839
|
function memoizeOne(callback) {
|
|
3856
|
-
const map2 = new Map();
|
|
3840
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
3857
3841
|
return (arg) => {
|
|
3858
3842
|
const key = `${typeof arg}:${arg}`;
|
|
3859
3843
|
let value = map2.get(key);
|
|
@@ -4565,7 +4549,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
4565
4549
|
return value.toString();
|
|
4566
4550
|
}
|
|
4567
4551
|
Debug2.formatEnum = formatEnum;
|
|
4568
|
-
const enumMemberCache = new Map();
|
|
4552
|
+
const enumMemberCache = /* @__PURE__ */ new Map();
|
|
4569
4553
|
function getEnumMembers(enumObject) {
|
|
4570
4554
|
const existing = enumMemberCache.get(enumObject);
|
|
4571
4555
|
if (existing) {
|
|
@@ -4971,7 +4955,7 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;
|
|
|
4971
4955
|
const links = /* @__PURE__ */ Object.create(null);
|
|
4972
4956
|
const nodes = [];
|
|
4973
4957
|
const edges = [];
|
|
4974
|
-
const root = buildGraphNode(flowNode, new Set());
|
|
4958
|
+
const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set());
|
|
4975
4959
|
for (const node of nodes) {
|
|
4976
4960
|
node.text = renderFlowNode(node.flowNode, node.circular);
|
|
4977
4961
|
computeLevel(node);
|
|
@@ -5714,9 +5698,9 @@ ${lanes.join("\n")}
|
|
|
5714
5698
|
var nullTimer = { enter: noop, exit: noop };
|
|
5715
5699
|
var enabled = false;
|
|
5716
5700
|
var timeorigin = timestamp();
|
|
5717
|
-
var marks = new Map();
|
|
5718
|
-
var counts = new Map();
|
|
5719
|
-
var durations = new Map();
|
|
5701
|
+
var marks = /* @__PURE__ */ new Map();
|
|
5702
|
+
var counts = /* @__PURE__ */ new Map();
|
|
5703
|
+
var durations = /* @__PURE__ */ new Map();
|
|
5720
5704
|
function mark(markName) {
|
|
5721
5705
|
var _a2;
|
|
5722
5706
|
if (enabled) {
|
|
@@ -5942,7 +5926,7 @@ ${lanes.join("\n")}
|
|
|
5942
5926
|
mark("beginDumpTypes");
|
|
5943
5927
|
const typesPath = legend[legend.length - 1].typesPath;
|
|
5944
5928
|
const typesFd = fs.openSync(typesPath, "w");
|
|
5945
|
-
const recursionIdentityMap = new Map();
|
|
5929
|
+
const recursionIdentityMap = /* @__PURE__ */ new Map();
|
|
5946
5930
|
fs.writeSync(typesFd, "[");
|
|
5947
5931
|
const numTypes = types.length;
|
|
5948
5932
|
for (let i = 0; i < numTypes; i++) {
|
|
@@ -7929,7 +7913,7 @@ ${lanes.join("\n")}
|
|
|
7929
7913
|
}
|
|
7930
7914
|
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
|
|
7931
7915
|
const fileWatcherCallbacks = createMultiMap();
|
|
7932
|
-
const dirWatchers = new Map();
|
|
7916
|
+
const dirWatchers = /* @__PURE__ */ new Map();
|
|
7933
7917
|
const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
7934
7918
|
return nonPollingWatchFile;
|
|
7935
7919
|
function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
|
|
@@ -8063,9 +8047,9 @@ ${lanes.join("\n")}
|
|
|
8063
8047
|
setTimeout: setTimeout2,
|
|
8064
8048
|
clearTimeout: clearTimeout2
|
|
8065
8049
|
}) {
|
|
8066
|
-
const cache = new Map();
|
|
8050
|
+
const cache = /* @__PURE__ */ new Map();
|
|
8067
8051
|
const callbackCache = createMultiMap();
|
|
8068
|
-
const cacheToUpdateChildWatches = new Map();
|
|
8052
|
+
const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
|
|
8069
8053
|
let timerToUpdateChildWatches;
|
|
8070
8054
|
const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);
|
|
8071
8055
|
const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
@@ -8167,7 +8151,7 @@ ${lanes.join("\n")}
|
|
|
8167
8151
|
timerToUpdateChildWatches = void 0;
|
|
8168
8152
|
sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);
|
|
8169
8153
|
const start = timestamp();
|
|
8170
|
-
const invokeMap = new Map();
|
|
8154
|
+
const invokeMap = /* @__PURE__ */ new Map();
|
|
8171
8155
|
while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
|
|
8172
8156
|
const result = cacheToUpdateChildWatches.entries().next();
|
|
8173
8157
|
Debug.assert(!result.done);
|
|
@@ -8288,9 +8272,9 @@ ${lanes.join("\n")}
|
|
|
8288
8272
|
inodeWatching,
|
|
8289
8273
|
sysLog: sysLog2
|
|
8290
8274
|
}) {
|
|
8291
|
-
const pollingWatches = new Map();
|
|
8292
|
-
const fsWatches = new Map();
|
|
8293
|
-
const fsWatchesRecursive = new Map();
|
|
8275
|
+
const pollingWatches = /* @__PURE__ */ new Map();
|
|
8276
|
+
const fsWatches = /* @__PURE__ */ new Map();
|
|
8277
|
+
const fsWatchesRecursive = /* @__PURE__ */ new Map();
|
|
8294
8278
|
let dynamicPollingWatchFile;
|
|
8295
8279
|
let fixedChunkSizePollingWatchFile;
|
|
8296
8280
|
let nonPollingWatchFile;
|
|
@@ -8744,7 +8728,7 @@ ${lanes.join("\n")}
|
|
|
8744
8728
|
}
|
|
8745
8729
|
function cleanupPaths(profile) {
|
|
8746
8730
|
let externalFileCounter = 0;
|
|
8747
|
-
const remappedPaths = new Map();
|
|
8731
|
+
const remappedPaths = /* @__PURE__ */ new Map();
|
|
8748
8732
|
const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath));
|
|
8749
8733
|
const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
|
|
8750
8734
|
for (const node of profile.nodes) {
|
|
@@ -14617,7 +14601,7 @@ ${lanes.join("\n")}
|
|
|
14617
14601
|
return filter(symbol.declarations || emptyArray, (d) => d.kind === kind);
|
|
14618
14602
|
}
|
|
14619
14603
|
function createSymbolTable(symbols) {
|
|
14620
|
-
const result = new Map();
|
|
14604
|
+
const result = /* @__PURE__ */ new Map();
|
|
14621
14605
|
if (symbols) {
|
|
14622
14606
|
for (const symbol of symbols) {
|
|
14623
14607
|
result.set(symbol.escapedName, symbol);
|
|
@@ -14909,7 +14893,7 @@ ${lanes.join("\n")}
|
|
|
14909
14893
|
commentDirective
|
|
14910
14894
|
])
|
|
14911
14895
|
);
|
|
14912
|
-
const usedLines = new Map();
|
|
14896
|
+
const usedLines = /* @__PURE__ */ new Map();
|
|
14913
14897
|
return { getUnusedExpectations, markUsed };
|
|
14914
14898
|
function getUnusedExpectations() {
|
|
14915
14899
|
return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 /* ExpectError */ && !usedLines.get(line)).map(([_, directive]) => directive);
|
|
@@ -17346,7 +17330,7 @@ ${lanes.join("\n")}
|
|
|
17346
17330
|
function createDiagnosticCollection() {
|
|
17347
17331
|
let nonFileDiagnostics = [];
|
|
17348
17332
|
const filesWithDiagnostics = [];
|
|
17349
|
-
const fileDiagnostics = new Map();
|
|
17333
|
+
const fileDiagnostics = /* @__PURE__ */ new Map();
|
|
17350
17334
|
let hasReadNonFileDiagnostics = false;
|
|
17351
17335
|
return {
|
|
17352
17336
|
add,
|
|
@@ -19215,7 +19199,7 @@ ${lanes.join("\n")}
|
|
|
19215
19199
|
getSymlinkedFiles: () => symlinkedFiles,
|
|
19216
19200
|
getSymlinkedDirectories: () => symlinkedDirectories,
|
|
19217
19201
|
getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,
|
|
19218
|
-
setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = new Map())).set(path, real),
|
|
19202
|
+
setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real),
|
|
19219
19203
|
setSymlinkedDirectory: (symlink, real) => {
|
|
19220
19204
|
let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);
|
|
19221
19205
|
if (!containsIgnoredPath(symlinkPath)) {
|
|
@@ -19223,7 +19207,7 @@ ${lanes.join("\n")}
|
|
|
19223
19207
|
if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) {
|
|
19224
19208
|
(symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(ensureTrailingDirectorySeparator(real.realPath), symlink);
|
|
19225
19209
|
}
|
|
19226
|
-
(symlinkedDirectories || (symlinkedDirectories = new Map())).set(symlinkPath, real);
|
|
19210
|
+
(symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real);
|
|
19227
19211
|
}
|
|
19228
19212
|
},
|
|
19229
19213
|
setSymlinksFromResolutions(files, typeReferenceDirectives) {
|
|
@@ -19400,7 +19384,7 @@ ${lanes.join("\n")}
|
|
|
19400
19384
|
const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);
|
|
19401
19385
|
const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);
|
|
19402
19386
|
const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
|
|
19403
|
-
const visited = new Map();
|
|
19387
|
+
const visited = /* @__PURE__ */ new Map();
|
|
19404
19388
|
const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
19405
19389
|
for (const basePath of patterns.basePaths) {
|
|
19406
19390
|
visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
|
|
@@ -20120,7 +20104,7 @@ ${lanes.join("\n")}
|
|
|
20120
20104
|
parenthesizeLeadingTypeArgument
|
|
20121
20105
|
};
|
|
20122
20106
|
function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {
|
|
20123
|
-
binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = new Map());
|
|
20107
|
+
binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map());
|
|
20124
20108
|
let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);
|
|
20125
20109
|
if (!parenthesizerRule) {
|
|
20126
20110
|
parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node);
|
|
@@ -20129,7 +20113,7 @@ ${lanes.join("\n")}
|
|
|
20129
20113
|
return parenthesizerRule;
|
|
20130
20114
|
}
|
|
20131
20115
|
function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {
|
|
20132
|
-
binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = new Map());
|
|
20116
|
+
binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map());
|
|
20133
20117
|
let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);
|
|
20134
20118
|
if (!parenthesizerRule) {
|
|
20135
20119
|
parenthesizerRule = (node) => parenthesizeRightSideOfBinary(operatorKind, void 0, node);
|
|
@@ -24424,7 +24408,7 @@ ${lanes.join("\n")}
|
|
|
24424
24408
|
if (leftStandardPrologueEnd === 0) {
|
|
24425
24409
|
left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd));
|
|
24426
24410
|
} else {
|
|
24427
|
-
const leftPrologues = new Map();
|
|
24411
|
+
const leftPrologues = /* @__PURE__ */ new Map();
|
|
24428
24412
|
for (let i = 0; i < leftStandardPrologueEnd; i++) {
|
|
24429
24413
|
const leftPrologue = statements[i];
|
|
24430
24414
|
leftPrologues.set(leftPrologue.expression.text, true);
|
|
@@ -24848,7 +24832,7 @@ ${lanes.join("\n")}
|
|
|
24848
24832
|
node.declarationPath = declarationPath;
|
|
24849
24833
|
node.declarationMapPath = declarationMapPath;
|
|
24850
24834
|
node.buildInfoPath = buildInfoPath;
|
|
24851
|
-
const cache = new Map();
|
|
24835
|
+
const cache = /* @__PURE__ */ new Map();
|
|
24852
24836
|
const textGetter = (path) => {
|
|
24853
24837
|
if (path === void 0)
|
|
24854
24838
|
return void 0;
|
|
@@ -28199,8 +28183,8 @@ ${lanes.join("\n")}
|
|
|
28199
28183
|
languageVariant = getLanguageVariant(_scriptKind);
|
|
28200
28184
|
parseDiagnostics = [];
|
|
28201
28185
|
parsingContext = 0;
|
|
28202
|
-
identifiers = new Map();
|
|
28203
|
-
privateIdentifiers = new Map();
|
|
28186
|
+
identifiers = /* @__PURE__ */ new Map();
|
|
28187
|
+
privateIdentifiers = /* @__PURE__ */ new Map();
|
|
28204
28188
|
identifierCount = 0;
|
|
28205
28189
|
nodeCount = 0;
|
|
28206
28190
|
sourceFlags = 0;
|
|
@@ -30685,7 +30669,7 @@ ${lanes.join("\n")}
|
|
|
30685
30669
|
}
|
|
30686
30670
|
const result = parseParenthesizedArrowFunctionExpression(false, allowReturnTypeInArrowFunction);
|
|
30687
30671
|
if (!result) {
|
|
30688
|
-
(notParenthesizedArrow || (notParenthesizedArrow = new Set())).add(tokenPos);
|
|
30672
|
+
(notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos);
|
|
30689
30673
|
}
|
|
30690
30674
|
return result;
|
|
30691
30675
|
}
|
|
@@ -34143,7 +34127,7 @@ ${lanes.join("\n")}
|
|
|
34143
34127
|
const comment = sourceText.substring(range.pos, range.end);
|
|
34144
34128
|
extractPragmas(pragmas, range, comment);
|
|
34145
34129
|
}
|
|
34146
|
-
context.pragmas = new Map();
|
|
34130
|
+
context.pragmas = /* @__PURE__ */ new Map();
|
|
34147
34131
|
for (const pragma of pragmas) {
|
|
34148
34132
|
if (context.pragmas.has(pragma.name)) {
|
|
34149
34133
|
const currentValue = context.pragmas.get(pragma.name);
|
|
@@ -34230,7 +34214,7 @@ ${lanes.join("\n")}
|
|
|
34230
34214
|
}
|
|
34231
34215
|
});
|
|
34232
34216
|
}
|
|
34233
|
-
var namedArgRegExCache = new Map();
|
|
34217
|
+
var namedArgRegExCache = /* @__PURE__ */ new Map();
|
|
34234
34218
|
function getNamedArgRegEx(name) {
|
|
34235
34219
|
if (namedArgRegExCache.has(name)) {
|
|
34236
34220
|
return namedArgRegExCache.get(name);
|
|
@@ -35693,8 +35677,8 @@ ${lanes.join("\n")}
|
|
|
35693
35677
|
}
|
|
35694
35678
|
];
|
|
35695
35679
|
function createOptionNameMap(optionDeclarations2) {
|
|
35696
|
-
const optionsNameMap = new Map();
|
|
35697
|
-
const shortOptionNames = new Map();
|
|
35680
|
+
const optionsNameMap = /* @__PURE__ */ new Map();
|
|
35681
|
+
const shortOptionNames = /* @__PURE__ */ new Map();
|
|
35698
35682
|
forEach(optionDeclarations2, (option) => {
|
|
35699
35683
|
optionsNameMap.set(option.name.toLowerCase(), option);
|
|
35700
35684
|
if (option.shortName) {
|
|
@@ -36419,7 +36403,7 @@ ${lanes.join("\n")}
|
|
|
36419
36403
|
return serializeOptionBaseObject(options, getWatchOptionsNameMap());
|
|
36420
36404
|
}
|
|
36421
36405
|
function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) {
|
|
36422
|
-
const result = new Map();
|
|
36406
|
+
const result = /* @__PURE__ */ new Map();
|
|
36423
36407
|
const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames);
|
|
36424
36408
|
for (const name in options) {
|
|
36425
36409
|
if (hasProperty(options, name)) {
|
|
@@ -36487,7 +36471,7 @@ ${lanes.join("\n")}
|
|
|
36487
36471
|
return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));
|
|
36488
36472
|
}
|
|
36489
36473
|
function writeConfigurations() {
|
|
36490
|
-
const categorizedOptions = new Map();
|
|
36474
|
+
const categorizedOptions = /* @__PURE__ */ new Map();
|
|
36491
36475
|
categorizedOptions.set(Diagnostics.Projects, []);
|
|
36492
36476
|
categorizedOptions.set(Diagnostics.Language_and_Environment, []);
|
|
36493
36477
|
categorizedOptions.set(Diagnostics.Modules, []);
|
|
@@ -37062,9 +37046,9 @@ ${lanes.join("\n")}
|
|
|
37062
37046
|
function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) {
|
|
37063
37047
|
basePath = normalizePath(basePath);
|
|
37064
37048
|
const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
|
37065
|
-
const literalFileMap = new Map();
|
|
37066
|
-
const wildcardFileMap = new Map();
|
|
37067
|
-
const wildCardJsonFileMap = new Map();
|
|
37049
|
+
const literalFileMap = /* @__PURE__ */ new Map();
|
|
37050
|
+
const wildcardFileMap = /* @__PURE__ */ new Map();
|
|
37051
|
+
const wildCardJsonFileMap = /* @__PURE__ */ new Map();
|
|
37068
37052
|
const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs;
|
|
37069
37053
|
const supportedExtensions = getSupportedExtensions(options, extraFileExtensions);
|
|
37070
37054
|
const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
|
|
@@ -37676,8 +37660,8 @@ ${lanes.join("\n")}
|
|
|
37676
37660
|
return result;
|
|
37677
37661
|
}
|
|
37678
37662
|
function createCacheWithRedirects(options) {
|
|
37679
|
-
let ownMap = new Map();
|
|
37680
|
-
const redirectsMap = new Map();
|
|
37663
|
+
let ownMap = /* @__PURE__ */ new Map();
|
|
37664
|
+
const redirectsMap = /* @__PURE__ */ new Map();
|
|
37681
37665
|
return {
|
|
37682
37666
|
getOwnMap,
|
|
37683
37667
|
redirectsMap,
|
|
@@ -37702,7 +37686,7 @@ ${lanes.join("\n")}
|
|
|
37702
37686
|
const path = redirectedReference.sourceFile.path;
|
|
37703
37687
|
let redirects = redirectsMap.get(path);
|
|
37704
37688
|
if (!redirects) {
|
|
37705
|
-
redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? new Map() : ownMap;
|
|
37689
|
+
redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? /* @__PURE__ */ new Map() : ownMap;
|
|
37706
37690
|
redirectsMap.set(path, redirects);
|
|
37707
37691
|
}
|
|
37708
37692
|
return redirects;
|
|
@@ -37719,7 +37703,7 @@ ${lanes.join("\n")}
|
|
|
37719
37703
|
return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName));
|
|
37720
37704
|
}
|
|
37721
37705
|
function setPackageJsonInfo(packageJsonPath, info) {
|
|
37722
|
-
(cache || (cache = new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
|
|
37706
|
+
(cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
|
|
37723
37707
|
}
|
|
37724
37708
|
function clear2() {
|
|
37725
37709
|
cache = void 0;
|
|
@@ -37780,8 +37764,8 @@ ${lanes.join("\n")}
|
|
|
37780
37764
|
}
|
|
37781
37765
|
}
|
|
37782
37766
|
function createModeAwareCache() {
|
|
37783
|
-
const underlying = new Map();
|
|
37784
|
-
const memoizedReverseKeys = new Map();
|
|
37767
|
+
const underlying = /* @__PURE__ */ new Map();
|
|
37768
|
+
const memoizedReverseKeys = /* @__PURE__ */ new Map();
|
|
37785
37769
|
const cache = {
|
|
37786
37770
|
get(specifier, mode) {
|
|
37787
37771
|
return underlying.get(getUnderlyingCacheKey(specifier, mode));
|
|
@@ -37858,7 +37842,7 @@ ${lanes.join("\n")}
|
|
|
37858
37842
|
return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === void 0 ? nonRelativeModuleName : `${mode}|${nonRelativeModuleName}`, createPerModuleNameCache);
|
|
37859
37843
|
}
|
|
37860
37844
|
function createPerModuleNameCache() {
|
|
37861
|
-
const directoryPathMap = new Map();
|
|
37845
|
+
const directoryPathMap = /* @__PURE__ */ new Map();
|
|
37862
37846
|
return { get, set };
|
|
37863
37847
|
function get(directory) {
|
|
37864
37848
|
return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));
|
|
@@ -39285,7 +39269,7 @@ ${lanes.join("\n")}
|
|
|
39285
39269
|
}
|
|
39286
39270
|
return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */;
|
|
39287
39271
|
}
|
|
39288
|
-
function getModuleInstanceStateCached(node, visited = new Map()) {
|
|
39272
|
+
function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) {
|
|
39289
39273
|
const nodeId = getNodeId(node);
|
|
39290
39274
|
if (visited.has(nodeId)) {
|
|
39291
39275
|
return visited.get(nodeId) || 0 /* NonInstantiated */;
|
|
@@ -39437,7 +39421,7 @@ ${lanes.join("\n")}
|
|
|
39437
39421
|
options = opts;
|
|
39438
39422
|
languageVersion = getEmitScriptTarget(options);
|
|
39439
39423
|
inStrictMode = bindInStrictMode(file, opts);
|
|
39440
|
-
classifiableNames = new Set();
|
|
39424
|
+
classifiableNames = /* @__PURE__ */ new Set();
|
|
39441
39425
|
symbolCount = 0;
|
|
39442
39426
|
Symbol46 = objectAllocator.getSymbolConstructor();
|
|
39443
39427
|
Debug.attachFlowNodeDebugInfo(unreachableFlow);
|
|
@@ -41563,7 +41547,7 @@ ${lanes.join("\n")}
|
|
|
41563
41547
|
}
|
|
41564
41548
|
function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {
|
|
41565
41549
|
if (symbol) {
|
|
41566
|
-
(symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = new Map())).set(getNodeId(node), node);
|
|
41550
|
+
(symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node);
|
|
41567
41551
|
}
|
|
41568
41552
|
}
|
|
41569
41553
|
function bindSpecialPropertyDeclaration(node) {
|
|
@@ -42392,7 +42376,7 @@ ${lanes.join("\n")}
|
|
|
42392
42376
|
}
|
|
42393
42377
|
function getAllModulePathsWorker(importingFileName, importedFileName, host) {
|
|
42394
42378
|
const getCanonicalFileName = hostGetCanonicalFileName(host);
|
|
42395
|
-
const allFileNames = new Map();
|
|
42379
|
+
const allFileNames = /* @__PURE__ */ new Map();
|
|
42396
42380
|
let importedFileFromNodeModules = false;
|
|
42397
42381
|
forEachFileNameOfModule(
|
|
42398
42382
|
importingFileName,
|
|
@@ -42911,7 +42895,7 @@ ${lanes.join("\n")}
|
|
|
42911
42895
|
}
|
|
42912
42896
|
function createTypeChecker(host) {
|
|
42913
42897
|
const getPackagesMap = memoize(() => {
|
|
42914
|
-
const map2 = new Map();
|
|
42898
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
42915
42899
|
host.getSourceFiles().forEach((sf) => {
|
|
42916
42900
|
if (!sf.resolvedModules)
|
|
42917
42901
|
return;
|
|
@@ -43324,26 +43308,26 @@ ${lanes.join("\n")}
|
|
|
43324
43308
|
apparentArgumentCount = void 0;
|
|
43325
43309
|
return res;
|
|
43326
43310
|
}
|
|
43327
|
-
const tupleTypes = new Map();
|
|
43328
|
-
const unionTypes = new Map();
|
|
43329
|
-
const intersectionTypes = new Map();
|
|
43330
|
-
const stringLiteralTypes = new Map();
|
|
43331
|
-
const numberLiteralTypes = new Map();
|
|
43332
|
-
const bigIntLiteralTypes = new Map();
|
|
43333
|
-
const enumLiteralTypes = new Map();
|
|
43334
|
-
const indexedAccessTypes = new Map();
|
|
43335
|
-
const templateLiteralTypes = new Map();
|
|
43336
|
-
const stringMappingTypes = new Map();
|
|
43337
|
-
const substitutionTypes = new Map();
|
|
43338
|
-
const subtypeReductionCache = new Map();
|
|
43339
|
-
const cachedTypes = new Map();
|
|
43311
|
+
const tupleTypes = /* @__PURE__ */ new Map();
|
|
43312
|
+
const unionTypes = /* @__PURE__ */ new Map();
|
|
43313
|
+
const intersectionTypes = /* @__PURE__ */ new Map();
|
|
43314
|
+
const stringLiteralTypes = /* @__PURE__ */ new Map();
|
|
43315
|
+
const numberLiteralTypes = /* @__PURE__ */ new Map();
|
|
43316
|
+
const bigIntLiteralTypes = /* @__PURE__ */ new Map();
|
|
43317
|
+
const enumLiteralTypes = /* @__PURE__ */ new Map();
|
|
43318
|
+
const indexedAccessTypes = /* @__PURE__ */ new Map();
|
|
43319
|
+
const templateLiteralTypes = /* @__PURE__ */ new Map();
|
|
43320
|
+
const stringMappingTypes = /* @__PURE__ */ new Map();
|
|
43321
|
+
const substitutionTypes = /* @__PURE__ */ new Map();
|
|
43322
|
+
const subtypeReductionCache = /* @__PURE__ */ new Map();
|
|
43323
|
+
const cachedTypes = /* @__PURE__ */ new Map();
|
|
43340
43324
|
const evolvingArrayTypes = [];
|
|
43341
|
-
const undefinedProperties = new Map();
|
|
43342
|
-
const markerTypes = new Set();
|
|
43325
|
+
const undefinedProperties = /* @__PURE__ */ new Map();
|
|
43326
|
+
const markerTypes = /* @__PURE__ */ new Set();
|
|
43343
43327
|
const unknownSymbol = createSymbol(4 /* Property */, "unknown");
|
|
43344
43328
|
const resolvingSymbol = createSymbol(0, "__resolving__" /* Resolving */);
|
|
43345
|
-
const unresolvedSymbols = new Map();
|
|
43346
|
-
const errorTypes = new Map();
|
|
43329
|
+
const unresolvedSymbols = /* @__PURE__ */ new Map();
|
|
43330
|
+
const errorTypes = /* @__PURE__ */ new Map();
|
|
43347
43331
|
const anyType = createIntrinsicType(1 /* Any */, "any");
|
|
43348
43332
|
const autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */);
|
|
43349
43333
|
const wildcardType = createIntrinsicType(1 /* Any */, "any");
|
|
@@ -43414,7 +43398,7 @@ ${lanes.join("\n")}
|
|
|
43414
43398
|
const unknownEmptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
43415
43399
|
const unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
|
|
43416
43400
|
const emptyGenericType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
43417
|
-
emptyGenericType.instantiations = new Map();
|
|
43401
|
+
emptyGenericType.instantiations = /* @__PURE__ */ new Map();
|
|
43418
43402
|
const anyFunctionType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
43419
43403
|
anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
|
|
43420
43404
|
const noConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
@@ -43433,7 +43417,7 @@ ${lanes.join("\n")}
|
|
|
43433
43417
|
const resolvingSignature = createSignature(void 0, void 0, void 0, emptyArray, anyType, void 0, 0, 0 /* None */);
|
|
43434
43418
|
const silentNeverSignature = createSignature(void 0, void 0, void 0, emptyArray, silentNeverType, void 0, 0, 0 /* None */);
|
|
43435
43419
|
const enumNumberIndexInfo = createIndexInfo(numberType, stringType, true);
|
|
43436
|
-
const iterationTypesCache = new Map();
|
|
43420
|
+
const iterationTypesCache = /* @__PURE__ */ new Map();
|
|
43437
43421
|
const noIterationTypes = {
|
|
43438
43422
|
get yieldType() {
|
|
43439
43423
|
return Debug.fail("Not supported");
|
|
@@ -43475,7 +43459,7 @@ ${lanes.join("\n")}
|
|
|
43475
43459
|
mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property
|
|
43476
43460
|
};
|
|
43477
43461
|
let amalgamatedDuplicates;
|
|
43478
|
-
const reverseMappedCache = new Map();
|
|
43462
|
+
const reverseMappedCache = /* @__PURE__ */ new Map();
|
|
43479
43463
|
let inInferTypeForHomomorphicMappedType = false;
|
|
43480
43464
|
let ambientModulesCache;
|
|
43481
43465
|
let patternAmbientModules;
|
|
@@ -43523,7 +43507,7 @@ ${lanes.join("\n")}
|
|
|
43523
43507
|
let deferredGlobalBigIntType;
|
|
43524
43508
|
let deferredGlobalNaNSymbol;
|
|
43525
43509
|
let deferredGlobalRecordSymbol;
|
|
43526
|
-
const allPotentiallyUnusedIdentifiers = new Map();
|
|
43510
|
+
const allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map();
|
|
43527
43511
|
let flowLoopStart = 0;
|
|
43528
43512
|
let flowLoopCount = 0;
|
|
43529
43513
|
let sharedFlowCount = 0;
|
|
@@ -43562,12 +43546,12 @@ ${lanes.join("\n")}
|
|
|
43562
43546
|
const typeofType = createTypeofType();
|
|
43563
43547
|
let _jsxNamespace;
|
|
43564
43548
|
let _jsxFactoryEntity;
|
|
43565
|
-
const subtypeRelation = new Map();
|
|
43566
|
-
const strictSubtypeRelation = new Map();
|
|
43567
|
-
const assignableRelation = new Map();
|
|
43568
|
-
const comparableRelation = new Map();
|
|
43569
|
-
const identityRelation = new Map();
|
|
43570
|
-
const enumRelation = new Map();
|
|
43549
|
+
const subtypeRelation = /* @__PURE__ */ new Map();
|
|
43550
|
+
const strictSubtypeRelation = /* @__PURE__ */ new Map();
|
|
43551
|
+
const assignableRelation = /* @__PURE__ */ new Map();
|
|
43552
|
+
const comparableRelation = /* @__PURE__ */ new Map();
|
|
43553
|
+
const identityRelation = /* @__PURE__ */ new Map();
|
|
43554
|
+
const enumRelation = /* @__PURE__ */ new Map();
|
|
43571
43555
|
const builtinGlobals = createSymbolTable();
|
|
43572
43556
|
builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
|
|
43573
43557
|
const suggestedExtensions = [
|
|
@@ -43848,7 +43832,7 @@ ${lanes.join("\n")}
|
|
|
43848
43832
|
if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
|
|
43849
43833
|
const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile;
|
|
43850
43834
|
const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
|
|
43851
|
-
const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: new Map() }));
|
|
43835
|
+
const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() }));
|
|
43852
43836
|
const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] }));
|
|
43853
43837
|
if (!isSourcePlainJs)
|
|
43854
43838
|
addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source);
|
|
@@ -43926,7 +43910,7 @@ ${lanes.join("\n")}
|
|
|
43926
43910
|
if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) {
|
|
43927
43911
|
const merged = mergeSymbol(moduleAugmentation.symbol, mainModule, true);
|
|
43928
43912
|
if (!patternAmbientModuleAugmentations) {
|
|
43929
|
-
patternAmbientModuleAugmentations = new Map();
|
|
43913
|
+
patternAmbientModuleAugmentations = /* @__PURE__ */ new Map();
|
|
43930
43914
|
}
|
|
43931
43915
|
patternAmbientModuleAugmentations.set(moduleName.text, merged);
|
|
43932
43916
|
} else {
|
|
@@ -45245,7 +45229,7 @@ ${lanes.join("\n")}
|
|
|
45245
45229
|
if (seenSymbols) {
|
|
45246
45230
|
seenSymbols.add(target);
|
|
45247
45231
|
} else {
|
|
45248
|
-
seenSymbols = new Set([symbol, target]);
|
|
45232
|
+
seenSymbols = /* @__PURE__ */ new Set([symbol, target]);
|
|
45249
45233
|
}
|
|
45250
45234
|
}
|
|
45251
45235
|
flags |= target.flags;
|
|
@@ -45851,7 +45835,7 @@ ${lanes.join("\n")}
|
|
|
45851
45835
|
const exportStars = symbol.exports.get("__export" /* ExportStar */);
|
|
45852
45836
|
if (exportStars) {
|
|
45853
45837
|
const nestedSymbols = createSymbolTable();
|
|
45854
|
-
const lookupTable = new Map();
|
|
45838
|
+
const lookupTable = /* @__PURE__ */ new Map();
|
|
45855
45839
|
if (exportStars.declarations) {
|
|
45856
45840
|
for (const node of exportStars.declarations) {
|
|
45857
45841
|
const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
|
|
@@ -45913,7 +45897,7 @@ ${lanes.join("\n")}
|
|
|
45913
45897
|
results = append(results, resolvedModule);
|
|
45914
45898
|
}
|
|
45915
45899
|
if (length(results)) {
|
|
45916
|
-
(links.extendedContainersByFile || (links.extendedContainersByFile = new Map())).set(id, results);
|
|
45900
|
+
(links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results);
|
|
45917
45901
|
return results;
|
|
45918
45902
|
}
|
|
45919
45903
|
}
|
|
@@ -46165,12 +46149,12 @@ ${lanes.join("\n")}
|
|
|
46165
46149
|
function getQualifiedLeftMeaning(rightMeaning) {
|
|
46166
46150
|
return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */;
|
|
46167
46151
|
}
|
|
46168
|
-
function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = new Map()) {
|
|
46152
|
+
function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) {
|
|
46169
46153
|
if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) {
|
|
46170
46154
|
return void 0;
|
|
46171
46155
|
}
|
|
46172
46156
|
const links = getSymbolLinks(symbol);
|
|
46173
|
-
const cache = links.accessibleChainCache || (links.accessibleChainCache = new Map());
|
|
46157
|
+
const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map());
|
|
46174
46158
|
const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node);
|
|
46175
46159
|
const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`;
|
|
46176
46160
|
if (cache.has(key)) {
|
|
@@ -46540,22 +46524,25 @@ ${lanes.join("\n")}
|
|
|
46540
46524
|
const context = {
|
|
46541
46525
|
enclosingDeclaration,
|
|
46542
46526
|
flags: flags || 0 /* None */,
|
|
46543
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
46544
|
-
|
|
46545
|
-
|
|
46546
|
-
|
|
46547
|
-
|
|
46548
|
-
|
|
46549
|
-
|
|
46550
|
-
|
|
46551
|
-
|
|
46552
|
-
|
|
46553
|
-
|
|
46554
|
-
|
|
46555
|
-
|
|
46556
|
-
|
|
46557
|
-
|
|
46558
|
-
|
|
46527
|
+
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
46528
|
+
trackSymbol: () => false,
|
|
46529
|
+
moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
46530
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
46531
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
46532
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
46533
|
+
getPackageJsonInfoCache: () => {
|
|
46534
|
+
var _a3;
|
|
46535
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
46536
|
+
},
|
|
46537
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
46538
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
46539
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
46540
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
46541
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
46542
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
46543
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
46544
|
+
} : void 0
|
|
46545
|
+
},
|
|
46559
46546
|
encounteredError: false,
|
|
46560
46547
|
reportedDiagnostic: false,
|
|
46561
46548
|
visitedTypes: void 0,
|
|
@@ -46967,15 +46954,15 @@ ${lanes.join("\n")}
|
|
|
46967
46954
|
const isConstructorObject = getObjectFlags(type2) & 16 /* Anonymous */ && type2.symbol && type2.symbol.flags & 32 /* Class */;
|
|
46968
46955
|
const id = getObjectFlags(type2) & 4 /* Reference */ && type2.node ? "N" + getNodeId(type2.node) : type2.flags & 16777216 /* Conditional */ ? "N" + getNodeId(type2.root.node) : type2.symbol ? (isConstructorObject ? "+" : "") + getSymbolId(type2.symbol) : void 0;
|
|
46969
46956
|
if (!context.visitedTypes) {
|
|
46970
|
-
context.visitedTypes = new Set();
|
|
46957
|
+
context.visitedTypes = /* @__PURE__ */ new Set();
|
|
46971
46958
|
}
|
|
46972
46959
|
if (id && !context.symbolDepth) {
|
|
46973
|
-
context.symbolDepth = new Map();
|
|
46960
|
+
context.symbolDepth = /* @__PURE__ */ new Map();
|
|
46974
46961
|
}
|
|
46975
46962
|
const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
|
|
46976
46963
|
const key = `${getTypeId(type2)}|${context.flags}`;
|
|
46977
46964
|
if (links) {
|
|
46978
|
-
links.serializedTypes || (links.serializedTypes = new Map());
|
|
46965
|
+
links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map());
|
|
46979
46966
|
}
|
|
46980
46967
|
const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
|
|
46981
46968
|
if (cachedResult) {
|
|
@@ -47618,7 +47605,7 @@ ${lanes.join("\n")}
|
|
|
47618
47605
|
if ((_a2 = context.typeParameterSymbolList) == null ? void 0 : _a2.has(symbolId)) {
|
|
47619
47606
|
return void 0;
|
|
47620
47607
|
}
|
|
47621
|
-
(context.typeParameterSymbolList || (context.typeParameterSymbolList = new Set())).add(symbolId);
|
|
47608
|
+
(context.typeParameterSymbolList || (context.typeParameterSymbolList = /* @__PURE__ */ new Set())).add(symbolId);
|
|
47622
47609
|
let typeParameterNodes;
|
|
47623
47610
|
if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < chain.length - 1) {
|
|
47624
47611
|
const parentSymbol = symbol;
|
|
@@ -47692,7 +47679,7 @@ ${lanes.join("\n")}
|
|
|
47692
47679
|
},
|
|
47693
47680
|
{ overrideImportMode }
|
|
47694
47681
|
));
|
|
47695
|
-
(_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = new Map();
|
|
47682
|
+
(_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = /* @__PURE__ */ new Map();
|
|
47696
47683
|
links.specifierCache.set(cacheKey, specifier);
|
|
47697
47684
|
}
|
|
47698
47685
|
return specifier;
|
|
@@ -47868,9 +47855,9 @@ ${lanes.join("\n")}
|
|
|
47868
47855
|
if (text !== rawtext) {
|
|
47869
47856
|
result = factory.createIdentifier(text, result.typeArguments);
|
|
47870
47857
|
}
|
|
47871
|
-
(context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = new Map())).set(rawtext, i);
|
|
47872
|
-
(context.typeParameterNames || (context.typeParameterNames = new Map())).set(getTypeId(type), result);
|
|
47873
|
-
(context.typeParameterNamesByText || (context.typeParameterNamesByText = new Set())).add(rawtext);
|
|
47858
|
+
(context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = /* @__PURE__ */ new Map())).set(rawtext, i);
|
|
47859
|
+
(context.typeParameterNames || (context.typeParameterNames = /* @__PURE__ */ new Map())).set(getTypeId(type), result);
|
|
47860
|
+
(context.typeParameterNamesByText || (context.typeParameterNamesByText = /* @__PURE__ */ new Set())).add(rawtext);
|
|
47874
47861
|
}
|
|
47875
47862
|
return result;
|
|
47876
47863
|
}
|
|
@@ -48220,13 +48207,13 @@ ${lanes.join("\n")}
|
|
|
48220
48207
|
const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol((mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), 170 /* MethodSignature */, false);
|
|
48221
48208
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
48222
48209
|
let results = [];
|
|
48223
|
-
const visitedSymbols = new Set();
|
|
48210
|
+
const visitedSymbols = /* @__PURE__ */ new Set();
|
|
48224
48211
|
const deferredPrivatesStack = [];
|
|
48225
48212
|
const oldcontext = context;
|
|
48226
48213
|
context = {
|
|
48227
48214
|
...oldcontext,
|
|
48228
48215
|
usedSymbolNames: new Set(oldcontext.usedSymbolNames),
|
|
48229
|
-
remappedSymbolNames: new Map(),
|
|
48216
|
+
remappedSymbolNames: /* @__PURE__ */ new Map(),
|
|
48230
48217
|
tracker: {
|
|
48231
48218
|
...oldcontext.tracker,
|
|
48232
48219
|
trackSymbol: (sym, decl, meaning) => {
|
|
@@ -48387,7 +48374,7 @@ ${lanes.join("\n")}
|
|
|
48387
48374
|
}
|
|
48388
48375
|
function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) {
|
|
48389
48376
|
if (!suppressNewPrivateContext) {
|
|
48390
|
-
deferredPrivatesStack.push(new Map());
|
|
48377
|
+
deferredPrivatesStack.push(/* @__PURE__ */ new Map());
|
|
48391
48378
|
}
|
|
48392
48379
|
symbolTable2.forEach((symbol) => {
|
|
48393
48380
|
serializeSymbol(symbol, false, !!propertyAsAlias);
|
|
@@ -49492,7 +49479,7 @@ ${lanes.join("\n")}
|
|
|
49492
49479
|
let result;
|
|
49493
49480
|
let visited;
|
|
49494
49481
|
if (exportSymbol) {
|
|
49495
|
-
visited = new Set();
|
|
49482
|
+
visited = /* @__PURE__ */ new Set();
|
|
49496
49483
|
visited.add(getSymbolId(exportSymbol));
|
|
49497
49484
|
buildVisibleNodeList(exportSymbol.declarations);
|
|
49498
49485
|
}
|
|
@@ -50977,7 +50964,7 @@ ${lanes.join("\n")}
|
|
|
50977
50964
|
type.typeParameters = concatenate(outerTypeParameters, localTypeParameters);
|
|
50978
50965
|
type.outerTypeParameters = outerTypeParameters;
|
|
50979
50966
|
type.localTypeParameters = localTypeParameters;
|
|
50980
|
-
type.instantiations = new Map();
|
|
50967
|
+
type.instantiations = /* @__PURE__ */ new Map();
|
|
50981
50968
|
type.instantiations.set(getTypeListId(type.typeParameters), type);
|
|
50982
50969
|
type.target = type;
|
|
50983
50970
|
type.resolvedTypeArguments = type.typeParameters;
|
|
@@ -51002,7 +50989,7 @@ ${lanes.join("\n")}
|
|
|
51002
50989
|
const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
|
|
51003
50990
|
if (typeParameters) {
|
|
51004
50991
|
links.typeParameters = typeParameters;
|
|
51005
|
-
links.instantiations = new Map();
|
|
50992
|
+
links.instantiations = /* @__PURE__ */ new Map();
|
|
51006
50993
|
links.instantiations.set(getTypeListId(typeParameters), type);
|
|
51007
50994
|
}
|
|
51008
50995
|
} else {
|
|
@@ -51770,7 +51757,7 @@ ${lanes.join("\n")}
|
|
|
51770
51757
|
if (symbol.exports) {
|
|
51771
51758
|
members = getExportsOfSymbol(symbol);
|
|
51772
51759
|
if (symbol === globalThisSymbol) {
|
|
51773
|
-
const varsOnly = new Map();
|
|
51760
|
+
const varsOnly = /* @__PURE__ */ new Map();
|
|
51774
51761
|
members.forEach((p) => {
|
|
51775
51762
|
var _a2;
|
|
51776
51763
|
if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a2 = p.declarations) == null ? void 0 : _a2.length) && every(p.declarations, isAmbientModule))) {
|
|
@@ -52414,7 +52401,7 @@ ${lanes.join("\n")}
|
|
|
52414
52401
|
mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent));
|
|
52415
52402
|
} else {
|
|
52416
52403
|
if (!propSet) {
|
|
52417
|
-
propSet = new Map();
|
|
52404
|
+
propSet = /* @__PURE__ */ new Map();
|
|
52418
52405
|
propSet.set(getSymbolId(singleProp), singleProp);
|
|
52419
52406
|
}
|
|
52420
52407
|
const id = getSymbolId(prop);
|
|
@@ -53069,7 +53056,7 @@ ${lanes.join("\n")}
|
|
|
53069
53056
|
return instantiatedSignature;
|
|
53070
53057
|
}
|
|
53071
53058
|
function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) {
|
|
53072
|
-
const instantiations = signature.instantiations || (signature.instantiations = new Map());
|
|
53059
|
+
const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map());
|
|
53073
53060
|
const id = getTypeListId(typeArguments);
|
|
53074
53061
|
let instantiation = instantiations.get(id);
|
|
53075
53062
|
if (!instantiation) {
|
|
@@ -53966,7 +53953,7 @@ ${lanes.join("\n")}
|
|
|
53966
53953
|
type.typeParameters = typeParameters;
|
|
53967
53954
|
type.outerTypeParameters = void 0;
|
|
53968
53955
|
type.localTypeParameters = typeParameters;
|
|
53969
|
-
type.instantiations = new Map();
|
|
53956
|
+
type.instantiations = /* @__PURE__ */ new Map();
|
|
53970
53957
|
type.instantiations.set(getTypeListId(type.typeParameters), type);
|
|
53971
53958
|
type.target = type;
|
|
53972
53959
|
type.resolvedTypeArguments = type.typeParameters;
|
|
@@ -54479,7 +54466,7 @@ ${lanes.join("\n")}
|
|
|
54479
54466
|
return result;
|
|
54480
54467
|
}
|
|
54481
54468
|
function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
|
|
54482
|
-
const typeMembershipMap = new Map();
|
|
54469
|
+
const typeMembershipMap = /* @__PURE__ */ new Map();
|
|
54483
54470
|
const includes = addTypesToIntersection(typeMembershipMap, 0, types);
|
|
54484
54471
|
const typeSet = arrayFrom(typeMembershipMap.values());
|
|
54485
54472
|
if (includes & 131072 /* Never */) {
|
|
@@ -55406,7 +55393,7 @@ ${lanes.join("\n")}
|
|
|
55406
55393
|
};
|
|
55407
55394
|
links.resolvedType = getConditionalType(root, void 0);
|
|
55408
55395
|
if (outerTypeParameters) {
|
|
55409
|
-
root.instantiations = new Map();
|
|
55396
|
+
root.instantiations = /* @__PURE__ */ new Map();
|
|
55410
55397
|
root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);
|
|
55411
55398
|
}
|
|
55412
55399
|
}
|
|
@@ -55597,7 +55584,7 @@ ${lanes.join("\n")}
|
|
|
55597
55584
|
return getIntersectionType([left, right]);
|
|
55598
55585
|
}
|
|
55599
55586
|
const members = createSymbolTable();
|
|
55600
|
-
const skippedPrivateMembers = new Set();
|
|
55587
|
+
const skippedPrivateMembers = /* @__PURE__ */ new Set();
|
|
55601
55588
|
const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]);
|
|
55602
55589
|
for (const rightProp of getPropertiesOfType(right)) {
|
|
55603
55590
|
if (getDeclarationModifierFlagsFromSymbol(rightProp) & (8 /* Private */ | 16 /* Protected */)) {
|
|
@@ -56044,7 +56031,7 @@ ${lanes.join("\n")}
|
|
|
56044
56031
|
const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);
|
|
56045
56032
|
const id = getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments);
|
|
56046
56033
|
if (!target.instantiations) {
|
|
56047
|
-
target.instantiations = new Map();
|
|
56034
|
+
target.instantiations = /* @__PURE__ */ new Map();
|
|
56048
56035
|
target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target);
|
|
56049
56036
|
}
|
|
56050
56037
|
let result = target.instantiations.get(id);
|
|
@@ -58287,7 +58274,7 @@ ${lanes.join("\n")}
|
|
|
58287
58274
|
}
|
|
58288
58275
|
}
|
|
58289
58276
|
const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length);
|
|
58290
|
-
const excludedProperties = new Set();
|
|
58277
|
+
const excludedProperties = /* @__PURE__ */ new Set();
|
|
58291
58278
|
for (let i = 0; i < sourcePropertiesFiltered.length; i++) {
|
|
58292
58279
|
const sourceProperty = sourcePropertiesFiltered[i];
|
|
58293
58280
|
const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty);
|
|
@@ -59522,7 +59509,7 @@ ${lanes.join("\n")}
|
|
|
59522
59509
|
}
|
|
59523
59510
|
function getPropertiesOfContext(context) {
|
|
59524
59511
|
if (!context.resolvedProperties) {
|
|
59525
|
-
const names = new Map();
|
|
59512
|
+
const names = /* @__PURE__ */ new Map();
|
|
59526
59513
|
for (const t of getSiblingsOfContext(context)) {
|
|
59527
59514
|
if (isObjectLiteralType2(t) && !(getObjectFlags(t) & 2097152 /* ContainsSpread */)) {
|
|
59528
59515
|
for (const prop of getPropertiesOfType(t)) {
|
|
@@ -60257,7 +60244,7 @@ ${lanes.join("\n")}
|
|
|
60257
60244
|
inferencePriority = Math.min(inferencePriority, status);
|
|
60258
60245
|
return;
|
|
60259
60246
|
}
|
|
60260
|
-
(visited || (visited = new Map())).set(key, -1 /* Circularity */);
|
|
60247
|
+
(visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
|
|
60261
60248
|
const saveInferencePriority = inferencePriority;
|
|
60262
60249
|
inferencePriority = 2048 /* MaxValue */;
|
|
60263
60250
|
const saveExpandingFlags = expandingFlags;
|
|
@@ -60922,7 +60909,7 @@ ${lanes.join("\n")}
|
|
|
60922
60909
|
return result;
|
|
60923
60910
|
}
|
|
60924
60911
|
function mapTypesByKeyProperty(types, name) {
|
|
60925
|
-
const map2 = new Map();
|
|
60912
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
60926
60913
|
let count = 0;
|
|
60927
60914
|
for (const type of types) {
|
|
60928
60915
|
if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
|
|
@@ -61926,7 +61913,7 @@ ${lanes.join("\n")}
|
|
|
61926
61913
|
}
|
|
61927
61914
|
function getTypeAtFlowLoopLabel(flow) {
|
|
61928
61915
|
const id = getFlowNodeId(flow);
|
|
61929
|
-
const cache = flowLoopCaches[id] || (flowLoopCaches[id] = new Map());
|
|
61916
|
+
const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map());
|
|
61930
61917
|
const key2 = getOrSetCacheKey();
|
|
61931
61918
|
if (!key2) {
|
|
61932
61919
|
return declaredType;
|
|
@@ -67064,7 +67051,7 @@ ${lanes.join("\n")}
|
|
|
67064
67051
|
if ((_b = source.members) == null ? void 0 : _b.size) {
|
|
67065
67052
|
mergeSymbolTable(inferred.members, source.members);
|
|
67066
67053
|
}
|
|
67067
|
-
(links.inferredClassSymbol || (links.inferredClassSymbol = new Map())).set(getSymbolId(inferred), inferred);
|
|
67054
|
+
(links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred);
|
|
67068
67055
|
return inferred;
|
|
67069
67056
|
}
|
|
67070
67057
|
return links.inferredClassSymbol.get(getSymbolId(target));
|
|
@@ -69919,9 +69906,9 @@ ${lanes.join("\n")}
|
|
|
69919
69906
|
}
|
|
69920
69907
|
}
|
|
69921
69908
|
function checkClassForDuplicateDeclarations(node) {
|
|
69922
|
-
const instanceNames = new Map();
|
|
69923
|
-
const staticNames = new Map();
|
|
69924
|
-
const privateIdentifiers = new Map();
|
|
69909
|
+
const instanceNames = /* @__PURE__ */ new Map();
|
|
69910
|
+
const staticNames = /* @__PURE__ */ new Map();
|
|
69911
|
+
const privateIdentifiers = /* @__PURE__ */ new Map();
|
|
69925
69912
|
for (const member of node.members) {
|
|
69926
69913
|
if (member.kind === 173 /* Constructor */) {
|
|
69927
69914
|
for (const param of member.parameters) {
|
|
@@ -70001,7 +69988,7 @@ ${lanes.join("\n")}
|
|
|
70001
69988
|
}
|
|
70002
69989
|
}
|
|
70003
69990
|
function checkObjectTypeForDuplicateDeclarations(node) {
|
|
70004
|
-
const names = new Map();
|
|
69991
|
+
const names = /* @__PURE__ */ new Map();
|
|
70005
69992
|
for (const member of node.members) {
|
|
70006
69993
|
if (member.kind === 168 /* PropertySignature */) {
|
|
70007
69994
|
let memberName;
|
|
@@ -70035,7 +70022,7 @@ ${lanes.join("\n")}
|
|
|
70035
70022
|
}
|
|
70036
70023
|
const indexSymbol = getIndexSymbol(getSymbolOfNode(node));
|
|
70037
70024
|
if (indexSymbol == null ? void 0 : indexSymbol.declarations) {
|
|
70038
|
-
const indexSignatureMap = new Map();
|
|
70025
|
+
const indexSignatureMap = /* @__PURE__ */ new Map();
|
|
70039
70026
|
for (const declaration of indexSymbol.declarations) {
|
|
70040
70027
|
if (declaration.parameters.length === 1 && declaration.parameters[0].type) {
|
|
70041
70028
|
forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => {
|
|
@@ -71419,7 +71406,7 @@ ${lanes.join("\n")}
|
|
|
71419
71406
|
if (!declarations || last(declarations) !== node)
|
|
71420
71407
|
return;
|
|
71421
71408
|
const typeParameters = getEffectiveTypeParameterDeclarations(node);
|
|
71422
|
-
const seenParentsWithEveryUnused = new Set();
|
|
71409
|
+
const seenParentsWithEveryUnused = /* @__PURE__ */ new Set();
|
|
71423
71410
|
for (const typeParameter of typeParameters) {
|
|
71424
71411
|
if (!isTypeParameterUnused(typeParameter))
|
|
71425
71412
|
continue;
|
|
@@ -71464,9 +71451,9 @@ ${lanes.join("\n")}
|
|
|
71464
71451
|
return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name);
|
|
71465
71452
|
}
|
|
71466
71453
|
function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) {
|
|
71467
|
-
const unusedImports = new Map();
|
|
71468
|
-
const unusedDestructures = new Map();
|
|
71469
|
-
const unusedVariables = new Map();
|
|
71454
|
+
const unusedImports = /* @__PURE__ */ new Map();
|
|
71455
|
+
const unusedDestructures = /* @__PURE__ */ new Map();
|
|
71456
|
+
const unusedVariables = /* @__PURE__ */ new Map();
|
|
71470
71457
|
nodeWithLocals.locals.forEach((local) => {
|
|
71471
71458
|
if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) {
|
|
71472
71459
|
return;
|
|
@@ -72919,8 +72906,8 @@ ${lanes.join("\n")}
|
|
|
72919
72906
|
if (!length(jsdocParameters))
|
|
72920
72907
|
return;
|
|
72921
72908
|
const isJs = isInJSFile(node);
|
|
72922
|
-
const parameters = new Set();
|
|
72923
|
-
const excludedParameters = new Set();
|
|
72909
|
+
const parameters = /* @__PURE__ */ new Set();
|
|
72910
|
+
const excludedParameters = /* @__PURE__ */ new Set();
|
|
72924
72911
|
forEach(node.parameters, ({ name }, index) => {
|
|
72925
72912
|
if (isIdentifier(name)) {
|
|
72926
72913
|
parameters.add(name.escapedText);
|
|
@@ -73456,7 +73443,7 @@ ${lanes.join("\n")}
|
|
|
73456
73443
|
if (!length(baseTypes)) {
|
|
73457
73444
|
return properties;
|
|
73458
73445
|
}
|
|
73459
|
-
const seen = new Map();
|
|
73446
|
+
const seen = /* @__PURE__ */ new Map();
|
|
73460
73447
|
forEach(properties, (p) => {
|
|
73461
73448
|
seen.set(p.escapedName, p);
|
|
73462
73449
|
});
|
|
@@ -73476,7 +73463,7 @@ ${lanes.join("\n")}
|
|
|
73476
73463
|
if (baseTypes.length < 2) {
|
|
73477
73464
|
return true;
|
|
73478
73465
|
}
|
|
73479
|
-
const seen = new Map();
|
|
73466
|
+
const seen = /* @__PURE__ */ new Map();
|
|
73480
73467
|
forEach(resolveDeclaredMembers(type).declaredProperties, (p) => {
|
|
73481
73468
|
seen.set(p.escapedName, { prop: p, containingType: type });
|
|
73482
73469
|
});
|
|
@@ -74683,7 +74670,7 @@ ${lanes.join("\n")}
|
|
|
74683
74670
|
const enclosingFile = getSourceFileOfNode(node);
|
|
74684
74671
|
const links = getNodeLinks(enclosingFile);
|
|
74685
74672
|
if (!(links.flags & 1 /* TypeChecked */)) {
|
|
74686
|
-
links.deferredNodes || (links.deferredNodes = new Set());
|
|
74673
|
+
links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
|
|
74687
74674
|
links.deferredNodes.add(node);
|
|
74688
74675
|
}
|
|
74689
74676
|
}
|
|
@@ -75117,7 +75104,7 @@ ${lanes.join("\n")}
|
|
|
75117
75104
|
const declarationList = mapDefined(infos, (i) => i.declaration);
|
|
75118
75105
|
const nodeListId = map(declarationList, getNodeId).join(",");
|
|
75119
75106
|
if (!symbolLinks2.filteredIndexSymbolCache) {
|
|
75120
|
-
symbolLinks2.filteredIndexSymbolCache = new Map();
|
|
75107
|
+
symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map();
|
|
75121
75108
|
}
|
|
75122
75109
|
if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) {
|
|
75123
75110
|
links.resolvedSymbol = symbolLinks2.filteredIndexSymbolCache.get(nodeListId);
|
|
@@ -75850,7 +75837,7 @@ ${lanes.join("\n")}
|
|
|
75850
75837
|
const resolvedTypeReferenceDirectives = host.getResolvedTypeReferenceDirectives();
|
|
75851
75838
|
let fileToDirective;
|
|
75852
75839
|
if (resolvedTypeReferenceDirectives) {
|
|
75853
|
-
fileToDirective = new Map();
|
|
75840
|
+
fileToDirective = /* @__PURE__ */ new Map();
|
|
75854
75841
|
resolvedTypeReferenceDirectives.forEach((resolvedDirective, key, mode) => {
|
|
75855
75842
|
if (!resolvedDirective || !resolvedDirective.resolvedFileName) {
|
|
75856
75843
|
return;
|
|
@@ -76059,7 +76046,7 @@ ${lanes.join("\n")}
|
|
|
76059
76046
|
for (const file of host.getSourceFiles()) {
|
|
76060
76047
|
bindSourceFile(file, compilerOptions);
|
|
76061
76048
|
}
|
|
76062
|
-
amalgamatedDuplicates = new Map();
|
|
76049
|
+
amalgamatedDuplicates = /* @__PURE__ */ new Map();
|
|
76063
76050
|
let augmentations;
|
|
76064
76051
|
for (const file of host.getSourceFiles()) {
|
|
76065
76052
|
if (file.redirectInfo) {
|
|
@@ -76823,7 +76810,7 @@ ${lanes.join("\n")}
|
|
|
76823
76810
|
return !!exclamationToken && grammarErrorOnNode(exclamationToken, message);
|
|
76824
76811
|
}
|
|
76825
76812
|
function checkGrammarObjectLiteralExpression(node, inDestructuring) {
|
|
76826
|
-
const seen = new Map();
|
|
76813
|
+
const seen = /* @__PURE__ */ new Map();
|
|
76827
76814
|
for (const prop of node.properties) {
|
|
76828
76815
|
if (prop.kind === 301 /* SpreadAssignment */) {
|
|
76829
76816
|
if (inDestructuring) {
|
|
@@ -76907,7 +76894,7 @@ ${lanes.join("\n")}
|
|
|
76907
76894
|
function checkGrammarJsxElement(node) {
|
|
76908
76895
|
checkGrammarJsxName(node.tagName);
|
|
76909
76896
|
checkGrammarTypeArguments(node, node.typeArguments);
|
|
76910
|
-
const seen = new Map();
|
|
76897
|
+
const seen = /* @__PURE__ */ new Map();
|
|
76911
76898
|
for (const attr of node.attributes.properties) {
|
|
76912
76899
|
if (attr.kind === 290 /* JsxSpreadAttribute */) {
|
|
76913
76900
|
continue;
|
|
@@ -78974,7 +78961,7 @@ ${lanes.join("\n")}
|
|
|
78974
78961
|
const { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : nullTimer;
|
|
78975
78962
|
const rawSources = [];
|
|
78976
78963
|
const sources = [];
|
|
78977
|
-
const sourceToSourceIndexMap = new Map();
|
|
78964
|
+
const sourceToSourceIndexMap = /* @__PURE__ */ new Map();
|
|
78978
78965
|
let sourcesContent;
|
|
78979
78966
|
const names = [];
|
|
78980
78967
|
let nameToNameIndexMap;
|
|
@@ -79040,7 +79027,7 @@ ${lanes.join("\n")}
|
|
|
79040
79027
|
function addName(name) {
|
|
79041
79028
|
enter();
|
|
79042
79029
|
if (!nameToNameIndexMap)
|
|
79043
|
-
nameToNameIndexMap = new Map();
|
|
79030
|
+
nameToNameIndexMap = /* @__PURE__ */ new Map();
|
|
79044
79031
|
let nameIndex = nameToNameIndexMap.get(name);
|
|
79045
79032
|
if (nameIndex === void 0) {
|
|
79046
79033
|
nameIndex = names.length;
|
|
@@ -79566,7 +79553,7 @@ ${lanes.join("\n")}
|
|
|
79566
79553
|
const externalImports = [];
|
|
79567
79554
|
const exportSpecifiers = createMultiMap();
|
|
79568
79555
|
const exportedBindings = [];
|
|
79569
|
-
const uniqueExports = new Map();
|
|
79556
|
+
const uniqueExports = /* @__PURE__ */ new Map();
|
|
79570
79557
|
let exportedNames;
|
|
79571
79558
|
let hasExportDefault = false;
|
|
79572
79559
|
let exportEquals;
|
|
@@ -81333,7 +81320,7 @@ ${lanes.join("\n")}
|
|
|
81333
81320
|
}
|
|
81334
81321
|
function recordEmittedDeclarationInScope(node) {
|
|
81335
81322
|
if (!currentScopeFirstDeclarationsOfName) {
|
|
81336
|
-
currentScopeFirstDeclarationsOfName = new Map();
|
|
81323
|
+
currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map();
|
|
81337
81324
|
}
|
|
81338
81325
|
const name = declaredNameInScope(node);
|
|
81339
81326
|
if (!currentScopeFirstDeclarationsOfName.has(name)) {
|
|
@@ -81824,7 +81811,7 @@ ${lanes.join("\n")}
|
|
|
81824
81811
|
let pendingExpressions;
|
|
81825
81812
|
let pendingStatements;
|
|
81826
81813
|
const classLexicalEnvironmentStack = [];
|
|
81827
|
-
const classLexicalEnvironmentMap = new Map();
|
|
81814
|
+
const classLexicalEnvironmentMap = /* @__PURE__ */ new Map();
|
|
81828
81815
|
let currentClassLexicalEnvironment;
|
|
81829
81816
|
let currentClassContainer;
|
|
81830
81817
|
let currentComputedPropertyNameClassLexicalEnvironment;
|
|
@@ -83540,10 +83527,10 @@ ${lanes.join("\n")}
|
|
|
83540
83527
|
function setPrivateIdentifier(privateEnv, name, info) {
|
|
83541
83528
|
var _a2, _b;
|
|
83542
83529
|
if (isGeneratedPrivateIdentifier(name)) {
|
|
83543
|
-
(_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = new Map();
|
|
83530
|
+
(_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map();
|
|
83544
83531
|
privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), info);
|
|
83545
83532
|
} else {
|
|
83546
|
-
(_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = new Map();
|
|
83533
|
+
(_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = /* @__PURE__ */ new Map();
|
|
83547
83534
|
privateEnv.identifiers.set(name.escapedText, info);
|
|
83548
83535
|
}
|
|
83549
83536
|
}
|
|
@@ -84386,7 +84373,7 @@ ${lanes.join("\n")}
|
|
|
84386
84373
|
return visitor(node);
|
|
84387
84374
|
}
|
|
84388
84375
|
function visitCatchClauseInAsyncBody(node) {
|
|
84389
|
-
const catchClauseNames = new Set();
|
|
84376
|
+
const catchClauseNames = /* @__PURE__ */ new Set();
|
|
84390
84377
|
recordDeclarationName(node.variableDeclaration, catchClauseNames);
|
|
84391
84378
|
let catchClauseUnshadowedNames;
|
|
84392
84379
|
catchClauseNames.forEach((_, escapedName) => {
|
|
@@ -84596,7 +84583,7 @@ ${lanes.join("\n")}
|
|
|
84596
84583
|
Debug.assertIsDefined(node.body);
|
|
84597
84584
|
const savedCapturedSuperProperties = capturedSuperProperties;
|
|
84598
84585
|
const savedHasSuperElementAccess = hasSuperElementAccess;
|
|
84599
|
-
capturedSuperProperties = new Set();
|
|
84586
|
+
capturedSuperProperties = /* @__PURE__ */ new Set();
|
|
84600
84587
|
hasSuperElementAccess = false;
|
|
84601
84588
|
let updated = visitFunctionBody(node.body, visitor, context);
|
|
84602
84589
|
const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
|
|
@@ -84630,14 +84617,14 @@ ${lanes.join("\n")}
|
|
|
84630
84617
|
const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
|
|
84631
84618
|
const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
|
|
84632
84619
|
const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
|
|
84633
|
-
enclosingFunctionParameterNames = new Set();
|
|
84620
|
+
enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
|
|
84634
84621
|
for (const parameter of node.parameters) {
|
|
84635
84622
|
recordDeclarationName(parameter, enclosingFunctionParameterNames);
|
|
84636
84623
|
}
|
|
84637
84624
|
const savedCapturedSuperProperties = capturedSuperProperties;
|
|
84638
84625
|
const savedHasSuperElementAccess = hasSuperElementAccess;
|
|
84639
84626
|
if (!isArrowFunction2) {
|
|
84640
|
-
capturedSuperProperties = new Set();
|
|
84627
|
+
capturedSuperProperties = /* @__PURE__ */ new Set();
|
|
84641
84628
|
hasSuperElementAccess = false;
|
|
84642
84629
|
}
|
|
84643
84630
|
let result;
|
|
@@ -85613,7 +85600,7 @@ ${lanes.join("\n")}
|
|
|
85613
85600
|
if (parameters) {
|
|
85614
85601
|
parameters.add(parameter);
|
|
85615
85602
|
} else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) {
|
|
85616
|
-
parameters = new Set();
|
|
85603
|
+
parameters = /* @__PURE__ */ new Set();
|
|
85617
85604
|
}
|
|
85618
85605
|
}
|
|
85619
85606
|
return parameters;
|
|
@@ -85749,7 +85736,7 @@ ${lanes.join("\n")}
|
|
|
85749
85736
|
appendObjectRestAssignmentsIfNeeded(statements, node);
|
|
85750
85737
|
const savedCapturedSuperProperties = capturedSuperProperties;
|
|
85751
85738
|
const savedHasSuperElementAccess = hasSuperElementAccess;
|
|
85752
|
-
capturedSuperProperties = new Set();
|
|
85739
|
+
capturedSuperProperties = /* @__PURE__ */ new Set();
|
|
85753
85740
|
hasSuperElementAccess = false;
|
|
85754
85741
|
const returnStatement = factory2.createReturnStatement(
|
|
85755
85742
|
emitHelpers().createAsyncGeneratorHelper(
|
|
@@ -86351,11 +86338,11 @@ ${lanes.join("\n")}
|
|
|
86351
86338
|
return existing.name;
|
|
86352
86339
|
}
|
|
86353
86340
|
if (!currentFileState.utilizedImplicitRuntimeImports) {
|
|
86354
|
-
currentFileState.utilizedImplicitRuntimeImports = new Map();
|
|
86341
|
+
currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map();
|
|
86355
86342
|
}
|
|
86356
86343
|
let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource);
|
|
86357
86344
|
if (!specifierSourceImports) {
|
|
86358
|
-
specifierSourceImports = new Map();
|
|
86345
|
+
specifierSourceImports = /* @__PURE__ */ new Map();
|
|
86359
86346
|
currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
|
|
86360
86347
|
}
|
|
86361
86348
|
const generatedName = factory2.createUniqueName(`_${name}`, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */);
|
|
@@ -88365,7 +88352,7 @@ ${lanes.join("\n")}
|
|
|
88365
88352
|
}
|
|
88366
88353
|
function visitLabeledStatement(node) {
|
|
88367
88354
|
if (convertedLoopState && !convertedLoopState.labels) {
|
|
88368
|
-
convertedLoopState.labels = new Map();
|
|
88355
|
+
convertedLoopState.labels = /* @__PURE__ */ new Map();
|
|
88369
88356
|
}
|
|
88370
88357
|
const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel);
|
|
88371
88358
|
return isIterationStatement(statement, false) ? visitIterationStatement(statement, node) : factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node, convertedLoopState && resetLabel);
|
|
@@ -89124,12 +89111,12 @@ ${lanes.join("\n")}
|
|
|
89124
89111
|
function setLabeledJump(state, isBreak, labelText, labelMarker) {
|
|
89125
89112
|
if (isBreak) {
|
|
89126
89113
|
if (!state.labeledNonLocalBreaks) {
|
|
89127
|
-
state.labeledNonLocalBreaks = new Map();
|
|
89114
|
+
state.labeledNonLocalBreaks = /* @__PURE__ */ new Map();
|
|
89128
89115
|
}
|
|
89129
89116
|
state.labeledNonLocalBreaks.set(labelText, labelMarker);
|
|
89130
89117
|
} else {
|
|
89131
89118
|
if (!state.labeledNonLocalContinues) {
|
|
89132
|
-
state.labeledNonLocalContinues = new Map();
|
|
89119
|
+
state.labeledNonLocalContinues = /* @__PURE__ */ new Map();
|
|
89133
89120
|
}
|
|
89134
89121
|
state.labeledNonLocalContinues.set(labelText, labelMarker);
|
|
89135
89122
|
}
|
|
@@ -90978,7 +90965,7 @@ ${lanes.join("\n")}
|
|
|
90978
90965
|
const text = idText(variable.name);
|
|
90979
90966
|
name = declareLocal(text);
|
|
90980
90967
|
if (!renamedCatchVariables) {
|
|
90981
|
-
renamedCatchVariables = new Map();
|
|
90968
|
+
renamedCatchVariables = /* @__PURE__ */ new Map();
|
|
90982
90969
|
renamedCatchVariableDeclarations = [];
|
|
90983
90970
|
context.enableSubstitution(79 /* Identifier */);
|
|
90984
90971
|
}
|
|
@@ -93140,7 +93127,7 @@ ${lanes.join("\n")}
|
|
|
93140
93127
|
return updated;
|
|
93141
93128
|
}
|
|
93142
93129
|
function collectDependencyGroups(externalImports) {
|
|
93143
|
-
const groupIndices = new Map();
|
|
93130
|
+
const groupIndices = /* @__PURE__ */ new Map();
|
|
93144
93131
|
const dependencyGroups = [];
|
|
93145
93132
|
for (const externalImport of externalImports) {
|
|
93146
93133
|
const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions);
|
|
@@ -94390,7 +94377,7 @@ ${lanes.join("\n")}
|
|
|
94390
94377
|
function onEmitNode(hint, node, emitCallback) {
|
|
94391
94378
|
if (isSourceFile(node)) {
|
|
94392
94379
|
if ((isExternalModule(node) || compilerOptions.isolatedModules) && compilerOptions.importHelpers) {
|
|
94393
|
-
helperNameSubstitutions = new Map();
|
|
94380
|
+
helperNameSubstitutions = /* @__PURE__ */ new Map();
|
|
94394
94381
|
}
|
|
94395
94382
|
previousOnEmitNode(hint, node, emitCallback);
|
|
94396
94383
|
helperNameSubstitutions = void 0;
|
|
@@ -94810,7 +94797,7 @@ ${lanes.join("\n")}
|
|
|
94810
94797
|
if (!typeReferenceDirectives) {
|
|
94811
94798
|
return;
|
|
94812
94799
|
}
|
|
94813
|
-
necessaryTypeReferences = necessaryTypeReferences || new Set();
|
|
94800
|
+
necessaryTypeReferences = necessaryTypeReferences || /* @__PURE__ */ new Set();
|
|
94814
94801
|
for (const ref of typeReferenceDirectives) {
|
|
94815
94802
|
necessaryTypeReferences.add(ref);
|
|
94816
94803
|
}
|
|
@@ -94963,8 +94950,8 @@ ${lanes.join("\n")}
|
|
|
94963
94950
|
}
|
|
94964
94951
|
if (node.kind === 309 /* Bundle */) {
|
|
94965
94952
|
isBundledEmit = true;
|
|
94966
|
-
refs = new Map();
|
|
94967
|
-
libs2 = new Map();
|
|
94953
|
+
refs = /* @__PURE__ */ new Map();
|
|
94954
|
+
libs2 = /* @__PURE__ */ new Map();
|
|
94968
94955
|
let hasNoDefaultLib = false;
|
|
94969
94956
|
const bundle = factory2.createBundle(map(
|
|
94970
94957
|
node.sourceFiles,
|
|
@@ -94976,7 +94963,7 @@ ${lanes.join("\n")}
|
|
|
94976
94963
|
enclosingDeclaration = sourceFile;
|
|
94977
94964
|
lateMarkedStatements = void 0;
|
|
94978
94965
|
suppressNewDiagnosticContexts = false;
|
|
94979
|
-
lateStatementReplacementMap = new Map();
|
|
94966
|
+
lateStatementReplacementMap = /* @__PURE__ */ new Map();
|
|
94980
94967
|
getSymbolAccessibilityDiagnostic = throwDiagnostic;
|
|
94981
94968
|
needsScopeFixMarker = false;
|
|
94982
94969
|
resultHasScopeMarker = false;
|
|
@@ -95027,10 +95014,10 @@ ${lanes.join("\n")}
|
|
|
95027
95014
|
resultHasExternalModuleIndicator = false;
|
|
95028
95015
|
suppressNewDiagnosticContexts = false;
|
|
95029
95016
|
lateMarkedStatements = void 0;
|
|
95030
|
-
lateStatementReplacementMap = new Map();
|
|
95017
|
+
lateStatementReplacementMap = /* @__PURE__ */ new Map();
|
|
95031
95018
|
necessaryTypeReferences = void 0;
|
|
95032
|
-
refs = collectReferences(currentSourceFile, new Map());
|
|
95033
|
-
libs2 = collectLibs(currentSourceFile, new Map());
|
|
95019
|
+
refs = collectReferences(currentSourceFile, /* @__PURE__ */ new Map());
|
|
95020
|
+
libs2 = collectLibs(currentSourceFile, /* @__PURE__ */ new Map());
|
|
95034
95021
|
const references = [];
|
|
95035
95022
|
const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor(node, host, true).declarationFilePath));
|
|
95036
95023
|
const referenceVisitor = mapReferencesIntoArray(references, outputFilePath);
|
|
@@ -97380,7 +97367,7 @@ ${lanes.join("\n")}
|
|
|
97380
97367
|
const extendedDiagnostics = !!printerOptions.extendedDiagnostics;
|
|
97381
97368
|
const newLine = getNewLineCharacter(printerOptions);
|
|
97382
97369
|
const moduleKind = getEmitModuleKind(printerOptions);
|
|
97383
|
-
const bundledHelpers = new Map();
|
|
97370
|
+
const bundledHelpers = /* @__PURE__ */ new Map();
|
|
97384
97371
|
let currentSourceFile;
|
|
97385
97372
|
let nodeIdToGeneratedName;
|
|
97386
97373
|
let autoGeneratedIdToGeneratedName;
|
|
@@ -97634,9 +97621,9 @@ ${lanes.join("\n")}
|
|
|
97634
97621
|
function reset2() {
|
|
97635
97622
|
nodeIdToGeneratedName = [];
|
|
97636
97623
|
autoGeneratedIdToGeneratedName = [];
|
|
97637
|
-
generatedNames = new Set();
|
|
97624
|
+
generatedNames = /* @__PURE__ */ new Set();
|
|
97638
97625
|
formattedNameTempFlagsStack = [];
|
|
97639
|
-
formattedNameTempFlags = new Map();
|
|
97626
|
+
formattedNameTempFlags = /* @__PURE__ */ new Map();
|
|
97640
97627
|
privateNameTempFlagsStack = [];
|
|
97641
97628
|
privateNameTempFlags = TempFlags.Auto;
|
|
97642
97629
|
tempFlagsStack = [];
|
|
@@ -98188,7 +98175,7 @@ ${lanes.join("\n")}
|
|
|
98188
98175
|
if (moduleKind === 0 /* None */ || printerOptions.noEmitHelpers) {
|
|
98189
98176
|
return void 0;
|
|
98190
98177
|
}
|
|
98191
|
-
const bundledHelpers2 = new Map();
|
|
98178
|
+
const bundledHelpers2 = /* @__PURE__ */ new Map();
|
|
98192
98179
|
for (const sourceFile of bundle.sourceFiles) {
|
|
98193
98180
|
const shouldSkip = getExternalHelpersModuleName(sourceFile) !== void 0;
|
|
98194
98181
|
const helpers = getSortedEmitHelpers(sourceFile);
|
|
@@ -100038,7 +100025,7 @@ ${lanes.join("\n")}
|
|
|
100038
100025
|
if (isSourceFile(sourceFileOrBundle)) {
|
|
100039
100026
|
emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle);
|
|
100040
100027
|
} else {
|
|
100041
|
-
const seenPrologueDirectives = new Set();
|
|
100028
|
+
const seenPrologueDirectives = /* @__PURE__ */ new Set();
|
|
100042
100029
|
for (const prepend of sourceFileOrBundle.prepends) {
|
|
100043
100030
|
emitUnparsedPrologues(prepend.prologues, seenPrologueDirectives);
|
|
100044
100031
|
}
|
|
@@ -100049,7 +100036,7 @@ ${lanes.join("\n")}
|
|
|
100049
100036
|
}
|
|
100050
100037
|
}
|
|
100051
100038
|
function getPrologueDirectivesFromBundledSourceFiles(bundle) {
|
|
100052
|
-
const seenPrologueDirectives = new Set();
|
|
100039
|
+
const seenPrologueDirectives = /* @__PURE__ */ new Set();
|
|
100053
100040
|
let prologues;
|
|
100054
100041
|
for (let index = 0; index < bundle.sourceFiles.length; index++) {
|
|
100055
100042
|
const sourceFile = bundle.sourceFiles[index];
|
|
@@ -100709,7 +100696,7 @@ ${lanes.join("\n")}
|
|
|
100709
100696
|
}
|
|
100710
100697
|
function reserveNameInNestedScopes(name) {
|
|
100711
100698
|
if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) {
|
|
100712
|
-
reservedNames = new Set();
|
|
100699
|
+
reservedNames = /* @__PURE__ */ new Set();
|
|
100713
100700
|
}
|
|
100714
100701
|
reservedNames.add(name);
|
|
100715
100702
|
}
|
|
@@ -100871,7 +100858,7 @@ ${lanes.join("\n")}
|
|
|
100871
100858
|
privateNameTempFlags = flags;
|
|
100872
100859
|
break;
|
|
100873
100860
|
default:
|
|
100874
|
-
formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = new Map();
|
|
100861
|
+
formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = /* @__PURE__ */ new Map();
|
|
100875
100862
|
formattedNameTempFlags.set(formattedNameKey, flags);
|
|
100876
100863
|
break;
|
|
100877
100864
|
}
|
|
@@ -101474,7 +101461,7 @@ ${lanes.join("\n")}
|
|
|
101474
101461
|
if (!host.getDirectories || !host.readDirectory) {
|
|
101475
101462
|
return void 0;
|
|
101476
101463
|
}
|
|
101477
|
-
const cachedReadDirectoryResult = new Map();
|
|
101464
|
+
const cachedReadDirectoryResult = /* @__PURE__ */ new Map();
|
|
101478
101465
|
const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
101479
101466
|
return {
|
|
101480
101467
|
useCaseSensitiveFileNames,
|
|
@@ -101688,7 +101675,7 @@ ${lanes.join("\n")}
|
|
|
101688
101675
|
existing.projects.add(projectPath);
|
|
101689
101676
|
} else {
|
|
101690
101677
|
extendedConfigFilesMap.set(extendedConfigFilePath, {
|
|
101691
|
-
projects: new Set([projectPath]),
|
|
101678
|
+
projects: /* @__PURE__ */ new Set([projectPath]),
|
|
101692
101679
|
watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath),
|
|
101693
101680
|
close: () => {
|
|
101694
101681
|
const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath);
|
|
@@ -102001,7 +101988,7 @@ ${lanes.join("\n")}
|
|
|
102001
101988
|
};
|
|
102002
101989
|
}
|
|
102003
101990
|
function createCompilerHostWorker(options, setParentNodes, system = sys) {
|
|
102004
|
-
const existingDirectories = new Map();
|
|
101991
|
+
const existingDirectories = /* @__PURE__ */ new Map();
|
|
102005
101992
|
const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);
|
|
102006
101993
|
function directoryExists(directoryPath) {
|
|
102007
101994
|
if (existingDirectories.has(directoryPath)) {
|
|
@@ -102050,10 +102037,10 @@ ${lanes.join("\n")}
|
|
|
102050
102037
|
const originalDirectoryExists = host.directoryExists;
|
|
102051
102038
|
const originalCreateDirectory = host.createDirectory;
|
|
102052
102039
|
const originalWriteFile = host.writeFile;
|
|
102053
|
-
const readFileCache = new Map();
|
|
102054
|
-
const fileExistsCache = new Map();
|
|
102055
|
-
const directoryExistsCache = new Map();
|
|
102056
|
-
const sourceFileCache = new Map();
|
|
102040
|
+
const readFileCache = /* @__PURE__ */ new Map();
|
|
102041
|
+
const fileExistsCache = /* @__PURE__ */ new Map();
|
|
102042
|
+
const directoryExistsCache = /* @__PURE__ */ new Map();
|
|
102043
|
+
const sourceFileCache = /* @__PURE__ */ new Map();
|
|
102057
102044
|
const readFileWithCache = (fileName) => {
|
|
102058
102045
|
const key = toPath3(fileName);
|
|
102059
102046
|
const value = readFileCache.get(key);
|
|
@@ -102085,7 +102072,7 @@ ${lanes.join("\n")}
|
|
|
102085
102072
|
return value;
|
|
102086
102073
|
const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
|
|
102087
102074
|
if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */))) {
|
|
102088
|
-
sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || new Map()).set(key, sourceFile));
|
|
102075
|
+
sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile));
|
|
102089
102076
|
}
|
|
102090
102077
|
return sourceFile;
|
|
102091
102078
|
} : void 0;
|
|
@@ -102310,7 +102297,7 @@ ${lanes.join("\n")}
|
|
|
102310
102297
|
return [];
|
|
102311
102298
|
}
|
|
102312
102299
|
const resolutions = [];
|
|
102313
|
-
const cache = new Map();
|
|
102300
|
+
const cache = /* @__PURE__ */ new Map();
|
|
102314
102301
|
for (const name of names) {
|
|
102315
102302
|
let result;
|
|
102316
102303
|
const mode = getModeForFileReference(name, containingFileMode);
|
|
@@ -102395,7 +102382,7 @@ ${lanes.join("\n")}
|
|
|
102395
102382
|
return [];
|
|
102396
102383
|
}
|
|
102397
102384
|
const resolutions = [];
|
|
102398
|
-
const cache = new Map();
|
|
102385
|
+
const cache = /* @__PURE__ */ new Map();
|
|
102399
102386
|
let i = 0;
|
|
102400
102387
|
for (const entry of resolutionInfo ? resolutionInfo.names : names) {
|
|
102401
102388
|
let result;
|
|
@@ -102431,7 +102418,7 @@ ${lanes.join("\n")}
|
|
|
102431
102418
|
const result = cbResolvedRef(resolvedRef, parent2, index);
|
|
102432
102419
|
if (result || !resolvedRef)
|
|
102433
102420
|
return result;
|
|
102434
|
-
(seenResolvedRefs || (seenResolvedRefs = new Set())).add(resolvedRef.sourceFile.path);
|
|
102421
|
+
(seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
|
|
102435
102422
|
return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef);
|
|
102436
102423
|
});
|
|
102437
102424
|
}
|
|
@@ -102551,7 +102538,7 @@ ${lanes.join("\n")}
|
|
|
102551
102538
|
return { impliedNodeFormat, packageJsonLocations, packageJsonScope };
|
|
102552
102539
|
}
|
|
102553
102540
|
}
|
|
102554
|
-
var plainJSErrors = new Set([
|
|
102541
|
+
var plainJSErrors = /* @__PURE__ */ new Set([
|
|
102555
102542
|
Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
|
|
102556
102543
|
Diagnostics.A_module_cannot_have_multiple_default_exports.code,
|
|
102557
102544
|
Diagnostics.Another_export_default_is_here.code,
|
|
@@ -102670,7 +102657,7 @@ ${lanes.join("\n")}
|
|
|
102670
102657
|
let commonSourceDirectory;
|
|
102671
102658
|
let typeChecker;
|
|
102672
102659
|
let classifiableNames;
|
|
102673
|
-
const ambientModuleNameToUnmodifiedFileName = new Map();
|
|
102660
|
+
const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map();
|
|
102674
102661
|
let fileReasons = createMultiMap();
|
|
102675
102662
|
const cachedBindAndCheckDiagnosticsForFile = {};
|
|
102676
102663
|
const cachedDeclarationDiagnosticsForFile = {};
|
|
@@ -102678,8 +102665,8 @@ ${lanes.join("\n")}
|
|
|
102678
102665
|
let fileProcessingDiagnostics;
|
|
102679
102666
|
const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === "number" ? options.maxNodeModuleJsDepth : 0;
|
|
102680
102667
|
let currentNodeModulesDepth = 0;
|
|
102681
|
-
const modulesWithElidedImports = new Map();
|
|
102682
|
-
const sourceFilesFoundSearchingNodeModules = new Map();
|
|
102668
|
+
const modulesWithElidedImports = /* @__PURE__ */ new Map();
|
|
102669
|
+
const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map();
|
|
102683
102670
|
(_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "createProgram", { configFilePath: options.configFilePath, rootDir: options.rootDir }, true);
|
|
102684
102671
|
mark("beforeProgram");
|
|
102685
102672
|
const host = createProgramOptions.host || createCompilerHost(options);
|
|
@@ -102691,7 +102678,7 @@ ${lanes.join("\n")}
|
|
|
102691
102678
|
const currentDirectory = host.getCurrentDirectory();
|
|
102692
102679
|
const supportedExtensions = getSupportedExtensions(options);
|
|
102693
102680
|
const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
|
|
102694
|
-
const hasEmitBlockingDiagnostics = new Map();
|
|
102681
|
+
const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map();
|
|
102695
102682
|
let _compilerOptionsObjectLiteralSyntax;
|
|
102696
102683
|
let moduleResolutionCache;
|
|
102697
102684
|
let typeReferenceDirectiveResolutionCache;
|
|
@@ -102739,13 +102726,13 @@ ${lanes.join("\n")}
|
|
|
102739
102726
|
).resolvedTypeReferenceDirective;
|
|
102740
102727
|
actualResolveTypeReferenceDirectiveNamesWorker = (typeReferenceDirectiveNames, containingFile, redirectedReference, containingFileMode) => loadWithTypeDirectiveCache(Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, containingFileMode, loader);
|
|
102741
102728
|
}
|
|
102742
|
-
const packageIdToSourceFile = new Map();
|
|
102743
|
-
let sourceFileToPackageName = new Map();
|
|
102729
|
+
const packageIdToSourceFile = /* @__PURE__ */ new Map();
|
|
102730
|
+
let sourceFileToPackageName = /* @__PURE__ */ new Map();
|
|
102744
102731
|
let redirectTargetsMap = createMultiMap();
|
|
102745
102732
|
let usesUriStyleNodeCoreModules = false;
|
|
102746
|
-
const filesByName = new Map();
|
|
102733
|
+
const filesByName = /* @__PURE__ */ new Map();
|
|
102747
102734
|
let missingFilePaths;
|
|
102748
|
-
const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new Map() : void 0;
|
|
102735
|
+
const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
|
|
102749
102736
|
let resolvedProjectReferences;
|
|
102750
102737
|
let projectReferenceRedirects;
|
|
102751
102738
|
let mapFromFileToProjectReferenceRedirects;
|
|
@@ -103054,7 +103041,7 @@ ${lanes.join("\n")}
|
|
|
103054
103041
|
var _a3;
|
|
103055
103042
|
if (!classifiableNames) {
|
|
103056
103043
|
getTypeChecker();
|
|
103057
|
-
classifiableNames = new Set();
|
|
103044
|
+
classifiableNames = /* @__PURE__ */ new Set();
|
|
103058
103045
|
for (const sourceFile of files) {
|
|
103059
103046
|
(_a3 = sourceFile.classifiableNames) == null ? void 0 : _a3.forEach((value) => classifiableNames.add(value));
|
|
103060
103047
|
}
|
|
@@ -103263,7 +103250,7 @@ ${lanes.join("\n")}
|
|
|
103263
103250
|
SeenPackageName2[SeenPackageName2["Exists"] = 0] = "Exists";
|
|
103264
103251
|
SeenPackageName2[SeenPackageName2["Modified"] = 1] = "Modified";
|
|
103265
103252
|
})(SeenPackageName || (SeenPackageName = {}));
|
|
103266
|
-
const seenPackageNames = new Map();
|
|
103253
|
+
const seenPackageNames = /* @__PURE__ */ new Map();
|
|
103267
103254
|
for (const oldSourceFile of oldSourceFiles) {
|
|
103268
103255
|
const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options);
|
|
103269
103256
|
let newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat) : host.getSourceFile(oldSourceFile.fileName, sourceFileOptions, void 0, shouldCreateNewSourceFile || sourceFileOptions.impliedNodeFormat !== oldSourceFile.impliedNodeFormat);
|
|
@@ -103866,7 +103853,7 @@ ${lanes.join("\n")}
|
|
|
103866
103853
|
}
|
|
103867
103854
|
const result = getDiagnostics2(sourceFile, cancellationToken);
|
|
103868
103855
|
if (sourceFile) {
|
|
103869
|
-
(cache.perFile || (cache.perFile = new Map())).set(sourceFile.path, result);
|
|
103856
|
+
(cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result);
|
|
103870
103857
|
} else {
|
|
103871
103858
|
cache.allDiagnostics = result;
|
|
103872
103859
|
}
|
|
@@ -104274,7 +104261,7 @@ ${lanes.join("\n")}
|
|
|
104274
104261
|
}
|
|
104275
104262
|
function getResolvedProjectReferenceToRedirect(fileName) {
|
|
104276
104263
|
if (mapFromFileToProjectReferenceRedirects === void 0) {
|
|
104277
|
-
mapFromFileToProjectReferenceRedirects = new Map();
|
|
104264
|
+
mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();
|
|
104278
104265
|
forEachResolvedProjectReference2((referencedProject) => {
|
|
104279
104266
|
if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {
|
|
104280
104267
|
referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));
|
|
@@ -104291,7 +104278,7 @@ ${lanes.join("\n")}
|
|
|
104291
104278
|
if (!isDeclarationFileName(path))
|
|
104292
104279
|
return void 0;
|
|
104293
104280
|
if (mapFromToProjectReferenceRedirectSource === void 0) {
|
|
104294
|
-
mapFromToProjectReferenceRedirectSource = new Map();
|
|
104281
|
+
mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();
|
|
104295
104282
|
forEachResolvedProjectReference2((resolvedRef) => {
|
|
104296
104283
|
const out = outFile(resolvedRef.commandLine.options);
|
|
104297
104284
|
if (out) {
|
|
@@ -104492,7 +104479,7 @@ ${lanes.join("\n")}
|
|
|
104492
104479
|
}
|
|
104493
104480
|
function parseProjectReferenceConfigFile(ref) {
|
|
104494
104481
|
if (!projectReferenceRedirects) {
|
|
104495
|
-
projectReferenceRedirects = new Map();
|
|
104482
|
+
projectReferenceRedirects = /* @__PURE__ */ new Map();
|
|
104496
104483
|
}
|
|
104497
104484
|
const refPath = resolveProjectReferencePath(ref);
|
|
104498
104485
|
const sourceFilePath = toPath3(refPath);
|
|
@@ -104750,7 +104737,7 @@ ${lanes.join("\n")}
|
|
|
104750
104737
|
}
|
|
104751
104738
|
if (!options.noEmit && !options.suppressOutputPathCheck) {
|
|
104752
104739
|
const emitHost = getEmitHost();
|
|
104753
|
-
const emitFilesSeen = new Set();
|
|
104740
|
+
const emitFilesSeen = /* @__PURE__ */ new Set();
|
|
104754
104741
|
forEachEmittedFile(emitHost, (emitFileNames) => {
|
|
104755
104742
|
if (!options.emitDeclarationOnly) {
|
|
104756
104743
|
verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen);
|
|
@@ -105106,7 +105093,7 @@ ${lanes.join("\n")}
|
|
|
105106
105093
|
if (!host.getResolvedProjectReferences())
|
|
105107
105094
|
return false;
|
|
105108
105095
|
if (!setOfDeclarationDirectories) {
|
|
105109
|
-
setOfDeclarationDirectories = new Set();
|
|
105096
|
+
setOfDeclarationDirectories = /* @__PURE__ */ new Set();
|
|
105110
105097
|
host.forEachResolvedProjectReference((ref) => {
|
|
105111
105098
|
const out = outFile(ref.commandLine.options);
|
|
105112
105099
|
if (out) {
|
|
@@ -105345,7 +105332,7 @@ ${lanes.join("\n")}
|
|
|
105345
105332
|
getValues: (k) => forward.get(k),
|
|
105346
105333
|
keys: () => forward.keys(),
|
|
105347
105334
|
deleteKey: (k) => {
|
|
105348
|
-
(deleted || (deleted = new Set())).add(k);
|
|
105335
|
+
(deleted || (deleted = /* @__PURE__ */ new Set())).add(k);
|
|
105349
105336
|
const set = forward.get(k);
|
|
105350
105337
|
if (!set) {
|
|
105351
105338
|
return false;
|
|
@@ -105373,13 +105360,13 @@ ${lanes.join("\n")}
|
|
|
105373
105360
|
};
|
|
105374
105361
|
return map2;
|
|
105375
105362
|
}
|
|
105376
|
-
return create2(new Map(), new Map(), void 0);
|
|
105363
|
+
return create2(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0);
|
|
105377
105364
|
}
|
|
105378
105365
|
BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
|
|
105379
105366
|
function addToMultimap(map2, k, v) {
|
|
105380
105367
|
let set = map2.get(k);
|
|
105381
105368
|
if (!set) {
|
|
105382
|
-
set = new Set();
|
|
105369
|
+
set = /* @__PURE__ */ new Set();
|
|
105383
105370
|
map2.set(k, set);
|
|
105384
105371
|
}
|
|
105385
105372
|
set.add(v);
|
|
@@ -105462,7 +105449,7 @@ ${lanes.join("\n")}
|
|
|
105462
105449
|
}
|
|
105463
105450
|
}
|
|
105464
105451
|
function addReferencedFile(referencedPath) {
|
|
105465
|
-
(referencedFiles || (referencedFiles = new Set())).add(referencedPath);
|
|
105452
|
+
(referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath);
|
|
105466
105453
|
}
|
|
105467
105454
|
}
|
|
105468
105455
|
function canReuseOldState(newReferencedMap, oldState) {
|
|
@@ -105471,7 +105458,7 @@ ${lanes.join("\n")}
|
|
|
105471
105458
|
BuilderState2.canReuseOldState = canReuseOldState;
|
|
105472
105459
|
function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
|
|
105473
105460
|
var _a2, _b, _c;
|
|
105474
|
-
const fileInfos = new Map();
|
|
105461
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
105475
105462
|
const options = newProgram.getCompilerOptions();
|
|
105476
105463
|
const isOutFile = outFile(options);
|
|
105477
105464
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
@@ -105543,7 +105530,7 @@ ${lanes.join("\n")}
|
|
|
105543
105530
|
BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
|
|
105544
105531
|
function updateSignatureOfFile(state, signature, path) {
|
|
105545
105532
|
state.fileInfos.get(path).signature = signature;
|
|
105546
|
-
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(path);
|
|
105533
|
+
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
|
|
105547
105534
|
}
|
|
105548
105535
|
BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
|
|
105549
105536
|
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
|
|
@@ -105578,7 +105565,7 @@ ${lanes.join("\n")}
|
|
|
105578
105565
|
if (latestSignature === void 0) {
|
|
105579
105566
|
latestSignature = sourceFile.version;
|
|
105580
105567
|
if (state.exportedModulesMap && latestSignature !== prevSignature) {
|
|
105581
|
-
(state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105568
|
+
(state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105582
105569
|
const references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : void 0;
|
|
105583
105570
|
if (references) {
|
|
105584
105571
|
state.exportedModulesMap.set(sourceFile.resolvedPath, references);
|
|
@@ -105587,8 +105574,8 @@ ${lanes.join("\n")}
|
|
|
105587
105574
|
}
|
|
105588
105575
|
}
|
|
105589
105576
|
}
|
|
105590
|
-
(state.oldSignatures || (state.oldSignatures = new Map())).set(sourceFile.resolvedPath, prevSignature || false);
|
|
105591
|
-
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(sourceFile.resolvedPath);
|
|
105577
|
+
(state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false);
|
|
105578
|
+
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath);
|
|
105592
105579
|
info.signature = latestSignature;
|
|
105593
105580
|
return latestSignature !== prevSignature;
|
|
105594
105581
|
}
|
|
@@ -105596,7 +105583,7 @@ ${lanes.join("\n")}
|
|
|
105596
105583
|
function updateExportedModules(state, sourceFile, exportedModulesFromDeclarationEmit) {
|
|
105597
105584
|
if (!state.exportedModulesMap)
|
|
105598
105585
|
return;
|
|
105599
|
-
(state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105586
|
+
(state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105600
105587
|
if (!exportedModulesFromDeclarationEmit) {
|
|
105601
105588
|
state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);
|
|
105602
105589
|
return;
|
|
@@ -105611,7 +105598,7 @@ ${lanes.join("\n")}
|
|
|
105611
105598
|
function addExportedModule(exportedModulePaths) {
|
|
105612
105599
|
if (exportedModulePaths == null ? void 0 : exportedModulePaths.length) {
|
|
105613
105600
|
if (!exportedModules) {
|
|
105614
|
-
exportedModules = new Set();
|
|
105601
|
+
exportedModules = /* @__PURE__ */ new Set();
|
|
105615
105602
|
}
|
|
105616
105603
|
exportedModulePaths.forEach((path) => exportedModules.add(path));
|
|
105617
105604
|
}
|
|
@@ -105626,7 +105613,7 @@ ${lanes.join("\n")}
|
|
|
105626
105613
|
if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {
|
|
105627
105614
|
return getAllFileNames(state, programOfThisState);
|
|
105628
105615
|
}
|
|
105629
|
-
const seenMap = new Set();
|
|
105616
|
+
const seenMap = /* @__PURE__ */ new Set();
|
|
105630
105617
|
const queue = [sourceFile.resolvedPath];
|
|
105631
105618
|
while (queue.length) {
|
|
105632
105619
|
const path = queue.pop();
|
|
@@ -105709,7 +105696,7 @@ ${lanes.join("\n")}
|
|
|
105709
105696
|
if (compilerOptions && (compilerOptions.isolatedModules || outFile(compilerOptions))) {
|
|
105710
105697
|
return [sourceFileWithUpdatedShape];
|
|
105711
105698
|
}
|
|
105712
|
-
const seenFileNamesMap = new Map();
|
|
105699
|
+
const seenFileNamesMap = /* @__PURE__ */ new Map();
|
|
105713
105700
|
seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);
|
|
105714
105701
|
const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);
|
|
105715
105702
|
while (queue.length > 0) {
|
|
@@ -105779,11 +105766,11 @@ ${lanes.join("\n")}
|
|
|
105779
105766
|
state.compilerOptions = compilerOptions;
|
|
105780
105767
|
const outFilePath = outFile(compilerOptions);
|
|
105781
105768
|
if (!outFilePath) {
|
|
105782
|
-
state.semanticDiagnosticsPerFile = new Map();
|
|
105769
|
+
state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map();
|
|
105783
105770
|
} else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === outFile(oldState == null ? void 0 : oldState.compilerOptions)) {
|
|
105784
105771
|
state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature);
|
|
105785
105772
|
}
|
|
105786
|
-
state.changedFilesSet = new Set();
|
|
105773
|
+
state.changedFilesSet = /* @__PURE__ */ new Set();
|
|
105787
105774
|
state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0;
|
|
105788
105775
|
const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState);
|
|
105789
105776
|
const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0;
|
|
@@ -105793,7 +105780,7 @@ ${lanes.join("\n")}
|
|
|
105793
105780
|
(_a2 = oldState.changedFilesSet) == null ? void 0 : _a2.forEach((value) => state.changedFilesSet.add(value));
|
|
105794
105781
|
if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) {
|
|
105795
105782
|
state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit);
|
|
105796
|
-
state.seenAffectedFiles = new Set();
|
|
105783
|
+
state.seenAffectedFiles = /* @__PURE__ */ new Set();
|
|
105797
105784
|
}
|
|
105798
105785
|
state.programEmitPending = oldState.programEmitPending;
|
|
105799
105786
|
} else {
|
|
@@ -105819,7 +105806,7 @@ ${lanes.join("\n")}
|
|
|
105819
105806
|
if (diagnostics) {
|
|
105820
105807
|
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
|
|
105821
105808
|
if (!state.semanticDiagnosticsFromOldState) {
|
|
105822
|
-
state.semanticDiagnosticsFromOldState = new Set();
|
|
105809
|
+
state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
|
|
105823
105810
|
}
|
|
105824
105811
|
state.semanticDiagnosticsFromOldState.add(sourceFilePath);
|
|
105825
105812
|
}
|
|
@@ -105827,11 +105814,18 @@ ${lanes.join("\n")}
|
|
|
105827
105814
|
if (canCopyEmitSignatures) {
|
|
105828
105815
|
const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath);
|
|
105829
105816
|
if (oldEmitSignature) {
|
|
105830
|
-
((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
|
|
105817
|
+
((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = /* @__PURE__ */ new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
|
|
105831
105818
|
}
|
|
105832
105819
|
}
|
|
105833
105820
|
});
|
|
105834
|
-
if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) =>
|
|
105821
|
+
if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => {
|
|
105822
|
+
if (state.fileInfos.has(sourceFilePath))
|
|
105823
|
+
return false;
|
|
105824
|
+
if (outFilePath || info.affectsGlobalScope)
|
|
105825
|
+
return true;
|
|
105826
|
+
state.buildInfoEmitPending = true;
|
|
105827
|
+
return false;
|
|
105828
|
+
})) {
|
|
105835
105829
|
BuilderState.getAllFilesExcludingDefaultLibraryFile(state, newProgram, void 0).forEach((file) => addFileToChangeSet(state, file.resolvedPath));
|
|
105836
105830
|
} else if (oldCompilerOptions) {
|
|
105837
105831
|
const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions);
|
|
@@ -105847,7 +105841,7 @@ ${lanes.join("\n")}
|
|
|
105847
105841
|
}
|
|
105848
105842
|
});
|
|
105849
105843
|
Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size);
|
|
105850
|
-
state.seenAffectedFiles = state.seenAffectedFiles || new Set();
|
|
105844
|
+
state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set();
|
|
105851
105845
|
state.buildInfoEmitPending = true;
|
|
105852
105846
|
} else {
|
|
105853
105847
|
state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind;
|
|
@@ -105978,7 +105972,7 @@ ${lanes.join("\n")}
|
|
|
105978
105972
|
state.currentChangedFilePath = nextKey.value;
|
|
105979
105973
|
state.affectedFilesIndex = 0;
|
|
105980
105974
|
if (!state.seenAffectedFiles)
|
|
105981
|
-
state.seenAffectedFiles = new Set();
|
|
105975
|
+
state.seenAffectedFiles = /* @__PURE__ */ new Set();
|
|
105982
105976
|
}
|
|
105983
105977
|
}
|
|
105984
105978
|
function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) {
|
|
@@ -106106,7 +106100,7 @@ ${lanes.join("\n")}
|
|
|
106106
106100
|
if (!isChangedSignature(state, affectedFile.resolvedPath))
|
|
106107
106101
|
return;
|
|
106108
106102
|
if (state.compilerOptions.isolatedModules) {
|
|
106109
|
-
const seenFileNamesMap = new Map();
|
|
106103
|
+
const seenFileNamesMap = /* @__PURE__ */ new Map();
|
|
106110
106104
|
seenFileNamesMap.set(affectedFile.resolvedPath, true);
|
|
106111
106105
|
const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath);
|
|
106112
106106
|
while (queue.length > 0) {
|
|
@@ -106123,7 +106117,7 @@ ${lanes.join("\n")}
|
|
|
106123
106117
|
}
|
|
106124
106118
|
}
|
|
106125
106119
|
}
|
|
106126
|
-
const seenFileAndExportsOfFile = new Set();
|
|
106120
|
+
const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
|
|
106127
106121
|
(_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
|
|
106128
106122
|
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
|
|
106129
106123
|
return true;
|
|
@@ -106201,7 +106195,7 @@ ${lanes.join("\n")}
|
|
|
106201
106195
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
106202
106196
|
const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
|
|
106203
106197
|
const fileNames = [];
|
|
106204
|
-
const fileNameToFileId = new Map();
|
|
106198
|
+
const fileNameToFileId = /* @__PURE__ */ new Map();
|
|
106205
106199
|
if (outFile(state.compilerOptions)) {
|
|
106206
106200
|
const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
|
|
106207
106201
|
toFileId(key);
|
|
@@ -106278,7 +106272,7 @@ ${lanes.join("\n")}
|
|
|
106278
106272
|
let affectedFilesPendingEmit;
|
|
106279
106273
|
if ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.size) {
|
|
106280
106274
|
const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);
|
|
106281
|
-
const seenFiles = new Set();
|
|
106275
|
+
const seenFiles = /* @__PURE__ */ new Set();
|
|
106282
106276
|
for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
|
|
106283
106277
|
if (tryAddToSet(seenFiles, path)) {
|
|
106284
106278
|
const file = state.program.getSourceFileByPath(path);
|
|
@@ -106331,7 +106325,7 @@ ${lanes.join("\n")}
|
|
|
106331
106325
|
let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key);
|
|
106332
106326
|
if (fileIdListId === void 0) {
|
|
106333
106327
|
(fileIdsList || (fileIdsList = [])).push(fileIds);
|
|
106334
|
-
(fileNamesToFileIdListId || (fileNamesToFileIdListId = new Map())).set(key, fileIdListId = fileIdsList.length);
|
|
106328
|
+
(fileNamesToFileIdListId || (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length);
|
|
106335
106329
|
}
|
|
106336
106330
|
return fileIdListId;
|
|
106337
106331
|
}
|
|
@@ -106537,11 +106531,11 @@ ${lanes.join("\n")}
|
|
|
106537
106531
|
state.affectedFilesIndex++;
|
|
106538
106532
|
state.buildInfoEmitPending = true;
|
|
106539
106533
|
const existing = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedSourceFile.resolvedPath)) || 0 /* None */;
|
|
106540
|
-
((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
|
|
106534
|
+
((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
|
|
106541
106535
|
const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind;
|
|
106542
106536
|
const pendingKind = getPendingEmitKind(existingPending, emitKind | existing);
|
|
106543
106537
|
if (pendingKind)
|
|
106544
|
-
((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
|
|
106538
|
+
((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
|
|
106545
106539
|
else
|
|
106546
106540
|
(_e = state.affectedFilesPendingEmit) == null ? void 0 : _e.delete(affectedSourceFile.resolvedPath);
|
|
106547
106541
|
} else {
|
|
@@ -106573,13 +106567,13 @@ ${lanes.join("\n")}
|
|
|
106573
106567
|
emitSignature = signature;
|
|
106574
106568
|
if (signature !== file.version) {
|
|
106575
106569
|
if (host.storeFilesChangingSignatureDuringEmit)
|
|
106576
|
-
((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = new Set()).add(file.resolvedPath);
|
|
106570
|
+
((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = /* @__PURE__ */ new Set()).add(file.resolvedPath);
|
|
106577
106571
|
if (state.exportedModulesMap)
|
|
106578
106572
|
BuilderState.updateExportedModules(state, file, file.exportedModulesFromDeclarationEmit);
|
|
106579
106573
|
if (state.affectedFiles) {
|
|
106580
106574
|
const existing = (_c = state.oldSignatures) == null ? void 0 : _c.get(file.resolvedPath);
|
|
106581
106575
|
if (existing === void 0)
|
|
106582
|
-
((_d = state.oldSignatures) != null ? _d : state.oldSignatures = new Map()).set(file.resolvedPath, info.signature || false);
|
|
106576
|
+
((_d = state.oldSignatures) != null ? _d : state.oldSignatures = /* @__PURE__ */ new Map()).set(file.resolvedPath, info.signature || false);
|
|
106583
106577
|
info.signature = signature;
|
|
106584
106578
|
} else {
|
|
106585
106579
|
info.signature = signature;
|
|
@@ -106593,7 +106587,7 @@ ${lanes.join("\n")}
|
|
|
106593
106587
|
emitSignature = handleNewSignature((_f = state.emitSignatures) == null ? void 0 : _f.get(filePath), emitSignature);
|
|
106594
106588
|
if (!emitSignature)
|
|
106595
106589
|
return;
|
|
106596
|
-
((_g = state.emitSignatures) != null ? _g : state.emitSignatures = new Map()).set(filePath, emitSignature);
|
|
106590
|
+
((_g = state.emitSignatures) != null ? _g : state.emitSignatures = /* @__PURE__ */ new Map()).set(filePath, emitSignature);
|
|
106597
106591
|
}
|
|
106598
106592
|
} else if (state.compilerOptions.composite) {
|
|
106599
106593
|
const newSignature = handleNewSignature(state.outSignature, void 0);
|
|
@@ -106710,7 +106704,7 @@ ${lanes.join("\n")}
|
|
|
106710
106704
|
function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) {
|
|
106711
106705
|
var _a2, _b;
|
|
106712
106706
|
const existingKind = ((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.get(affectedFilePendingEmit)) || 0 /* None */;
|
|
106713
|
-
((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = new Map()).set(affectedFilePendingEmit, existingKind | kind);
|
|
106707
|
+
((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedFilePendingEmit, existingKind | kind);
|
|
106714
106708
|
}
|
|
106715
106709
|
function toBuilderStateFileInfoForMultiEmit(fileInfo) {
|
|
106716
106710
|
return isString(fileInfo) ? { version: fileInfo, signature: fileInfo, affectsGlobalScope: void 0, impliedFormat: void 0 } : isString(fileInfo.signature) ? fileInfo : { version: fileInfo.version, signature: fileInfo.signature === false ? void 0 : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat };
|
|
@@ -106731,7 +106725,7 @@ ${lanes.join("\n")}
|
|
|
106731
106725
|
let filePathsSetList;
|
|
106732
106726
|
const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0;
|
|
106733
106727
|
if (isProgramBundleEmitBuildInfo(program)) {
|
|
106734
|
-
const fileInfos = new Map();
|
|
106728
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
106735
106729
|
program.fileInfos.forEach((fileInfo, index) => {
|
|
106736
106730
|
const path = toFilePath(index + 1);
|
|
106737
106731
|
fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);
|
|
@@ -106746,8 +106740,8 @@ ${lanes.join("\n")}
|
|
|
106746
106740
|
};
|
|
106747
106741
|
} else {
|
|
106748
106742
|
filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));
|
|
106749
|
-
const fileInfos = new Map();
|
|
106750
|
-
const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? new Map() : void 0;
|
|
106743
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
106744
|
+
const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? /* @__PURE__ */ new Map() : void 0;
|
|
106751
106745
|
program.fileInfos.forEach((fileInfo, index) => {
|
|
106752
106746
|
const path = toFilePath(index + 1);
|
|
106753
106747
|
const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);
|
|
@@ -106831,7 +106825,7 @@ ${lanes.join("\n")}
|
|
|
106831
106825
|
function getBuildInfoFileVersionMap(program, buildInfoPath, host) {
|
|
106832
106826
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
|
|
106833
106827
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
|
|
106834
|
-
const fileInfos = new Map();
|
|
106828
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
106835
106829
|
program.fileInfos.forEach((fileInfo, index) => {
|
|
106836
106830
|
const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
|
|
106837
106831
|
const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
|
|
@@ -106923,7 +106917,7 @@ ${lanes.join("\n")}
|
|
|
106923
106917
|
const resolutionsWithFailedLookups = [];
|
|
106924
106918
|
const resolutionsWithOnlyAffectingLocations = [];
|
|
106925
106919
|
const resolvedFileToResolution = createMultiMap();
|
|
106926
|
-
const impliedFormatPackageJsons = new Map();
|
|
106920
|
+
const impliedFormatPackageJsons = /* @__PURE__ */ new Map();
|
|
106927
106921
|
let hasChangedAutomaticTypeDirectiveNames = false;
|
|
106928
106922
|
let affectingPathChecksForFile;
|
|
106929
106923
|
let affectingPathChecks;
|
|
@@ -106932,7 +106926,7 @@ ${lanes.join("\n")}
|
|
|
106932
106926
|
let isInDirectoryChecks;
|
|
106933
106927
|
const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory());
|
|
106934
106928
|
const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost();
|
|
106935
|
-
const resolvedModuleNames = new Map();
|
|
106929
|
+
const resolvedModuleNames = /* @__PURE__ */ new Map();
|
|
106936
106930
|
const perDirectoryResolvedModuleNames = createCacheWithRedirects();
|
|
106937
106931
|
const nonRelativeModuleNameCache = createCacheWithRedirects();
|
|
106938
106932
|
const moduleResolutionCache = createModuleResolutionCache(
|
|
@@ -106942,7 +106936,7 @@ ${lanes.join("\n")}
|
|
|
106942
106936
|
perDirectoryResolvedModuleNames,
|
|
106943
106937
|
nonRelativeModuleNameCache
|
|
106944
106938
|
);
|
|
106945
|
-
const resolvedTypeReferenceDirectives = new Map();
|
|
106939
|
+
const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map();
|
|
106946
106940
|
const perDirectoryResolvedTypeReferenceDirectives = createCacheWithRedirects();
|
|
106947
106941
|
const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(
|
|
106948
106942
|
getCurrentDirectory(),
|
|
@@ -106952,13 +106946,13 @@ ${lanes.join("\n")}
|
|
|
106952
106946
|
perDirectoryResolvedTypeReferenceDirectives
|
|
106953
106947
|
);
|
|
106954
106948
|
const failedLookupDefaultExtensions = [".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */, ".json" /* Json */];
|
|
106955
|
-
const customFailedLookupPaths = new Map();
|
|
106956
|
-
const directoryWatchesOfFailedLookups = new Map();
|
|
106957
|
-
const fileWatchesOfAffectingLocations = new Map();
|
|
106949
|
+
const customFailedLookupPaths = /* @__PURE__ */ new Map();
|
|
106950
|
+
const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map();
|
|
106951
|
+
const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map();
|
|
106958
106952
|
const rootDir = rootDirForResolution && removeTrailingDirectorySeparator(getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()));
|
|
106959
106953
|
const rootPath = rootDir && resolutionHost.toPath(rootDir);
|
|
106960
106954
|
const rootSplitLength = rootPath !== void 0 ? rootPath.split(directorySeparator).length : 0;
|
|
106961
|
-
const typeRootsWatches = new Map();
|
|
106955
|
+
const typeRootsWatches = /* @__PURE__ */ new Map();
|
|
106962
106956
|
return {
|
|
106963
106957
|
getModuleResolutionCache: () => moduleResolutionCache,
|
|
106964
106958
|
startRecordingFilesWithChangedResolutions,
|
|
@@ -107411,16 +107405,16 @@ ${lanes.join("\n")}
|
|
|
107411
107405
|
}
|
|
107412
107406
|
}
|
|
107413
107407
|
}
|
|
107414
|
-
const paths = new Set();
|
|
107408
|
+
const paths = /* @__PURE__ */ new Set();
|
|
107415
107409
|
paths.add(locationToWatch);
|
|
107416
107410
|
let actualWatcher = canWatchDirectoryOrFile(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => {
|
|
107417
107411
|
cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind);
|
|
107418
107412
|
const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();
|
|
107419
107413
|
paths.forEach((path) => {
|
|
107420
107414
|
if (watcher.resolutions)
|
|
107421
|
-
(affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = new Set()).add(path);
|
|
107415
|
+
(affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = /* @__PURE__ */ new Set()).add(path);
|
|
107422
107416
|
if (watcher.files)
|
|
107423
|
-
(affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = new Set()).add(path);
|
|
107417
|
+
(affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = /* @__PURE__ */ new Set()).add(path);
|
|
107424
107418
|
packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path));
|
|
107425
107419
|
});
|
|
107426
107420
|
resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
|
|
@@ -107548,7 +107542,7 @@ ${lanes.join("\n")}
|
|
|
107548
107542
|
continue;
|
|
107549
107543
|
resolution.isInvalidated = invalidated = true;
|
|
107550
107544
|
for (const containingFilePath of Debug.checkDefined(resolution.files)) {
|
|
107551
|
-
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(containingFilePath);
|
|
107545
|
+
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(containingFilePath);
|
|
107552
107546
|
hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile);
|
|
107553
107547
|
}
|
|
107554
107548
|
}
|
|
@@ -107567,7 +107561,7 @@ ${lanes.join("\n")}
|
|
|
107567
107561
|
}
|
|
107568
107562
|
function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) {
|
|
107569
107563
|
if (isCreatingWatchedDirectory) {
|
|
107570
|
-
(isInDirectoryChecks || (isInDirectoryChecks = new Set())).add(fileOrDirectoryPath);
|
|
107564
|
+
(isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107571
107565
|
} else {
|
|
107572
107566
|
const updatedPath = removeIgnoredPath(fileOrDirectoryPath);
|
|
107573
107567
|
if (!updatedPath)
|
|
@@ -107578,8 +107572,8 @@ ${lanes.join("\n")}
|
|
|
107578
107572
|
}
|
|
107579
107573
|
const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath);
|
|
107580
107574
|
if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) {
|
|
107581
|
-
(failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
|
|
107582
|
-
(startsWithPathChecks || (startsWithPathChecks = new Set())).add(fileOrDirectoryPath);
|
|
107575
|
+
(failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107576
|
+
(startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107583
107577
|
} else {
|
|
107584
107578
|
if (!isPathWithDefaultFailedLookupExtension(fileOrDirectoryPath) && !customFailedLookupPaths.has(fileOrDirectoryPath)) {
|
|
107585
107579
|
return false;
|
|
@@ -107587,10 +107581,10 @@ ${lanes.join("\n")}
|
|
|
107587
107581
|
if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {
|
|
107588
107582
|
return false;
|
|
107589
107583
|
}
|
|
107590
|
-
(failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
|
|
107584
|
+
(failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107591
107585
|
const packagePath = parseNodeModuleFromPath(fileOrDirectoryPath);
|
|
107592
107586
|
if (packagePath)
|
|
107593
|
-
(startsWithPathChecks || (startsWithPathChecks = new Set())).add(packagePath);
|
|
107587
|
+
(startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath);
|
|
107594
107588
|
}
|
|
107595
107589
|
}
|
|
107596
107590
|
resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
|
|
@@ -107601,7 +107595,7 @@ ${lanes.join("\n")}
|
|
|
107601
107595
|
if (affectingPathChecksForFile) {
|
|
107602
107596
|
(_a2 = resolutionHost.getCurrentProgram()) == null ? void 0 : _a2.getSourceFiles().forEach((f) => {
|
|
107603
107597
|
if (some(f.packageJsonLocations, (location) => affectingPathChecksForFile.has(location))) {
|
|
107604
|
-
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(f.path);
|
|
107598
|
+
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(f.path);
|
|
107605
107599
|
invalidated = true;
|
|
107606
107600
|
}
|
|
107607
107601
|
});
|
|
@@ -107791,7 +107785,7 @@ ${lanes.join("\n")}
|
|
|
107791
107785
|
if (errorCount === 0)
|
|
107792
107786
|
return "";
|
|
107793
107787
|
const nonNilFiles = filesInError.filter((fileInError) => fileInError !== void 0);
|
|
107794
|
-
const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index,
|
|
107788
|
+
const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self) => self.indexOf(value) === index);
|
|
107795
107789
|
const firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory());
|
|
107796
107790
|
const d = errorCount === 1 ? createCompilerDiagnostic(
|
|
107797
107791
|
filesInError[0] !== void 0 ? Diagnostics.Found_1_error_in_1 : Diagnostics.Found_1_error,
|
|
@@ -107806,7 +107800,7 @@ ${lanes.join("\n")}
|
|
|
107806
107800
|
return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}${suffix}`;
|
|
107807
107801
|
}
|
|
107808
107802
|
function createTabularErrorsDisplay(filesInError, host) {
|
|
107809
|
-
const distinctFiles = filesInError.filter((value, index,
|
|
107803
|
+
const distinctFiles = filesInError.filter((value, index, self) => index === self.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName)));
|
|
107810
107804
|
if (distinctFiles.length === 0)
|
|
107811
107805
|
return "";
|
|
107812
107806
|
const numberLength = (num) => Math.log(num) * Math.LOG10E + 1;
|
|
@@ -108362,7 +108356,7 @@ ${lanes.join("\n")}
|
|
|
108362
108356
|
let sharedExtendedConfigFileWatchers;
|
|
108363
108357
|
let extendedConfigCache = host.extendedConfigCache;
|
|
108364
108358
|
let reportFileChangeDetectedOnCreateProgram = false;
|
|
108365
|
-
const sourceFilesCache = new Map();
|
|
108359
|
+
const sourceFilesCache = /* @__PURE__ */ new Map();
|
|
108366
108360
|
let missingFilePathsRequestedForRelease;
|
|
108367
108361
|
let hasChangedCompilerOptions = false;
|
|
108368
108362
|
const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
|
|
@@ -108537,7 +108531,7 @@ ${lanes.join("\n")}
|
|
|
108537
108531
|
const oldProgram = getCurrentProgram();
|
|
108538
108532
|
builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
|
|
108539
108533
|
resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram);
|
|
108540
|
-
updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = new Map()), watchMissingFilePath);
|
|
108534
|
+
updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), watchMissingFilePath);
|
|
108541
108535
|
if (needsUpdateInTypeRootWatch) {
|
|
108542
108536
|
resolutionCache.updateTypeRootsWatch();
|
|
108543
108537
|
}
|
|
@@ -108729,7 +108723,7 @@ ${lanes.join("\n")}
|
|
|
108729
108723
|
configFileName,
|
|
108730
108724
|
optionsToExtendForConfigFile,
|
|
108731
108725
|
parseConfigFileHost,
|
|
108732
|
-
extendedConfigCache || (extendedConfigCache = new Map()),
|
|
108726
|
+
extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
|
|
108733
108727
|
watchOptionsToExtend,
|
|
108734
108728
|
extraFileExtensions
|
|
108735
108729
|
));
|
|
@@ -108769,7 +108763,7 @@ ${lanes.join("\n")}
|
|
|
108769
108763
|
config.parsedCommandLine = parsedCommandLine;
|
|
108770
108764
|
config.reloadLevel = void 0;
|
|
108771
108765
|
} else {
|
|
108772
|
-
(parsedConfigs || (parsedConfigs = new Map())).set(configPath, config = { parsedCommandLine });
|
|
108766
|
+
(parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine });
|
|
108773
108767
|
}
|
|
108774
108768
|
watchReferencedProject(configFileName2, configPath, config);
|
|
108775
108769
|
return parsedCommandLine;
|
|
@@ -108781,7 +108775,7 @@ ${lanes.join("\n")}
|
|
|
108781
108775
|
configFileName2,
|
|
108782
108776
|
void 0,
|
|
108783
108777
|
parseConfigFileHost,
|
|
108784
|
-
extendedConfigCache || (extendedConfigCache = new Map()),
|
|
108778
|
+
extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
|
|
108785
108779
|
watchOptionsToExtend
|
|
108786
108780
|
);
|
|
108787
108781
|
parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic;
|
|
@@ -108830,7 +108824,7 @@ ${lanes.join("\n")}
|
|
|
108830
108824
|
function watchConfigFileWildCardDirectories() {
|
|
108831
108825
|
if (wildcardDirectories) {
|
|
108832
108826
|
updateWatchingWildcardDirectories(
|
|
108833
|
-
watchedWildcardDirectories || (watchedWildcardDirectories = new Map()),
|
|
108827
|
+
watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()),
|
|
108834
108828
|
new Map(getEntries(wildcardDirectories)),
|
|
108835
108829
|
watchWildcardDirectory
|
|
108836
108830
|
);
|
|
@@ -108876,7 +108870,7 @@ ${lanes.join("\n")}
|
|
|
108876
108870
|
updateSharedExtendedConfigFileWatcher(
|
|
108877
108871
|
forProjectPath,
|
|
108878
108872
|
options,
|
|
108879
|
-
sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = new Map()),
|
|
108873
|
+
sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()),
|
|
108880
108874
|
(extendedConfigFileName, extendedConfigFilePath) => watchFile2(
|
|
108881
108875
|
extendedConfigFileName,
|
|
108882
108876
|
(_fileName, eventKind) => {
|
|
@@ -108924,7 +108918,7 @@ ${lanes.join("\n")}
|
|
|
108924
108918
|
));
|
|
108925
108919
|
if ((_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories) {
|
|
108926
108920
|
updateWatchingWildcardDirectories(
|
|
108927
|
-
commandLine.watchedDirectories || (commandLine.watchedDirectories = new Map()),
|
|
108921
|
+
commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()),
|
|
108928
108922
|
new Map(getEntries((_c = commandLine.parsedCommandLine) == null ? void 0 : _c.wildcardDirectories)),
|
|
108929
108923
|
(directory, flags) => {
|
|
108930
108924
|
var _a3;
|
|
@@ -109017,7 +109011,7 @@ ${lanes.join("\n")}
|
|
|
109017
109011
|
return existingValue || newValue;
|
|
109018
109012
|
}
|
|
109019
109013
|
function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) {
|
|
109020
|
-
return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => new Map());
|
|
109014
|
+
return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map());
|
|
109021
109015
|
}
|
|
109022
109016
|
function getCurrentTime(host) {
|
|
109023
109017
|
return host.now ? host.now() : new Date();
|
|
@@ -109106,16 +109100,16 @@ ${lanes.join("\n")}
|
|
|
109106
109100
|
baseCompilerOptions,
|
|
109107
109101
|
rootNames,
|
|
109108
109102
|
baseWatchOptions,
|
|
109109
|
-
resolvedConfigFilePaths: new Map(),
|
|
109110
|
-
configFileCache: new Map(),
|
|
109111
|
-
projectStatus: new Map(),
|
|
109112
|
-
extendedConfigCache: new Map(),
|
|
109113
|
-
buildInfoCache: new Map(),
|
|
109114
|
-
outputTimeStamps: new Map(),
|
|
109115
|
-
builderPrograms: new Map(),
|
|
109116
|
-
diagnostics: new Map(),
|
|
109117
|
-
projectPendingBuild: new Map(),
|
|
109118
|
-
projectErrorsReported: new Map(),
|
|
109103
|
+
resolvedConfigFilePaths: /* @__PURE__ */ new Map(),
|
|
109104
|
+
configFileCache: /* @__PURE__ */ new Map(),
|
|
109105
|
+
projectStatus: /* @__PURE__ */ new Map(),
|
|
109106
|
+
extendedConfigCache: /* @__PURE__ */ new Map(),
|
|
109107
|
+
buildInfoCache: /* @__PURE__ */ new Map(),
|
|
109108
|
+
outputTimeStamps: /* @__PURE__ */ new Map(),
|
|
109109
|
+
builderPrograms: /* @__PURE__ */ new Map(),
|
|
109110
|
+
diagnostics: /* @__PURE__ */ new Map(),
|
|
109111
|
+
projectPendingBuild: /* @__PURE__ */ new Map(),
|
|
109112
|
+
projectErrorsReported: /* @__PURE__ */ new Map(),
|
|
109119
109113
|
compilerHost,
|
|
109120
109114
|
moduleResolutionCache,
|
|
109121
109115
|
typeReferenceDirectiveResolutionCache,
|
|
@@ -109127,13 +109121,13 @@ ${lanes.join("\n")}
|
|
|
109127
109121
|
needsSummary: true,
|
|
109128
109122
|
watchAllProjectsPending: watch,
|
|
109129
109123
|
watch,
|
|
109130
|
-
allWatchedWildcardDirectories: new Map(),
|
|
109131
|
-
allWatchedInputFiles: new Map(),
|
|
109132
|
-
allWatchedConfigFiles: new Map(),
|
|
109133
|
-
allWatchedExtendedConfigFiles: new Map(),
|
|
109134
|
-
allWatchedPackageJsonFiles: new Map(),
|
|
109135
|
-
filesWatched: new Map(),
|
|
109136
|
-
lastCachedPackageJsonLookups: new Map(),
|
|
109124
|
+
allWatchedWildcardDirectories: /* @__PURE__ */ new Map(),
|
|
109125
|
+
allWatchedInputFiles: /* @__PURE__ */ new Map(),
|
|
109126
|
+
allWatchedConfigFiles: /* @__PURE__ */ new Map(),
|
|
109127
|
+
allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(),
|
|
109128
|
+
allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(),
|
|
109129
|
+
filesWatched: /* @__PURE__ */ new Map(),
|
|
109130
|
+
lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(),
|
|
109137
109131
|
timerToBuildInvalidatedProject: void 0,
|
|
109138
109132
|
reportFileChangeDetected: false,
|
|
109139
109133
|
watchFile: watchFile2,
|
|
@@ -109189,8 +109183,8 @@ ${lanes.join("\n")}
|
|
|
109189
109183
|
return resolveConfigFileProjectName(resolvePath(state.currentDirectory, name));
|
|
109190
109184
|
}
|
|
109191
109185
|
function createBuildOrder(state, roots) {
|
|
109192
|
-
const temporaryMarks = new Map();
|
|
109193
|
-
const permanentMarks = new Map();
|
|
109186
|
+
const temporaryMarks = /* @__PURE__ */ new Map();
|
|
109187
|
+
const permanentMarks = /* @__PURE__ */ new Map();
|
|
109194
109188
|
const circularityReportStack = [];
|
|
109195
109189
|
let buildOrder;
|
|
109196
109190
|
let circularDiagnostics;
|
|
@@ -109609,7 +109603,7 @@ ${lanes.join("\n")}
|
|
|
109609
109603
|
const { host, compilerHost } = state;
|
|
109610
109604
|
const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */;
|
|
109611
109605
|
const emitterDiagnostics = createDiagnosticCollection();
|
|
109612
|
-
const emittedOutputs = new Map();
|
|
109606
|
+
const emittedOutputs = /* @__PURE__ */ new Map();
|
|
109613
109607
|
const options = program.getCompilerOptions();
|
|
109614
109608
|
const isIncremental = isIncrementalCompilation(options);
|
|
109615
109609
|
let outputTimeStampMap;
|
|
@@ -109724,7 +109718,7 @@ ${lanes.join("\n")}
|
|
|
109724
109718
|
}
|
|
109725
109719
|
Debug.assert(!!outputFiles.length);
|
|
109726
109720
|
const emitterDiagnostics = createDiagnosticCollection();
|
|
109727
|
-
const emittedOutputs = new Map();
|
|
109721
|
+
const emittedOutputs = /* @__PURE__ */ new Map();
|
|
109728
109722
|
let resultFlags = 2 /* DeclarationOutputUnchanged */;
|
|
109729
109723
|
const existingBuildInfo = state.buildInfoCache.get(projectPath).buildInfo || void 0;
|
|
109730
109724
|
outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => {
|
|
@@ -109996,7 +109990,7 @@ ${lanes.join("\n")}
|
|
|
109996
109990
|
return void 0;
|
|
109997
109991
|
let result = state.outputTimeStamps.get(resolvedConfigFilePath);
|
|
109998
109992
|
if (!result)
|
|
109999
|
-
state.outputTimeStamps.set(resolvedConfigFilePath, result = new Map());
|
|
109993
|
+
state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map());
|
|
110000
109994
|
return result;
|
|
110001
109995
|
}
|
|
110002
109996
|
function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) {
|
|
@@ -110294,7 +110288,7 @@ ${lanes.join("\n")}
|
|
|
110294
110288
|
const { host } = state;
|
|
110295
110289
|
const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());
|
|
110296
110290
|
const outputTimeStampMap = getOutputTimeStampMap(state, projectPath);
|
|
110297
|
-
const modifiedOutputs = outputTimeStampMap ? new Set() : void 0;
|
|
110291
|
+
const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0;
|
|
110298
110292
|
if (!skipOutputs || outputs.length !== skipOutputs.size) {
|
|
110299
110293
|
let reportVerbose = !!state.options.verbose;
|
|
110300
110294
|
for (const file of outputs) {
|
|
@@ -110963,7 +110957,7 @@ ${lanes.join("\n")}
|
|
|
110963
110957
|
if (!typeAcquisition || !typeAcquisition.enable) {
|
|
110964
110958
|
return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };
|
|
110965
110959
|
}
|
|
110966
|
-
const inferredTypings = new Map();
|
|
110960
|
+
const inferredTypings = /* @__PURE__ */ new Map();
|
|
110967
110961
|
fileNames = mapDefined(fileNames, (fileName) => {
|
|
110968
110962
|
const path = normalizePath(fileName);
|
|
110969
110963
|
if (hasJSFileExtension(path)) {
|
|
@@ -113738,7 +113732,7 @@ ${lanes.join("\n")}
|
|
|
113738
113732
|
if (!dependencies) {
|
|
113739
113733
|
continue;
|
|
113740
113734
|
}
|
|
113741
|
-
const dependencyMap = new Map();
|
|
113735
|
+
const dependencyMap = /* @__PURE__ */ new Map();
|
|
113742
113736
|
for (const packageName in dependencies) {
|
|
113743
113737
|
dependencyMap.set(packageName, dependencies[packageName]);
|
|
113744
113738
|
}
|
|
@@ -114036,8 +114030,8 @@ ${lanes.join("\n")}
|
|
|
114036
114030
|
function createCacheableExportInfoMap(host) {
|
|
114037
114031
|
let exportInfoId = 1;
|
|
114038
114032
|
const exportInfo = createMultiMap();
|
|
114039
|
-
const symbols = new Map();
|
|
114040
|
-
const packages = new Map();
|
|
114033
|
+
const symbols = /* @__PURE__ */ new Map();
|
|
114034
|
+
const packages = /* @__PURE__ */ new Map();
|
|
114041
114035
|
let usableByFileName;
|
|
114042
114036
|
const cache = {
|
|
114043
114037
|
isUsableByFile: (importingFile) => importingFile === usableByFileName,
|
|
@@ -114299,7 +114293,7 @@ ${lanes.join("\n")}
|
|
|
114299
114293
|
forEachExternalModuleToImportFrom(program, host, preferences, true, (moduleSymbol, moduleFile, program2, isFromPackageJson) => {
|
|
114300
114294
|
if (++moduleCount % 100 === 0)
|
|
114301
114295
|
cancellationToken == null ? void 0 : cancellationToken.throwIfCancellationRequested();
|
|
114302
|
-
const seenExports = new Map();
|
|
114296
|
+
const seenExports = /* @__PURE__ */ new Map();
|
|
114303
114297
|
const checker = program2.getTypeChecker();
|
|
114304
114298
|
const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);
|
|
114305
114299
|
if (defaultInfo && isImportableSymbol(defaultInfo.symbol, checker)) {
|
|
@@ -115640,7 +115634,7 @@ ${lanes.join("\n")}
|
|
|
115640
115634
|
return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory);
|
|
115641
115635
|
}
|
|
115642
115636
|
function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory = "", externalCache) {
|
|
115643
|
-
const buckets = new Map();
|
|
115637
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
115644
115638
|
const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames);
|
|
115645
115639
|
function reportStats() {
|
|
115646
115640
|
const bucketInfoArray = arrayFrom(buckets.keys()).filter((name) => name && name.charAt(0) === "_").map((name) => {
|
|
@@ -115706,7 +115700,7 @@ ${lanes.join("\n")}
|
|
|
115706
115700
|
sourceFileOptions.languageVersion = scriptTarget;
|
|
115707
115701
|
const oldBucketCount = buckets.size;
|
|
115708
115702
|
const keyWithMode = getDocumentRegistryBucketKeyWithMode(key, sourceFileOptions.impliedNodeFormat);
|
|
115709
|
-
const bucket = getOrUpdate(buckets, keyWithMode, () => new Map());
|
|
115703
|
+
const bucket = getOrUpdate(buckets, keyWithMode, () => /* @__PURE__ */ new Map());
|
|
115710
115704
|
if (tracing) {
|
|
115711
115705
|
if (buckets.size > oldBucketCount) {
|
|
115712
115706
|
tracing.instant(tracing.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: compilationSettings.configFilePath, key: keyWithMode });
|
|
@@ -115761,7 +115755,7 @@ ${lanes.join("\n")}
|
|
|
115761
115755
|
if (!bucketEntry) {
|
|
115762
115756
|
bucket.set(path, entry);
|
|
115763
115757
|
} else if (isDocumentRegistryEntry(bucketEntry)) {
|
|
115764
|
-
const scriptKindMap = new Map();
|
|
115758
|
+
const scriptKindMap = /* @__PURE__ */ new Map();
|
|
115765
115759
|
scriptKindMap.set(bucketEntry.sourceFile.scriptKind, bucketEntry);
|
|
115766
115760
|
scriptKindMap.set(scriptKind, entry);
|
|
115767
115761
|
bucket.set(path, scriptKindMap);
|
|
@@ -116045,7 +116039,7 @@ ${lanes.join("\n")}
|
|
|
116045
116039
|
};
|
|
116046
116040
|
}
|
|
116047
116041
|
function createPatternMatcher(pattern) {
|
|
116048
|
-
const stringToWordSpans = new Map();
|
|
116042
|
+
const stringToWordSpans = /* @__PURE__ */ new Map();
|
|
116049
116043
|
const dotSeparatedSegments = pattern.trim().split(".").map((p) => createSegment(p.trim()));
|
|
116050
116044
|
if (dotSeparatedSegments.some((segment) => !segment.subWordTextChunks.length))
|
|
116051
116045
|
return void 0;
|
|
@@ -116655,8 +116649,8 @@ ${lanes.join("\n")}
|
|
|
116655
116649
|
function getSourceMapper(host) {
|
|
116656
116650
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
|
|
116657
116651
|
const currentDirectory = host.getCurrentDirectory();
|
|
116658
|
-
const sourceFileLike = new Map();
|
|
116659
|
-
const documentPositionMappers = new Map();
|
|
116652
|
+
const sourceFileLike = /* @__PURE__ */ new Map();
|
|
116653
|
+
const documentPositionMappers = /* @__PURE__ */ new Map();
|
|
116660
116654
|
return { tryGetSourcePosition, tryGetGeneratedPosition, toLineColumnOffset, clearCache };
|
|
116661
116655
|
function toPath3(fileName) {
|
|
116662
116656
|
return toPath(fileName, currentDirectory, getCanonicalFileName);
|
|
@@ -116792,7 +116786,7 @@ ${lanes.join("\n")}
|
|
|
116792
116786
|
}
|
|
116793
116787
|
|
|
116794
116788
|
// src/services/suggestionDiagnostics.ts
|
|
116795
|
-
var visitedNestedConvertibleFunctions = new Map();
|
|
116789
|
+
var visitedNestedConvertibleFunctions = /* @__PURE__ */ new Map();
|
|
116796
116790
|
function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) {
|
|
116797
116791
|
program.getSemanticDiagnostics(sourceFile, cancellationToken);
|
|
116798
116792
|
const diags = [];
|
|
@@ -117253,7 +117247,7 @@ ${lanes.join("\n")}
|
|
|
117253
117247
|
}
|
|
117254
117248
|
function addTrackedEs5Class(name) {
|
|
117255
117249
|
if (!trackedEs5Classes) {
|
|
117256
|
-
trackedEs5Classes = new Map();
|
|
117250
|
+
trackedEs5Classes = /* @__PURE__ */ new Map();
|
|
117257
117251
|
}
|
|
117258
117252
|
trackedEs5Classes.set(name, true);
|
|
117259
117253
|
}
|
|
@@ -117525,7 +117519,7 @@ ${lanes.join("\n")}
|
|
|
117525
117519
|
}
|
|
117526
117520
|
}
|
|
117527
117521
|
function mergeChildren(children, node) {
|
|
117528
|
-
const nameToItems = new Map();
|
|
117522
|
+
const nameToItems = /* @__PURE__ */ new Map();
|
|
117529
117523
|
filterMutate(children, (child, index) => {
|
|
117530
117524
|
const declName = child.name || getNameOfDeclaration(child.node);
|
|
117531
117525
|
const name = declName && nodeText(declName);
|
|
@@ -118359,7 +118353,7 @@ ${lanes.join("\n")}
|
|
|
118359
118353
|
return emptyArray;
|
|
118360
118354
|
let tags = ts_JsDoc_exports.getJsDocTagsFromDeclarations(declarations, checker);
|
|
118361
118355
|
if (checker && (tags.length === 0 || declarations.some(hasJSDocInheritDocTag))) {
|
|
118362
|
-
const seenSymbols = new Set();
|
|
118356
|
+
const seenSymbols = /* @__PURE__ */ new Set();
|
|
118363
118357
|
for (const declaration of declarations) {
|
|
118364
118358
|
const inheritedTags = findBaseOfDeclaration(checker, declaration, (symbol) => {
|
|
118365
118359
|
var _a2;
|
|
@@ -118383,7 +118377,7 @@ ${lanes.join("\n")}
|
|
|
118383
118377
|
return emptyArray;
|
|
118384
118378
|
let doc = ts_JsDoc_exports.getJsDocCommentsFromDeclarations(declarations, checker);
|
|
118385
118379
|
if (checker && (doc.length === 0 || declarations.some(hasJSDocInheritDocTag))) {
|
|
118386
|
-
const seenSymbols = new Set();
|
|
118380
|
+
const seenSymbols = /* @__PURE__ */ new Set();
|
|
118387
118381
|
for (const declaration of declarations) {
|
|
118388
118382
|
const inheritedDocs = findBaseOfDeclaration(checker, declaration, (symbol) => {
|
|
118389
118383
|
if (!seenSymbols.has(symbol)) {
|
|
@@ -118925,7 +118919,7 @@ ${lanes.join("\n")}
|
|
|
118925
118919
|
if (existing !== void 0)
|
|
118926
118920
|
return existing || void 0;
|
|
118927
118921
|
const result = host.getParsedCommandLine ? host.getParsedCommandLine(fileName) : getParsedCommandLineOfConfigFileUsingSourceFile(fileName);
|
|
118928
|
-
(parsedCommandLines || (parsedCommandLines = new Map())).set(path, result || false);
|
|
118922
|
+
(parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map())).set(path, result || false);
|
|
118929
118923
|
return result;
|
|
118930
118924
|
}
|
|
118931
118925
|
function getParsedCommandLineOfConfigFileUsingSourceFile(configFileName) {
|
|
@@ -119486,7 +119480,7 @@ ${lanes.join("\n")}
|
|
|
119486
119480
|
const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
|
|
119487
119481
|
let isCommenting = insertComment || false;
|
|
119488
119482
|
let leftMostPosition = Number.MAX_VALUE;
|
|
119489
|
-
const lineTextStarts = new Map();
|
|
119483
|
+
const lineTextStarts = /* @__PURE__ */ new Map();
|
|
119490
119484
|
const firstNonWhitespaceCharacterRegex = new RegExp(/\S/);
|
|
119491
119485
|
const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);
|
|
119492
119486
|
const openComment = isJsx ? "{/*" : "//";
|
|
@@ -119886,7 +119880,7 @@ ${lanes.join("\n")}
|
|
|
119886
119880
|
return sourceFile.nameTable;
|
|
119887
119881
|
}
|
|
119888
119882
|
function initializeNameTable(sourceFile) {
|
|
119889
|
-
const nameTable = sourceFile.nameTable = new Map();
|
|
119883
|
+
const nameTable = sourceFile.nameTable = /* @__PURE__ */ new Map();
|
|
119890
119884
|
sourceFile.forEachChild(function walk(node) {
|
|
119891
119885
|
if (isIdentifier(node) && !isTagName(node) && node.escapedText || isStringOrNumericLiteralLike(node) && literalIsName(node)) {
|
|
119892
119886
|
const text = getEscapedTextOfIdentifierOrLiteral(node);
|
|
@@ -121933,7 +121927,7 @@ ${lanes.join("\n")}
|
|
|
121933
121927
|
function isRightSideOfQualifiedNameOrPropertyAccess2(node) {
|
|
121934
121928
|
return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node;
|
|
121935
121929
|
}
|
|
121936
|
-
var tokenFromDeclarationMapping = new Map([
|
|
121930
|
+
var tokenFromDeclarationMapping = /* @__PURE__ */ new Map([
|
|
121937
121931
|
[257 /* VariableDeclaration */, 7 /* variable */],
|
|
121938
121932
|
[166 /* Parameter */, 6 /* parameter */],
|
|
121939
121933
|
[169 /* PropertyDeclaration */, 9 /* property */],
|
|
@@ -122001,7 +121995,7 @@ ${lanes.join("\n")}
|
|
|
122001
121995
|
|
|
122002
121996
|
// src/services/codeFixProvider.ts
|
|
122003
121997
|
var errorCodeToFixes = createMultiMap();
|
|
122004
|
-
var fixIdToRegistration = new Map();
|
|
121998
|
+
var fixIdToRegistration = /* @__PURE__ */ new Map();
|
|
122005
121999
|
function createCodeFixActionWithoutFixAll(fixName8, changes, description2) {
|
|
122006
122000
|
return createCodeFixActionWorker(fixName8, diagnosticToString(description2), changes, void 0, void 0);
|
|
122007
122001
|
}
|
|
@@ -122150,7 +122144,7 @@ ${lanes.join("\n")}
|
|
|
122150
122144
|
},
|
|
122151
122145
|
getAllCodeActions: (context) => {
|
|
122152
122146
|
const { sourceFile } = context;
|
|
122153
|
-
const fixedDeclarations = new Set();
|
|
122147
|
+
const fixedDeclarations = /* @__PURE__ */ new Set();
|
|
122154
122148
|
return codeFixAll(context, errorCodes2, (t, diagnostic) => {
|
|
122155
122149
|
const span = diagnostic.relatedInformation && find(diagnostic.relatedInformation, (r) => r.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);
|
|
122156
122150
|
const decl = getFixableErrorSpanDeclaration(sourceFile, span);
|
|
@@ -122244,7 +122238,7 @@ ${lanes.join("\n")}
|
|
|
122244
122238
|
getAllCodeActions: (context) => {
|
|
122245
122239
|
const { sourceFile, program, cancellationToken } = context;
|
|
122246
122240
|
const checker = context.program.getTypeChecker();
|
|
122247
|
-
const fixedDeclarations = new Set();
|
|
122241
|
+
const fixedDeclarations = /* @__PURE__ */ new Set();
|
|
122248
122242
|
return codeFixAll(context, errorCodes3, (t, diagnostic) => {
|
|
122249
122243
|
const expression = getAwaitErrorSpanExpression(sourceFile, diagnostic.code, diagnostic, cancellationToken, program);
|
|
122250
122244
|
if (!expression) {
|
|
@@ -122430,7 +122424,7 @@ ${lanes.join("\n")}
|
|
|
122430
122424
|
},
|
|
122431
122425
|
fixIds: [fixId4],
|
|
122432
122426
|
getAllCodeActions: (context) => {
|
|
122433
|
-
const fixedNodes = new Set();
|
|
122427
|
+
const fixedNodes = /* @__PURE__ */ new Set();
|
|
122434
122428
|
return codeFixAll(context, errorCodes4, (changes, diag2) => makeChange4(changes, diag2.file, diag2.start, context.program, fixedNodes));
|
|
122435
122429
|
}
|
|
122436
122430
|
});
|
|
@@ -122521,7 +122515,7 @@ ${lanes.join("\n")}
|
|
|
122521
122515
|
},
|
|
122522
122516
|
fixIds: [fixId5],
|
|
122523
122517
|
getAllCodeActions: (context) => {
|
|
122524
|
-
const fixedNodes = new Set();
|
|
122518
|
+
const fixedNodes = /* @__PURE__ */ new Set();
|
|
122525
122519
|
return codeFixAll(context, errorCodes5, (changes, diag2) => makeChange5(changes, diag2.file, diag2.start, fixedNodes));
|
|
122526
122520
|
}
|
|
122527
122521
|
});
|
|
@@ -123108,7 +123102,7 @@ ${lanes.join("\n")}
|
|
|
123108
123102
|
if (!functionToConvert) {
|
|
123109
123103
|
return;
|
|
123110
123104
|
}
|
|
123111
|
-
const synthNamesMap = new Map();
|
|
123105
|
+
const synthNamesMap = /* @__PURE__ */ new Map();
|
|
123112
123106
|
const isInJavascript = isInJSFile(functionToConvert);
|
|
123113
123107
|
const setOfExpressionsToReturn = getAllPromiseExpressionsToReturn(functionToConvert, checker);
|
|
123114
123108
|
const functionToConvertRenamed = renameCollidingVarNames(functionToConvert, checker, synthNamesMap);
|
|
@@ -123152,9 +123146,9 @@ ${lanes.join("\n")}
|
|
|
123152
123146
|
}
|
|
123153
123147
|
function getAllPromiseExpressionsToReturn(func, checker) {
|
|
123154
123148
|
if (!func.body) {
|
|
123155
|
-
return new Set();
|
|
123149
|
+
return /* @__PURE__ */ new Set();
|
|
123156
123150
|
}
|
|
123157
|
-
const setOfExpressionsToReturn = new Set();
|
|
123151
|
+
const setOfExpressionsToReturn = /* @__PURE__ */ new Set();
|
|
123158
123152
|
forEachChild(func.body, function visit(node) {
|
|
123159
123153
|
if (isPromiseReturningCallExpression(node, checker, "then")) {
|
|
123160
123154
|
setOfExpressionsToReturn.add(getNodeId(node));
|
|
@@ -123203,7 +123197,7 @@ ${lanes.join("\n")}
|
|
|
123203
123197
|
return !!checker.getPromisedTypeOfPromise(checker.getTypeAtLocation(node));
|
|
123204
123198
|
}
|
|
123205
123199
|
function renameCollidingVarNames(nodeToRename, checker, synthNamesMap) {
|
|
123206
|
-
const identsToRenameMap = new Map();
|
|
123200
|
+
const identsToRenameMap = /* @__PURE__ */ new Map();
|
|
123207
123201
|
const collidingSymbolMap = createMultiMap();
|
|
123208
123202
|
forEachChild(nodeToRename, function visit(node) {
|
|
123209
123203
|
if (!isIdentifier(node)) {
|
|
@@ -123697,7 +123691,7 @@ ${lanes.join("\n")}
|
|
|
123697
123691
|
}
|
|
123698
123692
|
}
|
|
123699
123693
|
function convertFileToEsModule(sourceFile, checker, changes, target, quotePreference) {
|
|
123700
|
-
const identifiers = { original: collectFreeIdentifiers(sourceFile), additional: new Set() };
|
|
123694
|
+
const identifiers = { original: collectFreeIdentifiers(sourceFile), additional: /* @__PURE__ */ new Set() };
|
|
123701
123695
|
const exports = collectExportRenames(sourceFile, checker, identifiers);
|
|
123702
123696
|
convertExportsAccesses(sourceFile, exports, changes);
|
|
123703
123697
|
let moduleExportsChangedToDefault = false;
|
|
@@ -123705,7 +123699,7 @@ ${lanes.join("\n")}
|
|
|
123705
123699
|
for (const statement of filter(sourceFile.statements, isVariableStatement)) {
|
|
123706
123700
|
const newUseSites = convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);
|
|
123707
123701
|
if (newUseSites) {
|
|
123708
|
-
copyEntries(newUseSites, useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map());
|
|
123702
|
+
copyEntries(newUseSites, useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map());
|
|
123709
123703
|
}
|
|
123710
123704
|
}
|
|
123711
123705
|
for (const statement of filter(sourceFile.statements, (s) => !isVariableStatement(s))) {
|
|
@@ -123718,7 +123712,7 @@ ${lanes.join("\n")}
|
|
|
123718
123712
|
return moduleExportsChangedToDefault;
|
|
123719
123713
|
}
|
|
123720
123714
|
function collectExportRenames(sourceFile, checker, identifiers) {
|
|
123721
|
-
const res = new Map();
|
|
123715
|
+
const res = /* @__PURE__ */ new Map();
|
|
123722
123716
|
forEachExportReference(sourceFile, (node) => {
|
|
123723
123717
|
const { text, originalKeywordKind } = node.name;
|
|
123724
123718
|
if (!res.has(text) && (originalKeywordKind !== void 0 && isNonContextualKeyword(originalKeywordKind) || checker.resolveName(text, node, 111551 /* Value */, true))) {
|
|
@@ -123793,7 +123787,7 @@ ${lanes.join("\n")}
|
|
|
123793
123787
|
let combinedUseSites;
|
|
123794
123788
|
forEach(converted, (c) => {
|
|
123795
123789
|
if (c.useSitesToUnqualify) {
|
|
123796
|
-
copyEntries(c.useSitesToUnqualify, combinedUseSites != null ? combinedUseSites : combinedUseSites = new Map());
|
|
123790
|
+
copyEntries(c.useSitesToUnqualify, combinedUseSites != null ? combinedUseSites : combinedUseSites = /* @__PURE__ */ new Map());
|
|
123797
123791
|
}
|
|
123798
123792
|
});
|
|
123799
123793
|
return combinedUseSites;
|
|
@@ -123956,7 +123950,7 @@ ${lanes.join("\n")}
|
|
|
123956
123950
|
}
|
|
123957
123951
|
function convertSingleIdentifierImport(name, moduleSpecifier, checker, identifiers, quotePreference) {
|
|
123958
123952
|
const nameSymbol = checker.getSymbolAtLocation(name);
|
|
123959
|
-
const namedBindingsNames = new Map();
|
|
123953
|
+
const namedBindingsNames = /* @__PURE__ */ new Map();
|
|
123960
123954
|
let needDefaultImport = false;
|
|
123961
123955
|
let useSitesToUnqualify;
|
|
123962
123956
|
for (const use of identifiers.original.get(name.text)) {
|
|
@@ -123969,7 +123963,7 @@ ${lanes.join("\n")}
|
|
|
123969
123963
|
if (propertyName === "default") {
|
|
123970
123964
|
needDefaultImport = true;
|
|
123971
123965
|
const importDefaultName = use.getText();
|
|
123972
|
-
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map()).set(parent2, factory.createIdentifier(importDefaultName));
|
|
123966
|
+
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(importDefaultName));
|
|
123973
123967
|
} else {
|
|
123974
123968
|
Debug.assert(parent2.expression === use, "Didn't expect expression === use");
|
|
123975
123969
|
let idName = namedBindingsNames.get(propertyName);
|
|
@@ -123977,7 +123971,7 @@ ${lanes.join("\n")}
|
|
|
123977
123971
|
idName = makeUniqueName(propertyName, identifiers);
|
|
123978
123972
|
namedBindingsNames.set(propertyName, idName);
|
|
123979
123973
|
}
|
|
123980
|
-
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map()).set(parent2, factory.createIdentifier(idName));
|
|
123974
|
+
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(idName));
|
|
123981
123975
|
}
|
|
123982
123976
|
} else {
|
|
123983
123977
|
needDefaultImport = true;
|
|
@@ -124120,7 +124114,7 @@ ${lanes.join("\n")}
|
|
|
124120
124114
|
},
|
|
124121
124115
|
fixIds: [fixId12],
|
|
124122
124116
|
getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyExport(context) {
|
|
124123
|
-
const fixedExportDeclarations = new Map();
|
|
124117
|
+
const fixedExportDeclarations = /* @__PURE__ */ new Map();
|
|
124124
124118
|
return codeFixAll(context, errorCodes13, (changes, diag2) => {
|
|
124125
124119
|
const exportSpecifier = getExportSpecifierForDiagnosticSpan(diag2, context.sourceFile);
|
|
124126
124120
|
if (exportSpecifier && addToSeen(fixedExportDeclarations, getNodeId(exportSpecifier.parent.parent))) {
|
|
@@ -124292,7 +124286,7 @@ ${lanes.join("\n")}
|
|
|
124292
124286
|
},
|
|
124293
124287
|
fixIds: [fixId15],
|
|
124294
124288
|
getAllCodeActions(context) {
|
|
124295
|
-
const seenClassDeclarations = new Map();
|
|
124289
|
+
const seenClassDeclarations = /* @__PURE__ */ new Map();
|
|
124296
124290
|
return codeFixAll(context, errorCodes16, (changes, diag2) => {
|
|
124297
124291
|
const classDeclaration = getClass(diag2.file, diag2.start);
|
|
124298
124292
|
if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
|
|
@@ -124396,8 +124390,8 @@ ${lanes.join("\n")}
|
|
|
124396
124390
|
const compilerOptions = program.getCompilerOptions();
|
|
124397
124391
|
const addToNamespace = [];
|
|
124398
124392
|
const importType = [];
|
|
124399
|
-
const addToExisting = new Map();
|
|
124400
|
-
const newImports = new Map();
|
|
124393
|
+
const addToExisting = /* @__PURE__ */ new Map();
|
|
124394
|
+
const newImports = /* @__PURE__ */ new Map();
|
|
124401
124395
|
return { addImportFromDiagnostic, addImportFromExportedSymbol, writeFixes, hasFixes };
|
|
124402
124396
|
function addImportFromDiagnostic(diagnostic, context) {
|
|
124403
124397
|
const info = getFixInfos(context, diagnostic.code, diagnostic.start, useAutoImportProvider);
|
|
@@ -124432,7 +124426,7 @@ ${lanes.join("\n")}
|
|
|
124432
124426
|
const key = String(getNodeId(importClauseOrBindingPattern));
|
|
124433
124427
|
let entry = addToExisting.get(key);
|
|
124434
124428
|
if (!entry) {
|
|
124435
|
-
addToExisting.set(key, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: new Map() });
|
|
124429
|
+
addToExisting.set(key, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: /* @__PURE__ */ new Map() });
|
|
124436
124430
|
}
|
|
124437
124431
|
if (importKind === 0 /* Named */) {
|
|
124438
124432
|
const prevValue = entry == null ? void 0 : entry.namedImports.get(symbolName2);
|
|
@@ -124456,7 +124450,7 @@ ${lanes.join("\n")}
|
|
|
124456
124450
|
entry.defaultImport = { name: symbolName2, addAsTypeOnly: reduceAddAsTypeOnlyValues((_b = entry.defaultImport) == null ? void 0 : _b.addAsTypeOnly, addAsTypeOnly) };
|
|
124457
124451
|
break;
|
|
124458
124452
|
case 0 /* Named */:
|
|
124459
|
-
const prevValue = (entry.namedImports || (entry.namedImports = new Map())).get(symbolName2);
|
|
124453
|
+
const prevValue = (entry.namedImports || (entry.namedImports = /* @__PURE__ */ new Map())).get(symbolName2);
|
|
124460
124454
|
entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly));
|
|
124461
124455
|
break;
|
|
124462
124456
|
case 3 /* CommonJS */:
|
|
@@ -125365,7 +125359,7 @@ ${lanes.join("\n")}
|
|
|
125365
125359
|
fixIds: [fixId16],
|
|
125366
125360
|
getAllCodeActions: (context) => {
|
|
125367
125361
|
const { program, preferences, host } = context;
|
|
125368
|
-
const seen = new Map();
|
|
125362
|
+
const seen = /* @__PURE__ */ new Map();
|
|
125369
125363
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
125370
125364
|
eachDiagnostic(context, errorCodes18, (diag2) => {
|
|
125371
125365
|
const info = getInfo3(program, diag2.file, createTextSpan(diag2.start, diag2.length));
|
|
@@ -125678,7 +125672,7 @@ ${lanes.join("\n")}
|
|
|
125678
125672
|
getAllCodeActions(context) {
|
|
125679
125673
|
const { program } = context;
|
|
125680
125674
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
125681
|
-
const exports = new Map();
|
|
125675
|
+
const exports = /* @__PURE__ */ new Map();
|
|
125682
125676
|
eachDiagnostic(context, errorCodes22, (diag2) => {
|
|
125683
125677
|
const info = getInfo4(diag2.file, diag2.start, program);
|
|
125684
125678
|
if (info === void 0)
|
|
@@ -126228,8 +126222,8 @@ ${lanes.join("\n")}
|
|
|
126228
126222
|
getAllCodeActions: (context) => {
|
|
126229
126223
|
const { program, fixId: fixId52 } = context;
|
|
126230
126224
|
const checker = program.getTypeChecker();
|
|
126231
|
-
const seen = new Map();
|
|
126232
|
-
const typeDeclToMembers = new Map();
|
|
126225
|
+
const seen = /* @__PURE__ */ new Map();
|
|
126226
|
+
const typeDeclToMembers = /* @__PURE__ */ new Map();
|
|
126233
126227
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
126234
126228
|
eachDiagnostic(context, errorCodes26, (diag2) => {
|
|
126235
126229
|
const info = getInfo7(diag2.file, diag2.start, diag2.code, checker, context.program);
|
|
@@ -126663,7 +126657,7 @@ ${lanes.join("\n")}
|
|
|
126663
126657
|
const targetProps = attrsType.getProperties();
|
|
126664
126658
|
if (!length(targetProps))
|
|
126665
126659
|
return emptyArray;
|
|
126666
|
-
const seenNames = new Set();
|
|
126660
|
+
const seenNames = /* @__PURE__ */ new Set();
|
|
126667
126661
|
for (const sourceProp of source.attributes.properties) {
|
|
126668
126662
|
if (isJsxAttribute(sourceProp)) {
|
|
126669
126663
|
seenNames.add(sourceProp.name.escapedText);
|
|
@@ -126797,7 +126791,7 @@ ${lanes.join("\n")}
|
|
|
126797
126791
|
},
|
|
126798
126792
|
fixIds: [fixId24],
|
|
126799
126793
|
getAllCodeActions: function getAllCodeActionsToFixClassDoesntImplementInheritedAbstractMember(context) {
|
|
126800
|
-
const seenClassDeclarations = new Map();
|
|
126794
|
+
const seenClassDeclarations = /* @__PURE__ */ new Map();
|
|
126801
126795
|
return codeFixAll(context, errorCodes29, (changes, diag2) => {
|
|
126802
126796
|
const classDeclaration = getClass2(diag2.file, diag2.start);
|
|
126803
126797
|
if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
|
|
@@ -126841,7 +126835,7 @@ ${lanes.join("\n")}
|
|
|
126841
126835
|
fixIds: [fixId25],
|
|
126842
126836
|
getAllCodeActions(context) {
|
|
126843
126837
|
const { sourceFile } = context;
|
|
126844
|
-
const seenClasses = new Map();
|
|
126838
|
+
const seenClasses = /* @__PURE__ */ new Map();
|
|
126845
126839
|
return codeFixAll(context, errorCodes30, (changes, diag2) => {
|
|
126846
126840
|
const nodes = getNodes(diag2.file, diag2.start);
|
|
126847
126841
|
if (!nodes)
|
|
@@ -127213,7 +127207,7 @@ ${lanes.join("\n")}
|
|
|
127213
127207
|
return void 0;
|
|
127214
127208
|
},
|
|
127215
127209
|
getAllCodeActions: function getAllCodeActionsToFixUnmatchedParameter(context) {
|
|
127216
|
-
const tagsToSignature = new Map();
|
|
127210
|
+
const tagsToSignature = /* @__PURE__ */ new Map();
|
|
127217
127211
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
127218
127212
|
eachDiagnostic(context, errorCodes39, ({ file, start }) => {
|
|
127219
127213
|
const info = getInfo10(file, start);
|
|
@@ -127245,7 +127239,7 @@ ${lanes.join("\n")}
|
|
|
127245
127239
|
return void 0;
|
|
127246
127240
|
const sourceFile = context.sourceFile;
|
|
127247
127241
|
const tags = getJSDocTags(signature);
|
|
127248
|
-
const names = new Set();
|
|
127242
|
+
const names = /* @__PURE__ */ new Set();
|
|
127249
127243
|
for (const tag of tags) {
|
|
127250
127244
|
if (isJSDocParameterTag(tag) && isIdentifier(tag.name)) {
|
|
127251
127245
|
names.add(tag.name.escapedText);
|
|
@@ -127823,7 +127817,7 @@ ${lanes.join("\n")}
|
|
|
127823
127817
|
},
|
|
127824
127818
|
fixIds: [fixId36],
|
|
127825
127819
|
getAllCodeActions: function getAllCodeActionsToFixAwaitInSyncFunction(context) {
|
|
127826
|
-
const seen = new Map();
|
|
127820
|
+
const seen = /* @__PURE__ */ new Map();
|
|
127827
127821
|
return codeFixAll(context, errorCodes46, (changes, diag2) => {
|
|
127828
127822
|
const nodes = getNodes3(diag2.file, diag2.start);
|
|
127829
127823
|
if (!nodes || !addToSeen(seen, getNodeId(nodes.insertBefore)))
|
|
@@ -128280,7 +128274,7 @@ ${lanes.join("\n")}
|
|
|
128280
128274
|
};
|
|
128281
128275
|
}
|
|
128282
128276
|
function combineUsages(usages) {
|
|
128283
|
-
const combinedProperties = new Map();
|
|
128277
|
+
const combinedProperties = /* @__PURE__ */ new Map();
|
|
128284
128278
|
for (const u of usages) {
|
|
128285
128279
|
if (u.properties) {
|
|
128286
128280
|
u.properties.forEach((p, name) => {
|
|
@@ -128291,7 +128285,7 @@ ${lanes.join("\n")}
|
|
|
128291
128285
|
});
|
|
128292
128286
|
}
|
|
128293
128287
|
}
|
|
128294
|
-
const properties = new Map();
|
|
128288
|
+
const properties = /* @__PURE__ */ new Map();
|
|
128295
128289
|
combinedProperties.forEach((ps, name) => {
|
|
128296
128290
|
properties.set(name, combineUsages(ps));
|
|
128297
128291
|
});
|
|
@@ -128538,7 +128532,7 @@ ${lanes.join("\n")}
|
|
|
128538
128532
|
function inferTypeFromPropertyAccessExpression(parent2, usage) {
|
|
128539
128533
|
const name = escapeLeadingUnderscores(parent2.name.text);
|
|
128540
128534
|
if (!usage.properties) {
|
|
128541
|
-
usage.properties = new Map();
|
|
128535
|
+
usage.properties = /* @__PURE__ */ new Map();
|
|
128542
128536
|
}
|
|
128543
128537
|
const propertyUsage = usage.properties.get(name) || createEmptyUsage();
|
|
128544
128538
|
calculateUsageOfNode(parent2, propertyUsage);
|
|
@@ -128688,7 +128682,7 @@ ${lanes.join("\n")}
|
|
|
128688
128682
|
return types;
|
|
128689
128683
|
}
|
|
128690
128684
|
function inferStructuralType(usage) {
|
|
128691
|
-
const members = new Map();
|
|
128685
|
+
const members = /* @__PURE__ */ new Map();
|
|
128692
128686
|
if (usage.properties) {
|
|
128693
128687
|
usage.properties.forEach((u, name) => {
|
|
128694
128688
|
const symbol = checker.createSymbol(4 /* Property */, name);
|
|
@@ -128906,7 +128900,7 @@ ${lanes.join("\n")}
|
|
|
128906
128900
|
},
|
|
128907
128901
|
fixIds: [fixId40],
|
|
128908
128902
|
getAllCodeActions: (context) => {
|
|
128909
|
-
const seenLines = new Set();
|
|
128903
|
+
const seenLines = /* @__PURE__ */ new Set();
|
|
128910
128904
|
return codeFixAll(context, errorCodes50, (changes, diag2) => {
|
|
128911
128905
|
if (ts_textChanges_exports.isValidLocationToAddComment(diag2.file, diag2.start)) {
|
|
128912
128906
|
makeChange8(changes, diag2.file, diag2.start, seenLines);
|
|
@@ -129247,7 +129241,7 @@ ${lanes.join("\n")}
|
|
|
129247
129241
|
}
|
|
129248
129242
|
function getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, contextNode, scriptTarget, flags, tracker) {
|
|
129249
129243
|
const argumentTypeNodes = [];
|
|
129250
|
-
const argumentTypeParameters = new Map();
|
|
129244
|
+
const argumentTypeParameters = /* @__PURE__ */ new Map();
|
|
129251
129245
|
for (let i = 0; i < instanceTypes.length; i += 1) {
|
|
129252
129246
|
const instanceType = instanceTypes[i];
|
|
129253
129247
|
if (instanceType.isUnionOrIntersection() && instanceType.types.some(typeContainsTypeParameter)) {
|
|
@@ -129287,7 +129281,7 @@ ${lanes.join("\n")}
|
|
|
129287
129281
|
}
|
|
129288
129282
|
function createDummyParameters(argCount, names, types, minArgumentCount, inJs) {
|
|
129289
129283
|
const parameters = [];
|
|
129290
|
-
const parameterNameCounts = new Map();
|
|
129284
|
+
const parameterNameCounts = /* @__PURE__ */ new Map();
|
|
129291
129285
|
for (let i = 0; i < argCount; i++) {
|
|
129292
129286
|
const parameterName = (names == null ? void 0 : names[i]) || `arg${i}`;
|
|
129293
129287
|
const parameterNameCount = parameterNameCounts.get(parameterName);
|
|
@@ -130250,7 +130244,7 @@ ${lanes.join("\n")}
|
|
|
130250
130244
|
},
|
|
130251
130245
|
getAllCodeActions: (context) => {
|
|
130252
130246
|
const { program } = context;
|
|
130253
|
-
const seen = new Map();
|
|
130247
|
+
const seen = /* @__PURE__ */ new Map();
|
|
130254
130248
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
130255
130249
|
eachDiagnostic(context, errorCodes61, (diag2) => {
|
|
130256
130250
|
const info = getInfo17(diag2.file, diag2.start, program);
|
|
@@ -130336,7 +130330,7 @@ ${lanes.join("\n")}
|
|
|
130336
130330
|
}
|
|
130337
130331
|
},
|
|
130338
130332
|
getAllCodeActions(context) {
|
|
130339
|
-
return codeFixAll(context, errorCodes63, (changes, diag2) => makeChange11(changes, diag2.file, diag2, context.program, new Set()));
|
|
130333
|
+
return codeFixAll(context, errorCodes63, (changes, diag2) => makeChange11(changes, diag2.file, diag2, context.program, /* @__PURE__ */ new Set()));
|
|
130340
130334
|
}
|
|
130341
130335
|
});
|
|
130342
130336
|
function makeChange11(changes, sourceFile, span, program, seen) {
|
|
@@ -131335,7 +131329,7 @@ ${lanes.join("\n")}
|
|
|
131335
131329
|
const variableDeclaration = getVariableDeclaration(location);
|
|
131336
131330
|
const useSemicolons = probablyUsesSemicolons(sourceFile);
|
|
131337
131331
|
const typeChecker = program.getTypeChecker();
|
|
131338
|
-
const uniques = new Map();
|
|
131332
|
+
const uniques = /* @__PURE__ */ new Map();
|
|
131339
131333
|
for (let i = 0; i < symbols.length; i++) {
|
|
131340
131334
|
const symbol = symbols[i];
|
|
131341
131335
|
const origin = symbolToOriginInfoMap == null ? void 0 : symbolToOriginInfoMap[i];
|
|
@@ -131414,7 +131408,7 @@ ${lanes.join("\n")}
|
|
|
131414
131408
|
}
|
|
131415
131409
|
function getLabelStatementCompletions(node) {
|
|
131416
131410
|
const entries = [];
|
|
131417
|
-
const uniques = new Map();
|
|
131411
|
+
const uniques = /* @__PURE__ */ new Map();
|
|
131418
131412
|
let current = node;
|
|
131419
131413
|
while (current) {
|
|
131420
131414
|
if (isFunctionLike(current)) {
|
|
@@ -131840,7 +131834,7 @@ ${lanes.join("\n")}
|
|
|
131840
131834
|
let importSpecifierResolver;
|
|
131841
131835
|
const symbolToOriginInfoMap = [];
|
|
131842
131836
|
const symbolToSortTextMap = [];
|
|
131843
|
-
const seenPropertySymbols = new Map();
|
|
131837
|
+
const seenPropertySymbols = /* @__PURE__ */ new Map();
|
|
131844
131838
|
const isTypeOnlyLocation = isTypeOnlyCompletion();
|
|
131845
131839
|
const getModuleSpecifierResolutionHost = memoizeOne((isFromPackageJson) => {
|
|
131846
131840
|
return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);
|
|
@@ -132427,7 +132421,7 @@ ${lanes.join("\n")}
|
|
|
132427
132421
|
const containerActualType = typeChecker.getTypeFromTypeNode(containerTypeNode);
|
|
132428
132422
|
const members = getPropertiesForCompletion(containerExpectedType, typeChecker);
|
|
132429
132423
|
const existingMembers = getPropertiesForCompletion(containerActualType, typeChecker);
|
|
132430
|
-
const existingMemberEscapedNames = new Set();
|
|
132424
|
+
const existingMemberEscapedNames = /* @__PURE__ */ new Set();
|
|
132431
132425
|
existingMembers.forEach((s) => existingMemberEscapedNames.add(s.escapedName));
|
|
132432
132426
|
symbols = concatenate(symbols, filter(members, (s) => !existingMemberEscapedNames.has(s.escapedName)));
|
|
132433
132427
|
completionKind = 0 /* ObjectPropertyDeclaration */;
|
|
@@ -132768,8 +132762,8 @@ ${lanes.join("\n")}
|
|
|
132768
132762
|
if (existingMembers.length === 0) {
|
|
132769
132763
|
return contextualMemberSymbols;
|
|
132770
132764
|
}
|
|
132771
|
-
const membersDeclaredBySpreadAssignment = new Set();
|
|
132772
|
-
const existingMemberNames = new Set();
|
|
132765
|
+
const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();
|
|
132766
|
+
const existingMemberNames = /* @__PURE__ */ new Set();
|
|
132773
132767
|
for (const m of existingMembers) {
|
|
132774
132768
|
if (m.kind !== 299 /* PropertyAssignment */ && m.kind !== 300 /* ShorthandPropertyAssignment */ && m.kind !== 205 /* BindingElement */ && m.kind !== 171 /* MethodDeclaration */ && m.kind !== 174 /* GetAccessor */ && m.kind !== 175 /* SetAccessor */ && m.kind !== 301 /* SpreadAssignment */) {
|
|
132775
132769
|
continue;
|
|
@@ -132848,7 +132842,7 @@ ${lanes.join("\n")}
|
|
|
132848
132842
|
}
|
|
132849
132843
|
}
|
|
132850
132844
|
function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) {
|
|
132851
|
-
const existingMemberNames = new Set();
|
|
132845
|
+
const existingMemberNames = /* @__PURE__ */ new Set();
|
|
132852
132846
|
for (const m of existingMembers) {
|
|
132853
132847
|
if (m.kind !== 169 /* PropertyDeclaration */ && m.kind !== 171 /* MethodDeclaration */ && m.kind !== 174 /* GetAccessor */ && m.kind !== 175 /* SetAccessor */) {
|
|
132854
132848
|
continue;
|
|
@@ -132870,8 +132864,8 @@ ${lanes.join("\n")}
|
|
|
132870
132864
|
return baseSymbols.filter((propertySymbol) => !existingMemberNames.has(propertySymbol.escapedName) && !!propertySymbol.declarations && !(getDeclarationModifierFlagsFromSymbol(propertySymbol) & 8 /* Private */) && !(propertySymbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(propertySymbol.valueDeclaration)));
|
|
132871
132865
|
}
|
|
132872
132866
|
function filterJsxAttributes(symbols2, attributes) {
|
|
132873
|
-
const seenNames = new Set();
|
|
132874
|
-
const membersDeclaredBySpreadAssignment = new Set();
|
|
132867
|
+
const seenNames = /* @__PURE__ */ new Set();
|
|
132868
|
+
const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();
|
|
132875
132869
|
for (const attr of attributes) {
|
|
132876
132870
|
if (isCurrentlyEditingNode(attr)) {
|
|
132877
132871
|
continue;
|
|
@@ -133348,7 +133342,7 @@ ${lanes.join("\n")}
|
|
|
133348
133342
|
function isArrowFunctionBody(node) {
|
|
133349
133343
|
return node.parent && isArrowFunction(node.parent) && node.parent.body === node;
|
|
133350
133344
|
}
|
|
133351
|
-
function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = new Map()) {
|
|
133345
|
+
function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new Map()) {
|
|
133352
133346
|
return nonAliasCanBeReferencedAtTypeLocation(symbol) || nonAliasCanBeReferencedAtTypeLocation(skipAlias(symbol.exportSymbol || symbol, checker));
|
|
133353
133347
|
function nonAliasCanBeReferencedAtTypeLocation(symbol2) {
|
|
133354
133348
|
return !!(symbol2.flags & 788968 /* Type */) || checker.isUnknownSymbol(symbol2) || !!(symbol2.flags & 1536 /* Module */) && addToSeen(seenModules, getSymbolId(symbol2)) && checker.getExportsOfModule(symbol2).some((e) => symbolCanBeReferencedAtTypeLocation(e, checker, seenModules));
|
|
@@ -133403,7 +133397,7 @@ ${lanes.join("\n")}
|
|
|
133403
133397
|
["external module name" /* externalModuleName */]: 2
|
|
133404
133398
|
};
|
|
133405
133399
|
function createNameAndKindSet() {
|
|
133406
|
-
const map2 = new Map();
|
|
133400
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
133407
133401
|
function add(value) {
|
|
133408
133402
|
const existing = map2.get(value.name);
|
|
133409
133403
|
if (!existing || kindPrecedence[existing.kind] < kindPrecedence[value.kind]) {
|
|
@@ -133617,7 +133611,7 @@ ${lanes.join("\n")}
|
|
|
133617
133611
|
}
|
|
133618
133612
|
function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) {
|
|
133619
133613
|
let isNewIdentifier = false;
|
|
133620
|
-
const uniques = new Map();
|
|
133614
|
+
const uniques = /* @__PURE__ */ new Map();
|
|
133621
133615
|
const candidates = [];
|
|
133622
133616
|
const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg;
|
|
133623
133617
|
checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates);
|
|
@@ -133660,7 +133654,7 @@ ${lanes.join("\n")}
|
|
|
133660
133654
|
hasIndexSignature: hasIndexSignature(contextualType)
|
|
133661
133655
|
};
|
|
133662
133656
|
}
|
|
133663
|
-
function getStringLiteralTypes(type, uniques = new Map()) {
|
|
133657
|
+
function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new Map()) {
|
|
133664
133658
|
if (!type)
|
|
133665
133659
|
return emptyArray;
|
|
133666
133660
|
type = skipConstraint(type);
|
|
@@ -134032,7 +134026,7 @@ ${lanes.join("\n")}
|
|
|
134032
134026
|
return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values()));
|
|
134033
134027
|
}
|
|
134034
134028
|
function getCompletionEntriesFromTypings(host, options, scriptPath, fragmentDirectory, extensionOptions, result = createNameAndKindSet()) {
|
|
134035
|
-
const seen = new Map();
|
|
134029
|
+
const seen = /* @__PURE__ */ new Map();
|
|
134036
134030
|
const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || emptyArray;
|
|
134037
134031
|
for (const root of typeRoots) {
|
|
134038
134032
|
getCompletionEntriesFromDirectories(root);
|
|
@@ -134414,7 +134408,7 @@ ${lanes.join("\n")}
|
|
|
134414
134408
|
return refs;
|
|
134415
134409
|
}
|
|
134416
134410
|
function getDirectImportsMap(sourceFiles, checker, cancellationToken) {
|
|
134417
|
-
const map2 = new Map();
|
|
134411
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
134418
134412
|
for (const sourceFile of sourceFiles) {
|
|
134419
134413
|
if (cancellationToken)
|
|
134420
134414
|
cancellationToken.throwIfCancellationRequested();
|
|
@@ -134763,7 +134757,7 @@ ${lanes.join("\n")}
|
|
|
134763
134757
|
referenceEntries = entries && [...entries];
|
|
134764
134758
|
} else if (entries) {
|
|
134765
134759
|
const queue = createQueue(entries);
|
|
134766
|
-
const seenNodes = new Map();
|
|
134760
|
+
const seenNodes = /* @__PURE__ */ new Map();
|
|
134767
134761
|
while (!queue.isEmpty()) {
|
|
134768
134762
|
const entry = queue.dequeue();
|
|
134769
134763
|
if (!addToSeen(seenNodes, getNodeId(entry.node))) {
|
|
@@ -135406,7 +135400,7 @@ ${lanes.join("\n")}
|
|
|
135406
135400
|
this.searchMeaning = searchMeaning;
|
|
135407
135401
|
this.options = options;
|
|
135408
135402
|
this.result = result;
|
|
135409
|
-
this.inheritsFromCache = new Map();
|
|
135403
|
+
this.inheritsFromCache = /* @__PURE__ */ new Map();
|
|
135410
135404
|
this.markSeenContainingTypeReference = nodeSeenTracker();
|
|
135411
135405
|
this.markSeenReExportRHS = nodeSeenTracker();
|
|
135412
135406
|
this.symbolIdToReferences = [];
|
|
@@ -135446,7 +135440,7 @@ ${lanes.join("\n")}
|
|
|
135446
135440
|
}
|
|
135447
135441
|
markSearchedSymbols(sourceFile, symbols) {
|
|
135448
135442
|
const sourceId = getNodeId(sourceFile);
|
|
135449
|
-
const seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = new Set());
|
|
135443
|
+
const seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = /* @__PURE__ */ new Set());
|
|
135450
135444
|
let anyNewSymbols = false;
|
|
135451
135445
|
for (const sym of symbols) {
|
|
135452
135446
|
anyNewSymbols = tryAddToSet(seenSymbols, getSymbolId(sym)) || anyNewSymbols;
|
|
@@ -136232,7 +136226,7 @@ ${lanes.join("\n")}
|
|
|
136232
136226
|
}
|
|
136233
136227
|
}
|
|
136234
136228
|
function getPropertySymbolsFromBaseTypes(symbol, propertyName, checker, cb) {
|
|
136235
|
-
const seen = new Map();
|
|
136229
|
+
const seen = /* @__PURE__ */ new Map();
|
|
136236
136230
|
return recur(symbol);
|
|
136237
136231
|
function recur(symbol2) {
|
|
136238
136232
|
if (!(symbol2.flags & (32 /* Class */ | 64 /* Interface */)) || !addToSeen(seen, getSymbolId(symbol2)))
|
|
@@ -138087,7 +138081,7 @@ ${lanes.join("\n")}
|
|
|
138087
138081
|
});
|
|
138088
138082
|
|
|
138089
138083
|
// src/services/refactorProvider.ts
|
|
138090
|
-
var refactors = new Map();
|
|
138084
|
+
var refactors = /* @__PURE__ */ new Map();
|
|
138091
138085
|
function registerRefactor(name, refactor) {
|
|
138092
138086
|
refactors.set(name, refactor);
|
|
138093
138087
|
}
|
|
@@ -138410,7 +138404,7 @@ ${lanes.join("\n")}
|
|
|
138410
138404
|
function doChangeNamespaceToNamed(sourceFile, checker, changes, toConvert, allowSyntheticDefaultImports) {
|
|
138411
138405
|
let usedAsNamespaceOrDefault = false;
|
|
138412
138406
|
const nodesToReplace = [];
|
|
138413
|
-
const conflictingNames = new Map();
|
|
138407
|
+
const conflictingNames = /* @__PURE__ */ new Map();
|
|
138414
138408
|
ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(toConvert.name, checker, sourceFile, (id) => {
|
|
138415
138409
|
if (!isPropertyAccessOrQualifiedName(id.parent)) {
|
|
138416
138410
|
usedAsNamespaceOrDefault = true;
|
|
@@ -138423,7 +138417,7 @@ ${lanes.join("\n")}
|
|
|
138423
138417
|
nodesToReplace.push(id.parent);
|
|
138424
138418
|
}
|
|
138425
138419
|
});
|
|
138426
|
-
const exportNameToImportName = new Map();
|
|
138420
|
+
const exportNameToImportName = /* @__PURE__ */ new Map();
|
|
138427
138421
|
for (const propertyAccessOrQualifiedName of nodesToReplace) {
|
|
138428
138422
|
const exportName = getRightOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName).text;
|
|
138429
138423
|
let importName = exportNameToImportName.get(exportName);
|
|
@@ -138453,7 +138447,7 @@ ${lanes.join("\n")}
|
|
|
138453
138447
|
const checker = program.getTypeChecker();
|
|
138454
138448
|
const importDecl = toConvert.parent.parent;
|
|
138455
138449
|
const { moduleSpecifier } = importDecl;
|
|
138456
|
-
const toConvertSymbols = new Set();
|
|
138450
|
+
const toConvertSymbols = /* @__PURE__ */ new Set();
|
|
138457
138451
|
toConvert.elements.forEach((namedImport) => {
|
|
138458
138452
|
const symbol = checker.getSymbolAtLocation(namedImport.name);
|
|
138459
138453
|
if (symbol) {
|
|
@@ -138475,7 +138469,7 @@ ${lanes.join("\n")}
|
|
|
138475
138469
|
}
|
|
138476
138470
|
const namespaceNameConflicts = toConvert.elements.some(hasNamespaceNameConflict);
|
|
138477
138471
|
const namespaceImportName = namespaceNameConflicts ? getUniqueName(preferredName, sourceFile) : preferredName;
|
|
138478
|
-
const neededNamedImports = new Set();
|
|
138472
|
+
const neededNamedImports = /* @__PURE__ */ new Set();
|
|
138479
138473
|
for (const element of toConvert.elements) {
|
|
138480
138474
|
const propertyName = (element.propertyName || element.name).text;
|
|
138481
138475
|
ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(element.name, checker, sourceFile, (id) => {
|
|
@@ -138605,7 +138599,7 @@ ${lanes.join("\n")}
|
|
|
138605
138599
|
return void 0;
|
|
138606
138600
|
if (isIntersectionTypeNode(node)) {
|
|
138607
138601
|
const result = [];
|
|
138608
|
-
const seen = new Map();
|
|
138602
|
+
const seen = /* @__PURE__ */ new Map();
|
|
138609
138603
|
for (const type of node.types) {
|
|
138610
138604
|
const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type);
|
|
138611
138605
|
if (!flattenedTypeMembers || !flattenedTypeMembers.every((type2) => type2.name && addToSeen(seen, getNameFromPropertyName(type2.name)))) {
|
|
@@ -139257,7 +139251,7 @@ ${lanes.join("\n")}
|
|
|
139257
139251
|
}
|
|
139258
139252
|
var SymbolSet = class {
|
|
139259
139253
|
constructor() {
|
|
139260
|
-
this.map = new Map();
|
|
139254
|
+
this.map = /* @__PURE__ */ new Map();
|
|
139261
139255
|
}
|
|
139262
139256
|
add(symbol) {
|
|
139263
139257
|
this.map.set(String(getSymbolId(symbol)), symbol);
|
|
@@ -140921,10 +140915,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
140921
140915
|
return emptyArray;
|
|
140922
140916
|
}
|
|
140923
140917
|
const functionActions = [];
|
|
140924
|
-
const usedFunctionNames = new Map();
|
|
140918
|
+
const usedFunctionNames = /* @__PURE__ */ new Map();
|
|
140925
140919
|
let innermostErrorFunctionAction;
|
|
140926
140920
|
const constantActions = [];
|
|
140927
|
-
const usedConstantNames = new Map();
|
|
140921
|
+
const usedConstantNames = /* @__PURE__ */ new Map();
|
|
140928
140922
|
let innermostErrorConstantAction;
|
|
140929
140923
|
let i = 0;
|
|
140930
140924
|
for (const { functionExtraction, constantExtraction } of extractions) {
|
|
@@ -142033,13 +142027,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
142033
142027
|
return Usage2;
|
|
142034
142028
|
})(Usage || {});
|
|
142035
142029
|
function collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, checker, cancellationToken) {
|
|
142036
|
-
const allTypeParameterUsages = new Map();
|
|
142030
|
+
const allTypeParameterUsages = /* @__PURE__ */ new Map();
|
|
142037
142031
|
const usagesPerScope = [];
|
|
142038
142032
|
const substitutionsPerScope = [];
|
|
142039
142033
|
const functionErrorsPerScope = [];
|
|
142040
142034
|
const constantErrorsPerScope = [];
|
|
142041
142035
|
const visibleDeclarationsInExtractedRange = [];
|
|
142042
|
-
const exposedVariableSymbolSet = new Map();
|
|
142036
|
+
const exposedVariableSymbolSet = /* @__PURE__ */ new Map();
|
|
142043
142037
|
const exposedVariableDeclarations = [];
|
|
142044
142038
|
let firstExposedNonVariableDeclaration;
|
|
142045
142039
|
const expression = !isReadonlyArray(targetRange.range) ? targetRange.range : targetRange.range.length === 1 && isExpressionStatement(targetRange.range[0]) ? targetRange.range[0].expression : void 0;
|
|
@@ -142053,8 +142047,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
142053
142047
|
expressionDiagnostic = createDiagnosticForNode(expression, Messages.uselessConstantType);
|
|
142054
142048
|
}
|
|
142055
142049
|
for (const scope of scopes) {
|
|
142056
|
-
usagesPerScope.push({ usages: new Map(), typeParameterUsages: new Map(), substitutions: new Map() });
|
|
142057
|
-
substitutionsPerScope.push(new Map());
|
|
142050
|
+
usagesPerScope.push({ usages: /* @__PURE__ */ new Map(), typeParameterUsages: /* @__PURE__ */ new Map(), substitutions: /* @__PURE__ */ new Map() });
|
|
142051
|
+
substitutionsPerScope.push(/* @__PURE__ */ new Map());
|
|
142058
142052
|
functionErrorsPerScope.push([]);
|
|
142059
142053
|
const constantErrors = [];
|
|
142060
142054
|
if (expressionDiagnostic) {
|
|
@@ -142068,7 +142062,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
142068
142062
|
}
|
|
142069
142063
|
constantErrorsPerScope.push(constantErrors);
|
|
142070
142064
|
}
|
|
142071
|
-
const seenUsages = new Map();
|
|
142065
|
+
const seenUsages = /* @__PURE__ */ new Map();
|
|
142072
142066
|
const target = isReadonlyArray(targetRange.range) ? factory.createBlock(targetRange.range) : targetRange.range;
|
|
142073
142067
|
const unmodifiedNode = isReadonlyArray(targetRange.range) ? first(targetRange.range) : targetRange.range;
|
|
142074
142068
|
const inGenericContext = isInGenericContext(unmodifiedNode);
|
|
@@ -142078,7 +142072,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
142078
142072
|
recordTypeParameterUsages(contextualType);
|
|
142079
142073
|
}
|
|
142080
142074
|
if (allTypeParameterUsages.size > 0) {
|
|
142081
|
-
const seenTypeParameterUsages = new Map();
|
|
142075
|
+
const seenTypeParameterUsages = /* @__PURE__ */ new Map();
|
|
142082
142076
|
let i = 0;
|
|
142083
142077
|
for (let curr = unmodifiedNode; curr !== void 0 && i < scopes.length; curr = curr.parent) {
|
|
142084
142078
|
if (curr === scopes[i]) {
|
|
@@ -144096,7 +144090,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
144096
144090
|
this.formatContext = formatContext;
|
|
144097
144091
|
this.changes = [];
|
|
144098
144092
|
this.newFiles = [];
|
|
144099
|
-
this.classesWithNodesInsertedAtStart = new Map();
|
|
144093
|
+
this.classesWithNodesInsertedAtStart = /* @__PURE__ */ new Map();
|
|
144100
144094
|
this.deletedNodes = [];
|
|
144101
144095
|
}
|
|
144102
144096
|
static fromContext(context) {
|
|
@@ -144545,7 +144539,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
144545
144539
|
});
|
|
144546
144540
|
}
|
|
144547
144541
|
finishDeleteDeclarations() {
|
|
144548
|
-
const deletedNodesInLists = new Set();
|
|
144542
|
+
const deletedNodesInLists = /* @__PURE__ */ new Set();
|
|
144549
144543
|
for (const { sourceFile, node } of this.deletedNodes) {
|
|
144550
144544
|
if (!this.deletedNodes.some((d) => d.sourceFile === sourceFile && rangeContainsRangeExclusive(d.node, node))) {
|
|
144551
144545
|
if (isArray(node)) {
|
|
@@ -147657,7 +147651,6 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147657
147651
|
LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
|
|
147658
147652
|
ListFormat: () => ListFormat,
|
|
147659
147653
|
LogLevel: () => LogLevel,
|
|
147660
|
-
Map: () => Map,
|
|
147661
147654
|
MemberOverrideStatus: () => MemberOverrideStatus,
|
|
147662
147655
|
ModifierFlags: () => ModifierFlags,
|
|
147663
147656
|
ModuleDetectionKind: () => ModuleDetectionKind,
|
|
@@ -147700,7 +147693,6 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147700
147693
|
SemanticClassificationFormat: () => SemanticClassificationFormat,
|
|
147701
147694
|
SemanticMeaning: () => SemanticMeaning,
|
|
147702
147695
|
SemicolonPreference: () => SemicolonPreference,
|
|
147703
|
-
Set: () => Set,
|
|
147704
147696
|
SignatureCheckMode: () => SignatureCheckMode,
|
|
147705
147697
|
SignatureFlags: () => SignatureFlags,
|
|
147706
147698
|
SignatureHelp: () => ts_SignatureHelp_exports,
|
|
@@ -151447,7 +151439,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
151447
151439
|
return fileName;
|
|
151448
151440
|
}
|
|
151449
151441
|
function createNormalizedPathMap() {
|
|
151450
|
-
const map2 = new Map();
|
|
151442
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
151451
151443
|
return {
|
|
151452
151444
|
get(path) {
|
|
151453
151445
|
return map2.get(path);
|
|
@@ -151483,7 +151475,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
151483
151475
|
var ThrottledOperations = class {
|
|
151484
151476
|
constructor(host, logger) {
|
|
151485
151477
|
this.host = host;
|
|
151486
|
-
this.pendingTimeouts = new Map();
|
|
151478
|
+
this.pendingTimeouts = /* @__PURE__ */ new Map();
|
|
151487
151479
|
this.logger = logger.hasLevel(3 /* verbose */) ? logger : void 0;
|
|
151488
151480
|
}
|
|
151489
151481
|
schedule(operationId, delay, cb) {
|
|
@@ -151503,11 +151495,11 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
151503
151495
|
this.host.clearTimeout(pendingTimeout);
|
|
151504
151496
|
return this.pendingTimeouts.delete(operationId);
|
|
151505
151497
|
}
|
|
151506
|
-
static run(
|
|
151498
|
+
static run(self, operationId, cb) {
|
|
151507
151499
|
perfLogger.logStartScheduledOperation(operationId);
|
|
151508
|
-
|
|
151509
|
-
if (
|
|
151510
|
-
|
|
151500
|
+
self.pendingTimeouts.delete(operationId);
|
|
151501
|
+
if (self.logger) {
|
|
151502
|
+
self.logger.info(`Running: ${operationId}`);
|
|
151511
151503
|
}
|
|
151512
151504
|
cb();
|
|
151513
151505
|
perfLogger.logStopScheduledOperation();
|
|
@@ -151525,15 +151517,15 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
151525
151517
|
}
|
|
151526
151518
|
this.timerId = this.host.setTimeout(GcTimer.run, this.delay, this);
|
|
151527
151519
|
}
|
|
151528
|
-
static run(
|
|
151529
|
-
|
|
151520
|
+
static run(self) {
|
|
151521
|
+
self.timerId = void 0;
|
|
151530
151522
|
perfLogger.logStartScheduledOperation("GC collect");
|
|
151531
|
-
const log =
|
|
151532
|
-
const before = log &&
|
|
151533
|
-
|
|
151523
|
+
const log = self.logger.hasLevel(2 /* requestTime */);
|
|
151524
|
+
const before = log && self.host.getMemoryUsage();
|
|
151525
|
+
self.host.gc();
|
|
151534
151526
|
if (log) {
|
|
151535
|
-
const after =
|
|
151536
|
-
|
|
151527
|
+
const after = self.host.getMemoryUsage();
|
|
151528
|
+
self.logger.perftrc(`GC::before ${before}, after ${after}`);
|
|
151537
151529
|
}
|
|
151538
151530
|
perfLogger.logStopScheduledOperation();
|
|
151539
151531
|
}
|
|
@@ -152268,7 +152260,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152268
152260
|
if ((arr1 || emptyArray2).length === 0 && (arr2 || emptyArray2).length === 0) {
|
|
152269
152261
|
return true;
|
|
152270
152262
|
}
|
|
152271
|
-
const set = new Map();
|
|
152263
|
+
const set = /* @__PURE__ */ new Map();
|
|
152272
152264
|
let unique = 0;
|
|
152273
152265
|
for (const v of arr1) {
|
|
152274
152266
|
if (set.get(v) !== true) {
|
|
@@ -152303,7 +152295,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152303
152295
|
var TypingsCache = class {
|
|
152304
152296
|
constructor(installer) {
|
|
152305
152297
|
this.installer = installer;
|
|
152306
|
-
this.perProjectCache = new Map();
|
|
152298
|
+
this.perProjectCache = /* @__PURE__ */ new Map();
|
|
152307
152299
|
}
|
|
152308
152300
|
isKnownTypesPackageName(name) {
|
|
152309
152301
|
return this.installer.isKnownTypesPackageName(name);
|
|
@@ -152428,9 +152420,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152428
152420
|
this.compileOnSaveEnabled = compileOnSaveEnabled;
|
|
152429
152421
|
this.watchOptions = watchOptions;
|
|
152430
152422
|
this.rootFiles = [];
|
|
152431
|
-
this.rootFilesMap = new Map();
|
|
152423
|
+
this.rootFilesMap = /* @__PURE__ */ new Map();
|
|
152432
152424
|
this.plugins = [];
|
|
152433
|
-
this.cachedUnresolvedImportsPerFile = new Map();
|
|
152425
|
+
this.cachedUnresolvedImportsPerFile = /* @__PURE__ */ new Map();
|
|
152434
152426
|
this.hasAddedorRemovedFiles = false;
|
|
152435
152427
|
this.hasAddedOrRemovedSymlinks = false;
|
|
152436
152428
|
this.lastReportedVersion = 0;
|
|
@@ -153044,12 +153036,12 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153044
153036
|
this.markAsDirty();
|
|
153045
153037
|
}
|
|
153046
153038
|
registerFileUpdate(fileName) {
|
|
153047
|
-
(this.updatedFileNames || (this.updatedFileNames = new Set())).add(fileName);
|
|
153039
|
+
(this.updatedFileNames || (this.updatedFileNames = /* @__PURE__ */ new Set())).add(fileName);
|
|
153048
153040
|
}
|
|
153049
153041
|
markFileAsDirty(changedFile) {
|
|
153050
153042
|
this.markAsDirty();
|
|
153051
153043
|
if (this.exportMapCache && !this.exportMapCache.isEmpty()) {
|
|
153052
|
-
(this.changedFilesForExportMapCache || (this.changedFilesForExportMapCache = new Set())).add(changedFile);
|
|
153044
|
+
(this.changedFilesForExportMapCache || (this.changedFilesForExportMapCache = /* @__PURE__ */ new Set())).add(changedFile);
|
|
153053
153045
|
}
|
|
153054
153046
|
}
|
|
153055
153047
|
markAsDirty() {
|
|
@@ -153173,7 +153165,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153173
153165
|
}
|
|
153174
153166
|
updateMissingFilePathsWatch(
|
|
153175
153167
|
this.program,
|
|
153176
|
-
this.missingFilesMap || (this.missingFilesMap = new Map()),
|
|
153168
|
+
this.missingFilesMap || (this.missingFilesMap = /* @__PURE__ */ new Map()),
|
|
153177
153169
|
(missingFilePath) => this.addMissingFileWatcher(missingFilePath)
|
|
153178
153170
|
);
|
|
153179
153171
|
if (this.generatedFilesMap) {
|
|
@@ -153307,7 +153299,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153307
153299
|
if (this.generatedFilesMap.has(path))
|
|
153308
153300
|
return;
|
|
153309
153301
|
} else {
|
|
153310
|
-
this.generatedFilesMap = new Map();
|
|
153302
|
+
this.generatedFilesMap = /* @__PURE__ */ new Map();
|
|
153311
153303
|
}
|
|
153312
153304
|
this.generatedFilesMap.set(path, this.createGeneratedFileWatcher(generatedFile));
|
|
153313
153305
|
}
|
|
@@ -153441,8 +153433,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153441
153433
|
(info2) => info2.fileName,
|
|
153442
153434
|
(info2) => info2.isSourceOfProjectReferenceRedirect
|
|
153443
153435
|
);
|
|
153444
|
-
const added = new Map();
|
|
153445
|
-
const removed = new Map();
|
|
153436
|
+
const added = /* @__PURE__ */ new Map();
|
|
153437
|
+
const removed = /* @__PURE__ */ new Map();
|
|
153446
153438
|
const updated = updatedFileNames ? arrayFrom(updatedFileNames.keys()) : [];
|
|
153447
153439
|
const updatedRedirects = [];
|
|
153448
153440
|
forEachEntry(currentFiles, (isSourceOfProjectReferenceRedirect, fileName) => {
|
|
@@ -153958,7 +153950,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153958
153950
|
return rootNames || emptyArray;
|
|
153959
153951
|
function addDependency(dependency) {
|
|
153960
153952
|
if (!startsWith(dependency, "@types/")) {
|
|
153961
|
-
(dependencyNames || (dependencyNames = new Set())).add(dependency);
|
|
153953
|
+
(dependencyNames || (dependencyNames = /* @__PURE__ */ new Set())).add(dependency);
|
|
153962
153954
|
}
|
|
153963
153955
|
}
|
|
153964
153956
|
function getRootNamesFromPackageJson(packageJson, program2, symlinkCache, resolveJs) {
|
|
@@ -154096,7 +154088,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154096
154088
|
getDirectoryPath(configFileName)
|
|
154097
154089
|
);
|
|
154098
154090
|
this.canonicalConfigFilePath = canonicalConfigFilePath;
|
|
154099
|
-
this.openFileWatchTriggered = new Map();
|
|
154091
|
+
this.openFileWatchTriggered = /* @__PURE__ */ new Map();
|
|
154100
154092
|
this.canConfigFileJsonReportNoInputFiles = false;
|
|
154101
154093
|
this.externalProjectRefCount = 0;
|
|
154102
154094
|
this.isInitialLoadPending = returnTrue;
|
|
@@ -154172,7 +154164,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154172
154164
|
}
|
|
154173
154165
|
setPotentialProjectReference(canonicalConfigPath) {
|
|
154174
154166
|
Debug.assert(this.isInitialLoadPending());
|
|
154175
|
-
(this.potentialProjectReferences || (this.potentialProjectReferences = new Set())).add(canonicalConfigPath);
|
|
154167
|
+
(this.potentialProjectReferences || (this.potentialProjectReferences = /* @__PURE__ */ new Set())).add(canonicalConfigPath);
|
|
154176
154168
|
}
|
|
154177
154169
|
getResolvedProjectReferenceToRedirect(fileName) {
|
|
154178
154170
|
const program = this.getCurrentProgram();
|
|
@@ -154325,7 +154317,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154325
154317
|
var OpenFileInfoTelemetryEvent = "openFileInfo";
|
|
154326
154318
|
var ensureProjectForOpenFileSchedule = "*ensureProjectForOpenFiles*";
|
|
154327
154319
|
function prepareConvertersForEnumLikeCompilerOptions(commandLineOptions) {
|
|
154328
|
-
const map2 = new Map();
|
|
154320
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
154329
154321
|
for (const option of commandLineOptions) {
|
|
154330
154322
|
if (typeof option.type === "object") {
|
|
154331
154323
|
const optionMap = option.type;
|
|
@@ -154488,7 +154480,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154488
154480
|
if (result)
|
|
154489
154481
|
return result;
|
|
154490
154482
|
} else if (projectReferenceProjectLoadKind !== 0 /* Find */) {
|
|
154491
|
-
seenResolvedRefs = new Map();
|
|
154483
|
+
seenResolvedRefs = /* @__PURE__ */ new Map();
|
|
154492
154484
|
const result = forEachResolvedProjectReferenceProjectWorker(
|
|
154493
154485
|
resolvedRefs,
|
|
154494
154486
|
project.getCompilerOptions(),
|
|
@@ -154531,7 +154523,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154531
154523
|
if (result) {
|
|
154532
154524
|
return result;
|
|
154533
154525
|
}
|
|
154534
|
-
(seenResolvedRefs || (seenResolvedRefs = new Map())).set(canonicalPath, loadKind);
|
|
154526
|
+
(seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Map())).set(canonicalPath, loadKind);
|
|
154535
154527
|
return ref.references && forEachResolvedProjectReferenceProjectWorker(ref.references, ref.commandLine.options, cb, loadKind, projectService, seenResolvedRefs);
|
|
154536
154528
|
});
|
|
154537
154529
|
}
|
|
@@ -154577,32 +154569,32 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154577
154569
|
}
|
|
154578
154570
|
var _ProjectService = class {
|
|
154579
154571
|
constructor(opts) {
|
|
154580
|
-
this.filenameToScriptInfo = new Map();
|
|
154581
|
-
this.nodeModulesWatchers = new Map();
|
|
154582
|
-
this.filenameToScriptInfoVersion = new Map();
|
|
154583
|
-
this.allJsFilesForOpenFileTelemetry = new Map();
|
|
154584
|
-
this.externalProjectToConfiguredProjectMap = new Map();
|
|
154572
|
+
this.filenameToScriptInfo = /* @__PURE__ */ new Map();
|
|
154573
|
+
this.nodeModulesWatchers = /* @__PURE__ */ new Map();
|
|
154574
|
+
this.filenameToScriptInfoVersion = /* @__PURE__ */ new Map();
|
|
154575
|
+
this.allJsFilesForOpenFileTelemetry = /* @__PURE__ */ new Map();
|
|
154576
|
+
this.externalProjectToConfiguredProjectMap = /* @__PURE__ */ new Map();
|
|
154585
154577
|
this.externalProjects = [];
|
|
154586
154578
|
this.inferredProjects = [];
|
|
154587
|
-
this.configuredProjects = new Map();
|
|
154579
|
+
this.configuredProjects = /* @__PURE__ */ new Map();
|
|
154588
154580
|
this.newInferredProjectName = createProjectNameFactoryWithCounter(makeInferredProjectName);
|
|
154589
154581
|
this.newAutoImportProviderProjectName = createProjectNameFactoryWithCounter(makeAutoImportProviderProjectName);
|
|
154590
154582
|
this.newAuxiliaryProjectName = createProjectNameFactoryWithCounter(makeAuxiliaryProjectName);
|
|
154591
|
-
this.openFiles = new Map();
|
|
154592
|
-
this.configFileForOpenFiles = new Map();
|
|
154593
|
-
this.openFilesWithNonRootedDiskPath = new Map();
|
|
154594
|
-
this.compilerOptionsForInferredProjectsPerProjectRoot = new Map();
|
|
154595
|
-
this.watchOptionsForInferredProjectsPerProjectRoot = new Map();
|
|
154596
|
-
this.typeAcquisitionForInferredProjectsPerProjectRoot = new Map();
|
|
154597
|
-
this.projectToSizeMap = new Map();
|
|
154598
|
-
this.configFileExistenceInfoCache = new Map();
|
|
154583
|
+
this.openFiles = /* @__PURE__ */ new Map();
|
|
154584
|
+
this.configFileForOpenFiles = /* @__PURE__ */ new Map();
|
|
154585
|
+
this.openFilesWithNonRootedDiskPath = /* @__PURE__ */ new Map();
|
|
154586
|
+
this.compilerOptionsForInferredProjectsPerProjectRoot = /* @__PURE__ */ new Map();
|
|
154587
|
+
this.watchOptionsForInferredProjectsPerProjectRoot = /* @__PURE__ */ new Map();
|
|
154588
|
+
this.typeAcquisitionForInferredProjectsPerProjectRoot = /* @__PURE__ */ new Map();
|
|
154589
|
+
this.projectToSizeMap = /* @__PURE__ */ new Map();
|
|
154590
|
+
this.configFileExistenceInfoCache = /* @__PURE__ */ new Map();
|
|
154599
154591
|
this.safelist = defaultTypeSafeList;
|
|
154600
|
-
this.legacySafelist = new Map();
|
|
154601
|
-
this.pendingProjectUpdates = new Map();
|
|
154592
|
+
this.legacySafelist = /* @__PURE__ */ new Map();
|
|
154593
|
+
this.pendingProjectUpdates = /* @__PURE__ */ new Map();
|
|
154602
154594
|
this.pendingEnsureProjectForOpenFiles = false;
|
|
154603
|
-
this.seenProjects = new Map();
|
|
154604
|
-
this.sharedExtendedConfigFileWatchers = new Map();
|
|
154605
|
-
this.extendedConfigCache = new Map();
|
|
154595
|
+
this.seenProjects = /* @__PURE__ */ new Map();
|
|
154596
|
+
this.sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map();
|
|
154597
|
+
this.extendedConfigCache = /* @__PURE__ */ new Map();
|
|
154606
154598
|
this.host = opts.host;
|
|
154607
154599
|
this.logger = opts.logger;
|
|
154608
154600
|
this.cancellationToken = opts.cancellationToken;
|
|
@@ -155202,14 +155194,14 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155202
155194
|
let configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath);
|
|
155203
155195
|
if (configFileExistenceInfo) {
|
|
155204
155196
|
if (isOpenScriptInfo(info) && !((_a2 = configFileExistenceInfo.openFilesImpactedByConfigFile) == null ? void 0 : _a2.has(info.path))) {
|
|
155205
|
-
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = new Map())).set(info.path, false);
|
|
155197
|
+
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = /* @__PURE__ */ new Map())).set(info.path, false);
|
|
155206
155198
|
}
|
|
155207
155199
|
return configFileExistenceInfo.exists;
|
|
155208
155200
|
}
|
|
155209
155201
|
const exists = this.host.fileExists(configFileName);
|
|
155210
155202
|
let openFilesImpactedByConfigFile;
|
|
155211
155203
|
if (isOpenScriptInfo(info)) {
|
|
155212
|
-
(openFilesImpactedByConfigFile || (openFilesImpactedByConfigFile = new Map())).set(info.path, false);
|
|
155204
|
+
(openFilesImpactedByConfigFile || (openFilesImpactedByConfigFile = /* @__PURE__ */ new Map())).set(info.path, false);
|
|
155213
155205
|
}
|
|
155214
155206
|
configFileExistenceInfo = { exists, openFilesImpactedByConfigFile };
|
|
155215
155207
|
this.configFileExistenceInfoCache.set(canonicalConfigFilePath, configFileExistenceInfo);
|
|
@@ -155291,7 +155283,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155291
155283
|
configFileExistenceInfo = { exists: this.host.fileExists(configFileName) };
|
|
155292
155284
|
this.configFileExistenceInfoCache.set(canonicalConfigFilePath, configFileExistenceInfo);
|
|
155293
155285
|
}
|
|
155294
|
-
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = new Map())).set(info.path, true);
|
|
155286
|
+
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = /* @__PURE__ */ new Map())).set(info.path, true);
|
|
155295
155287
|
configFileExistenceInfo.watcher || (configFileExistenceInfo.watcher = canWatchDirectoryOrFile(getDirectoryPath(canonicalConfigFilePath)) ? this.watchFactory.watchFile(
|
|
155296
155288
|
configFileName,
|
|
155297
155289
|
(_filename, eventKind) => this.onConfigFileChanged(canonicalConfigFilePath, eventKind),
|
|
@@ -155502,7 +155494,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155502
155494
|
if (!configFileExistenceInfo.config) {
|
|
155503
155495
|
configFileExistenceInfo.config = {
|
|
155504
155496
|
cachedDirectoryStructureHost: createCachedDirectoryStructureHost(this.host, this.host.getCurrentDirectory(), this.host.useCaseSensitiveFileNames),
|
|
155505
|
-
projects: new Map(),
|
|
155497
|
+
projects: /* @__PURE__ */ new Map(),
|
|
155506
155498
|
reloadLevel: 2 /* Full */
|
|
155507
155499
|
};
|
|
155508
155500
|
}
|
|
@@ -155610,7 +155602,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155610
155602
|
}, void 0, " ")}`);
|
|
155611
155603
|
const oldCommandLine = (_b = configFileExistenceInfo.config) == null ? void 0 : _b.parsedCommandLine;
|
|
155612
155604
|
if (!configFileExistenceInfo.config) {
|
|
155613
|
-
configFileExistenceInfo.config = { parsedCommandLine, cachedDirectoryStructureHost, projects: new Map() };
|
|
155605
|
+
configFileExistenceInfo.config = { parsedCommandLine, cachedDirectoryStructureHost, projects: /* @__PURE__ */ new Map() };
|
|
155614
155606
|
} else {
|
|
155615
155607
|
configFileExistenceInfo.config.parsedCommandLine = parsedCommandLine;
|
|
155616
155608
|
configFileExistenceInfo.config.watchedDirectoriesStale = true;
|
|
@@ -155656,7 +155648,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155656
155648
|
return;
|
|
155657
155649
|
config.watchedDirectoriesStale = false;
|
|
155658
155650
|
updateWatchingWildcardDirectories(
|
|
155659
|
-
config.watchedDirectories || (config.watchedDirectories = new Map()),
|
|
155651
|
+
config.watchedDirectories || (config.watchedDirectories = /* @__PURE__ */ new Map()),
|
|
155660
155652
|
new Map(getEntries(config.parsedCommandLine.wildcardDirectories)),
|
|
155661
155653
|
(directory, flags) => this.watchWildcardDirectory(directory, flags, configFileName, config)
|
|
155662
155654
|
);
|
|
@@ -155684,7 +155676,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155684
155676
|
}
|
|
155685
155677
|
updateNonInferredProjectFiles(project, files, propertyReader) {
|
|
155686
155678
|
const projectRootFilesMap = project.getRootFilesMap();
|
|
155687
|
-
const newRootScriptInfoMap = new Map();
|
|
155679
|
+
const newRootScriptInfoMap = /* @__PURE__ */ new Map();
|
|
155688
155680
|
for (const f of files) {
|
|
155689
155681
|
const newRootFile = propertyReader.getFileName(f);
|
|
155690
155682
|
const fileName = toNormalizedPath(newRootFile);
|
|
@@ -155983,7 +155975,7 @@ All files are: ${JSON.stringify(names)}`, "Err" /* Err */);
|
|
|
155983
155975
|
}
|
|
155984
155976
|
watchPackageJsonsInNodeModules(dir, project) {
|
|
155985
155977
|
const watcher = this.nodeModulesWatchers.get(dir) || this.createNodeModulesWatcher(dir);
|
|
155986
|
-
(watcher.affectedModuleSpecifierCacheProjects || (watcher.affectedModuleSpecifierCacheProjects = new Set())).add(project.getProjectName());
|
|
155978
|
+
(watcher.affectedModuleSpecifierCacheProjects || (watcher.affectedModuleSpecifierCacheProjects = /* @__PURE__ */ new Set())).add(project.getProjectName());
|
|
155987
155979
|
return {
|
|
155988
155980
|
close: () => {
|
|
155989
155981
|
var _a2;
|
|
@@ -156151,7 +156143,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156151
156143
|
addSourceInfoToSourceMap(sourceFileName, project, sourceInfos) {
|
|
156152
156144
|
if (sourceFileName) {
|
|
156153
156145
|
const sourceInfo = this.getOrCreateScriptInfoNotOpenedByClient(sourceFileName, project.currentDirectory, project.directoryStructureHost);
|
|
156154
|
-
(sourceInfos || (sourceInfos = new Set())).add(sourceInfo.path);
|
|
156146
|
+
(sourceInfos || (sourceInfos = /* @__PURE__ */ new Set())).add(sourceInfo.path);
|
|
156155
156147
|
}
|
|
156156
156148
|
return sourceInfos;
|
|
156157
156149
|
}
|
|
@@ -156186,7 +156178,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156186
156178
|
if (declarationInfo && isString(declarationInfo.sourceMapFilePath) && info !== declarationInfo) {
|
|
156187
156179
|
const sourceMapInfo = this.getScriptInfoForPath(declarationInfo.sourceMapFilePath);
|
|
156188
156180
|
if (sourceMapInfo) {
|
|
156189
|
-
(sourceMapInfo.sourceInfos || (sourceMapInfo.sourceInfos = new Set())).add(info.path);
|
|
156181
|
+
(sourceMapInfo.sourceInfos || (sourceMapInfo.sourceInfos = /* @__PURE__ */ new Set())).add(info.path);
|
|
156190
156182
|
}
|
|
156191
156183
|
}
|
|
156192
156184
|
if (info.cacheSourceFile)
|
|
@@ -156291,7 +156283,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156291
156283
|
this.ensureProjectForOpenFiles();
|
|
156292
156284
|
}
|
|
156293
156285
|
reloadConfiguredProjectForFiles(openFiles, clearSemanticCache, delayReload, shouldReloadProjectFor, reason) {
|
|
156294
|
-
const updatedProjects = new Map();
|
|
156286
|
+
const updatedProjects = /* @__PURE__ */ new Map();
|
|
156295
156287
|
const reloadChildProject = (child) => {
|
|
156296
156288
|
if (!updatedProjects.has(child.canonicalConfigFilePath)) {
|
|
156297
156289
|
updatedProjects.set(child.canonicalConfigFilePath, true);
|
|
@@ -156424,7 +156416,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156424
156416
|
return originalLocation;
|
|
156425
156417
|
function addOriginalConfiguredProject(originalProject) {
|
|
156426
156418
|
if (!project.originalConfiguredProjects) {
|
|
156427
|
-
project.originalConfiguredProjects = new Set();
|
|
156419
|
+
project.originalConfiguredProjects = /* @__PURE__ */ new Set();
|
|
156428
156420
|
}
|
|
156429
156421
|
project.originalConfiguredProjects.add(originalProject.canonicalConfigFilePath);
|
|
156430
156422
|
}
|
|
@@ -156535,7 +156527,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156535
156527
|
this.configuredProjects,
|
|
156536
156528
|
(key, project) => !project.isInitialLoadPending() ? [key, true] : void 0
|
|
156537
156529
|
);
|
|
156538
|
-
const seenProjects = new Set();
|
|
156530
|
+
const seenProjects = /* @__PURE__ */ new Set();
|
|
156539
156531
|
for (const project of arrayFrom(this.configuredProjects.values())) {
|
|
156540
156532
|
if (forEachPotentialProjectReference(project, (potentialRefPath) => forProjects.has(potentialRefPath))) {
|
|
156541
156533
|
updateProjectIfDirty(project);
|
|
@@ -156997,7 +156989,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156997
156989
|
}
|
|
156998
156990
|
if (this.host.importPlugin) {
|
|
156999
156991
|
const importPromise = project.beginEnablePluginAsync(pluginConfigEntry, searchPaths, pluginConfigOverrides);
|
|
157000
|
-
(_a2 = this.pendingPluginEnablements) != null ? _a2 : this.pendingPluginEnablements = new Map();
|
|
156992
|
+
(_a2 = this.pendingPluginEnablements) != null ? _a2 : this.pendingPluginEnablements = /* @__PURE__ */ new Map();
|
|
157001
156993
|
let promises = this.pendingPluginEnablements.get(project);
|
|
157002
156994
|
if (!promises)
|
|
157003
156995
|
this.pendingPluginEnablements.set(project, promises = []);
|
|
@@ -157052,7 +157044,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157052
157044
|
}
|
|
157053
157045
|
configurePlugin(args) {
|
|
157054
157046
|
this.forEachEnabledProject((project) => project.onPluginConfigurationChanged(args.pluginName, args.configuration));
|
|
157055
|
-
this.currentPluginConfigOverrides = this.currentPluginConfigOverrides || new Map();
|
|
157047
|
+
this.currentPluginConfigOverrides = this.currentPluginConfigOverrides || /* @__PURE__ */ new Map();
|
|
157056
157048
|
this.currentPluginConfigOverrides.set(args.pluginName, args.configuration);
|
|
157057
157049
|
}
|
|
157058
157050
|
getPackageJsonsVisibleToFile(fileName, rootDir) {
|
|
@@ -157092,7 +157084,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157092
157084
|
});
|
|
157093
157085
|
}
|
|
157094
157086
|
watchPackageJsonFile(path) {
|
|
157095
|
-
const watchers = this.packageJsonFilesMap || (this.packageJsonFilesMap = new Map());
|
|
157087
|
+
const watchers = this.packageJsonFilesMap || (this.packageJsonFilesMap = /* @__PURE__ */ new Map());
|
|
157096
157088
|
if (!watchers.has(path)) {
|
|
157097
157089
|
this.invalidateProjectPackageJson(path);
|
|
157098
157090
|
watchers.set(path, this.watchFactory.watchFile(
|
|
@@ -157190,7 +157182,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157190
157182
|
if (p.isInNodeModules) {
|
|
157191
157183
|
const nodeModulesPath = p.path.substring(0, p.path.indexOf(nodeModulesPathPart) + nodeModulesPathPart.length - 1);
|
|
157192
157184
|
if (!(containedNodeModulesWatchers == null ? void 0 : containedNodeModulesWatchers.has(nodeModulesPath))) {
|
|
157193
|
-
(containedNodeModulesWatchers || (containedNodeModulesWatchers = new Map())).set(
|
|
157185
|
+
(containedNodeModulesWatchers || (containedNodeModulesWatchers = /* @__PURE__ */ new Map())).set(
|
|
157194
157186
|
nodeModulesPath,
|
|
157195
157187
|
host.watchNodeModulesForPackageJsonChanges(nodeModulesPath)
|
|
157196
157188
|
);
|
|
@@ -157237,7 +157229,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157237
157229
|
result.clear();
|
|
157238
157230
|
}
|
|
157239
157231
|
currentKey = newKey;
|
|
157240
|
-
return cache || (cache = new Map());
|
|
157232
|
+
return cache || (cache = /* @__PURE__ */ new Map());
|
|
157241
157233
|
}
|
|
157242
157234
|
function key(fromFileName, preferences, options) {
|
|
157243
157235
|
return `${fromFileName},${preferences.importModuleSpecifierEnding},${preferences.importModuleSpecifierPreference},${options.overrideImportMode}`;
|
|
@@ -157249,8 +157241,8 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157249
157241
|
|
|
157250
157242
|
// src/server/packageJsonCache.ts
|
|
157251
157243
|
function createPackageJsonCache(host) {
|
|
157252
|
-
const packageJsons = new Map();
|
|
157253
|
-
const directoriesWithoutPackageJson = new Map();
|
|
157244
|
+
const packageJsons = /* @__PURE__ */ new Map();
|
|
157245
|
+
const directoriesWithoutPackageJson = /* @__PURE__ */ new Map();
|
|
157254
157246
|
return {
|
|
157255
157247
|
addOrUpdate,
|
|
157256
157248
|
forEach: packageJsons.forEach.bind(packageJsons),
|
|
@@ -157543,7 +157535,7 @@ ${json}${newLine}`;
|
|
|
157543
157535
|
}
|
|
157544
157536
|
}
|
|
157545
157537
|
}
|
|
157546
|
-
const updatedProjects = new Set();
|
|
157538
|
+
const updatedProjects = /* @__PURE__ */ new Set();
|
|
157547
157539
|
while (true) {
|
|
157548
157540
|
let progress = false;
|
|
157549
157541
|
perProjectResults.forEach((referencedSymbols, project) => {
|
|
@@ -157607,7 +157599,7 @@ ${json}${newLine}`;
|
|
|
157607
157599
|
}
|
|
157608
157600
|
}
|
|
157609
157601
|
function getPerProjectReferences(projects, defaultProject, initialLocation, isForRename, getResultsForPosition, forPositionInResult) {
|
|
157610
|
-
const resultsMap = new Map();
|
|
157602
|
+
const resultsMap = /* @__PURE__ */ new Map();
|
|
157611
157603
|
const queue = createQueue();
|
|
157612
157604
|
queue.enqueue({ project: defaultProject, location: initialLocation });
|
|
157613
157605
|
forEachProjectInProjects(projects, initialLocation.fileName, (project, path) => {
|
|
@@ -157619,7 +157611,7 @@ ${json}${newLine}`;
|
|
|
157619
157611
|
const defaultDefinition = getDefinitionLocation(defaultProject, initialLocation, isForRename);
|
|
157620
157612
|
const getGeneratedDefinition = memoize(() => defaultProject.isSourceOfProjectReferenceRedirect(defaultDefinition.fileName) ? defaultDefinition : defaultProject.getLanguageService().getSourceMapper().tryGetGeneratedPosition(defaultDefinition));
|
|
157621
157613
|
const getSourceDefinition = memoize(() => defaultProject.isSourceOfProjectReferenceRedirect(defaultDefinition.fileName) ? defaultDefinition : defaultProject.getLanguageService().getSourceMapper().tryGetSourcePosition(defaultDefinition));
|
|
157622
|
-
const searchedProjectKeys = new Set();
|
|
157614
|
+
const searchedProjectKeys = /* @__PURE__ */ new Set();
|
|
157623
157615
|
onCancellation:
|
|
157624
157616
|
while (!queue.isEmpty()) {
|
|
157625
157617
|
while (!queue.isEmpty()) {
|
|
@@ -159040,7 +159032,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
159040
159032
|
}
|
|
159041
159033
|
}
|
|
159042
159034
|
toSpanGroups(locations) {
|
|
159043
|
-
const map2 = new Map();
|
|
159035
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
159044
159036
|
for (const { fileName, textSpan, contextSpan, originalContextSpan: _2, originalTextSpan: _, originalFileName: _1, ...prefixSuffixText } of locations) {
|
|
159045
159037
|
let group2 = map2.get(fileName);
|
|
159046
159038
|
if (!group2)
|
|
@@ -159550,7 +159542,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
159550
159542
|
return [{ project, navigateToItems: project.getLanguageService().getNavigateToItems(searchValue, maxResultCount, file) }];
|
|
159551
159543
|
}
|
|
159552
159544
|
const outputs = [];
|
|
159553
|
-
const seenItems = new Map();
|
|
159545
|
+
const seenItems = /* @__PURE__ */ new Map();
|
|
159554
159546
|
if (!args.file && !projectFileName) {
|
|
159555
159547
|
this.projectService.loadAncestorProjectTree();
|
|
159556
159548
|
this.projectService.forEachEnabledProject((project) => addItemsForProject(project));
|
|
@@ -159671,7 +159663,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
159671
159663
|
const newPath = toNormalizedPath(args.newFilePath);
|
|
159672
159664
|
const formatOptions = this.getHostFormatOptions();
|
|
159673
159665
|
const preferences = this.getHostPreferences();
|
|
159674
|
-
const seenFiles = new Set();
|
|
159666
|
+
const seenFiles = /* @__PURE__ */ new Set();
|
|
159675
159667
|
const textChanges2 = [];
|
|
159676
159668
|
this.projectService.loadAncestorProjectTree();
|
|
159677
159669
|
this.projectService.forEachEnabledProject((project) => {
|