typescript 5.0.0-dev.20221109 → 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 -69
- 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 +3 -1
package/lib/tsserver.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,
|
|
@@ -2649,37 +2647,13 @@ var ts = (() => {
|
|
|
2649
2647
|
|
|
2650
2648
|
// src/compiler/corePublic.ts
|
|
2651
2649
|
var versionMajorMinor = "5.0";
|
|
2652
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2650
|
+
var version = `${versionMajorMinor}.0-dev.20221110`;
|
|
2653
2651
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2654
2652
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2655
2653
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
2656
2654
|
Comparison3[Comparison3["GreaterThan"] = 1] = "GreaterThan";
|
|
2657
2655
|
return Comparison3;
|
|
2658
2656
|
})(Comparison || {});
|
|
2659
|
-
var NativeCollections;
|
|
2660
|
-
((NativeCollections2) => {
|
|
2661
|
-
const globals = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : void 0;
|
|
2662
|
-
function tryGetNativeMap() {
|
|
2663
|
-
const gMap = globals == null ? void 0 : globals.Map;
|
|
2664
|
-
const constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : void 0;
|
|
2665
|
-
if (!constructor) {
|
|
2666
|
-
throw new Error("No compatible Map implementation found.");
|
|
2667
|
-
}
|
|
2668
|
-
return constructor;
|
|
2669
|
-
}
|
|
2670
|
-
NativeCollections2.tryGetNativeMap = tryGetNativeMap;
|
|
2671
|
-
function tryGetNativeSet() {
|
|
2672
|
-
const gSet = globals == null ? void 0 : globals.Set;
|
|
2673
|
-
const constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : void 0;
|
|
2674
|
-
if (!constructor) {
|
|
2675
|
-
throw new Error("No compatible Set implementation found.");
|
|
2676
|
-
}
|
|
2677
|
-
return constructor;
|
|
2678
|
-
}
|
|
2679
|
-
NativeCollections2.tryGetNativeSet = tryGetNativeSet;
|
|
2680
|
-
})(NativeCollections || (NativeCollections = {}));
|
|
2681
|
-
var Map = NativeCollections.tryGetNativeMap();
|
|
2682
|
-
var Set = NativeCollections.tryGetNativeSet();
|
|
2683
2657
|
|
|
2684
2658
|
// src/compiler/core.ts
|
|
2685
2659
|
function getIterator(iterable) {
|
|
@@ -2694,8 +2668,8 @@ var ts = (() => {
|
|
|
2694
2668
|
}
|
|
2695
2669
|
}
|
|
2696
2670
|
var emptyArray = [];
|
|
2697
|
-
var emptyMap = new Map();
|
|
2698
|
-
var emptySet = new Set();
|
|
2671
|
+
var emptyMap = /* @__PURE__ */ new Map();
|
|
2672
|
+
var emptySet = /* @__PURE__ */ new Set();
|
|
2699
2673
|
function length(array) {
|
|
2700
2674
|
return array ? array.length : 0;
|
|
2701
2675
|
}
|
|
@@ -2777,7 +2751,7 @@ var ts = (() => {
|
|
|
2777
2751
|
}
|
|
2778
2752
|
function zipToMap(keys, values) {
|
|
2779
2753
|
Debug.assert(keys.length === values.length);
|
|
2780
|
-
const map2 = new Map();
|
|
2754
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
2781
2755
|
for (let i = 0; i < keys.length; ++i) {
|
|
2782
2756
|
map2.set(keys[i], values[i]);
|
|
2783
2757
|
}
|
|
@@ -3092,7 +3066,7 @@ var ts = (() => {
|
|
|
3092
3066
|
if (!map2) {
|
|
3093
3067
|
return void 0;
|
|
3094
3068
|
}
|
|
3095
|
-
const result = new Map();
|
|
3069
|
+
const result = /* @__PURE__ */ new Map();
|
|
3096
3070
|
map2.forEach((value, key) => {
|
|
3097
3071
|
const entry = f(key, value);
|
|
3098
3072
|
if (entry !== void 0) {
|
|
@@ -3106,7 +3080,7 @@ var ts = (() => {
|
|
|
3106
3080
|
}
|
|
3107
3081
|
function mapDefinedValues(set, f) {
|
|
3108
3082
|
if (set) {
|
|
3109
|
-
const result = new Set();
|
|
3083
|
+
const result = /* @__PURE__ */ new Set();
|
|
3110
3084
|
set.forEach((value) => {
|
|
3111
3085
|
const newValue = f(value);
|
|
3112
3086
|
if (newValue !== void 0) {
|
|
@@ -3179,7 +3153,7 @@ var ts = (() => {
|
|
|
3179
3153
|
if (!map2) {
|
|
3180
3154
|
return void 0;
|
|
3181
3155
|
}
|
|
3182
|
-
const result = new Map();
|
|
3156
|
+
const result = /* @__PURE__ */ new Map();
|
|
3183
3157
|
map2.forEach((value, key) => {
|
|
3184
3158
|
const [newKey, newValue] = f(key, value);
|
|
3185
3159
|
result.set(newKey, newValue);
|
|
@@ -3645,7 +3619,7 @@ var ts = (() => {
|
|
|
3645
3619
|
return true;
|
|
3646
3620
|
}
|
|
3647
3621
|
function arrayToMap(array, makeKey, makeValue = identity) {
|
|
3648
|
-
const result = new Map();
|
|
3622
|
+
const result = /* @__PURE__ */ new Map();
|
|
3649
3623
|
for (const value of array) {
|
|
3650
3624
|
const key = makeKey(value);
|
|
3651
3625
|
if (key !== void 0)
|
|
@@ -3704,7 +3678,7 @@ var ts = (() => {
|
|
|
3704
3678
|
return fn ? fn.bind(obj) : void 0;
|
|
3705
3679
|
}
|
|
3706
3680
|
function createMultiMap() {
|
|
3707
|
-
const map2 = new Map();
|
|
3681
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
3708
3682
|
map2.add = multiMapAdd;
|
|
3709
3683
|
map2.remove = multiMapRemove;
|
|
3710
3684
|
return map2;
|
|
@@ -3761,12 +3735,12 @@ var ts = (() => {
|
|
|
3761
3735
|
};
|
|
3762
3736
|
}
|
|
3763
3737
|
function createSet(getHashCode, equals) {
|
|
3764
|
-
const multiMap = new Map();
|
|
3738
|
+
const multiMap = /* @__PURE__ */ new Map();
|
|
3765
3739
|
let size = 0;
|
|
3766
3740
|
function getElementIterator() {
|
|
3767
3741
|
const valueIt = multiMap.values();
|
|
3768
3742
|
let arrayIt;
|
|
3769
|
-
|
|
3743
|
+
const it = {
|
|
3770
3744
|
next: () => {
|
|
3771
3745
|
while (true) {
|
|
3772
3746
|
if (arrayIt) {
|
|
@@ -3786,8 +3760,12 @@ var ts = (() => {
|
|
|
3786
3760
|
arrayIt = arrayIterator(n.value);
|
|
3787
3761
|
}
|
|
3788
3762
|
}
|
|
3763
|
+
},
|
|
3764
|
+
[Symbol.iterator]: () => {
|
|
3765
|
+
return it;
|
|
3789
3766
|
}
|
|
3790
3767
|
};
|
|
3768
|
+
return it;
|
|
3791
3769
|
}
|
|
3792
3770
|
const set = {
|
|
3793
3771
|
has(element) {
|
|
@@ -3866,11 +3844,11 @@ var ts = (() => {
|
|
|
3866
3844
|
for (const elements of arrayFrom(multiMap.values())) {
|
|
3867
3845
|
if (isArray(elements)) {
|
|
3868
3846
|
for (const element of elements) {
|
|
3869
|
-
action(element, element);
|
|
3847
|
+
action(element, element, set);
|
|
3870
3848
|
}
|
|
3871
3849
|
} else {
|
|
3872
3850
|
const element = elements;
|
|
3873
|
-
action(element, element);
|
|
3851
|
+
action(element, element, set);
|
|
3874
3852
|
}
|
|
3875
3853
|
}
|
|
3876
3854
|
},
|
|
@@ -3882,13 +3860,19 @@ var ts = (() => {
|
|
|
3882
3860
|
},
|
|
3883
3861
|
entries() {
|
|
3884
3862
|
const it = getElementIterator();
|
|
3885
|
-
|
|
3863
|
+
const it2 = {
|
|
3886
3864
|
next: () => {
|
|
3887
3865
|
const n = it.next();
|
|
3888
3866
|
return n.done ? n : { value: [n.value, n.value] };
|
|
3889
|
-
}
|
|
3867
|
+
},
|
|
3868
|
+
[Symbol.iterator]: () => it2
|
|
3890
3869
|
};
|
|
3891
|
-
|
|
3870
|
+
return it2;
|
|
3871
|
+
},
|
|
3872
|
+
[Symbol.iterator]: () => {
|
|
3873
|
+
return getElementIterator();
|
|
3874
|
+
},
|
|
3875
|
+
[Symbol.toStringTag]: multiMap[Symbol.toStringTag]
|
|
3892
3876
|
};
|
|
3893
3877
|
return set;
|
|
3894
3878
|
}
|
|
@@ -3951,7 +3935,7 @@ var ts = (() => {
|
|
|
3951
3935
|
};
|
|
3952
3936
|
}
|
|
3953
3937
|
function memoizeOne(callback) {
|
|
3954
|
-
const map2 = new Map();
|
|
3938
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
3955
3939
|
return (arg) => {
|
|
3956
3940
|
const key = `${typeof arg}:${arg}`;
|
|
3957
3941
|
let value = map2.get(key);
|
|
@@ -4663,7 +4647,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
|
|
|
4663
4647
|
return value.toString();
|
|
4664
4648
|
}
|
|
4665
4649
|
Debug2.formatEnum = formatEnum;
|
|
4666
|
-
const enumMemberCache = new Map();
|
|
4650
|
+
const enumMemberCache = /* @__PURE__ */ new Map();
|
|
4667
4651
|
function getEnumMembers(enumObject) {
|
|
4668
4652
|
const existing = enumMemberCache.get(enumObject);
|
|
4669
4653
|
if (existing) {
|
|
@@ -5069,7 +5053,7 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;
|
|
|
5069
5053
|
const links = /* @__PURE__ */ Object.create(null);
|
|
5070
5054
|
const nodes = [];
|
|
5071
5055
|
const edges = [];
|
|
5072
|
-
const root = buildGraphNode(flowNode, new Set());
|
|
5056
|
+
const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set());
|
|
5073
5057
|
for (const node of nodes) {
|
|
5074
5058
|
node.text = renderFlowNode(node.flowNode, node.circular);
|
|
5075
5059
|
computeLevel(node);
|
|
@@ -5812,9 +5796,9 @@ ${lanes.join("\n")}
|
|
|
5812
5796
|
var nullTimer = { enter: noop, exit: noop };
|
|
5813
5797
|
var enabled = false;
|
|
5814
5798
|
var timeorigin = timestamp();
|
|
5815
|
-
var marks = new Map();
|
|
5816
|
-
var counts = new Map();
|
|
5817
|
-
var durations = new Map();
|
|
5799
|
+
var marks = /* @__PURE__ */ new Map();
|
|
5800
|
+
var counts = /* @__PURE__ */ new Map();
|
|
5801
|
+
var durations = /* @__PURE__ */ new Map();
|
|
5818
5802
|
function mark(markName) {
|
|
5819
5803
|
var _a2;
|
|
5820
5804
|
if (enabled) {
|
|
@@ -6040,7 +6024,7 @@ ${lanes.join("\n")}
|
|
|
6040
6024
|
mark("beginDumpTypes");
|
|
6041
6025
|
const typesPath = legend[legend.length - 1].typesPath;
|
|
6042
6026
|
const typesFd = fs.openSync(typesPath, "w");
|
|
6043
|
-
const recursionIdentityMap = new Map();
|
|
6027
|
+
const recursionIdentityMap = /* @__PURE__ */ new Map();
|
|
6044
6028
|
fs.writeSync(typesFd, "[");
|
|
6045
6029
|
const numTypes = types.length;
|
|
6046
6030
|
for (let i = 0; i < numTypes; i++) {
|
|
@@ -8027,7 +8011,7 @@ ${lanes.join("\n")}
|
|
|
8027
8011
|
}
|
|
8028
8012
|
function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
|
|
8029
8013
|
const fileWatcherCallbacks = createMultiMap();
|
|
8030
|
-
const dirWatchers = new Map();
|
|
8014
|
+
const dirWatchers = /* @__PURE__ */ new Map();
|
|
8031
8015
|
const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
8032
8016
|
return nonPollingWatchFile;
|
|
8033
8017
|
function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
|
|
@@ -8161,9 +8145,9 @@ ${lanes.join("\n")}
|
|
|
8161
8145
|
setTimeout: setTimeout2,
|
|
8162
8146
|
clearTimeout: clearTimeout2
|
|
8163
8147
|
}) {
|
|
8164
|
-
const cache = new Map();
|
|
8148
|
+
const cache = /* @__PURE__ */ new Map();
|
|
8165
8149
|
const callbackCache = createMultiMap();
|
|
8166
|
-
const cacheToUpdateChildWatches = new Map();
|
|
8150
|
+
const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
|
|
8167
8151
|
let timerToUpdateChildWatches;
|
|
8168
8152
|
const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);
|
|
8169
8153
|
const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
@@ -8265,7 +8249,7 @@ ${lanes.join("\n")}
|
|
|
8265
8249
|
timerToUpdateChildWatches = void 0;
|
|
8266
8250
|
sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);
|
|
8267
8251
|
const start2 = timestamp();
|
|
8268
|
-
const invokeMap = new Map();
|
|
8252
|
+
const invokeMap = /* @__PURE__ */ new Map();
|
|
8269
8253
|
while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
|
|
8270
8254
|
const result = cacheToUpdateChildWatches.entries().next();
|
|
8271
8255
|
Debug.assert(!result.done);
|
|
@@ -8386,9 +8370,9 @@ ${lanes.join("\n")}
|
|
|
8386
8370
|
inodeWatching,
|
|
8387
8371
|
sysLog: sysLog2
|
|
8388
8372
|
}) {
|
|
8389
|
-
const pollingWatches = new Map();
|
|
8390
|
-
const fsWatches = new Map();
|
|
8391
|
-
const fsWatchesRecursive = new Map();
|
|
8373
|
+
const pollingWatches = /* @__PURE__ */ new Map();
|
|
8374
|
+
const fsWatches = /* @__PURE__ */ new Map();
|
|
8375
|
+
const fsWatchesRecursive = /* @__PURE__ */ new Map();
|
|
8392
8376
|
let dynamicPollingWatchFile;
|
|
8393
8377
|
let fixedChunkSizePollingWatchFile;
|
|
8394
8378
|
let nonPollingWatchFile;
|
|
@@ -8842,7 +8826,7 @@ ${lanes.join("\n")}
|
|
|
8842
8826
|
}
|
|
8843
8827
|
function cleanupPaths(profile) {
|
|
8844
8828
|
let externalFileCounter = 0;
|
|
8845
|
-
const remappedPaths = new Map();
|
|
8829
|
+
const remappedPaths = /* @__PURE__ */ new Map();
|
|
8846
8830
|
const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath));
|
|
8847
8831
|
const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
|
|
8848
8832
|
for (const node of profile.nodes) {
|
|
@@ -14715,7 +14699,7 @@ ${lanes.join("\n")}
|
|
|
14715
14699
|
return filter(symbol.declarations || emptyArray, (d) => d.kind === kind);
|
|
14716
14700
|
}
|
|
14717
14701
|
function createSymbolTable(symbols) {
|
|
14718
|
-
const result = new Map();
|
|
14702
|
+
const result = /* @__PURE__ */ new Map();
|
|
14719
14703
|
if (symbols) {
|
|
14720
14704
|
for (const symbol of symbols) {
|
|
14721
14705
|
result.set(symbol.escapedName, symbol);
|
|
@@ -15007,7 +14991,7 @@ ${lanes.join("\n")}
|
|
|
15007
14991
|
commentDirective
|
|
15008
14992
|
])
|
|
15009
14993
|
);
|
|
15010
|
-
const usedLines = new Map();
|
|
14994
|
+
const usedLines = /* @__PURE__ */ new Map();
|
|
15011
14995
|
return { getUnusedExpectations, markUsed };
|
|
15012
14996
|
function getUnusedExpectations() {
|
|
15013
14997
|
return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 /* ExpectError */ && !usedLines.get(line)).map(([_, directive]) => directive);
|
|
@@ -17444,7 +17428,7 @@ ${lanes.join("\n")}
|
|
|
17444
17428
|
function createDiagnosticCollection() {
|
|
17445
17429
|
let nonFileDiagnostics = [];
|
|
17446
17430
|
const filesWithDiagnostics = [];
|
|
17447
|
-
const fileDiagnostics = new Map();
|
|
17431
|
+
const fileDiagnostics = /* @__PURE__ */ new Map();
|
|
17448
17432
|
let hasReadNonFileDiagnostics = false;
|
|
17449
17433
|
return {
|
|
17450
17434
|
add,
|
|
@@ -19313,7 +19297,7 @@ ${lanes.join("\n")}
|
|
|
19313
19297
|
getSymlinkedFiles: () => symlinkedFiles,
|
|
19314
19298
|
getSymlinkedDirectories: () => symlinkedDirectories,
|
|
19315
19299
|
getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath,
|
|
19316
|
-
setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = new Map())).set(path, real),
|
|
19300
|
+
setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real),
|
|
19317
19301
|
setSymlinkedDirectory: (symlink, real) => {
|
|
19318
19302
|
let symlinkPath = toPath(symlink, cwd, getCanonicalFileName);
|
|
19319
19303
|
if (!containsIgnoredPath(symlinkPath)) {
|
|
@@ -19321,7 +19305,7 @@ ${lanes.join("\n")}
|
|
|
19321
19305
|
if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) {
|
|
19322
19306
|
(symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(ensureTrailingDirectorySeparator(real.realPath), symlink);
|
|
19323
19307
|
}
|
|
19324
|
-
(symlinkedDirectories || (symlinkedDirectories = new Map())).set(symlinkPath, real);
|
|
19308
|
+
(symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real);
|
|
19325
19309
|
}
|
|
19326
19310
|
},
|
|
19327
19311
|
setSymlinksFromResolutions(files, typeReferenceDirectives) {
|
|
@@ -19498,7 +19482,7 @@ ${lanes.join("\n")}
|
|
|
19498
19482
|
const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);
|
|
19499
19483
|
const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);
|
|
19500
19484
|
const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
|
|
19501
|
-
const visited = new Map();
|
|
19485
|
+
const visited = /* @__PURE__ */ new Map();
|
|
19502
19486
|
const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
19503
19487
|
for (const basePath of patterns.basePaths) {
|
|
19504
19488
|
visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
|
|
@@ -20218,7 +20202,7 @@ ${lanes.join("\n")}
|
|
|
20218
20202
|
parenthesizeLeadingTypeArgument
|
|
20219
20203
|
};
|
|
20220
20204
|
function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {
|
|
20221
|
-
binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = new Map());
|
|
20205
|
+
binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map());
|
|
20222
20206
|
let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);
|
|
20223
20207
|
if (!parenthesizerRule) {
|
|
20224
20208
|
parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node);
|
|
@@ -20227,7 +20211,7 @@ ${lanes.join("\n")}
|
|
|
20227
20211
|
return parenthesizerRule;
|
|
20228
20212
|
}
|
|
20229
20213
|
function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {
|
|
20230
|
-
binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = new Map());
|
|
20214
|
+
binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map());
|
|
20231
20215
|
let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);
|
|
20232
20216
|
if (!parenthesizerRule) {
|
|
20233
20217
|
parenthesizerRule = (node) => parenthesizeRightSideOfBinary(operatorKind, void 0, node);
|
|
@@ -24522,7 +24506,7 @@ ${lanes.join("\n")}
|
|
|
24522
24506
|
if (leftStandardPrologueEnd === 0) {
|
|
24523
24507
|
left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd));
|
|
24524
24508
|
} else {
|
|
24525
|
-
const leftPrologues = new Map();
|
|
24509
|
+
const leftPrologues = /* @__PURE__ */ new Map();
|
|
24526
24510
|
for (let i = 0; i < leftStandardPrologueEnd; i++) {
|
|
24527
24511
|
const leftPrologue = statements[i];
|
|
24528
24512
|
leftPrologues.set(leftPrologue.expression.text, true);
|
|
@@ -24946,7 +24930,7 @@ ${lanes.join("\n")}
|
|
|
24946
24930
|
node.declarationPath = declarationPath;
|
|
24947
24931
|
node.declarationMapPath = declarationMapPath;
|
|
24948
24932
|
node.buildInfoPath = buildInfoPath;
|
|
24949
|
-
const cache = new Map();
|
|
24933
|
+
const cache = /* @__PURE__ */ new Map();
|
|
24950
24934
|
const textGetter = (path) => {
|
|
24951
24935
|
if (path === void 0)
|
|
24952
24936
|
return void 0;
|
|
@@ -28297,8 +28281,8 @@ ${lanes.join("\n")}
|
|
|
28297
28281
|
languageVariant = getLanguageVariant(_scriptKind);
|
|
28298
28282
|
parseDiagnostics = [];
|
|
28299
28283
|
parsingContext = 0;
|
|
28300
|
-
identifiers = new Map();
|
|
28301
|
-
privateIdentifiers = new Map();
|
|
28284
|
+
identifiers = /* @__PURE__ */ new Map();
|
|
28285
|
+
privateIdentifiers = /* @__PURE__ */ new Map();
|
|
28302
28286
|
identifierCount = 0;
|
|
28303
28287
|
nodeCount = 0;
|
|
28304
28288
|
sourceFlags = 0;
|
|
@@ -30783,7 +30767,7 @@ ${lanes.join("\n")}
|
|
|
30783
30767
|
}
|
|
30784
30768
|
const result = parseParenthesizedArrowFunctionExpression(false, allowReturnTypeInArrowFunction);
|
|
30785
30769
|
if (!result) {
|
|
30786
|
-
(notParenthesizedArrow || (notParenthesizedArrow = new Set())).add(tokenPos);
|
|
30770
|
+
(notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos);
|
|
30787
30771
|
}
|
|
30788
30772
|
return result;
|
|
30789
30773
|
}
|
|
@@ -34241,7 +34225,7 @@ ${lanes.join("\n")}
|
|
|
34241
34225
|
const comment = sourceText.substring(range.pos, range.end);
|
|
34242
34226
|
extractPragmas(pragmas, range, comment);
|
|
34243
34227
|
}
|
|
34244
|
-
context.pragmas = new Map();
|
|
34228
|
+
context.pragmas = /* @__PURE__ */ new Map();
|
|
34245
34229
|
for (const pragma of pragmas) {
|
|
34246
34230
|
if (context.pragmas.has(pragma.name)) {
|
|
34247
34231
|
const currentValue = context.pragmas.get(pragma.name);
|
|
@@ -34328,7 +34312,7 @@ ${lanes.join("\n")}
|
|
|
34328
34312
|
}
|
|
34329
34313
|
});
|
|
34330
34314
|
}
|
|
34331
|
-
var namedArgRegExCache = new Map();
|
|
34315
|
+
var namedArgRegExCache = /* @__PURE__ */ new Map();
|
|
34332
34316
|
function getNamedArgRegEx(name) {
|
|
34333
34317
|
if (namedArgRegExCache.has(name)) {
|
|
34334
34318
|
return namedArgRegExCache.get(name);
|
|
@@ -35791,8 +35775,8 @@ ${lanes.join("\n")}
|
|
|
35791
35775
|
}
|
|
35792
35776
|
];
|
|
35793
35777
|
function createOptionNameMap(optionDeclarations2) {
|
|
35794
|
-
const optionsNameMap = new Map();
|
|
35795
|
-
const shortOptionNames = new Map();
|
|
35778
|
+
const optionsNameMap = /* @__PURE__ */ new Map();
|
|
35779
|
+
const shortOptionNames = /* @__PURE__ */ new Map();
|
|
35796
35780
|
forEach(optionDeclarations2, (option) => {
|
|
35797
35781
|
optionsNameMap.set(option.name.toLowerCase(), option);
|
|
35798
35782
|
if (option.shortName) {
|
|
@@ -36517,7 +36501,7 @@ ${lanes.join("\n")}
|
|
|
36517
36501
|
return serializeOptionBaseObject(options, getWatchOptionsNameMap());
|
|
36518
36502
|
}
|
|
36519
36503
|
function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) {
|
|
36520
|
-
const result = new Map();
|
|
36504
|
+
const result = /* @__PURE__ */ new Map();
|
|
36521
36505
|
const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames);
|
|
36522
36506
|
for (const name in options) {
|
|
36523
36507
|
if (hasProperty(options, name)) {
|
|
@@ -36585,7 +36569,7 @@ ${lanes.join("\n")}
|
|
|
36585
36569
|
return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));
|
|
36586
36570
|
}
|
|
36587
36571
|
function writeConfigurations() {
|
|
36588
|
-
const categorizedOptions = new Map();
|
|
36572
|
+
const categorizedOptions = /* @__PURE__ */ new Map();
|
|
36589
36573
|
categorizedOptions.set(Diagnostics.Projects, []);
|
|
36590
36574
|
categorizedOptions.set(Diagnostics.Language_and_Environment, []);
|
|
36591
36575
|
categorizedOptions.set(Diagnostics.Modules, []);
|
|
@@ -37160,9 +37144,9 @@ ${lanes.join("\n")}
|
|
|
37160
37144
|
function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) {
|
|
37161
37145
|
basePath = normalizePath(basePath);
|
|
37162
37146
|
const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
|
37163
|
-
const literalFileMap = new Map();
|
|
37164
|
-
const wildcardFileMap = new Map();
|
|
37165
|
-
const wildCardJsonFileMap = new Map();
|
|
37147
|
+
const literalFileMap = /* @__PURE__ */ new Map();
|
|
37148
|
+
const wildcardFileMap = /* @__PURE__ */ new Map();
|
|
37149
|
+
const wildCardJsonFileMap = /* @__PURE__ */ new Map();
|
|
37166
37150
|
const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs;
|
|
37167
37151
|
const supportedExtensions = getSupportedExtensions(options, extraFileExtensions);
|
|
37168
37152
|
const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
|
|
@@ -37774,8 +37758,8 @@ ${lanes.join("\n")}
|
|
|
37774
37758
|
return result;
|
|
37775
37759
|
}
|
|
37776
37760
|
function createCacheWithRedirects(options) {
|
|
37777
|
-
let ownMap = new Map();
|
|
37778
|
-
const redirectsMap = new Map();
|
|
37761
|
+
let ownMap = /* @__PURE__ */ new Map();
|
|
37762
|
+
const redirectsMap = /* @__PURE__ */ new Map();
|
|
37779
37763
|
return {
|
|
37780
37764
|
getOwnMap,
|
|
37781
37765
|
redirectsMap,
|
|
@@ -37800,7 +37784,7 @@ ${lanes.join("\n")}
|
|
|
37800
37784
|
const path = redirectedReference.sourceFile.path;
|
|
37801
37785
|
let redirects = redirectsMap.get(path);
|
|
37802
37786
|
if (!redirects) {
|
|
37803
|
-
redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? new Map() : ownMap;
|
|
37787
|
+
redirects = !options || optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? /* @__PURE__ */ new Map() : ownMap;
|
|
37804
37788
|
redirectsMap.set(path, redirects);
|
|
37805
37789
|
}
|
|
37806
37790
|
return redirects;
|
|
@@ -37817,7 +37801,7 @@ ${lanes.join("\n")}
|
|
|
37817
37801
|
return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName));
|
|
37818
37802
|
}
|
|
37819
37803
|
function setPackageJsonInfo(packageJsonPath, info) {
|
|
37820
|
-
(cache || (cache = new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
|
|
37804
|
+
(cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
|
|
37821
37805
|
}
|
|
37822
37806
|
function clear2() {
|
|
37823
37807
|
cache = void 0;
|
|
@@ -37878,8 +37862,8 @@ ${lanes.join("\n")}
|
|
|
37878
37862
|
}
|
|
37879
37863
|
}
|
|
37880
37864
|
function createModeAwareCache() {
|
|
37881
|
-
const underlying = new Map();
|
|
37882
|
-
const memoizedReverseKeys = new Map();
|
|
37865
|
+
const underlying = /* @__PURE__ */ new Map();
|
|
37866
|
+
const memoizedReverseKeys = /* @__PURE__ */ new Map();
|
|
37883
37867
|
const cache = {
|
|
37884
37868
|
get(specifier, mode) {
|
|
37885
37869
|
return underlying.get(getUnderlyingCacheKey(specifier, mode));
|
|
@@ -37956,7 +37940,7 @@ ${lanes.join("\n")}
|
|
|
37956
37940
|
return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, mode === void 0 ? nonRelativeModuleName : `${mode}|${nonRelativeModuleName}`, createPerModuleNameCache);
|
|
37957
37941
|
}
|
|
37958
37942
|
function createPerModuleNameCache() {
|
|
37959
|
-
const directoryPathMap = new Map();
|
|
37943
|
+
const directoryPathMap = /* @__PURE__ */ new Map();
|
|
37960
37944
|
return { get, set };
|
|
37961
37945
|
function get(directory) {
|
|
37962
37946
|
return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName));
|
|
@@ -39383,7 +39367,7 @@ ${lanes.join("\n")}
|
|
|
39383
39367
|
}
|
|
39384
39368
|
return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */;
|
|
39385
39369
|
}
|
|
39386
|
-
function getModuleInstanceStateCached(node, visited = new Map()) {
|
|
39370
|
+
function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) {
|
|
39387
39371
|
const nodeId = getNodeId(node);
|
|
39388
39372
|
if (visited.has(nodeId)) {
|
|
39389
39373
|
return visited.get(nodeId) || 0 /* NonInstantiated */;
|
|
@@ -39535,7 +39519,7 @@ ${lanes.join("\n")}
|
|
|
39535
39519
|
options = opts;
|
|
39536
39520
|
languageVersion = getEmitScriptTarget(options);
|
|
39537
39521
|
inStrictMode = bindInStrictMode(file, opts);
|
|
39538
|
-
classifiableNames = new Set();
|
|
39522
|
+
classifiableNames = /* @__PURE__ */ new Set();
|
|
39539
39523
|
symbolCount = 0;
|
|
39540
39524
|
Symbol46 = objectAllocator.getSymbolConstructor();
|
|
39541
39525
|
Debug.attachFlowNodeDebugInfo(unreachableFlow);
|
|
@@ -41661,7 +41645,7 @@ ${lanes.join("\n")}
|
|
|
41661
41645
|
}
|
|
41662
41646
|
function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {
|
|
41663
41647
|
if (symbol) {
|
|
41664
|
-
(symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = new Map())).set(getNodeId(node), node);
|
|
41648
|
+
(symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node);
|
|
41665
41649
|
}
|
|
41666
41650
|
}
|
|
41667
41651
|
function bindSpecialPropertyDeclaration(node) {
|
|
@@ -42490,7 +42474,7 @@ ${lanes.join("\n")}
|
|
|
42490
42474
|
}
|
|
42491
42475
|
function getAllModulePathsWorker(importingFileName, importedFileName, host) {
|
|
42492
42476
|
const getCanonicalFileName = hostGetCanonicalFileName(host);
|
|
42493
|
-
const allFileNames = new Map();
|
|
42477
|
+
const allFileNames = /* @__PURE__ */ new Map();
|
|
42494
42478
|
let importedFileFromNodeModules = false;
|
|
42495
42479
|
forEachFileNameOfModule(
|
|
42496
42480
|
importingFileName,
|
|
@@ -43009,7 +42993,7 @@ ${lanes.join("\n")}
|
|
|
43009
42993
|
}
|
|
43010
42994
|
function createTypeChecker(host) {
|
|
43011
42995
|
const getPackagesMap = memoize(() => {
|
|
43012
|
-
const map2 = new Map();
|
|
42996
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
43013
42997
|
host.getSourceFiles().forEach((sf) => {
|
|
43014
42998
|
if (!sf.resolvedModules)
|
|
43015
42999
|
return;
|
|
@@ -43422,26 +43406,26 @@ ${lanes.join("\n")}
|
|
|
43422
43406
|
apparentArgumentCount = void 0;
|
|
43423
43407
|
return res;
|
|
43424
43408
|
}
|
|
43425
|
-
const tupleTypes = new Map();
|
|
43426
|
-
const unionTypes = new Map();
|
|
43427
|
-
const intersectionTypes = new Map();
|
|
43428
|
-
const stringLiteralTypes = new Map();
|
|
43429
|
-
const numberLiteralTypes = new Map();
|
|
43430
|
-
const bigIntLiteralTypes = new Map();
|
|
43431
|
-
const enumLiteralTypes = new Map();
|
|
43432
|
-
const indexedAccessTypes = new Map();
|
|
43433
|
-
const templateLiteralTypes = new Map();
|
|
43434
|
-
const stringMappingTypes = new Map();
|
|
43435
|
-
const substitutionTypes = new Map();
|
|
43436
|
-
const subtypeReductionCache = new Map();
|
|
43437
|
-
const cachedTypes = new Map();
|
|
43409
|
+
const tupleTypes = /* @__PURE__ */ new Map();
|
|
43410
|
+
const unionTypes = /* @__PURE__ */ new Map();
|
|
43411
|
+
const intersectionTypes = /* @__PURE__ */ new Map();
|
|
43412
|
+
const stringLiteralTypes = /* @__PURE__ */ new Map();
|
|
43413
|
+
const numberLiteralTypes = /* @__PURE__ */ new Map();
|
|
43414
|
+
const bigIntLiteralTypes = /* @__PURE__ */ new Map();
|
|
43415
|
+
const enumLiteralTypes = /* @__PURE__ */ new Map();
|
|
43416
|
+
const indexedAccessTypes = /* @__PURE__ */ new Map();
|
|
43417
|
+
const templateLiteralTypes = /* @__PURE__ */ new Map();
|
|
43418
|
+
const stringMappingTypes = /* @__PURE__ */ new Map();
|
|
43419
|
+
const substitutionTypes = /* @__PURE__ */ new Map();
|
|
43420
|
+
const subtypeReductionCache = /* @__PURE__ */ new Map();
|
|
43421
|
+
const cachedTypes = /* @__PURE__ */ new Map();
|
|
43438
43422
|
const evolvingArrayTypes = [];
|
|
43439
|
-
const undefinedProperties = new Map();
|
|
43440
|
-
const markerTypes = new Set();
|
|
43423
|
+
const undefinedProperties = /* @__PURE__ */ new Map();
|
|
43424
|
+
const markerTypes = /* @__PURE__ */ new Set();
|
|
43441
43425
|
const unknownSymbol = createSymbol(4 /* Property */, "unknown");
|
|
43442
43426
|
const resolvingSymbol = createSymbol(0, "__resolving__" /* Resolving */);
|
|
43443
|
-
const unresolvedSymbols = new Map();
|
|
43444
|
-
const errorTypes = new Map();
|
|
43427
|
+
const unresolvedSymbols = /* @__PURE__ */ new Map();
|
|
43428
|
+
const errorTypes = /* @__PURE__ */ new Map();
|
|
43445
43429
|
const anyType = createIntrinsicType(1 /* Any */, "any");
|
|
43446
43430
|
const autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */);
|
|
43447
43431
|
const wildcardType = createIntrinsicType(1 /* Any */, "any");
|
|
@@ -43512,7 +43496,7 @@ ${lanes.join("\n")}
|
|
|
43512
43496
|
const unknownEmptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
43513
43497
|
const unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
|
|
43514
43498
|
const emptyGenericType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
43515
|
-
emptyGenericType.instantiations = new Map();
|
|
43499
|
+
emptyGenericType.instantiations = /* @__PURE__ */ new Map();
|
|
43516
43500
|
const anyFunctionType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
43517
43501
|
anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
|
|
43518
43502
|
const noConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
|
|
@@ -43531,7 +43515,7 @@ ${lanes.join("\n")}
|
|
|
43531
43515
|
const resolvingSignature = createSignature(void 0, void 0, void 0, emptyArray, anyType, void 0, 0, 0 /* None */);
|
|
43532
43516
|
const silentNeverSignature = createSignature(void 0, void 0, void 0, emptyArray, silentNeverType, void 0, 0, 0 /* None */);
|
|
43533
43517
|
const enumNumberIndexInfo = createIndexInfo(numberType, stringType, true);
|
|
43534
|
-
const iterationTypesCache = new Map();
|
|
43518
|
+
const iterationTypesCache = /* @__PURE__ */ new Map();
|
|
43535
43519
|
const noIterationTypes = {
|
|
43536
43520
|
get yieldType() {
|
|
43537
43521
|
return Debug.fail("Not supported");
|
|
@@ -43573,7 +43557,7 @@ ${lanes.join("\n")}
|
|
|
43573
43557
|
mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property
|
|
43574
43558
|
};
|
|
43575
43559
|
let amalgamatedDuplicates;
|
|
43576
|
-
const reverseMappedCache = new Map();
|
|
43560
|
+
const reverseMappedCache = /* @__PURE__ */ new Map();
|
|
43577
43561
|
let inInferTypeForHomomorphicMappedType = false;
|
|
43578
43562
|
let ambientModulesCache;
|
|
43579
43563
|
let patternAmbientModules;
|
|
@@ -43621,7 +43605,7 @@ ${lanes.join("\n")}
|
|
|
43621
43605
|
let deferredGlobalBigIntType;
|
|
43622
43606
|
let deferredGlobalNaNSymbol;
|
|
43623
43607
|
let deferredGlobalRecordSymbol;
|
|
43624
|
-
const allPotentiallyUnusedIdentifiers = new Map();
|
|
43608
|
+
const allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map();
|
|
43625
43609
|
let flowLoopStart = 0;
|
|
43626
43610
|
let flowLoopCount = 0;
|
|
43627
43611
|
let sharedFlowCount = 0;
|
|
@@ -43660,12 +43644,12 @@ ${lanes.join("\n")}
|
|
|
43660
43644
|
const typeofType = createTypeofType();
|
|
43661
43645
|
let _jsxNamespace;
|
|
43662
43646
|
let _jsxFactoryEntity;
|
|
43663
|
-
const subtypeRelation = new Map();
|
|
43664
|
-
const strictSubtypeRelation = new Map();
|
|
43665
|
-
const assignableRelation = new Map();
|
|
43666
|
-
const comparableRelation = new Map();
|
|
43667
|
-
const identityRelation = new Map();
|
|
43668
|
-
const enumRelation = new Map();
|
|
43647
|
+
const subtypeRelation = /* @__PURE__ */ new Map();
|
|
43648
|
+
const strictSubtypeRelation = /* @__PURE__ */ new Map();
|
|
43649
|
+
const assignableRelation = /* @__PURE__ */ new Map();
|
|
43650
|
+
const comparableRelation = /* @__PURE__ */ new Map();
|
|
43651
|
+
const identityRelation = /* @__PURE__ */ new Map();
|
|
43652
|
+
const enumRelation = /* @__PURE__ */ new Map();
|
|
43669
43653
|
const builtinGlobals = createSymbolTable();
|
|
43670
43654
|
builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
|
|
43671
43655
|
const suggestedExtensions = [
|
|
@@ -43946,7 +43930,7 @@ ${lanes.join("\n")}
|
|
|
43946
43930
|
if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {
|
|
43947
43931
|
const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile;
|
|
43948
43932
|
const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;
|
|
43949
|
-
const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: new Map() }));
|
|
43933
|
+
const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() }));
|
|
43950
43934
|
const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] }));
|
|
43951
43935
|
if (!isSourcePlainJs)
|
|
43952
43936
|
addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source);
|
|
@@ -44024,7 +44008,7 @@ ${lanes.join("\n")}
|
|
|
44024
44008
|
if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) {
|
|
44025
44009
|
const merged = mergeSymbol(moduleAugmentation.symbol, mainModule, true);
|
|
44026
44010
|
if (!patternAmbientModuleAugmentations) {
|
|
44027
|
-
patternAmbientModuleAugmentations = new Map();
|
|
44011
|
+
patternAmbientModuleAugmentations = /* @__PURE__ */ new Map();
|
|
44028
44012
|
}
|
|
44029
44013
|
patternAmbientModuleAugmentations.set(moduleName.text, merged);
|
|
44030
44014
|
} else {
|
|
@@ -45343,7 +45327,7 @@ ${lanes.join("\n")}
|
|
|
45343
45327
|
if (seenSymbols) {
|
|
45344
45328
|
seenSymbols.add(target);
|
|
45345
45329
|
} else {
|
|
45346
|
-
seenSymbols = new Set([symbol, target]);
|
|
45330
|
+
seenSymbols = /* @__PURE__ */ new Set([symbol, target]);
|
|
45347
45331
|
}
|
|
45348
45332
|
}
|
|
45349
45333
|
flags |= target.flags;
|
|
@@ -45949,7 +45933,7 @@ ${lanes.join("\n")}
|
|
|
45949
45933
|
const exportStars = symbol.exports.get("__export" /* ExportStar */);
|
|
45950
45934
|
if (exportStars) {
|
|
45951
45935
|
const nestedSymbols = createSymbolTable();
|
|
45952
|
-
const lookupTable = new Map();
|
|
45936
|
+
const lookupTable = /* @__PURE__ */ new Map();
|
|
45953
45937
|
if (exportStars.declarations) {
|
|
45954
45938
|
for (const node of exportStars.declarations) {
|
|
45955
45939
|
const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
|
|
@@ -46011,7 +45995,7 @@ ${lanes.join("\n")}
|
|
|
46011
45995
|
results = append(results, resolvedModule);
|
|
46012
45996
|
}
|
|
46013
45997
|
if (length(results)) {
|
|
46014
|
-
(links.extendedContainersByFile || (links.extendedContainersByFile = new Map())).set(id, results);
|
|
45998
|
+
(links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results);
|
|
46015
45999
|
return results;
|
|
46016
46000
|
}
|
|
46017
46001
|
}
|
|
@@ -46263,12 +46247,12 @@ ${lanes.join("\n")}
|
|
|
46263
46247
|
function getQualifiedLeftMeaning(rightMeaning) {
|
|
46264
46248
|
return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */;
|
|
46265
46249
|
}
|
|
46266
|
-
function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = new Map()) {
|
|
46250
|
+
function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) {
|
|
46267
46251
|
if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) {
|
|
46268
46252
|
return void 0;
|
|
46269
46253
|
}
|
|
46270
46254
|
const links = getSymbolLinks(symbol);
|
|
46271
|
-
const cache = links.accessibleChainCache || (links.accessibleChainCache = new Map());
|
|
46255
|
+
const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map());
|
|
46272
46256
|
const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node);
|
|
46273
46257
|
const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`;
|
|
46274
46258
|
if (cache.has(key)) {
|
|
@@ -46638,22 +46622,25 @@ ${lanes.join("\n")}
|
|
|
46638
46622
|
const context = {
|
|
46639
46623
|
enclosingDeclaration,
|
|
46640
46624
|
flags: flags || 0 /* None */,
|
|
46641
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
46642
|
-
|
|
46643
|
-
|
|
46644
|
-
|
|
46645
|
-
|
|
46646
|
-
|
|
46647
|
-
|
|
46648
|
-
|
|
46649
|
-
|
|
46650
|
-
|
|
46651
|
-
|
|
46652
|
-
|
|
46653
|
-
|
|
46654
|
-
|
|
46655
|
-
|
|
46656
|
-
|
|
46625
|
+
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
46626
|
+
trackSymbol: () => false,
|
|
46627
|
+
moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
46628
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
46629
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
46630
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
46631
|
+
getPackageJsonInfoCache: () => {
|
|
46632
|
+
var _a3;
|
|
46633
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
46634
|
+
},
|
|
46635
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
46636
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
46637
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
46638
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
46639
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
46640
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
46641
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
46642
|
+
} : void 0
|
|
46643
|
+
},
|
|
46657
46644
|
encounteredError: false,
|
|
46658
46645
|
reportedDiagnostic: false,
|
|
46659
46646
|
visitedTypes: void 0,
|
|
@@ -47065,15 +47052,15 @@ ${lanes.join("\n")}
|
|
|
47065
47052
|
const isConstructorObject = getObjectFlags(type2) & 16 /* Anonymous */ && type2.symbol && type2.symbol.flags & 32 /* Class */;
|
|
47066
47053
|
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;
|
|
47067
47054
|
if (!context.visitedTypes) {
|
|
47068
|
-
context.visitedTypes = new Set();
|
|
47055
|
+
context.visitedTypes = /* @__PURE__ */ new Set();
|
|
47069
47056
|
}
|
|
47070
47057
|
if (id && !context.symbolDepth) {
|
|
47071
|
-
context.symbolDepth = new Map();
|
|
47058
|
+
context.symbolDepth = /* @__PURE__ */ new Map();
|
|
47072
47059
|
}
|
|
47073
47060
|
const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);
|
|
47074
47061
|
const key = `${getTypeId(type2)}|${context.flags}`;
|
|
47075
47062
|
if (links) {
|
|
47076
|
-
links.serializedTypes || (links.serializedTypes = new Map());
|
|
47063
|
+
links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map());
|
|
47077
47064
|
}
|
|
47078
47065
|
const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
|
|
47079
47066
|
if (cachedResult) {
|
|
@@ -47716,7 +47703,7 @@ ${lanes.join("\n")}
|
|
|
47716
47703
|
if ((_a2 = context.typeParameterSymbolList) == null ? void 0 : _a2.has(symbolId)) {
|
|
47717
47704
|
return void 0;
|
|
47718
47705
|
}
|
|
47719
|
-
(context.typeParameterSymbolList || (context.typeParameterSymbolList = new Set())).add(symbolId);
|
|
47706
|
+
(context.typeParameterSymbolList || (context.typeParameterSymbolList = /* @__PURE__ */ new Set())).add(symbolId);
|
|
47720
47707
|
let typeParameterNodes;
|
|
47721
47708
|
if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < chain.length - 1) {
|
|
47722
47709
|
const parentSymbol = symbol;
|
|
@@ -47790,7 +47777,7 @@ ${lanes.join("\n")}
|
|
|
47790
47777
|
},
|
|
47791
47778
|
{ overrideImportMode }
|
|
47792
47779
|
));
|
|
47793
|
-
(_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = new Map();
|
|
47780
|
+
(_a2 = links.specifierCache) != null ? _a2 : links.specifierCache = /* @__PURE__ */ new Map();
|
|
47794
47781
|
links.specifierCache.set(cacheKey, specifier);
|
|
47795
47782
|
}
|
|
47796
47783
|
return specifier;
|
|
@@ -47966,9 +47953,9 @@ ${lanes.join("\n")}
|
|
|
47966
47953
|
if (text !== rawtext) {
|
|
47967
47954
|
result = factory.createIdentifier(text, result.typeArguments);
|
|
47968
47955
|
}
|
|
47969
|
-
(context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = new Map())).set(rawtext, i);
|
|
47970
|
-
(context.typeParameterNames || (context.typeParameterNames = new Map())).set(getTypeId(type), result);
|
|
47971
|
-
(context.typeParameterNamesByText || (context.typeParameterNamesByText = new Set())).add(rawtext);
|
|
47956
|
+
(context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = /* @__PURE__ */ new Map())).set(rawtext, i);
|
|
47957
|
+
(context.typeParameterNames || (context.typeParameterNames = /* @__PURE__ */ new Map())).set(getTypeId(type), result);
|
|
47958
|
+
(context.typeParameterNamesByText || (context.typeParameterNamesByText = /* @__PURE__ */ new Set())).add(rawtext);
|
|
47972
47959
|
}
|
|
47973
47960
|
return result;
|
|
47974
47961
|
}
|
|
@@ -48318,13 +48305,13 @@ ${lanes.join("\n")}
|
|
|
48318
48305
|
const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol((mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), 170 /* MethodSignature */, false);
|
|
48319
48306
|
const enclosingDeclaration = context.enclosingDeclaration;
|
|
48320
48307
|
let results = [];
|
|
48321
|
-
const visitedSymbols = new Set();
|
|
48308
|
+
const visitedSymbols = /* @__PURE__ */ new Set();
|
|
48322
48309
|
const deferredPrivatesStack = [];
|
|
48323
48310
|
const oldcontext = context;
|
|
48324
48311
|
context = {
|
|
48325
48312
|
...oldcontext,
|
|
48326
48313
|
usedSymbolNames: new Set(oldcontext.usedSymbolNames),
|
|
48327
|
-
remappedSymbolNames: new Map(),
|
|
48314
|
+
remappedSymbolNames: /* @__PURE__ */ new Map(),
|
|
48328
48315
|
tracker: {
|
|
48329
48316
|
...oldcontext.tracker,
|
|
48330
48317
|
trackSymbol: (sym, decl, meaning) => {
|
|
@@ -48485,7 +48472,7 @@ ${lanes.join("\n")}
|
|
|
48485
48472
|
}
|
|
48486
48473
|
function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) {
|
|
48487
48474
|
if (!suppressNewPrivateContext) {
|
|
48488
|
-
deferredPrivatesStack.push(new Map());
|
|
48475
|
+
deferredPrivatesStack.push(/* @__PURE__ */ new Map());
|
|
48489
48476
|
}
|
|
48490
48477
|
symbolTable2.forEach((symbol) => {
|
|
48491
48478
|
serializeSymbol(symbol, false, !!propertyAsAlias);
|
|
@@ -49590,7 +49577,7 @@ ${lanes.join("\n")}
|
|
|
49590
49577
|
let result;
|
|
49591
49578
|
let visited;
|
|
49592
49579
|
if (exportSymbol) {
|
|
49593
|
-
visited = new Set();
|
|
49580
|
+
visited = /* @__PURE__ */ new Set();
|
|
49594
49581
|
visited.add(getSymbolId(exportSymbol));
|
|
49595
49582
|
buildVisibleNodeList(exportSymbol.declarations);
|
|
49596
49583
|
}
|
|
@@ -51075,7 +51062,7 @@ ${lanes.join("\n")}
|
|
|
51075
51062
|
type.typeParameters = concatenate(outerTypeParameters, localTypeParameters);
|
|
51076
51063
|
type.outerTypeParameters = outerTypeParameters;
|
|
51077
51064
|
type.localTypeParameters = localTypeParameters;
|
|
51078
|
-
type.instantiations = new Map();
|
|
51065
|
+
type.instantiations = /* @__PURE__ */ new Map();
|
|
51079
51066
|
type.instantiations.set(getTypeListId(type.typeParameters), type);
|
|
51080
51067
|
type.target = type;
|
|
51081
51068
|
type.resolvedTypeArguments = type.typeParameters;
|
|
@@ -51100,7 +51087,7 @@ ${lanes.join("\n")}
|
|
|
51100
51087
|
const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);
|
|
51101
51088
|
if (typeParameters) {
|
|
51102
51089
|
links.typeParameters = typeParameters;
|
|
51103
|
-
links.instantiations = new Map();
|
|
51090
|
+
links.instantiations = /* @__PURE__ */ new Map();
|
|
51104
51091
|
links.instantiations.set(getTypeListId(typeParameters), type);
|
|
51105
51092
|
}
|
|
51106
51093
|
} else {
|
|
@@ -51868,7 +51855,7 @@ ${lanes.join("\n")}
|
|
|
51868
51855
|
if (symbol.exports) {
|
|
51869
51856
|
members = getExportsOfSymbol(symbol);
|
|
51870
51857
|
if (symbol === globalThisSymbol) {
|
|
51871
|
-
const varsOnly = new Map();
|
|
51858
|
+
const varsOnly = /* @__PURE__ */ new Map();
|
|
51872
51859
|
members.forEach((p) => {
|
|
51873
51860
|
var _a2;
|
|
51874
51861
|
if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a2 = p.declarations) == null ? void 0 : _a2.length) && every(p.declarations, isAmbientModule))) {
|
|
@@ -52512,7 +52499,7 @@ ${lanes.join("\n")}
|
|
|
52512
52499
|
mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent));
|
|
52513
52500
|
} else {
|
|
52514
52501
|
if (!propSet) {
|
|
52515
|
-
propSet = new Map();
|
|
52502
|
+
propSet = /* @__PURE__ */ new Map();
|
|
52516
52503
|
propSet.set(getSymbolId(singleProp), singleProp);
|
|
52517
52504
|
}
|
|
52518
52505
|
const id = getSymbolId(prop);
|
|
@@ -53167,7 +53154,7 @@ ${lanes.join("\n")}
|
|
|
53167
53154
|
return instantiatedSignature;
|
|
53168
53155
|
}
|
|
53169
53156
|
function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) {
|
|
53170
|
-
const instantiations = signature.instantiations || (signature.instantiations = new Map());
|
|
53157
|
+
const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map());
|
|
53171
53158
|
const id = getTypeListId(typeArguments);
|
|
53172
53159
|
let instantiation = instantiations.get(id);
|
|
53173
53160
|
if (!instantiation) {
|
|
@@ -54064,7 +54051,7 @@ ${lanes.join("\n")}
|
|
|
54064
54051
|
type.typeParameters = typeParameters;
|
|
54065
54052
|
type.outerTypeParameters = void 0;
|
|
54066
54053
|
type.localTypeParameters = typeParameters;
|
|
54067
|
-
type.instantiations = new Map();
|
|
54054
|
+
type.instantiations = /* @__PURE__ */ new Map();
|
|
54068
54055
|
type.instantiations.set(getTypeListId(type.typeParameters), type);
|
|
54069
54056
|
type.target = type;
|
|
54070
54057
|
type.resolvedTypeArguments = type.typeParameters;
|
|
@@ -54577,7 +54564,7 @@ ${lanes.join("\n")}
|
|
|
54577
54564
|
return result;
|
|
54578
54565
|
}
|
|
54579
54566
|
function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
|
|
54580
|
-
const typeMembershipMap = new Map();
|
|
54567
|
+
const typeMembershipMap = /* @__PURE__ */ new Map();
|
|
54581
54568
|
const includes = addTypesToIntersection(typeMembershipMap, 0, types);
|
|
54582
54569
|
const typeSet = arrayFrom(typeMembershipMap.values());
|
|
54583
54570
|
if (includes & 131072 /* Never */) {
|
|
@@ -55504,7 +55491,7 @@ ${lanes.join("\n")}
|
|
|
55504
55491
|
};
|
|
55505
55492
|
links.resolvedType = getConditionalType(root, void 0);
|
|
55506
55493
|
if (outerTypeParameters) {
|
|
55507
|
-
root.instantiations = new Map();
|
|
55494
|
+
root.instantiations = /* @__PURE__ */ new Map();
|
|
55508
55495
|
root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);
|
|
55509
55496
|
}
|
|
55510
55497
|
}
|
|
@@ -55695,7 +55682,7 @@ ${lanes.join("\n")}
|
|
|
55695
55682
|
return getIntersectionType([left, right]);
|
|
55696
55683
|
}
|
|
55697
55684
|
const members = createSymbolTable();
|
|
55698
|
-
const skippedPrivateMembers = new Set();
|
|
55685
|
+
const skippedPrivateMembers = /* @__PURE__ */ new Set();
|
|
55699
55686
|
const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]);
|
|
55700
55687
|
for (const rightProp of getPropertiesOfType(right)) {
|
|
55701
55688
|
if (getDeclarationModifierFlagsFromSymbol(rightProp) & (8 /* Private */ | 16 /* Protected */)) {
|
|
@@ -56142,7 +56129,7 @@ ${lanes.join("\n")}
|
|
|
56142
56129
|
const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);
|
|
56143
56130
|
const id = getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments);
|
|
56144
56131
|
if (!target.instantiations) {
|
|
56145
|
-
target.instantiations = new Map();
|
|
56132
|
+
target.instantiations = /* @__PURE__ */ new Map();
|
|
56146
56133
|
target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target);
|
|
56147
56134
|
}
|
|
56148
56135
|
let result = target.instantiations.get(id);
|
|
@@ -58385,7 +58372,7 @@ ${lanes.join("\n")}
|
|
|
58385
58372
|
}
|
|
58386
58373
|
}
|
|
58387
58374
|
const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length);
|
|
58388
|
-
const excludedProperties = new Set();
|
|
58375
|
+
const excludedProperties = /* @__PURE__ */ new Set();
|
|
58389
58376
|
for (let i = 0; i < sourcePropertiesFiltered.length; i++) {
|
|
58390
58377
|
const sourceProperty = sourcePropertiesFiltered[i];
|
|
58391
58378
|
const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty);
|
|
@@ -59620,7 +59607,7 @@ ${lanes.join("\n")}
|
|
|
59620
59607
|
}
|
|
59621
59608
|
function getPropertiesOfContext(context) {
|
|
59622
59609
|
if (!context.resolvedProperties) {
|
|
59623
|
-
const names = new Map();
|
|
59610
|
+
const names = /* @__PURE__ */ new Map();
|
|
59624
59611
|
for (const t of getSiblingsOfContext(context)) {
|
|
59625
59612
|
if (isObjectLiteralType2(t) && !(getObjectFlags(t) & 2097152 /* ContainsSpread */)) {
|
|
59626
59613
|
for (const prop of getPropertiesOfType(t)) {
|
|
@@ -60355,7 +60342,7 @@ ${lanes.join("\n")}
|
|
|
60355
60342
|
inferencePriority = Math.min(inferencePriority, status);
|
|
60356
60343
|
return;
|
|
60357
60344
|
}
|
|
60358
|
-
(visited || (visited = new Map())).set(key, -1 /* Circularity */);
|
|
60345
|
+
(visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */);
|
|
60359
60346
|
const saveInferencePriority = inferencePriority;
|
|
60360
60347
|
inferencePriority = 2048 /* MaxValue */;
|
|
60361
60348
|
const saveExpandingFlags = expandingFlags;
|
|
@@ -61020,7 +61007,7 @@ ${lanes.join("\n")}
|
|
|
61020
61007
|
return result;
|
|
61021
61008
|
}
|
|
61022
61009
|
function mapTypesByKeyProperty(types, name) {
|
|
61023
|
-
const map2 = new Map();
|
|
61010
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
61024
61011
|
let count = 0;
|
|
61025
61012
|
for (const type of types) {
|
|
61026
61013
|
if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {
|
|
@@ -62024,7 +62011,7 @@ ${lanes.join("\n")}
|
|
|
62024
62011
|
}
|
|
62025
62012
|
function getTypeAtFlowLoopLabel(flow) {
|
|
62026
62013
|
const id = getFlowNodeId(flow);
|
|
62027
|
-
const cache = flowLoopCaches[id] || (flowLoopCaches[id] = new Map());
|
|
62014
|
+
const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map());
|
|
62028
62015
|
const key2 = getOrSetCacheKey();
|
|
62029
62016
|
if (!key2) {
|
|
62030
62017
|
return declaredType;
|
|
@@ -67162,7 +67149,7 @@ ${lanes.join("\n")}
|
|
|
67162
67149
|
if ((_b = source.members) == null ? void 0 : _b.size) {
|
|
67163
67150
|
mergeSymbolTable(inferred.members, source.members);
|
|
67164
67151
|
}
|
|
67165
|
-
(links.inferredClassSymbol || (links.inferredClassSymbol = new Map())).set(getSymbolId(inferred), inferred);
|
|
67152
|
+
(links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred);
|
|
67166
67153
|
return inferred;
|
|
67167
67154
|
}
|
|
67168
67155
|
return links.inferredClassSymbol.get(getSymbolId(target));
|
|
@@ -70017,9 +70004,9 @@ ${lanes.join("\n")}
|
|
|
70017
70004
|
}
|
|
70018
70005
|
}
|
|
70019
70006
|
function checkClassForDuplicateDeclarations(node) {
|
|
70020
|
-
const instanceNames = new Map();
|
|
70021
|
-
const staticNames = new Map();
|
|
70022
|
-
const privateIdentifiers = new Map();
|
|
70007
|
+
const instanceNames = /* @__PURE__ */ new Map();
|
|
70008
|
+
const staticNames = /* @__PURE__ */ new Map();
|
|
70009
|
+
const privateIdentifiers = /* @__PURE__ */ new Map();
|
|
70023
70010
|
for (const member of node.members) {
|
|
70024
70011
|
if (member.kind === 173 /* Constructor */) {
|
|
70025
70012
|
for (const param of member.parameters) {
|
|
@@ -70099,7 +70086,7 @@ ${lanes.join("\n")}
|
|
|
70099
70086
|
}
|
|
70100
70087
|
}
|
|
70101
70088
|
function checkObjectTypeForDuplicateDeclarations(node) {
|
|
70102
|
-
const names = new Map();
|
|
70089
|
+
const names = /* @__PURE__ */ new Map();
|
|
70103
70090
|
for (const member of node.members) {
|
|
70104
70091
|
if (member.kind === 168 /* PropertySignature */) {
|
|
70105
70092
|
let memberName;
|
|
@@ -70133,7 +70120,7 @@ ${lanes.join("\n")}
|
|
|
70133
70120
|
}
|
|
70134
70121
|
const indexSymbol = getIndexSymbol(getSymbolOfNode(node));
|
|
70135
70122
|
if (indexSymbol == null ? void 0 : indexSymbol.declarations) {
|
|
70136
|
-
const indexSignatureMap = new Map();
|
|
70123
|
+
const indexSignatureMap = /* @__PURE__ */ new Map();
|
|
70137
70124
|
for (const declaration of indexSymbol.declarations) {
|
|
70138
70125
|
if (declaration.parameters.length === 1 && declaration.parameters[0].type) {
|
|
70139
70126
|
forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => {
|
|
@@ -71517,7 +71504,7 @@ ${lanes.join("\n")}
|
|
|
71517
71504
|
if (!declarations || last(declarations) !== node)
|
|
71518
71505
|
return;
|
|
71519
71506
|
const typeParameters = getEffectiveTypeParameterDeclarations(node);
|
|
71520
|
-
const seenParentsWithEveryUnused = new Set();
|
|
71507
|
+
const seenParentsWithEveryUnused = /* @__PURE__ */ new Set();
|
|
71521
71508
|
for (const typeParameter of typeParameters) {
|
|
71522
71509
|
if (!isTypeParameterUnused(typeParameter))
|
|
71523
71510
|
continue;
|
|
@@ -71562,9 +71549,9 @@ ${lanes.join("\n")}
|
|
|
71562
71549
|
return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name);
|
|
71563
71550
|
}
|
|
71564
71551
|
function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) {
|
|
71565
|
-
const unusedImports = new Map();
|
|
71566
|
-
const unusedDestructures = new Map();
|
|
71567
|
-
const unusedVariables = new Map();
|
|
71552
|
+
const unusedImports = /* @__PURE__ */ new Map();
|
|
71553
|
+
const unusedDestructures = /* @__PURE__ */ new Map();
|
|
71554
|
+
const unusedVariables = /* @__PURE__ */ new Map();
|
|
71568
71555
|
nodeWithLocals.locals.forEach((local) => {
|
|
71569
71556
|
if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) {
|
|
71570
71557
|
return;
|
|
@@ -73017,8 +73004,8 @@ ${lanes.join("\n")}
|
|
|
73017
73004
|
if (!length(jsdocParameters))
|
|
73018
73005
|
return;
|
|
73019
73006
|
const isJs = isInJSFile(node);
|
|
73020
|
-
const parameters = new Set();
|
|
73021
|
-
const excludedParameters = new Set();
|
|
73007
|
+
const parameters = /* @__PURE__ */ new Set();
|
|
73008
|
+
const excludedParameters = /* @__PURE__ */ new Set();
|
|
73022
73009
|
forEach(node.parameters, ({ name }, index) => {
|
|
73023
73010
|
if (isIdentifier(name)) {
|
|
73024
73011
|
parameters.add(name.escapedText);
|
|
@@ -73554,7 +73541,7 @@ ${lanes.join("\n")}
|
|
|
73554
73541
|
if (!length(baseTypes)) {
|
|
73555
73542
|
return properties;
|
|
73556
73543
|
}
|
|
73557
|
-
const seen = new Map();
|
|
73544
|
+
const seen = /* @__PURE__ */ new Map();
|
|
73558
73545
|
forEach(properties, (p) => {
|
|
73559
73546
|
seen.set(p.escapedName, p);
|
|
73560
73547
|
});
|
|
@@ -73574,7 +73561,7 @@ ${lanes.join("\n")}
|
|
|
73574
73561
|
if (baseTypes.length < 2) {
|
|
73575
73562
|
return true;
|
|
73576
73563
|
}
|
|
73577
|
-
const seen = new Map();
|
|
73564
|
+
const seen = /* @__PURE__ */ new Map();
|
|
73578
73565
|
forEach(resolveDeclaredMembers(type).declaredProperties, (p) => {
|
|
73579
73566
|
seen.set(p.escapedName, { prop: p, containingType: type });
|
|
73580
73567
|
});
|
|
@@ -74781,7 +74768,7 @@ ${lanes.join("\n")}
|
|
|
74781
74768
|
const enclosingFile = getSourceFileOfNode(node);
|
|
74782
74769
|
const links = getNodeLinks(enclosingFile);
|
|
74783
74770
|
if (!(links.flags & 1 /* TypeChecked */)) {
|
|
74784
|
-
links.deferredNodes || (links.deferredNodes = new Set());
|
|
74771
|
+
links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
|
|
74785
74772
|
links.deferredNodes.add(node);
|
|
74786
74773
|
}
|
|
74787
74774
|
}
|
|
@@ -75215,7 +75202,7 @@ ${lanes.join("\n")}
|
|
|
75215
75202
|
const declarationList = mapDefined(infos, (i) => i.declaration);
|
|
75216
75203
|
const nodeListId = map(declarationList, getNodeId).join(",");
|
|
75217
75204
|
if (!symbolLinks2.filteredIndexSymbolCache) {
|
|
75218
|
-
symbolLinks2.filteredIndexSymbolCache = new Map();
|
|
75205
|
+
symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map();
|
|
75219
75206
|
}
|
|
75220
75207
|
if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) {
|
|
75221
75208
|
links.resolvedSymbol = symbolLinks2.filteredIndexSymbolCache.get(nodeListId);
|
|
@@ -75948,7 +75935,7 @@ ${lanes.join("\n")}
|
|
|
75948
75935
|
const resolvedTypeReferenceDirectives = host.getResolvedTypeReferenceDirectives();
|
|
75949
75936
|
let fileToDirective;
|
|
75950
75937
|
if (resolvedTypeReferenceDirectives) {
|
|
75951
|
-
fileToDirective = new Map();
|
|
75938
|
+
fileToDirective = /* @__PURE__ */ new Map();
|
|
75952
75939
|
resolvedTypeReferenceDirectives.forEach((resolvedDirective, key, mode) => {
|
|
75953
75940
|
if (!resolvedDirective || !resolvedDirective.resolvedFileName) {
|
|
75954
75941
|
return;
|
|
@@ -76157,7 +76144,7 @@ ${lanes.join("\n")}
|
|
|
76157
76144
|
for (const file of host.getSourceFiles()) {
|
|
76158
76145
|
bindSourceFile(file, compilerOptions);
|
|
76159
76146
|
}
|
|
76160
|
-
amalgamatedDuplicates = new Map();
|
|
76147
|
+
amalgamatedDuplicates = /* @__PURE__ */ new Map();
|
|
76161
76148
|
let augmentations;
|
|
76162
76149
|
for (const file of host.getSourceFiles()) {
|
|
76163
76150
|
if (file.redirectInfo) {
|
|
@@ -76921,7 +76908,7 @@ ${lanes.join("\n")}
|
|
|
76921
76908
|
return !!exclamationToken && grammarErrorOnNode(exclamationToken, message);
|
|
76922
76909
|
}
|
|
76923
76910
|
function checkGrammarObjectLiteralExpression(node, inDestructuring) {
|
|
76924
|
-
const seen = new Map();
|
|
76911
|
+
const seen = /* @__PURE__ */ new Map();
|
|
76925
76912
|
for (const prop of node.properties) {
|
|
76926
76913
|
if (prop.kind === 301 /* SpreadAssignment */) {
|
|
76927
76914
|
if (inDestructuring) {
|
|
@@ -77005,7 +76992,7 @@ ${lanes.join("\n")}
|
|
|
77005
76992
|
function checkGrammarJsxElement(node) {
|
|
77006
76993
|
checkGrammarJsxName(node.tagName);
|
|
77007
76994
|
checkGrammarTypeArguments(node, node.typeArguments);
|
|
77008
|
-
const seen = new Map();
|
|
76995
|
+
const seen = /* @__PURE__ */ new Map();
|
|
77009
76996
|
for (const attr of node.attributes.properties) {
|
|
77010
76997
|
if (attr.kind === 290 /* JsxSpreadAttribute */) {
|
|
77011
76998
|
continue;
|
|
@@ -79072,7 +79059,7 @@ ${lanes.join("\n")}
|
|
|
79072
79059
|
const { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : nullTimer;
|
|
79073
79060
|
const rawSources = [];
|
|
79074
79061
|
const sources = [];
|
|
79075
|
-
const sourceToSourceIndexMap = new Map();
|
|
79062
|
+
const sourceToSourceIndexMap = /* @__PURE__ */ new Map();
|
|
79076
79063
|
let sourcesContent;
|
|
79077
79064
|
const names = [];
|
|
79078
79065
|
let nameToNameIndexMap;
|
|
@@ -79138,7 +79125,7 @@ ${lanes.join("\n")}
|
|
|
79138
79125
|
function addName(name) {
|
|
79139
79126
|
enter();
|
|
79140
79127
|
if (!nameToNameIndexMap)
|
|
79141
|
-
nameToNameIndexMap = new Map();
|
|
79128
|
+
nameToNameIndexMap = /* @__PURE__ */ new Map();
|
|
79142
79129
|
let nameIndex = nameToNameIndexMap.get(name);
|
|
79143
79130
|
if (nameIndex === void 0) {
|
|
79144
79131
|
nameIndex = names.length;
|
|
@@ -79664,7 +79651,7 @@ ${lanes.join("\n")}
|
|
|
79664
79651
|
const externalImports = [];
|
|
79665
79652
|
const exportSpecifiers = createMultiMap();
|
|
79666
79653
|
const exportedBindings = [];
|
|
79667
|
-
const uniqueExports = new Map();
|
|
79654
|
+
const uniqueExports = /* @__PURE__ */ new Map();
|
|
79668
79655
|
let exportedNames;
|
|
79669
79656
|
let hasExportDefault = false;
|
|
79670
79657
|
let exportEquals;
|
|
@@ -81431,7 +81418,7 @@ ${lanes.join("\n")}
|
|
|
81431
81418
|
}
|
|
81432
81419
|
function recordEmittedDeclarationInScope(node) {
|
|
81433
81420
|
if (!currentScopeFirstDeclarationsOfName) {
|
|
81434
|
-
currentScopeFirstDeclarationsOfName = new Map();
|
|
81421
|
+
currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map();
|
|
81435
81422
|
}
|
|
81436
81423
|
const name = declaredNameInScope(node);
|
|
81437
81424
|
if (!currentScopeFirstDeclarationsOfName.has(name)) {
|
|
@@ -81922,7 +81909,7 @@ ${lanes.join("\n")}
|
|
|
81922
81909
|
let pendingExpressions;
|
|
81923
81910
|
let pendingStatements;
|
|
81924
81911
|
const classLexicalEnvironmentStack = [];
|
|
81925
|
-
const classLexicalEnvironmentMap = new Map();
|
|
81912
|
+
const classLexicalEnvironmentMap = /* @__PURE__ */ new Map();
|
|
81926
81913
|
let currentClassLexicalEnvironment;
|
|
81927
81914
|
let currentClassContainer;
|
|
81928
81915
|
let currentComputedPropertyNameClassLexicalEnvironment;
|
|
@@ -83638,10 +83625,10 @@ ${lanes.join("\n")}
|
|
|
83638
83625
|
function setPrivateIdentifier(privateEnv, name, info) {
|
|
83639
83626
|
var _a2, _b;
|
|
83640
83627
|
if (isGeneratedPrivateIdentifier(name)) {
|
|
83641
|
-
(_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = new Map();
|
|
83628
|
+
(_a2 = privateEnv.generatedIdentifiers) != null ? _a2 : privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map();
|
|
83642
83629
|
privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), info);
|
|
83643
83630
|
} else {
|
|
83644
|
-
(_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = new Map();
|
|
83631
|
+
(_b = privateEnv.identifiers) != null ? _b : privateEnv.identifiers = /* @__PURE__ */ new Map();
|
|
83645
83632
|
privateEnv.identifiers.set(name.escapedText, info);
|
|
83646
83633
|
}
|
|
83647
83634
|
}
|
|
@@ -84484,7 +84471,7 @@ ${lanes.join("\n")}
|
|
|
84484
84471
|
return visitor(node);
|
|
84485
84472
|
}
|
|
84486
84473
|
function visitCatchClauseInAsyncBody(node) {
|
|
84487
|
-
const catchClauseNames = new Set();
|
|
84474
|
+
const catchClauseNames = /* @__PURE__ */ new Set();
|
|
84488
84475
|
recordDeclarationName(node.variableDeclaration, catchClauseNames);
|
|
84489
84476
|
let catchClauseUnshadowedNames;
|
|
84490
84477
|
catchClauseNames.forEach((_, escapedName) => {
|
|
@@ -84694,7 +84681,7 @@ ${lanes.join("\n")}
|
|
|
84694
84681
|
Debug.assertIsDefined(node.body);
|
|
84695
84682
|
const savedCapturedSuperProperties = capturedSuperProperties;
|
|
84696
84683
|
const savedHasSuperElementAccess = hasSuperElementAccess;
|
|
84697
|
-
capturedSuperProperties = new Set();
|
|
84684
|
+
capturedSuperProperties = /* @__PURE__ */ new Set();
|
|
84698
84685
|
hasSuperElementAccess = false;
|
|
84699
84686
|
let updated = visitFunctionBody(node.body, visitor, context);
|
|
84700
84687
|
const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration);
|
|
@@ -84728,14 +84715,14 @@ ${lanes.join("\n")}
|
|
|
84728
84715
|
const isArrowFunction2 = node.kind === 216 /* ArrowFunction */;
|
|
84729
84716
|
const hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;
|
|
84730
84717
|
const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;
|
|
84731
|
-
enclosingFunctionParameterNames = new Set();
|
|
84718
|
+
enclosingFunctionParameterNames = /* @__PURE__ */ new Set();
|
|
84732
84719
|
for (const parameter of node.parameters) {
|
|
84733
84720
|
recordDeclarationName(parameter, enclosingFunctionParameterNames);
|
|
84734
84721
|
}
|
|
84735
84722
|
const savedCapturedSuperProperties = capturedSuperProperties;
|
|
84736
84723
|
const savedHasSuperElementAccess = hasSuperElementAccess;
|
|
84737
84724
|
if (!isArrowFunction2) {
|
|
84738
|
-
capturedSuperProperties = new Set();
|
|
84725
|
+
capturedSuperProperties = /* @__PURE__ */ new Set();
|
|
84739
84726
|
hasSuperElementAccess = false;
|
|
84740
84727
|
}
|
|
84741
84728
|
let result;
|
|
@@ -85711,7 +85698,7 @@ ${lanes.join("\n")}
|
|
|
85711
85698
|
if (parameters) {
|
|
85712
85699
|
parameters.add(parameter);
|
|
85713
85700
|
} else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) {
|
|
85714
|
-
parameters = new Set();
|
|
85701
|
+
parameters = /* @__PURE__ */ new Set();
|
|
85715
85702
|
}
|
|
85716
85703
|
}
|
|
85717
85704
|
return parameters;
|
|
@@ -85847,7 +85834,7 @@ ${lanes.join("\n")}
|
|
|
85847
85834
|
appendObjectRestAssignmentsIfNeeded(statements, node);
|
|
85848
85835
|
const savedCapturedSuperProperties = capturedSuperProperties;
|
|
85849
85836
|
const savedHasSuperElementAccess = hasSuperElementAccess;
|
|
85850
|
-
capturedSuperProperties = new Set();
|
|
85837
|
+
capturedSuperProperties = /* @__PURE__ */ new Set();
|
|
85851
85838
|
hasSuperElementAccess = false;
|
|
85852
85839
|
const returnStatement = factory2.createReturnStatement(
|
|
85853
85840
|
emitHelpers().createAsyncGeneratorHelper(
|
|
@@ -86449,11 +86436,11 @@ ${lanes.join("\n")}
|
|
|
86449
86436
|
return existing.name;
|
|
86450
86437
|
}
|
|
86451
86438
|
if (!currentFileState.utilizedImplicitRuntimeImports) {
|
|
86452
|
-
currentFileState.utilizedImplicitRuntimeImports = new Map();
|
|
86439
|
+
currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map();
|
|
86453
86440
|
}
|
|
86454
86441
|
let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource);
|
|
86455
86442
|
if (!specifierSourceImports) {
|
|
86456
|
-
specifierSourceImports = new Map();
|
|
86443
|
+
specifierSourceImports = /* @__PURE__ */ new Map();
|
|
86457
86444
|
currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);
|
|
86458
86445
|
}
|
|
86459
86446
|
const generatedName = factory2.createUniqueName(`_${name}`, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */);
|
|
@@ -88463,7 +88450,7 @@ ${lanes.join("\n")}
|
|
|
88463
88450
|
}
|
|
88464
88451
|
function visitLabeledStatement(node) {
|
|
88465
88452
|
if (convertedLoopState && !convertedLoopState.labels) {
|
|
88466
|
-
convertedLoopState.labels = new Map();
|
|
88453
|
+
convertedLoopState.labels = /* @__PURE__ */ new Map();
|
|
88467
88454
|
}
|
|
88468
88455
|
const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel);
|
|
88469
88456
|
return isIterationStatement(statement, false) ? visitIterationStatement(statement, node) : factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node, convertedLoopState && resetLabel);
|
|
@@ -89222,12 +89209,12 @@ ${lanes.join("\n")}
|
|
|
89222
89209
|
function setLabeledJump(state, isBreak, labelText, labelMarker) {
|
|
89223
89210
|
if (isBreak) {
|
|
89224
89211
|
if (!state.labeledNonLocalBreaks) {
|
|
89225
|
-
state.labeledNonLocalBreaks = new Map();
|
|
89212
|
+
state.labeledNonLocalBreaks = /* @__PURE__ */ new Map();
|
|
89226
89213
|
}
|
|
89227
89214
|
state.labeledNonLocalBreaks.set(labelText, labelMarker);
|
|
89228
89215
|
} else {
|
|
89229
89216
|
if (!state.labeledNonLocalContinues) {
|
|
89230
|
-
state.labeledNonLocalContinues = new Map();
|
|
89217
|
+
state.labeledNonLocalContinues = /* @__PURE__ */ new Map();
|
|
89231
89218
|
}
|
|
89232
89219
|
state.labeledNonLocalContinues.set(labelText, labelMarker);
|
|
89233
89220
|
}
|
|
@@ -91076,7 +91063,7 @@ ${lanes.join("\n")}
|
|
|
91076
91063
|
const text = idText(variable.name);
|
|
91077
91064
|
name = declareLocal(text);
|
|
91078
91065
|
if (!renamedCatchVariables) {
|
|
91079
|
-
renamedCatchVariables = new Map();
|
|
91066
|
+
renamedCatchVariables = /* @__PURE__ */ new Map();
|
|
91080
91067
|
renamedCatchVariableDeclarations = [];
|
|
91081
91068
|
context.enableSubstitution(79 /* Identifier */);
|
|
91082
91069
|
}
|
|
@@ -93238,7 +93225,7 @@ ${lanes.join("\n")}
|
|
|
93238
93225
|
return updated;
|
|
93239
93226
|
}
|
|
93240
93227
|
function collectDependencyGroups(externalImports) {
|
|
93241
|
-
const groupIndices = new Map();
|
|
93228
|
+
const groupIndices = /* @__PURE__ */ new Map();
|
|
93242
93229
|
const dependencyGroups = [];
|
|
93243
93230
|
for (const externalImport of externalImports) {
|
|
93244
93231
|
const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions);
|
|
@@ -94488,7 +94475,7 @@ ${lanes.join("\n")}
|
|
|
94488
94475
|
function onEmitNode(hint, node, emitCallback) {
|
|
94489
94476
|
if (isSourceFile(node)) {
|
|
94490
94477
|
if ((isExternalModule(node) || compilerOptions.isolatedModules) && compilerOptions.importHelpers) {
|
|
94491
|
-
helperNameSubstitutions = new Map();
|
|
94478
|
+
helperNameSubstitutions = /* @__PURE__ */ new Map();
|
|
94492
94479
|
}
|
|
94493
94480
|
previousOnEmitNode(hint, node, emitCallback);
|
|
94494
94481
|
helperNameSubstitutions = void 0;
|
|
@@ -94908,7 +94895,7 @@ ${lanes.join("\n")}
|
|
|
94908
94895
|
if (!typeReferenceDirectives) {
|
|
94909
94896
|
return;
|
|
94910
94897
|
}
|
|
94911
|
-
necessaryTypeReferences = necessaryTypeReferences || new Set();
|
|
94898
|
+
necessaryTypeReferences = necessaryTypeReferences || /* @__PURE__ */ new Set();
|
|
94912
94899
|
for (const ref of typeReferenceDirectives) {
|
|
94913
94900
|
necessaryTypeReferences.add(ref);
|
|
94914
94901
|
}
|
|
@@ -95061,8 +95048,8 @@ ${lanes.join("\n")}
|
|
|
95061
95048
|
}
|
|
95062
95049
|
if (node.kind === 309 /* Bundle */) {
|
|
95063
95050
|
isBundledEmit = true;
|
|
95064
|
-
refs = new Map();
|
|
95065
|
-
libs2 = new Map();
|
|
95051
|
+
refs = /* @__PURE__ */ new Map();
|
|
95052
|
+
libs2 = /* @__PURE__ */ new Map();
|
|
95066
95053
|
let hasNoDefaultLib = false;
|
|
95067
95054
|
const bundle = factory2.createBundle(map(
|
|
95068
95055
|
node.sourceFiles,
|
|
@@ -95074,7 +95061,7 @@ ${lanes.join("\n")}
|
|
|
95074
95061
|
enclosingDeclaration = sourceFile;
|
|
95075
95062
|
lateMarkedStatements = void 0;
|
|
95076
95063
|
suppressNewDiagnosticContexts = false;
|
|
95077
|
-
lateStatementReplacementMap = new Map();
|
|
95064
|
+
lateStatementReplacementMap = /* @__PURE__ */ new Map();
|
|
95078
95065
|
getSymbolAccessibilityDiagnostic = throwDiagnostic;
|
|
95079
95066
|
needsScopeFixMarker = false;
|
|
95080
95067
|
resultHasScopeMarker = false;
|
|
@@ -95125,10 +95112,10 @@ ${lanes.join("\n")}
|
|
|
95125
95112
|
resultHasExternalModuleIndicator = false;
|
|
95126
95113
|
suppressNewDiagnosticContexts = false;
|
|
95127
95114
|
lateMarkedStatements = void 0;
|
|
95128
|
-
lateStatementReplacementMap = new Map();
|
|
95115
|
+
lateStatementReplacementMap = /* @__PURE__ */ new Map();
|
|
95129
95116
|
necessaryTypeReferences = void 0;
|
|
95130
|
-
refs = collectReferences(currentSourceFile, new Map());
|
|
95131
|
-
libs2 = collectLibs(currentSourceFile, new Map());
|
|
95117
|
+
refs = collectReferences(currentSourceFile, /* @__PURE__ */ new Map());
|
|
95118
|
+
libs2 = collectLibs(currentSourceFile, /* @__PURE__ */ new Map());
|
|
95132
95119
|
const references = [];
|
|
95133
95120
|
const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor(node, host, true).declarationFilePath));
|
|
95134
95121
|
const referenceVisitor = mapReferencesIntoArray(references, outputFilePath);
|
|
@@ -97478,7 +97465,7 @@ ${lanes.join("\n")}
|
|
|
97478
97465
|
const extendedDiagnostics = !!printerOptions.extendedDiagnostics;
|
|
97479
97466
|
const newLine = getNewLineCharacter(printerOptions);
|
|
97480
97467
|
const moduleKind = getEmitModuleKind(printerOptions);
|
|
97481
|
-
const bundledHelpers = new Map();
|
|
97468
|
+
const bundledHelpers = /* @__PURE__ */ new Map();
|
|
97482
97469
|
let currentSourceFile;
|
|
97483
97470
|
let nodeIdToGeneratedName;
|
|
97484
97471
|
let autoGeneratedIdToGeneratedName;
|
|
@@ -97732,9 +97719,9 @@ ${lanes.join("\n")}
|
|
|
97732
97719
|
function reset2() {
|
|
97733
97720
|
nodeIdToGeneratedName = [];
|
|
97734
97721
|
autoGeneratedIdToGeneratedName = [];
|
|
97735
|
-
generatedNames = new Set();
|
|
97722
|
+
generatedNames = /* @__PURE__ */ new Set();
|
|
97736
97723
|
formattedNameTempFlagsStack = [];
|
|
97737
|
-
formattedNameTempFlags = new Map();
|
|
97724
|
+
formattedNameTempFlags = /* @__PURE__ */ new Map();
|
|
97738
97725
|
privateNameTempFlagsStack = [];
|
|
97739
97726
|
privateNameTempFlags = TempFlags.Auto;
|
|
97740
97727
|
tempFlagsStack = [];
|
|
@@ -98286,7 +98273,7 @@ ${lanes.join("\n")}
|
|
|
98286
98273
|
if (moduleKind === 0 /* None */ || printerOptions.noEmitHelpers) {
|
|
98287
98274
|
return void 0;
|
|
98288
98275
|
}
|
|
98289
|
-
const bundledHelpers2 = new Map();
|
|
98276
|
+
const bundledHelpers2 = /* @__PURE__ */ new Map();
|
|
98290
98277
|
for (const sourceFile of bundle.sourceFiles) {
|
|
98291
98278
|
const shouldSkip = getExternalHelpersModuleName(sourceFile) !== void 0;
|
|
98292
98279
|
const helpers = getSortedEmitHelpers(sourceFile);
|
|
@@ -100136,7 +100123,7 @@ ${lanes.join("\n")}
|
|
|
100136
100123
|
if (isSourceFile(sourceFileOrBundle)) {
|
|
100137
100124
|
emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle);
|
|
100138
100125
|
} else {
|
|
100139
|
-
const seenPrologueDirectives = new Set();
|
|
100126
|
+
const seenPrologueDirectives = /* @__PURE__ */ new Set();
|
|
100140
100127
|
for (const prepend of sourceFileOrBundle.prepends) {
|
|
100141
100128
|
emitUnparsedPrologues(prepend.prologues, seenPrologueDirectives);
|
|
100142
100129
|
}
|
|
@@ -100147,7 +100134,7 @@ ${lanes.join("\n")}
|
|
|
100147
100134
|
}
|
|
100148
100135
|
}
|
|
100149
100136
|
function getPrologueDirectivesFromBundledSourceFiles(bundle) {
|
|
100150
|
-
const seenPrologueDirectives = new Set();
|
|
100137
|
+
const seenPrologueDirectives = /* @__PURE__ */ new Set();
|
|
100151
100138
|
let prologues;
|
|
100152
100139
|
for (let index = 0; index < bundle.sourceFiles.length; index++) {
|
|
100153
100140
|
const sourceFile = bundle.sourceFiles[index];
|
|
@@ -100807,7 +100794,7 @@ ${lanes.join("\n")}
|
|
|
100807
100794
|
}
|
|
100808
100795
|
function reserveNameInNestedScopes(name) {
|
|
100809
100796
|
if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) {
|
|
100810
|
-
reservedNames = new Set();
|
|
100797
|
+
reservedNames = /* @__PURE__ */ new Set();
|
|
100811
100798
|
}
|
|
100812
100799
|
reservedNames.add(name);
|
|
100813
100800
|
}
|
|
@@ -100969,7 +100956,7 @@ ${lanes.join("\n")}
|
|
|
100969
100956
|
privateNameTempFlags = flags;
|
|
100970
100957
|
break;
|
|
100971
100958
|
default:
|
|
100972
|
-
formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = new Map();
|
|
100959
|
+
formattedNameTempFlags != null ? formattedNameTempFlags : formattedNameTempFlags = /* @__PURE__ */ new Map();
|
|
100973
100960
|
formattedNameTempFlags.set(formattedNameKey, flags);
|
|
100974
100961
|
break;
|
|
100975
100962
|
}
|
|
@@ -101572,7 +101559,7 @@ ${lanes.join("\n")}
|
|
|
101572
101559
|
if (!host.getDirectories || !host.readDirectory) {
|
|
101573
101560
|
return void 0;
|
|
101574
101561
|
}
|
|
101575
|
-
const cachedReadDirectoryResult = new Map();
|
|
101562
|
+
const cachedReadDirectoryResult = /* @__PURE__ */ new Map();
|
|
101576
101563
|
const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
|
101577
101564
|
return {
|
|
101578
101565
|
useCaseSensitiveFileNames,
|
|
@@ -101786,7 +101773,7 @@ ${lanes.join("\n")}
|
|
|
101786
101773
|
existing.projects.add(projectPath);
|
|
101787
101774
|
} else {
|
|
101788
101775
|
extendedConfigFilesMap.set(extendedConfigFilePath, {
|
|
101789
|
-
projects: new Set([projectPath]),
|
|
101776
|
+
projects: /* @__PURE__ */ new Set([projectPath]),
|
|
101790
101777
|
watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath),
|
|
101791
101778
|
close: () => {
|
|
101792
101779
|
const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath);
|
|
@@ -102099,7 +102086,7 @@ ${lanes.join("\n")}
|
|
|
102099
102086
|
};
|
|
102100
102087
|
}
|
|
102101
102088
|
function createCompilerHostWorker(options, setParentNodes, system = sys) {
|
|
102102
|
-
const existingDirectories = new Map();
|
|
102089
|
+
const existingDirectories = /* @__PURE__ */ new Map();
|
|
102103
102090
|
const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);
|
|
102104
102091
|
function directoryExists(directoryPath) {
|
|
102105
102092
|
if (existingDirectories.has(directoryPath)) {
|
|
@@ -102148,10 +102135,10 @@ ${lanes.join("\n")}
|
|
|
102148
102135
|
const originalDirectoryExists = host.directoryExists;
|
|
102149
102136
|
const originalCreateDirectory = host.createDirectory;
|
|
102150
102137
|
const originalWriteFile = host.writeFile;
|
|
102151
|
-
const readFileCache = new Map();
|
|
102152
|
-
const fileExistsCache = new Map();
|
|
102153
|
-
const directoryExistsCache = new Map();
|
|
102154
|
-
const sourceFileCache = new Map();
|
|
102138
|
+
const readFileCache = /* @__PURE__ */ new Map();
|
|
102139
|
+
const fileExistsCache = /* @__PURE__ */ new Map();
|
|
102140
|
+
const directoryExistsCache = /* @__PURE__ */ new Map();
|
|
102141
|
+
const sourceFileCache = /* @__PURE__ */ new Map();
|
|
102155
102142
|
const readFileWithCache = (fileName) => {
|
|
102156
102143
|
const key = toPath3(fileName);
|
|
102157
102144
|
const value = readFileCache.get(key);
|
|
@@ -102183,7 +102170,7 @@ ${lanes.join("\n")}
|
|
|
102183
102170
|
return value;
|
|
102184
102171
|
const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile);
|
|
102185
102172
|
if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */))) {
|
|
102186
|
-
sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || new Map()).set(key, sourceFile));
|
|
102173
|
+
sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile));
|
|
102187
102174
|
}
|
|
102188
102175
|
return sourceFile;
|
|
102189
102176
|
} : void 0;
|
|
@@ -102408,7 +102395,7 @@ ${lanes.join("\n")}
|
|
|
102408
102395
|
return [];
|
|
102409
102396
|
}
|
|
102410
102397
|
const resolutions = [];
|
|
102411
|
-
const cache = new Map();
|
|
102398
|
+
const cache = /* @__PURE__ */ new Map();
|
|
102412
102399
|
for (const name of names) {
|
|
102413
102400
|
let result;
|
|
102414
102401
|
const mode = getModeForFileReference(name, containingFileMode);
|
|
@@ -102493,7 +102480,7 @@ ${lanes.join("\n")}
|
|
|
102493
102480
|
return [];
|
|
102494
102481
|
}
|
|
102495
102482
|
const resolutions = [];
|
|
102496
|
-
const cache = new Map();
|
|
102483
|
+
const cache = /* @__PURE__ */ new Map();
|
|
102497
102484
|
let i = 0;
|
|
102498
102485
|
for (const entry of resolutionInfo ? resolutionInfo.names : names) {
|
|
102499
102486
|
let result;
|
|
@@ -102529,7 +102516,7 @@ ${lanes.join("\n")}
|
|
|
102529
102516
|
const result = cbResolvedRef(resolvedRef, parent2, index);
|
|
102530
102517
|
if (result || !resolvedRef)
|
|
102531
102518
|
return result;
|
|
102532
|
-
(seenResolvedRefs || (seenResolvedRefs = new Set())).add(resolvedRef.sourceFile.path);
|
|
102519
|
+
(seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
|
|
102533
102520
|
return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef);
|
|
102534
102521
|
});
|
|
102535
102522
|
}
|
|
@@ -102649,7 +102636,7 @@ ${lanes.join("\n")}
|
|
|
102649
102636
|
return { impliedNodeFormat, packageJsonLocations, packageJsonScope };
|
|
102650
102637
|
}
|
|
102651
102638
|
}
|
|
102652
|
-
var plainJSErrors = new Set([
|
|
102639
|
+
var plainJSErrors = /* @__PURE__ */ new Set([
|
|
102653
102640
|
Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
|
|
102654
102641
|
Diagnostics.A_module_cannot_have_multiple_default_exports.code,
|
|
102655
102642
|
Diagnostics.Another_export_default_is_here.code,
|
|
@@ -102768,7 +102755,7 @@ ${lanes.join("\n")}
|
|
|
102768
102755
|
let commonSourceDirectory;
|
|
102769
102756
|
let typeChecker;
|
|
102770
102757
|
let classifiableNames;
|
|
102771
|
-
const ambientModuleNameToUnmodifiedFileName = new Map();
|
|
102758
|
+
const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map();
|
|
102772
102759
|
let fileReasons = createMultiMap();
|
|
102773
102760
|
const cachedBindAndCheckDiagnosticsForFile = {};
|
|
102774
102761
|
const cachedDeclarationDiagnosticsForFile = {};
|
|
@@ -102776,8 +102763,8 @@ ${lanes.join("\n")}
|
|
|
102776
102763
|
let fileProcessingDiagnostics;
|
|
102777
102764
|
const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === "number" ? options.maxNodeModuleJsDepth : 0;
|
|
102778
102765
|
let currentNodeModulesDepth = 0;
|
|
102779
|
-
const modulesWithElidedImports = new Map();
|
|
102780
|
-
const sourceFilesFoundSearchingNodeModules = new Map();
|
|
102766
|
+
const modulesWithElidedImports = /* @__PURE__ */ new Map();
|
|
102767
|
+
const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map();
|
|
102781
102768
|
(_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "createProgram", { configFilePath: options.configFilePath, rootDir: options.rootDir }, true);
|
|
102782
102769
|
mark("beforeProgram");
|
|
102783
102770
|
const host = createProgramOptions.host || createCompilerHost(options);
|
|
@@ -102789,7 +102776,7 @@ ${lanes.join("\n")}
|
|
|
102789
102776
|
const currentDirectory = host.getCurrentDirectory();
|
|
102790
102777
|
const supportedExtensions = getSupportedExtensions(options);
|
|
102791
102778
|
const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
|
|
102792
|
-
const hasEmitBlockingDiagnostics = new Map();
|
|
102779
|
+
const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map();
|
|
102793
102780
|
let _compilerOptionsObjectLiteralSyntax;
|
|
102794
102781
|
let moduleResolutionCache;
|
|
102795
102782
|
let typeReferenceDirectiveResolutionCache;
|
|
@@ -102837,13 +102824,13 @@ ${lanes.join("\n")}
|
|
|
102837
102824
|
).resolvedTypeReferenceDirective;
|
|
102838
102825
|
actualResolveTypeReferenceDirectiveNamesWorker = (typeReferenceDirectiveNames, containingFile, redirectedReference, containingFileMode) => loadWithTypeDirectiveCache(Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, containingFileMode, loader);
|
|
102839
102826
|
}
|
|
102840
|
-
const packageIdToSourceFile = new Map();
|
|
102841
|
-
let sourceFileToPackageName = new Map();
|
|
102827
|
+
const packageIdToSourceFile = /* @__PURE__ */ new Map();
|
|
102828
|
+
let sourceFileToPackageName = /* @__PURE__ */ new Map();
|
|
102842
102829
|
let redirectTargetsMap = createMultiMap();
|
|
102843
102830
|
let usesUriStyleNodeCoreModules = false;
|
|
102844
|
-
const filesByName = new Map();
|
|
102831
|
+
const filesByName = /* @__PURE__ */ new Map();
|
|
102845
102832
|
let missingFilePaths;
|
|
102846
|
-
const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new Map() : void 0;
|
|
102833
|
+
const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
|
|
102847
102834
|
let resolvedProjectReferences;
|
|
102848
102835
|
let projectReferenceRedirects;
|
|
102849
102836
|
let mapFromFileToProjectReferenceRedirects;
|
|
@@ -103152,7 +103139,7 @@ ${lanes.join("\n")}
|
|
|
103152
103139
|
var _a3;
|
|
103153
103140
|
if (!classifiableNames) {
|
|
103154
103141
|
getTypeChecker();
|
|
103155
|
-
classifiableNames = new Set();
|
|
103142
|
+
classifiableNames = /* @__PURE__ */ new Set();
|
|
103156
103143
|
for (const sourceFile of files) {
|
|
103157
103144
|
(_a3 = sourceFile.classifiableNames) == null ? void 0 : _a3.forEach((value) => classifiableNames.add(value));
|
|
103158
103145
|
}
|
|
@@ -103361,7 +103348,7 @@ ${lanes.join("\n")}
|
|
|
103361
103348
|
SeenPackageName2[SeenPackageName2["Exists"] = 0] = "Exists";
|
|
103362
103349
|
SeenPackageName2[SeenPackageName2["Modified"] = 1] = "Modified";
|
|
103363
103350
|
})(SeenPackageName || (SeenPackageName = {}));
|
|
103364
|
-
const seenPackageNames = new Map();
|
|
103351
|
+
const seenPackageNames = /* @__PURE__ */ new Map();
|
|
103365
103352
|
for (const oldSourceFile of oldSourceFiles) {
|
|
103366
103353
|
const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options);
|
|
103367
103354
|
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);
|
|
@@ -103964,7 +103951,7 @@ ${lanes.join("\n")}
|
|
|
103964
103951
|
}
|
|
103965
103952
|
const result = getDiagnostics2(sourceFile, cancellationToken);
|
|
103966
103953
|
if (sourceFile) {
|
|
103967
|
-
(cache.perFile || (cache.perFile = new Map())).set(sourceFile.path, result);
|
|
103954
|
+
(cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result);
|
|
103968
103955
|
} else {
|
|
103969
103956
|
cache.allDiagnostics = result;
|
|
103970
103957
|
}
|
|
@@ -104372,7 +104359,7 @@ ${lanes.join("\n")}
|
|
|
104372
104359
|
}
|
|
104373
104360
|
function getResolvedProjectReferenceToRedirect(fileName) {
|
|
104374
104361
|
if (mapFromFileToProjectReferenceRedirects === void 0) {
|
|
104375
|
-
mapFromFileToProjectReferenceRedirects = new Map();
|
|
104362
|
+
mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();
|
|
104376
104363
|
forEachResolvedProjectReference2((referencedProject) => {
|
|
104377
104364
|
if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {
|
|
104378
104365
|
referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));
|
|
@@ -104389,7 +104376,7 @@ ${lanes.join("\n")}
|
|
|
104389
104376
|
if (!isDeclarationFileName(path))
|
|
104390
104377
|
return void 0;
|
|
104391
104378
|
if (mapFromToProjectReferenceRedirectSource === void 0) {
|
|
104392
|
-
mapFromToProjectReferenceRedirectSource = new Map();
|
|
104379
|
+
mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();
|
|
104393
104380
|
forEachResolvedProjectReference2((resolvedRef) => {
|
|
104394
104381
|
const out = outFile(resolvedRef.commandLine.options);
|
|
104395
104382
|
if (out) {
|
|
@@ -104590,7 +104577,7 @@ ${lanes.join("\n")}
|
|
|
104590
104577
|
}
|
|
104591
104578
|
function parseProjectReferenceConfigFile(ref) {
|
|
104592
104579
|
if (!projectReferenceRedirects) {
|
|
104593
|
-
projectReferenceRedirects = new Map();
|
|
104580
|
+
projectReferenceRedirects = /* @__PURE__ */ new Map();
|
|
104594
104581
|
}
|
|
104595
104582
|
const refPath = resolveProjectReferencePath(ref);
|
|
104596
104583
|
const sourceFilePath = toPath3(refPath);
|
|
@@ -104848,7 +104835,7 @@ ${lanes.join("\n")}
|
|
|
104848
104835
|
}
|
|
104849
104836
|
if (!options.noEmit && !options.suppressOutputPathCheck) {
|
|
104850
104837
|
const emitHost = getEmitHost();
|
|
104851
|
-
const emitFilesSeen = new Set();
|
|
104838
|
+
const emitFilesSeen = /* @__PURE__ */ new Set();
|
|
104852
104839
|
forEachEmittedFile(emitHost, (emitFileNames) => {
|
|
104853
104840
|
if (!options.emitDeclarationOnly) {
|
|
104854
104841
|
verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen);
|
|
@@ -105204,7 +105191,7 @@ ${lanes.join("\n")}
|
|
|
105204
105191
|
if (!host.getResolvedProjectReferences())
|
|
105205
105192
|
return false;
|
|
105206
105193
|
if (!setOfDeclarationDirectories) {
|
|
105207
|
-
setOfDeclarationDirectories = new Set();
|
|
105194
|
+
setOfDeclarationDirectories = /* @__PURE__ */ new Set();
|
|
105208
105195
|
host.forEachResolvedProjectReference((ref) => {
|
|
105209
105196
|
const out = outFile(ref.commandLine.options);
|
|
105210
105197
|
if (out) {
|
|
@@ -105443,7 +105430,7 @@ ${lanes.join("\n")}
|
|
|
105443
105430
|
getValues: (k) => forward.get(k),
|
|
105444
105431
|
keys: () => forward.keys(),
|
|
105445
105432
|
deleteKey: (k) => {
|
|
105446
|
-
(deleted || (deleted = new Set())).add(k);
|
|
105433
|
+
(deleted || (deleted = /* @__PURE__ */ new Set())).add(k);
|
|
105447
105434
|
const set = forward.get(k);
|
|
105448
105435
|
if (!set) {
|
|
105449
105436
|
return false;
|
|
@@ -105471,13 +105458,13 @@ ${lanes.join("\n")}
|
|
|
105471
105458
|
};
|
|
105472
105459
|
return map2;
|
|
105473
105460
|
}
|
|
105474
|
-
return create2(new Map(), new Map(), void 0);
|
|
105461
|
+
return create2(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), void 0);
|
|
105475
105462
|
}
|
|
105476
105463
|
BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
|
|
105477
105464
|
function addToMultimap(map2, k, v) {
|
|
105478
105465
|
let set = map2.get(k);
|
|
105479
105466
|
if (!set) {
|
|
105480
|
-
set = new Set();
|
|
105467
|
+
set = /* @__PURE__ */ new Set();
|
|
105481
105468
|
map2.set(k, set);
|
|
105482
105469
|
}
|
|
105483
105470
|
set.add(v);
|
|
@@ -105560,7 +105547,7 @@ ${lanes.join("\n")}
|
|
|
105560
105547
|
}
|
|
105561
105548
|
}
|
|
105562
105549
|
function addReferencedFile(referencedPath) {
|
|
105563
|
-
(referencedFiles || (referencedFiles = new Set())).add(referencedPath);
|
|
105550
|
+
(referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath);
|
|
105564
105551
|
}
|
|
105565
105552
|
}
|
|
105566
105553
|
function canReuseOldState(newReferencedMap, oldState) {
|
|
@@ -105569,7 +105556,7 @@ ${lanes.join("\n")}
|
|
|
105569
105556
|
BuilderState2.canReuseOldState = canReuseOldState;
|
|
105570
105557
|
function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {
|
|
105571
105558
|
var _a2, _b, _c;
|
|
105572
|
-
const fileInfos = new Map();
|
|
105559
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
105573
105560
|
const options = newProgram.getCompilerOptions();
|
|
105574
105561
|
const isOutFile = outFile(options);
|
|
105575
105562
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
@@ -105641,7 +105628,7 @@ ${lanes.join("\n")}
|
|
|
105641
105628
|
BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState;
|
|
105642
105629
|
function updateSignatureOfFile(state, signature, path) {
|
|
105643
105630
|
state.fileInfos.get(path).signature = signature;
|
|
105644
|
-
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(path);
|
|
105631
|
+
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path);
|
|
105645
105632
|
}
|
|
105646
105633
|
BuilderState2.updateSignatureOfFile = updateSignatureOfFile;
|
|
105647
105634
|
function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, computeHash, getCanonicalFileName, useFileVersionAsSignature = state.useFileVersionAsSignature) {
|
|
@@ -105676,7 +105663,7 @@ ${lanes.join("\n")}
|
|
|
105676
105663
|
if (latestSignature === void 0) {
|
|
105677
105664
|
latestSignature = sourceFile.version;
|
|
105678
105665
|
if (state.exportedModulesMap && latestSignature !== prevSignature) {
|
|
105679
|
-
(state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105666
|
+
(state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105680
105667
|
const references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : void 0;
|
|
105681
105668
|
if (references) {
|
|
105682
105669
|
state.exportedModulesMap.set(sourceFile.resolvedPath, references);
|
|
@@ -105685,8 +105672,8 @@ ${lanes.join("\n")}
|
|
|
105685
105672
|
}
|
|
105686
105673
|
}
|
|
105687
105674
|
}
|
|
105688
|
-
(state.oldSignatures || (state.oldSignatures = new Map())).set(sourceFile.resolvedPath, prevSignature || false);
|
|
105689
|
-
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = new Set())).add(sourceFile.resolvedPath);
|
|
105675
|
+
(state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false);
|
|
105676
|
+
(state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath);
|
|
105690
105677
|
info.signature = latestSignature;
|
|
105691
105678
|
return latestSignature !== prevSignature;
|
|
105692
105679
|
}
|
|
@@ -105694,7 +105681,7 @@ ${lanes.join("\n")}
|
|
|
105694
105681
|
function updateExportedModules(state, sourceFile, exportedModulesFromDeclarationEmit) {
|
|
105695
105682
|
if (!state.exportedModulesMap)
|
|
105696
105683
|
return;
|
|
105697
|
-
(state.oldExportedModulesMap || (state.oldExportedModulesMap = new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105684
|
+
(state.oldExportedModulesMap || (state.oldExportedModulesMap = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, state.exportedModulesMap.getValues(sourceFile.resolvedPath) || false);
|
|
105698
105685
|
if (!exportedModulesFromDeclarationEmit) {
|
|
105699
105686
|
state.exportedModulesMap.deleteKey(sourceFile.resolvedPath);
|
|
105700
105687
|
return;
|
|
@@ -105709,7 +105696,7 @@ ${lanes.join("\n")}
|
|
|
105709
105696
|
function addExportedModule(exportedModulePaths) {
|
|
105710
105697
|
if (exportedModulePaths == null ? void 0 : exportedModulePaths.length) {
|
|
105711
105698
|
if (!exportedModules) {
|
|
105712
|
-
exportedModules = new Set();
|
|
105699
|
+
exportedModules = /* @__PURE__ */ new Set();
|
|
105713
105700
|
}
|
|
105714
105701
|
exportedModulePaths.forEach((path) => exportedModules.add(path));
|
|
105715
105702
|
}
|
|
@@ -105724,7 +105711,7 @@ ${lanes.join("\n")}
|
|
|
105724
105711
|
if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {
|
|
105725
105712
|
return getAllFileNames(state, programOfThisState);
|
|
105726
105713
|
}
|
|
105727
|
-
const seenMap = new Set();
|
|
105714
|
+
const seenMap = /* @__PURE__ */ new Set();
|
|
105728
105715
|
const queue = [sourceFile.resolvedPath];
|
|
105729
105716
|
while (queue.length) {
|
|
105730
105717
|
const path = queue.pop();
|
|
@@ -105807,7 +105794,7 @@ ${lanes.join("\n")}
|
|
|
105807
105794
|
if (compilerOptions && (compilerOptions.isolatedModules || outFile(compilerOptions))) {
|
|
105808
105795
|
return [sourceFileWithUpdatedShape];
|
|
105809
105796
|
}
|
|
105810
|
-
const seenFileNamesMap = new Map();
|
|
105797
|
+
const seenFileNamesMap = /* @__PURE__ */ new Map();
|
|
105811
105798
|
seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);
|
|
105812
105799
|
const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);
|
|
105813
105800
|
while (queue.length > 0) {
|
|
@@ -105877,11 +105864,11 @@ ${lanes.join("\n")}
|
|
|
105877
105864
|
state.compilerOptions = compilerOptions;
|
|
105878
105865
|
const outFilePath = outFile(compilerOptions);
|
|
105879
105866
|
if (!outFilePath) {
|
|
105880
|
-
state.semanticDiagnosticsPerFile = new Map();
|
|
105867
|
+
state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map();
|
|
105881
105868
|
} else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === outFile(oldState == null ? void 0 : oldState.compilerOptions)) {
|
|
105882
105869
|
state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature);
|
|
105883
105870
|
}
|
|
105884
|
-
state.changedFilesSet = new Set();
|
|
105871
|
+
state.changedFilesSet = /* @__PURE__ */ new Set();
|
|
105885
105872
|
state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0;
|
|
105886
105873
|
const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState);
|
|
105887
105874
|
const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0;
|
|
@@ -105891,7 +105878,7 @@ ${lanes.join("\n")}
|
|
|
105891
105878
|
(_a2 = oldState.changedFilesSet) == null ? void 0 : _a2.forEach((value) => state.changedFilesSet.add(value));
|
|
105892
105879
|
if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) {
|
|
105893
105880
|
state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit);
|
|
105894
|
-
state.seenAffectedFiles = new Set();
|
|
105881
|
+
state.seenAffectedFiles = /* @__PURE__ */ new Set();
|
|
105895
105882
|
}
|
|
105896
105883
|
state.programEmitPending = oldState.programEmitPending;
|
|
105897
105884
|
} else {
|
|
@@ -105917,7 +105904,7 @@ ${lanes.join("\n")}
|
|
|
105917
105904
|
if (diagnostics) {
|
|
105918
105905
|
state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);
|
|
105919
105906
|
if (!state.semanticDiagnosticsFromOldState) {
|
|
105920
|
-
state.semanticDiagnosticsFromOldState = new Set();
|
|
105907
|
+
state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set();
|
|
105921
105908
|
}
|
|
105922
105909
|
state.semanticDiagnosticsFromOldState.add(sourceFilePath);
|
|
105923
105910
|
}
|
|
@@ -105925,11 +105912,18 @@ ${lanes.join("\n")}
|
|
|
105925
105912
|
if (canCopyEmitSignatures) {
|
|
105926
105913
|
const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath);
|
|
105927
105914
|
if (oldEmitSignature) {
|
|
105928
|
-
((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
|
|
105915
|
+
((_a3 = state.emitSignatures) != null ? _a3 : state.emitSignatures = /* @__PURE__ */ new Map()).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature));
|
|
105929
105916
|
}
|
|
105930
105917
|
}
|
|
105931
105918
|
});
|
|
105932
|
-
if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) =>
|
|
105919
|
+
if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => {
|
|
105920
|
+
if (state.fileInfos.has(sourceFilePath))
|
|
105921
|
+
return false;
|
|
105922
|
+
if (outFilePath || info.affectsGlobalScope)
|
|
105923
|
+
return true;
|
|
105924
|
+
state.buildInfoEmitPending = true;
|
|
105925
|
+
return false;
|
|
105926
|
+
})) {
|
|
105933
105927
|
BuilderState.getAllFilesExcludingDefaultLibraryFile(state, newProgram, void 0).forEach((file) => addFileToChangeSet(state, file.resolvedPath));
|
|
105934
105928
|
} else if (oldCompilerOptions) {
|
|
105935
105929
|
const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions);
|
|
@@ -105945,7 +105939,7 @@ ${lanes.join("\n")}
|
|
|
105945
105939
|
}
|
|
105946
105940
|
});
|
|
105947
105941
|
Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size);
|
|
105948
|
-
state.seenAffectedFiles = state.seenAffectedFiles || new Set();
|
|
105942
|
+
state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set();
|
|
105949
105943
|
state.buildInfoEmitPending = true;
|
|
105950
105944
|
} else {
|
|
105951
105945
|
state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind;
|
|
@@ -106076,7 +106070,7 @@ ${lanes.join("\n")}
|
|
|
106076
106070
|
state.currentChangedFilePath = nextKey.value;
|
|
106077
106071
|
state.affectedFilesIndex = 0;
|
|
106078
106072
|
if (!state.seenAffectedFiles)
|
|
106079
|
-
state.seenAffectedFiles = new Set();
|
|
106073
|
+
state.seenAffectedFiles = /* @__PURE__ */ new Set();
|
|
106080
106074
|
}
|
|
106081
106075
|
}
|
|
106082
106076
|
function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) {
|
|
@@ -106204,7 +106198,7 @@ ${lanes.join("\n")}
|
|
|
106204
106198
|
if (!isChangedSignature(state, affectedFile.resolvedPath))
|
|
106205
106199
|
return;
|
|
106206
106200
|
if (state.compilerOptions.isolatedModules) {
|
|
106207
|
-
const seenFileNamesMap = new Map();
|
|
106201
|
+
const seenFileNamesMap = /* @__PURE__ */ new Map();
|
|
106208
106202
|
seenFileNamesMap.set(affectedFile.resolvedPath, true);
|
|
106209
106203
|
const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath);
|
|
106210
106204
|
while (queue.length > 0) {
|
|
@@ -106221,7 +106215,7 @@ ${lanes.join("\n")}
|
|
|
106221
106215
|
}
|
|
106222
106216
|
}
|
|
106223
106217
|
}
|
|
106224
|
-
const seenFileAndExportsOfFile = new Set();
|
|
106218
|
+
const seenFileAndExportsOfFile = /* @__PURE__ */ new Set();
|
|
106225
106219
|
(_a2 = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _a2.forEach((exportedFromPath) => {
|
|
106226
106220
|
if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, cancellationToken, computeHash, getCanonicalFileName, host))
|
|
106227
106221
|
return true;
|
|
@@ -106299,7 +106293,7 @@ ${lanes.join("\n")}
|
|
|
106299
106293
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
106300
106294
|
const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
|
|
106301
106295
|
const fileNames = [];
|
|
106302
|
-
const fileNameToFileId = new Map();
|
|
106296
|
+
const fileNameToFileId = /* @__PURE__ */ new Map();
|
|
106303
106297
|
if (outFile(state.compilerOptions)) {
|
|
106304
106298
|
const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
|
|
106305
106299
|
toFileId(key);
|
|
@@ -106376,7 +106370,7 @@ ${lanes.join("\n")}
|
|
|
106376
106370
|
let affectedFilesPendingEmit;
|
|
106377
106371
|
if ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.size) {
|
|
106378
106372
|
const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions);
|
|
106379
|
-
const seenFiles = new Set();
|
|
106373
|
+
const seenFiles = /* @__PURE__ */ new Set();
|
|
106380
106374
|
for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) {
|
|
106381
106375
|
if (tryAddToSet(seenFiles, path)) {
|
|
106382
106376
|
const file = state.program.getSourceFileByPath(path);
|
|
@@ -106429,7 +106423,7 @@ ${lanes.join("\n")}
|
|
|
106429
106423
|
let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key);
|
|
106430
106424
|
if (fileIdListId === void 0) {
|
|
106431
106425
|
(fileIdsList || (fileIdsList = [])).push(fileIds);
|
|
106432
|
-
(fileNamesToFileIdListId || (fileNamesToFileIdListId = new Map())).set(key, fileIdListId = fileIdsList.length);
|
|
106426
|
+
(fileNamesToFileIdListId || (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length);
|
|
106433
106427
|
}
|
|
106434
106428
|
return fileIdListId;
|
|
106435
106429
|
}
|
|
@@ -106635,11 +106629,11 @@ ${lanes.join("\n")}
|
|
|
106635
106629
|
state.affectedFilesIndex++;
|
|
106636
106630
|
state.buildInfoEmitPending = true;
|
|
106637
106631
|
const existing = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedSourceFile.resolvedPath)) || 0 /* None */;
|
|
106638
|
-
((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
|
|
106632
|
+
((_b = state.seenEmittedFiles) != null ? _b : state.seenEmittedFiles = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, emitKind | existing);
|
|
106639
106633
|
const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind;
|
|
106640
106634
|
const pendingKind = getPendingEmitKind(existingPending, emitKind | existing);
|
|
106641
106635
|
if (pendingKind)
|
|
106642
|
-
((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
|
|
106636
|
+
((_d = state.affectedFilesPendingEmit) != null ? _d : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedSourceFile.resolvedPath, pendingKind);
|
|
106643
106637
|
else
|
|
106644
106638
|
(_e = state.affectedFilesPendingEmit) == null ? void 0 : _e.delete(affectedSourceFile.resolvedPath);
|
|
106645
106639
|
} else {
|
|
@@ -106671,13 +106665,13 @@ ${lanes.join("\n")}
|
|
|
106671
106665
|
emitSignature = signature;
|
|
106672
106666
|
if (signature !== file.version) {
|
|
106673
106667
|
if (host.storeFilesChangingSignatureDuringEmit)
|
|
106674
|
-
((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = new Set()).add(file.resolvedPath);
|
|
106668
|
+
((_b = state.filesChangingSignature) != null ? _b : state.filesChangingSignature = /* @__PURE__ */ new Set()).add(file.resolvedPath);
|
|
106675
106669
|
if (state.exportedModulesMap)
|
|
106676
106670
|
BuilderState.updateExportedModules(state, file, file.exportedModulesFromDeclarationEmit);
|
|
106677
106671
|
if (state.affectedFiles) {
|
|
106678
106672
|
const existing = (_c = state.oldSignatures) == null ? void 0 : _c.get(file.resolvedPath);
|
|
106679
106673
|
if (existing === void 0)
|
|
106680
|
-
((_d = state.oldSignatures) != null ? _d : state.oldSignatures = new Map()).set(file.resolvedPath, info.signature || false);
|
|
106674
|
+
((_d = state.oldSignatures) != null ? _d : state.oldSignatures = /* @__PURE__ */ new Map()).set(file.resolvedPath, info.signature || false);
|
|
106681
106675
|
info.signature = signature;
|
|
106682
106676
|
} else {
|
|
106683
106677
|
info.signature = signature;
|
|
@@ -106691,7 +106685,7 @@ ${lanes.join("\n")}
|
|
|
106691
106685
|
emitSignature = handleNewSignature((_f = state.emitSignatures) == null ? void 0 : _f.get(filePath), emitSignature);
|
|
106692
106686
|
if (!emitSignature)
|
|
106693
106687
|
return;
|
|
106694
|
-
((_g = state.emitSignatures) != null ? _g : state.emitSignatures = new Map()).set(filePath, emitSignature);
|
|
106688
|
+
((_g = state.emitSignatures) != null ? _g : state.emitSignatures = /* @__PURE__ */ new Map()).set(filePath, emitSignature);
|
|
106695
106689
|
}
|
|
106696
106690
|
} else if (state.compilerOptions.composite) {
|
|
106697
106691
|
const newSignature = handleNewSignature(state.outSignature, void 0);
|
|
@@ -106808,7 +106802,7 @@ ${lanes.join("\n")}
|
|
|
106808
106802
|
function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) {
|
|
106809
106803
|
var _a2, _b;
|
|
106810
106804
|
const existingKind = ((_a2 = state.affectedFilesPendingEmit) == null ? void 0 : _a2.get(affectedFilePendingEmit)) || 0 /* None */;
|
|
106811
|
-
((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = new Map()).set(affectedFilePendingEmit, existingKind | kind);
|
|
106805
|
+
((_b = state.affectedFilesPendingEmit) != null ? _b : state.affectedFilesPendingEmit = /* @__PURE__ */ new Map()).set(affectedFilePendingEmit, existingKind | kind);
|
|
106812
106806
|
}
|
|
106813
106807
|
function toBuilderStateFileInfoForMultiEmit(fileInfo) {
|
|
106814
106808
|
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 };
|
|
@@ -106829,7 +106823,7 @@ ${lanes.join("\n")}
|
|
|
106829
106823
|
let filePathsSetList;
|
|
106830
106824
|
const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0;
|
|
106831
106825
|
if (isProgramBundleEmitBuildInfo(program)) {
|
|
106832
|
-
const fileInfos = new Map();
|
|
106826
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
106833
106827
|
program.fileInfos.forEach((fileInfo, index) => {
|
|
106834
106828
|
const path = toFilePath(index + 1);
|
|
106835
106829
|
fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo);
|
|
@@ -106844,8 +106838,8 @@ ${lanes.join("\n")}
|
|
|
106844
106838
|
};
|
|
106845
106839
|
} else {
|
|
106846
106840
|
filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath)));
|
|
106847
|
-
const fileInfos = new Map();
|
|
106848
|
-
const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? new Map() : void 0;
|
|
106841
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
106842
|
+
const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !outFile(program.options) ? /* @__PURE__ */ new Map() : void 0;
|
|
106849
106843
|
program.fileInfos.forEach((fileInfo, index) => {
|
|
106850
106844
|
const path = toFilePath(index + 1);
|
|
106851
106845
|
const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo);
|
|
@@ -106929,7 +106923,7 @@ ${lanes.join("\n")}
|
|
|
106929
106923
|
function getBuildInfoFileVersionMap(program, buildInfoPath, host) {
|
|
106930
106924
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
|
|
106931
106925
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
|
|
106932
|
-
const fileInfos = new Map();
|
|
106926
|
+
const fileInfos = /* @__PURE__ */ new Map();
|
|
106933
106927
|
program.fileInfos.forEach((fileInfo, index) => {
|
|
106934
106928
|
const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
|
|
106935
106929
|
const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
|
|
@@ -107021,7 +107015,7 @@ ${lanes.join("\n")}
|
|
|
107021
107015
|
const resolutionsWithFailedLookups = [];
|
|
107022
107016
|
const resolutionsWithOnlyAffectingLocations = [];
|
|
107023
107017
|
const resolvedFileToResolution = createMultiMap();
|
|
107024
|
-
const impliedFormatPackageJsons = new Map();
|
|
107018
|
+
const impliedFormatPackageJsons = /* @__PURE__ */ new Map();
|
|
107025
107019
|
let hasChangedAutomaticTypeDirectiveNames = false;
|
|
107026
107020
|
let affectingPathChecksForFile;
|
|
107027
107021
|
let affectingPathChecks;
|
|
@@ -107030,7 +107024,7 @@ ${lanes.join("\n")}
|
|
|
107030
107024
|
let isInDirectoryChecks;
|
|
107031
107025
|
const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory());
|
|
107032
107026
|
const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost();
|
|
107033
|
-
const resolvedModuleNames = new Map();
|
|
107027
|
+
const resolvedModuleNames = /* @__PURE__ */ new Map();
|
|
107034
107028
|
const perDirectoryResolvedModuleNames = createCacheWithRedirects();
|
|
107035
107029
|
const nonRelativeModuleNameCache = createCacheWithRedirects();
|
|
107036
107030
|
const moduleResolutionCache = createModuleResolutionCache(
|
|
@@ -107040,7 +107034,7 @@ ${lanes.join("\n")}
|
|
|
107040
107034
|
perDirectoryResolvedModuleNames,
|
|
107041
107035
|
nonRelativeModuleNameCache
|
|
107042
107036
|
);
|
|
107043
|
-
const resolvedTypeReferenceDirectives = new Map();
|
|
107037
|
+
const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map();
|
|
107044
107038
|
const perDirectoryResolvedTypeReferenceDirectives = createCacheWithRedirects();
|
|
107045
107039
|
const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache(
|
|
107046
107040
|
getCurrentDirectory(),
|
|
@@ -107050,13 +107044,13 @@ ${lanes.join("\n")}
|
|
|
107050
107044
|
perDirectoryResolvedTypeReferenceDirectives
|
|
107051
107045
|
);
|
|
107052
107046
|
const failedLookupDefaultExtensions = [".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */, ".json" /* Json */];
|
|
107053
|
-
const customFailedLookupPaths = new Map();
|
|
107054
|
-
const directoryWatchesOfFailedLookups = new Map();
|
|
107055
|
-
const fileWatchesOfAffectingLocations = new Map();
|
|
107047
|
+
const customFailedLookupPaths = /* @__PURE__ */ new Map();
|
|
107048
|
+
const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map();
|
|
107049
|
+
const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map();
|
|
107056
107050
|
const rootDir = rootDirForResolution && removeTrailingDirectorySeparator(getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()));
|
|
107057
107051
|
const rootPath = rootDir && resolutionHost.toPath(rootDir);
|
|
107058
107052
|
const rootSplitLength = rootPath !== void 0 ? rootPath.split(directorySeparator).length : 0;
|
|
107059
|
-
const typeRootsWatches = new Map();
|
|
107053
|
+
const typeRootsWatches = /* @__PURE__ */ new Map();
|
|
107060
107054
|
return {
|
|
107061
107055
|
getModuleResolutionCache: () => moduleResolutionCache,
|
|
107062
107056
|
startRecordingFilesWithChangedResolutions,
|
|
@@ -107509,16 +107503,16 @@ ${lanes.join("\n")}
|
|
|
107509
107503
|
}
|
|
107510
107504
|
}
|
|
107511
107505
|
}
|
|
107512
|
-
const paths = new Set();
|
|
107506
|
+
const paths = /* @__PURE__ */ new Set();
|
|
107513
107507
|
paths.add(locationToWatch);
|
|
107514
107508
|
let actualWatcher = canWatchDirectoryOrFile(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => {
|
|
107515
107509
|
cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind);
|
|
107516
107510
|
const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap();
|
|
107517
107511
|
paths.forEach((path) => {
|
|
107518
107512
|
if (watcher.resolutions)
|
|
107519
|
-
(affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = new Set()).add(path);
|
|
107513
|
+
(affectingPathChecks != null ? affectingPathChecks : affectingPathChecks = /* @__PURE__ */ new Set()).add(path);
|
|
107520
107514
|
if (watcher.files)
|
|
107521
|
-
(affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = new Set()).add(path);
|
|
107515
|
+
(affectingPathChecksForFile != null ? affectingPathChecksForFile : affectingPathChecksForFile = /* @__PURE__ */ new Set()).add(path);
|
|
107522
107516
|
packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path));
|
|
107523
107517
|
});
|
|
107524
107518
|
resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
|
|
@@ -107646,7 +107640,7 @@ ${lanes.join("\n")}
|
|
|
107646
107640
|
continue;
|
|
107647
107641
|
resolution.isInvalidated = invalidated = true;
|
|
107648
107642
|
for (const containingFilePath of Debug.checkDefined(resolution.files)) {
|
|
107649
|
-
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(containingFilePath);
|
|
107643
|
+
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(containingFilePath);
|
|
107650
107644
|
hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile);
|
|
107651
107645
|
}
|
|
107652
107646
|
}
|
|
@@ -107665,7 +107659,7 @@ ${lanes.join("\n")}
|
|
|
107665
107659
|
}
|
|
107666
107660
|
function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) {
|
|
107667
107661
|
if (isCreatingWatchedDirectory) {
|
|
107668
|
-
(isInDirectoryChecks || (isInDirectoryChecks = new Set())).add(fileOrDirectoryPath);
|
|
107662
|
+
(isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107669
107663
|
} else {
|
|
107670
107664
|
const updatedPath = removeIgnoredPath(fileOrDirectoryPath);
|
|
107671
107665
|
if (!updatedPath)
|
|
@@ -107676,8 +107670,8 @@ ${lanes.join("\n")}
|
|
|
107676
107670
|
}
|
|
107677
107671
|
const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath);
|
|
107678
107672
|
if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) {
|
|
107679
|
-
(failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
|
|
107680
|
-
(startsWithPathChecks || (startsWithPathChecks = new Set())).add(fileOrDirectoryPath);
|
|
107673
|
+
(failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107674
|
+
(startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107681
107675
|
} else {
|
|
107682
107676
|
if (!isPathWithDefaultFailedLookupExtension(fileOrDirectoryPath) && !customFailedLookupPaths.has(fileOrDirectoryPath)) {
|
|
107683
107677
|
return false;
|
|
@@ -107685,10 +107679,10 @@ ${lanes.join("\n")}
|
|
|
107685
107679
|
if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {
|
|
107686
107680
|
return false;
|
|
107687
107681
|
}
|
|
107688
|
-
(failedLookupChecks || (failedLookupChecks = new Set())).add(fileOrDirectoryPath);
|
|
107682
|
+
(failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath);
|
|
107689
107683
|
const packagePath = parseNodeModuleFromPath(fileOrDirectoryPath);
|
|
107690
107684
|
if (packagePath)
|
|
107691
|
-
(startsWithPathChecks || (startsWithPathChecks = new Set())).add(packagePath);
|
|
107685
|
+
(startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath);
|
|
107692
107686
|
}
|
|
107693
107687
|
}
|
|
107694
107688
|
resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();
|
|
@@ -107699,7 +107693,7 @@ ${lanes.join("\n")}
|
|
|
107699
107693
|
if (affectingPathChecksForFile) {
|
|
107700
107694
|
(_a2 = resolutionHost.getCurrentProgram()) == null ? void 0 : _a2.getSourceFiles().forEach((f) => {
|
|
107701
107695
|
if (some(f.packageJsonLocations, (location2) => affectingPathChecksForFile.has(location2))) {
|
|
107702
|
-
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = new Set()).add(f.path);
|
|
107696
|
+
(filesWithInvalidatedResolutions != null ? filesWithInvalidatedResolutions : filesWithInvalidatedResolutions = /* @__PURE__ */ new Set()).add(f.path);
|
|
107703
107697
|
invalidated = true;
|
|
107704
107698
|
}
|
|
107705
107699
|
});
|
|
@@ -108460,7 +108454,7 @@ ${lanes.join("\n")}
|
|
|
108460
108454
|
let sharedExtendedConfigFileWatchers;
|
|
108461
108455
|
let extendedConfigCache = host.extendedConfigCache;
|
|
108462
108456
|
let reportFileChangeDetectedOnCreateProgram = false;
|
|
108463
|
-
const sourceFilesCache = new Map();
|
|
108457
|
+
const sourceFilesCache = /* @__PURE__ */ new Map();
|
|
108464
108458
|
let missingFilePathsRequestedForRelease;
|
|
108465
108459
|
let hasChangedCompilerOptions = false;
|
|
108466
108460
|
const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
|
|
@@ -108635,7 +108629,7 @@ ${lanes.join("\n")}
|
|
|
108635
108629
|
const oldProgram = getCurrentProgram();
|
|
108636
108630
|
builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);
|
|
108637
108631
|
resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram);
|
|
108638
|
-
updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = new Map()), watchMissingFilePath);
|
|
108632
|
+
updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), watchMissingFilePath);
|
|
108639
108633
|
if (needsUpdateInTypeRootWatch) {
|
|
108640
108634
|
resolutionCache.updateTypeRootsWatch();
|
|
108641
108635
|
}
|
|
@@ -108827,7 +108821,7 @@ ${lanes.join("\n")}
|
|
|
108827
108821
|
configFileName,
|
|
108828
108822
|
optionsToExtendForConfigFile,
|
|
108829
108823
|
parseConfigFileHost,
|
|
108830
|
-
extendedConfigCache || (extendedConfigCache = new Map()),
|
|
108824
|
+
extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
|
|
108831
108825
|
watchOptionsToExtend,
|
|
108832
108826
|
extraFileExtensions
|
|
108833
108827
|
));
|
|
@@ -108867,7 +108861,7 @@ ${lanes.join("\n")}
|
|
|
108867
108861
|
config.parsedCommandLine = parsedCommandLine;
|
|
108868
108862
|
config.reloadLevel = void 0;
|
|
108869
108863
|
} else {
|
|
108870
|
-
(parsedConfigs || (parsedConfigs = new Map())).set(configPath, config = { parsedCommandLine });
|
|
108864
|
+
(parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine });
|
|
108871
108865
|
}
|
|
108872
108866
|
watchReferencedProject(configFileName2, configPath, config);
|
|
108873
108867
|
return parsedCommandLine;
|
|
@@ -108879,7 +108873,7 @@ ${lanes.join("\n")}
|
|
|
108879
108873
|
configFileName2,
|
|
108880
108874
|
void 0,
|
|
108881
108875
|
parseConfigFileHost,
|
|
108882
|
-
extendedConfigCache || (extendedConfigCache = new Map()),
|
|
108876
|
+
extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()),
|
|
108883
108877
|
watchOptionsToExtend
|
|
108884
108878
|
);
|
|
108885
108879
|
parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic;
|
|
@@ -108928,7 +108922,7 @@ ${lanes.join("\n")}
|
|
|
108928
108922
|
function watchConfigFileWildCardDirectories() {
|
|
108929
108923
|
if (wildcardDirectories) {
|
|
108930
108924
|
updateWatchingWildcardDirectories(
|
|
108931
|
-
watchedWildcardDirectories || (watchedWildcardDirectories = new Map()),
|
|
108925
|
+
watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()),
|
|
108932
108926
|
new Map(getEntries(wildcardDirectories)),
|
|
108933
108927
|
watchWildcardDirectory
|
|
108934
108928
|
);
|
|
@@ -108974,7 +108968,7 @@ ${lanes.join("\n")}
|
|
|
108974
108968
|
updateSharedExtendedConfigFileWatcher(
|
|
108975
108969
|
forProjectPath,
|
|
108976
108970
|
options,
|
|
108977
|
-
sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = new Map()),
|
|
108971
|
+
sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()),
|
|
108978
108972
|
(extendedConfigFileName, extendedConfigFilePath) => watchFile2(
|
|
108979
108973
|
extendedConfigFileName,
|
|
108980
108974
|
(_fileName, eventKind) => {
|
|
@@ -109022,7 +109016,7 @@ ${lanes.join("\n")}
|
|
|
109022
109016
|
));
|
|
109023
109017
|
if ((_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories) {
|
|
109024
109018
|
updateWatchingWildcardDirectories(
|
|
109025
|
-
commandLine.watchedDirectories || (commandLine.watchedDirectories = new Map()),
|
|
109019
|
+
commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()),
|
|
109026
109020
|
new Map(getEntries((_c = commandLine.parsedCommandLine) == null ? void 0 : _c.wildcardDirectories)),
|
|
109027
109021
|
(directory, flags) => {
|
|
109028
109022
|
var _a3;
|
|
@@ -109115,7 +109109,7 @@ ${lanes.join("\n")}
|
|
|
109115
109109
|
return existingValue || newValue;
|
|
109116
109110
|
}
|
|
109117
109111
|
function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) {
|
|
109118
|
-
return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => new Map());
|
|
109112
|
+
return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map());
|
|
109119
109113
|
}
|
|
109120
109114
|
function getCurrentTime(host) {
|
|
109121
109115
|
return host.now ? host.now() : new Date();
|
|
@@ -109204,16 +109198,16 @@ ${lanes.join("\n")}
|
|
|
109204
109198
|
baseCompilerOptions,
|
|
109205
109199
|
rootNames,
|
|
109206
109200
|
baseWatchOptions,
|
|
109207
|
-
resolvedConfigFilePaths: new Map(),
|
|
109208
|
-
configFileCache: new Map(),
|
|
109209
|
-
projectStatus: new Map(),
|
|
109210
|
-
extendedConfigCache: new Map(),
|
|
109211
|
-
buildInfoCache: new Map(),
|
|
109212
|
-
outputTimeStamps: new Map(),
|
|
109213
|
-
builderPrograms: new Map(),
|
|
109214
|
-
diagnostics: new Map(),
|
|
109215
|
-
projectPendingBuild: new Map(),
|
|
109216
|
-
projectErrorsReported: new Map(),
|
|
109201
|
+
resolvedConfigFilePaths: /* @__PURE__ */ new Map(),
|
|
109202
|
+
configFileCache: /* @__PURE__ */ new Map(),
|
|
109203
|
+
projectStatus: /* @__PURE__ */ new Map(),
|
|
109204
|
+
extendedConfigCache: /* @__PURE__ */ new Map(),
|
|
109205
|
+
buildInfoCache: /* @__PURE__ */ new Map(),
|
|
109206
|
+
outputTimeStamps: /* @__PURE__ */ new Map(),
|
|
109207
|
+
builderPrograms: /* @__PURE__ */ new Map(),
|
|
109208
|
+
diagnostics: /* @__PURE__ */ new Map(),
|
|
109209
|
+
projectPendingBuild: /* @__PURE__ */ new Map(),
|
|
109210
|
+
projectErrorsReported: /* @__PURE__ */ new Map(),
|
|
109217
109211
|
compilerHost,
|
|
109218
109212
|
moduleResolutionCache,
|
|
109219
109213
|
typeReferenceDirectiveResolutionCache,
|
|
@@ -109225,13 +109219,13 @@ ${lanes.join("\n")}
|
|
|
109225
109219
|
needsSummary: true,
|
|
109226
109220
|
watchAllProjectsPending: watch,
|
|
109227
109221
|
watch,
|
|
109228
|
-
allWatchedWildcardDirectories: new Map(),
|
|
109229
|
-
allWatchedInputFiles: new Map(),
|
|
109230
|
-
allWatchedConfigFiles: new Map(),
|
|
109231
|
-
allWatchedExtendedConfigFiles: new Map(),
|
|
109232
|
-
allWatchedPackageJsonFiles: new Map(),
|
|
109233
|
-
filesWatched: new Map(),
|
|
109234
|
-
lastCachedPackageJsonLookups: new Map(),
|
|
109222
|
+
allWatchedWildcardDirectories: /* @__PURE__ */ new Map(),
|
|
109223
|
+
allWatchedInputFiles: /* @__PURE__ */ new Map(),
|
|
109224
|
+
allWatchedConfigFiles: /* @__PURE__ */ new Map(),
|
|
109225
|
+
allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(),
|
|
109226
|
+
allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(),
|
|
109227
|
+
filesWatched: /* @__PURE__ */ new Map(),
|
|
109228
|
+
lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(),
|
|
109235
109229
|
timerToBuildInvalidatedProject: void 0,
|
|
109236
109230
|
reportFileChangeDetected: false,
|
|
109237
109231
|
watchFile: watchFile2,
|
|
@@ -109287,8 +109281,8 @@ ${lanes.join("\n")}
|
|
|
109287
109281
|
return resolveConfigFileProjectName(resolvePath(state.currentDirectory, name));
|
|
109288
109282
|
}
|
|
109289
109283
|
function createBuildOrder(state, roots) {
|
|
109290
|
-
const temporaryMarks = new Map();
|
|
109291
|
-
const permanentMarks = new Map();
|
|
109284
|
+
const temporaryMarks = /* @__PURE__ */ new Map();
|
|
109285
|
+
const permanentMarks = /* @__PURE__ */ new Map();
|
|
109292
109286
|
const circularityReportStack = [];
|
|
109293
109287
|
let buildOrder;
|
|
109294
109288
|
let circularDiagnostics;
|
|
@@ -109707,7 +109701,7 @@ ${lanes.join("\n")}
|
|
|
109707
109701
|
const { host, compilerHost } = state;
|
|
109708
109702
|
const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */;
|
|
109709
109703
|
const emitterDiagnostics = createDiagnosticCollection();
|
|
109710
|
-
const emittedOutputs = new Map();
|
|
109704
|
+
const emittedOutputs = /* @__PURE__ */ new Map();
|
|
109711
109705
|
const options = program.getCompilerOptions();
|
|
109712
109706
|
const isIncremental = isIncrementalCompilation(options);
|
|
109713
109707
|
let outputTimeStampMap;
|
|
@@ -109822,7 +109816,7 @@ ${lanes.join("\n")}
|
|
|
109822
109816
|
}
|
|
109823
109817
|
Debug.assert(!!outputFiles.length);
|
|
109824
109818
|
const emitterDiagnostics = createDiagnosticCollection();
|
|
109825
|
-
const emittedOutputs = new Map();
|
|
109819
|
+
const emittedOutputs = /* @__PURE__ */ new Map();
|
|
109826
109820
|
let resultFlags = 2 /* DeclarationOutputUnchanged */;
|
|
109827
109821
|
const existingBuildInfo = state.buildInfoCache.get(projectPath).buildInfo || void 0;
|
|
109828
109822
|
outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => {
|
|
@@ -110094,7 +110088,7 @@ ${lanes.join("\n")}
|
|
|
110094
110088
|
return void 0;
|
|
110095
110089
|
let result = state.outputTimeStamps.get(resolvedConfigFilePath);
|
|
110096
110090
|
if (!result)
|
|
110097
|
-
state.outputTimeStamps.set(resolvedConfigFilePath, result = new Map());
|
|
110091
|
+
state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map());
|
|
110098
110092
|
return result;
|
|
110099
110093
|
}
|
|
110100
110094
|
function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) {
|
|
@@ -110392,7 +110386,7 @@ ${lanes.join("\n")}
|
|
|
110392
110386
|
const { host } = state;
|
|
110393
110387
|
const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());
|
|
110394
110388
|
const outputTimeStampMap = getOutputTimeStampMap(state, projectPath);
|
|
110395
|
-
const modifiedOutputs = outputTimeStampMap ? new Set() : void 0;
|
|
110389
|
+
const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0;
|
|
110396
110390
|
if (!skipOutputs || outputs.length !== skipOutputs.size) {
|
|
110397
110391
|
let reportVerbose = !!state.options.verbose;
|
|
110398
110392
|
for (const file of outputs) {
|
|
@@ -111061,7 +111055,7 @@ ${lanes.join("\n")}
|
|
|
111061
111055
|
if (!typeAcquisition || !typeAcquisition.enable) {
|
|
111062
111056
|
return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };
|
|
111063
111057
|
}
|
|
111064
|
-
const inferredTypings = new Map();
|
|
111058
|
+
const inferredTypings = /* @__PURE__ */ new Map();
|
|
111065
111059
|
fileNames = mapDefined(fileNames, (fileName) => {
|
|
111066
111060
|
const path = normalizePath(fileName);
|
|
111067
111061
|
if (hasJSFileExtension(path)) {
|
|
@@ -111459,7 +111453,6 @@ ${lanes.join("\n")}
|
|
|
111459
111453
|
LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
|
|
111460
111454
|
ListFormat: () => ListFormat,
|
|
111461
111455
|
LogLevel: () => LogLevel,
|
|
111462
|
-
Map: () => Map,
|
|
111463
111456
|
MemberOverrideStatus: () => MemberOverrideStatus,
|
|
111464
111457
|
ModifierFlags: () => ModifierFlags,
|
|
111465
111458
|
ModuleDetectionKind: () => ModuleDetectionKind,
|
|
@@ -111502,7 +111495,6 @@ ${lanes.join("\n")}
|
|
|
111502
111495
|
SemanticClassificationFormat: () => SemanticClassificationFormat,
|
|
111503
111496
|
SemanticMeaning: () => SemanticMeaning,
|
|
111504
111497
|
SemicolonPreference: () => SemicolonPreference,
|
|
111505
|
-
Set: () => Set,
|
|
111506
111498
|
SignatureCheckMode: () => SignatureCheckMode,
|
|
111507
111499
|
SignatureFlags: () => SignatureFlags,
|
|
111508
111500
|
SignatureHelp: () => ts_SignatureHelp_exports,
|
|
@@ -116435,7 +116427,7 @@ ${lanes.join("\n")}
|
|
|
116435
116427
|
if (!dependencies) {
|
|
116436
116428
|
continue;
|
|
116437
116429
|
}
|
|
116438
|
-
const dependencyMap = new Map();
|
|
116430
|
+
const dependencyMap = /* @__PURE__ */ new Map();
|
|
116439
116431
|
for (const packageName in dependencies) {
|
|
116440
116432
|
dependencyMap.set(packageName, dependencies[packageName]);
|
|
116441
116433
|
}
|
|
@@ -116733,8 +116725,8 @@ ${lanes.join("\n")}
|
|
|
116733
116725
|
function createCacheableExportInfoMap(host) {
|
|
116734
116726
|
let exportInfoId = 1;
|
|
116735
116727
|
const exportInfo = createMultiMap();
|
|
116736
|
-
const symbols = new Map();
|
|
116737
|
-
const packages = new Map();
|
|
116728
|
+
const symbols = /* @__PURE__ */ new Map();
|
|
116729
|
+
const packages = /* @__PURE__ */ new Map();
|
|
116738
116730
|
let usableByFileName;
|
|
116739
116731
|
const cache = {
|
|
116740
116732
|
isUsableByFile: (importingFile) => importingFile === usableByFileName,
|
|
@@ -116996,7 +116988,7 @@ ${lanes.join("\n")}
|
|
|
116996
116988
|
forEachExternalModuleToImportFrom(program, host, preferences, true, (moduleSymbol, moduleFile, program2, isFromPackageJson) => {
|
|
116997
116989
|
if (++moduleCount % 100 === 0)
|
|
116998
116990
|
cancellationToken == null ? void 0 : cancellationToken.throwIfCancellationRequested();
|
|
116999
|
-
const seenExports = new Map();
|
|
116991
|
+
const seenExports = /* @__PURE__ */ new Map();
|
|
117000
116992
|
const checker = program2.getTypeChecker();
|
|
117001
116993
|
const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);
|
|
117002
116994
|
if (defaultInfo && isImportableSymbol(defaultInfo.symbol, checker)) {
|
|
@@ -118337,7 +118329,7 @@ ${lanes.join("\n")}
|
|
|
118337
118329
|
return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory);
|
|
118338
118330
|
}
|
|
118339
118331
|
function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory = "", externalCache) {
|
|
118340
|
-
const buckets = new Map();
|
|
118332
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
118341
118333
|
const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames);
|
|
118342
118334
|
function reportStats() {
|
|
118343
118335
|
const bucketInfoArray = arrayFrom(buckets.keys()).filter((name) => name && name.charAt(0) === "_").map((name) => {
|
|
@@ -118403,7 +118395,7 @@ ${lanes.join("\n")}
|
|
|
118403
118395
|
sourceFileOptions.languageVersion = scriptTarget;
|
|
118404
118396
|
const oldBucketCount = buckets.size;
|
|
118405
118397
|
const keyWithMode = getDocumentRegistryBucketKeyWithMode(key, sourceFileOptions.impliedNodeFormat);
|
|
118406
|
-
const bucket = getOrUpdate(buckets, keyWithMode, () => new Map());
|
|
118398
|
+
const bucket = getOrUpdate(buckets, keyWithMode, () => /* @__PURE__ */ new Map());
|
|
118407
118399
|
if (tracing) {
|
|
118408
118400
|
if (buckets.size > oldBucketCount) {
|
|
118409
118401
|
tracing.instant(tracing.Phase.Session, "createdDocumentRegistryBucket", { configFilePath: compilationSettings.configFilePath, key: keyWithMode });
|
|
@@ -118458,7 +118450,7 @@ ${lanes.join("\n")}
|
|
|
118458
118450
|
if (!bucketEntry) {
|
|
118459
118451
|
bucket.set(path, entry);
|
|
118460
118452
|
} else if (isDocumentRegistryEntry(bucketEntry)) {
|
|
118461
|
-
const scriptKindMap = new Map();
|
|
118453
|
+
const scriptKindMap = /* @__PURE__ */ new Map();
|
|
118462
118454
|
scriptKindMap.set(bucketEntry.sourceFile.scriptKind, bucketEntry);
|
|
118463
118455
|
scriptKindMap.set(scriptKind, entry);
|
|
118464
118456
|
bucket.set(path, scriptKindMap);
|
|
@@ -118742,7 +118734,7 @@ ${lanes.join("\n")}
|
|
|
118742
118734
|
};
|
|
118743
118735
|
}
|
|
118744
118736
|
function createPatternMatcher(pattern) {
|
|
118745
|
-
const stringToWordSpans = new Map();
|
|
118737
|
+
const stringToWordSpans = /* @__PURE__ */ new Map();
|
|
118746
118738
|
const dotSeparatedSegments = pattern.trim().split(".").map((p) => createSegment(p.trim()));
|
|
118747
118739
|
if (dotSeparatedSegments.some((segment) => !segment.subWordTextChunks.length))
|
|
118748
118740
|
return void 0;
|
|
@@ -119352,8 +119344,8 @@ ${lanes.join("\n")}
|
|
|
119352
119344
|
function getSourceMapper(host) {
|
|
119353
119345
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
|
|
119354
119346
|
const currentDirectory = host.getCurrentDirectory();
|
|
119355
|
-
const sourceFileLike = new Map();
|
|
119356
|
-
const documentPositionMappers = new Map();
|
|
119347
|
+
const sourceFileLike = /* @__PURE__ */ new Map();
|
|
119348
|
+
const documentPositionMappers = /* @__PURE__ */ new Map();
|
|
119357
119349
|
return { tryGetSourcePosition, tryGetGeneratedPosition, toLineColumnOffset, clearCache };
|
|
119358
119350
|
function toPath3(fileName) {
|
|
119359
119351
|
return toPath(fileName, currentDirectory, getCanonicalFileName);
|
|
@@ -119489,7 +119481,7 @@ ${lanes.join("\n")}
|
|
|
119489
119481
|
}
|
|
119490
119482
|
|
|
119491
119483
|
// src/services/suggestionDiagnostics.ts
|
|
119492
|
-
var visitedNestedConvertibleFunctions = new Map();
|
|
119484
|
+
var visitedNestedConvertibleFunctions = /* @__PURE__ */ new Map();
|
|
119493
119485
|
function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) {
|
|
119494
119486
|
program.getSemanticDiagnostics(sourceFile, cancellationToken);
|
|
119495
119487
|
const diags = [];
|
|
@@ -119950,7 +119942,7 @@ ${lanes.join("\n")}
|
|
|
119950
119942
|
}
|
|
119951
119943
|
function addTrackedEs5Class(name) {
|
|
119952
119944
|
if (!trackedEs5Classes) {
|
|
119953
|
-
trackedEs5Classes = new Map();
|
|
119945
|
+
trackedEs5Classes = /* @__PURE__ */ new Map();
|
|
119954
119946
|
}
|
|
119955
119947
|
trackedEs5Classes.set(name, true);
|
|
119956
119948
|
}
|
|
@@ -120222,7 +120214,7 @@ ${lanes.join("\n")}
|
|
|
120222
120214
|
}
|
|
120223
120215
|
}
|
|
120224
120216
|
function mergeChildren(children, node) {
|
|
120225
|
-
const nameToItems = new Map();
|
|
120217
|
+
const nameToItems = /* @__PURE__ */ new Map();
|
|
120226
120218
|
filterMutate(children, (child, index) => {
|
|
120227
120219
|
const declName = child.name || getNameOfDeclaration(child.node);
|
|
120228
120220
|
const name = declName && nodeText(declName);
|
|
@@ -121056,7 +121048,7 @@ ${lanes.join("\n")}
|
|
|
121056
121048
|
return emptyArray;
|
|
121057
121049
|
let tags = ts_JsDoc_exports.getJsDocTagsFromDeclarations(declarations, checker);
|
|
121058
121050
|
if (checker && (tags.length === 0 || declarations.some(hasJSDocInheritDocTag))) {
|
|
121059
|
-
const seenSymbols = new Set();
|
|
121051
|
+
const seenSymbols = /* @__PURE__ */ new Set();
|
|
121060
121052
|
for (const declaration of declarations) {
|
|
121061
121053
|
const inheritedTags = findBaseOfDeclaration(checker, declaration, (symbol) => {
|
|
121062
121054
|
var _a2;
|
|
@@ -121080,7 +121072,7 @@ ${lanes.join("\n")}
|
|
|
121080
121072
|
return emptyArray;
|
|
121081
121073
|
let doc = ts_JsDoc_exports.getJsDocCommentsFromDeclarations(declarations, checker);
|
|
121082
121074
|
if (checker && (doc.length === 0 || declarations.some(hasJSDocInheritDocTag))) {
|
|
121083
|
-
const seenSymbols = new Set();
|
|
121075
|
+
const seenSymbols = /* @__PURE__ */ new Set();
|
|
121084
121076
|
for (const declaration of declarations) {
|
|
121085
121077
|
const inheritedDocs = findBaseOfDeclaration(checker, declaration, (symbol) => {
|
|
121086
121078
|
if (!seenSymbols.has(symbol)) {
|
|
@@ -121622,7 +121614,7 @@ ${lanes.join("\n")}
|
|
|
121622
121614
|
if (existing !== void 0)
|
|
121623
121615
|
return existing || void 0;
|
|
121624
121616
|
const result = host.getParsedCommandLine ? host.getParsedCommandLine(fileName) : getParsedCommandLineOfConfigFileUsingSourceFile(fileName);
|
|
121625
|
-
(parsedCommandLines || (parsedCommandLines = new Map())).set(path, result || false);
|
|
121617
|
+
(parsedCommandLines || (parsedCommandLines = /* @__PURE__ */ new Map())).set(path, result || false);
|
|
121626
121618
|
return result;
|
|
121627
121619
|
}
|
|
121628
121620
|
function getParsedCommandLineOfConfigFileUsingSourceFile(configFileName) {
|
|
@@ -122183,7 +122175,7 @@ ${lanes.join("\n")}
|
|
|
122183
122175
|
const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
|
|
122184
122176
|
let isCommenting = insertComment || false;
|
|
122185
122177
|
let leftMostPosition = Number.MAX_VALUE;
|
|
122186
|
-
const lineTextStarts = new Map();
|
|
122178
|
+
const lineTextStarts = /* @__PURE__ */ new Map();
|
|
122187
122179
|
const firstNonWhitespaceCharacterRegex = new RegExp(/\S/);
|
|
122188
122180
|
const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);
|
|
122189
122181
|
const openComment = isJsx ? "{/*" : "//";
|
|
@@ -122583,7 +122575,7 @@ ${lanes.join("\n")}
|
|
|
122583
122575
|
return sourceFile.nameTable;
|
|
122584
122576
|
}
|
|
122585
122577
|
function initializeNameTable(sourceFile) {
|
|
122586
|
-
const nameTable = sourceFile.nameTable = new Map();
|
|
122578
|
+
const nameTable = sourceFile.nameTable = /* @__PURE__ */ new Map();
|
|
122587
122579
|
sourceFile.forEachChild(function walk(node) {
|
|
122588
122580
|
if (isIdentifier(node) && !isTagName(node) && node.escapedText || isStringOrNumericLiteralLike(node) && literalIsName(node)) {
|
|
122589
122581
|
const text = getEscapedTextOfIdentifierOrLiteral(node);
|
|
@@ -124630,7 +124622,7 @@ ${lanes.join("\n")}
|
|
|
124630
124622
|
function isRightSideOfQualifiedNameOrPropertyAccess2(node) {
|
|
124631
124623
|
return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node;
|
|
124632
124624
|
}
|
|
124633
|
-
var tokenFromDeclarationMapping = new Map([
|
|
124625
|
+
var tokenFromDeclarationMapping = /* @__PURE__ */ new Map([
|
|
124634
124626
|
[257 /* VariableDeclaration */, 7 /* variable */],
|
|
124635
124627
|
[166 /* Parameter */, 6 /* parameter */],
|
|
124636
124628
|
[169 /* PropertyDeclaration */, 9 /* property */],
|
|
@@ -124698,7 +124690,7 @@ ${lanes.join("\n")}
|
|
|
124698
124690
|
|
|
124699
124691
|
// src/services/codeFixProvider.ts
|
|
124700
124692
|
var errorCodeToFixes = createMultiMap();
|
|
124701
|
-
var fixIdToRegistration = new Map();
|
|
124693
|
+
var fixIdToRegistration = /* @__PURE__ */ new Map();
|
|
124702
124694
|
function createCodeFixActionWithoutFixAll(fixName8, changes, description2) {
|
|
124703
124695
|
return createCodeFixActionWorker(fixName8, diagnosticToString(description2), changes, void 0, void 0);
|
|
124704
124696
|
}
|
|
@@ -124847,7 +124839,7 @@ ${lanes.join("\n")}
|
|
|
124847
124839
|
},
|
|
124848
124840
|
getAllCodeActions: (context) => {
|
|
124849
124841
|
const { sourceFile } = context;
|
|
124850
|
-
const fixedDeclarations = new Set();
|
|
124842
|
+
const fixedDeclarations = /* @__PURE__ */ new Set();
|
|
124851
124843
|
return codeFixAll(context, errorCodes2, (t, diagnostic) => {
|
|
124852
124844
|
const span = diagnostic.relatedInformation && find(diagnostic.relatedInformation, (r) => r.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);
|
|
124853
124845
|
const decl = getFixableErrorSpanDeclaration(sourceFile, span);
|
|
@@ -124941,7 +124933,7 @@ ${lanes.join("\n")}
|
|
|
124941
124933
|
getAllCodeActions: (context) => {
|
|
124942
124934
|
const { sourceFile, program, cancellationToken } = context;
|
|
124943
124935
|
const checker = context.program.getTypeChecker();
|
|
124944
|
-
const fixedDeclarations = new Set();
|
|
124936
|
+
const fixedDeclarations = /* @__PURE__ */ new Set();
|
|
124945
124937
|
return codeFixAll(context, errorCodes3, (t, diagnostic) => {
|
|
124946
124938
|
const expression = getAwaitErrorSpanExpression(sourceFile, diagnostic.code, diagnostic, cancellationToken, program);
|
|
124947
124939
|
if (!expression) {
|
|
@@ -125127,7 +125119,7 @@ ${lanes.join("\n")}
|
|
|
125127
125119
|
},
|
|
125128
125120
|
fixIds: [fixId4],
|
|
125129
125121
|
getAllCodeActions: (context) => {
|
|
125130
|
-
const fixedNodes = new Set();
|
|
125122
|
+
const fixedNodes = /* @__PURE__ */ new Set();
|
|
125131
125123
|
return codeFixAll(context, errorCodes4, (changes, diag2) => makeChange4(changes, diag2.file, diag2.start, context.program, fixedNodes));
|
|
125132
125124
|
}
|
|
125133
125125
|
});
|
|
@@ -125218,7 +125210,7 @@ ${lanes.join("\n")}
|
|
|
125218
125210
|
},
|
|
125219
125211
|
fixIds: [fixId5],
|
|
125220
125212
|
getAllCodeActions: (context) => {
|
|
125221
|
-
const fixedNodes = new Set();
|
|
125213
|
+
const fixedNodes = /* @__PURE__ */ new Set();
|
|
125222
125214
|
return codeFixAll(context, errorCodes5, (changes, diag2) => makeChange5(changes, diag2.file, diag2.start, fixedNodes));
|
|
125223
125215
|
}
|
|
125224
125216
|
});
|
|
@@ -125805,7 +125797,7 @@ ${lanes.join("\n")}
|
|
|
125805
125797
|
if (!functionToConvert) {
|
|
125806
125798
|
return;
|
|
125807
125799
|
}
|
|
125808
|
-
const synthNamesMap = new Map();
|
|
125800
|
+
const synthNamesMap = /* @__PURE__ */ new Map();
|
|
125809
125801
|
const isInJavascript = isInJSFile(functionToConvert);
|
|
125810
125802
|
const setOfExpressionsToReturn = getAllPromiseExpressionsToReturn(functionToConvert, checker);
|
|
125811
125803
|
const functionToConvertRenamed = renameCollidingVarNames(functionToConvert, checker, synthNamesMap);
|
|
@@ -125849,9 +125841,9 @@ ${lanes.join("\n")}
|
|
|
125849
125841
|
}
|
|
125850
125842
|
function getAllPromiseExpressionsToReturn(func, checker) {
|
|
125851
125843
|
if (!func.body) {
|
|
125852
|
-
return new Set();
|
|
125844
|
+
return /* @__PURE__ */ new Set();
|
|
125853
125845
|
}
|
|
125854
|
-
const setOfExpressionsToReturn = new Set();
|
|
125846
|
+
const setOfExpressionsToReturn = /* @__PURE__ */ new Set();
|
|
125855
125847
|
forEachChild(func.body, function visit(node) {
|
|
125856
125848
|
if (isPromiseReturningCallExpression(node, checker, "then")) {
|
|
125857
125849
|
setOfExpressionsToReturn.add(getNodeId(node));
|
|
@@ -125900,7 +125892,7 @@ ${lanes.join("\n")}
|
|
|
125900
125892
|
return !!checker.getPromisedTypeOfPromise(checker.getTypeAtLocation(node));
|
|
125901
125893
|
}
|
|
125902
125894
|
function renameCollidingVarNames(nodeToRename, checker, synthNamesMap) {
|
|
125903
|
-
const identsToRenameMap = new Map();
|
|
125895
|
+
const identsToRenameMap = /* @__PURE__ */ new Map();
|
|
125904
125896
|
const collidingSymbolMap = createMultiMap();
|
|
125905
125897
|
forEachChild(nodeToRename, function visit(node) {
|
|
125906
125898
|
if (!isIdentifier(node)) {
|
|
@@ -126394,7 +126386,7 @@ ${lanes.join("\n")}
|
|
|
126394
126386
|
}
|
|
126395
126387
|
}
|
|
126396
126388
|
function convertFileToEsModule(sourceFile, checker, changes, target, quotePreference) {
|
|
126397
|
-
const identifiers = { original: collectFreeIdentifiers(sourceFile), additional: new Set() };
|
|
126389
|
+
const identifiers = { original: collectFreeIdentifiers(sourceFile), additional: /* @__PURE__ */ new Set() };
|
|
126398
126390
|
const exports = collectExportRenames(sourceFile, checker, identifiers);
|
|
126399
126391
|
convertExportsAccesses(sourceFile, exports, changes);
|
|
126400
126392
|
let moduleExportsChangedToDefault = false;
|
|
@@ -126402,7 +126394,7 @@ ${lanes.join("\n")}
|
|
|
126402
126394
|
for (const statement of filter(sourceFile.statements, isVariableStatement)) {
|
|
126403
126395
|
const newUseSites = convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);
|
|
126404
126396
|
if (newUseSites) {
|
|
126405
|
-
copyEntries(newUseSites, useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map());
|
|
126397
|
+
copyEntries(newUseSites, useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map());
|
|
126406
126398
|
}
|
|
126407
126399
|
}
|
|
126408
126400
|
for (const statement of filter(sourceFile.statements, (s) => !isVariableStatement(s))) {
|
|
@@ -126415,7 +126407,7 @@ ${lanes.join("\n")}
|
|
|
126415
126407
|
return moduleExportsChangedToDefault;
|
|
126416
126408
|
}
|
|
126417
126409
|
function collectExportRenames(sourceFile, checker, identifiers) {
|
|
126418
|
-
const res = new Map();
|
|
126410
|
+
const res = /* @__PURE__ */ new Map();
|
|
126419
126411
|
forEachExportReference(sourceFile, (node) => {
|
|
126420
126412
|
const { text, originalKeywordKind } = node.name;
|
|
126421
126413
|
if (!res.has(text) && (originalKeywordKind !== void 0 && isNonContextualKeyword(originalKeywordKind) || checker.resolveName(text, node, 111551 /* Value */, true))) {
|
|
@@ -126490,7 +126482,7 @@ ${lanes.join("\n")}
|
|
|
126490
126482
|
let combinedUseSites;
|
|
126491
126483
|
forEach(converted, (c) => {
|
|
126492
126484
|
if (c.useSitesToUnqualify) {
|
|
126493
|
-
copyEntries(c.useSitesToUnqualify, combinedUseSites != null ? combinedUseSites : combinedUseSites = new Map());
|
|
126485
|
+
copyEntries(c.useSitesToUnqualify, combinedUseSites != null ? combinedUseSites : combinedUseSites = /* @__PURE__ */ new Map());
|
|
126494
126486
|
}
|
|
126495
126487
|
});
|
|
126496
126488
|
return combinedUseSites;
|
|
@@ -126653,7 +126645,7 @@ ${lanes.join("\n")}
|
|
|
126653
126645
|
}
|
|
126654
126646
|
function convertSingleIdentifierImport(name, moduleSpecifier, checker, identifiers, quotePreference) {
|
|
126655
126647
|
const nameSymbol = checker.getSymbolAtLocation(name);
|
|
126656
|
-
const namedBindingsNames = new Map();
|
|
126648
|
+
const namedBindingsNames = /* @__PURE__ */ new Map();
|
|
126657
126649
|
let needDefaultImport = false;
|
|
126658
126650
|
let useSitesToUnqualify;
|
|
126659
126651
|
for (const use of identifiers.original.get(name.text)) {
|
|
@@ -126666,7 +126658,7 @@ ${lanes.join("\n")}
|
|
|
126666
126658
|
if (propertyName === "default") {
|
|
126667
126659
|
needDefaultImport = true;
|
|
126668
126660
|
const importDefaultName = use.getText();
|
|
126669
|
-
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map()).set(parent2, factory.createIdentifier(importDefaultName));
|
|
126661
|
+
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(importDefaultName));
|
|
126670
126662
|
} else {
|
|
126671
126663
|
Debug.assert(parent2.expression === use, "Didn't expect expression === use");
|
|
126672
126664
|
let idName = namedBindingsNames.get(propertyName);
|
|
@@ -126674,7 +126666,7 @@ ${lanes.join("\n")}
|
|
|
126674
126666
|
idName = makeUniqueName(propertyName, identifiers);
|
|
126675
126667
|
namedBindingsNames.set(propertyName, idName);
|
|
126676
126668
|
}
|
|
126677
|
-
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = new Map()).set(parent2, factory.createIdentifier(idName));
|
|
126669
|
+
(useSitesToUnqualify != null ? useSitesToUnqualify : useSitesToUnqualify = /* @__PURE__ */ new Map()).set(parent2, factory.createIdentifier(idName));
|
|
126678
126670
|
}
|
|
126679
126671
|
} else {
|
|
126680
126672
|
needDefaultImport = true;
|
|
@@ -126817,7 +126809,7 @@ ${lanes.join("\n")}
|
|
|
126817
126809
|
},
|
|
126818
126810
|
fixIds: [fixId12],
|
|
126819
126811
|
getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyExport(context) {
|
|
126820
|
-
const fixedExportDeclarations = new Map();
|
|
126812
|
+
const fixedExportDeclarations = /* @__PURE__ */ new Map();
|
|
126821
126813
|
return codeFixAll(context, errorCodes13, (changes, diag2) => {
|
|
126822
126814
|
const exportSpecifier = getExportSpecifierForDiagnosticSpan(diag2, context.sourceFile);
|
|
126823
126815
|
if (exportSpecifier && addToSeen(fixedExportDeclarations, getNodeId(exportSpecifier.parent.parent))) {
|
|
@@ -126989,7 +126981,7 @@ ${lanes.join("\n")}
|
|
|
126989
126981
|
},
|
|
126990
126982
|
fixIds: [fixId15],
|
|
126991
126983
|
getAllCodeActions(context) {
|
|
126992
|
-
const seenClassDeclarations = new Map();
|
|
126984
|
+
const seenClassDeclarations = /* @__PURE__ */ new Map();
|
|
126993
126985
|
return codeFixAll(context, errorCodes16, (changes, diag2) => {
|
|
126994
126986
|
const classDeclaration = getClass(diag2.file, diag2.start);
|
|
126995
126987
|
if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
|
|
@@ -127093,8 +127085,8 @@ ${lanes.join("\n")}
|
|
|
127093
127085
|
const compilerOptions = program.getCompilerOptions();
|
|
127094
127086
|
const addToNamespace = [];
|
|
127095
127087
|
const importType = [];
|
|
127096
|
-
const addToExisting = new Map();
|
|
127097
|
-
const newImports = new Map();
|
|
127088
|
+
const addToExisting = /* @__PURE__ */ new Map();
|
|
127089
|
+
const newImports = /* @__PURE__ */ new Map();
|
|
127098
127090
|
return { addImportFromDiagnostic, addImportFromExportedSymbol, writeFixes, hasFixes };
|
|
127099
127091
|
function addImportFromDiagnostic(diagnostic, context) {
|
|
127100
127092
|
const info = getFixInfos(context, diagnostic.code, diagnostic.start, useAutoImportProvider);
|
|
@@ -127129,7 +127121,7 @@ ${lanes.join("\n")}
|
|
|
127129
127121
|
const key = String(getNodeId(importClauseOrBindingPattern));
|
|
127130
127122
|
let entry = addToExisting.get(key);
|
|
127131
127123
|
if (!entry) {
|
|
127132
|
-
addToExisting.set(key, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: new Map() });
|
|
127124
|
+
addToExisting.set(key, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: /* @__PURE__ */ new Map() });
|
|
127133
127125
|
}
|
|
127134
127126
|
if (importKind === 0 /* Named */) {
|
|
127135
127127
|
const prevValue = entry == null ? void 0 : entry.namedImports.get(symbolName2);
|
|
@@ -127153,7 +127145,7 @@ ${lanes.join("\n")}
|
|
|
127153
127145
|
entry.defaultImport = { name: symbolName2, addAsTypeOnly: reduceAddAsTypeOnlyValues((_b = entry.defaultImport) == null ? void 0 : _b.addAsTypeOnly, addAsTypeOnly) };
|
|
127154
127146
|
break;
|
|
127155
127147
|
case 0 /* Named */:
|
|
127156
|
-
const prevValue = (entry.namedImports || (entry.namedImports = new Map())).get(symbolName2);
|
|
127148
|
+
const prevValue = (entry.namedImports || (entry.namedImports = /* @__PURE__ */ new Map())).get(symbolName2);
|
|
127157
127149
|
entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly));
|
|
127158
127150
|
break;
|
|
127159
127151
|
case 3 /* CommonJS */:
|
|
@@ -128062,7 +128054,7 @@ ${lanes.join("\n")}
|
|
|
128062
128054
|
fixIds: [fixId16],
|
|
128063
128055
|
getAllCodeActions: (context) => {
|
|
128064
128056
|
const { program, preferences, host } = context;
|
|
128065
|
-
const seen = new Map();
|
|
128057
|
+
const seen = /* @__PURE__ */ new Map();
|
|
128066
128058
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
128067
128059
|
eachDiagnostic(context, errorCodes18, (diag2) => {
|
|
128068
128060
|
const info = getInfo3(program, diag2.file, createTextSpan(diag2.start, diag2.length));
|
|
@@ -128375,7 +128367,7 @@ ${lanes.join("\n")}
|
|
|
128375
128367
|
getAllCodeActions(context) {
|
|
128376
128368
|
const { program } = context;
|
|
128377
128369
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
128378
|
-
const exports = new Map();
|
|
128370
|
+
const exports = /* @__PURE__ */ new Map();
|
|
128379
128371
|
eachDiagnostic(context, errorCodes22, (diag2) => {
|
|
128380
128372
|
const info = getInfo4(diag2.file, diag2.start, program);
|
|
128381
128373
|
if (info === void 0)
|
|
@@ -128925,8 +128917,8 @@ ${lanes.join("\n")}
|
|
|
128925
128917
|
getAllCodeActions: (context) => {
|
|
128926
128918
|
const { program, fixId: fixId52 } = context;
|
|
128927
128919
|
const checker = program.getTypeChecker();
|
|
128928
|
-
const seen = new Map();
|
|
128929
|
-
const typeDeclToMembers = new Map();
|
|
128920
|
+
const seen = /* @__PURE__ */ new Map();
|
|
128921
|
+
const typeDeclToMembers = /* @__PURE__ */ new Map();
|
|
128930
128922
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
128931
128923
|
eachDiagnostic(context, errorCodes26, (diag2) => {
|
|
128932
128924
|
const info = getInfo7(diag2.file, diag2.start, diag2.code, checker, context.program);
|
|
@@ -129360,7 +129352,7 @@ ${lanes.join("\n")}
|
|
|
129360
129352
|
const targetProps = attrsType.getProperties();
|
|
129361
129353
|
if (!length(targetProps))
|
|
129362
129354
|
return emptyArray;
|
|
129363
|
-
const seenNames = new Set();
|
|
129355
|
+
const seenNames = /* @__PURE__ */ new Set();
|
|
129364
129356
|
for (const sourceProp of source.attributes.properties) {
|
|
129365
129357
|
if (isJsxAttribute(sourceProp)) {
|
|
129366
129358
|
seenNames.add(sourceProp.name.escapedText);
|
|
@@ -129494,7 +129486,7 @@ ${lanes.join("\n")}
|
|
|
129494
129486
|
},
|
|
129495
129487
|
fixIds: [fixId24],
|
|
129496
129488
|
getAllCodeActions: function getAllCodeActionsToFixClassDoesntImplementInheritedAbstractMember(context) {
|
|
129497
|
-
const seenClassDeclarations = new Map();
|
|
129489
|
+
const seenClassDeclarations = /* @__PURE__ */ new Map();
|
|
129498
129490
|
return codeFixAll(context, errorCodes29, (changes, diag2) => {
|
|
129499
129491
|
const classDeclaration = getClass2(diag2.file, diag2.start);
|
|
129500
129492
|
if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) {
|
|
@@ -129538,7 +129530,7 @@ ${lanes.join("\n")}
|
|
|
129538
129530
|
fixIds: [fixId25],
|
|
129539
129531
|
getAllCodeActions(context) {
|
|
129540
129532
|
const { sourceFile } = context;
|
|
129541
|
-
const seenClasses = new Map();
|
|
129533
|
+
const seenClasses = /* @__PURE__ */ new Map();
|
|
129542
129534
|
return codeFixAll(context, errorCodes30, (changes, diag2) => {
|
|
129543
129535
|
const nodes = getNodes(diag2.file, diag2.start);
|
|
129544
129536
|
if (!nodes)
|
|
@@ -129910,7 +129902,7 @@ ${lanes.join("\n")}
|
|
|
129910
129902
|
return void 0;
|
|
129911
129903
|
},
|
|
129912
129904
|
getAllCodeActions: function getAllCodeActionsToFixUnmatchedParameter(context) {
|
|
129913
|
-
const tagsToSignature = new Map();
|
|
129905
|
+
const tagsToSignature = /* @__PURE__ */ new Map();
|
|
129914
129906
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
129915
129907
|
eachDiagnostic(context, errorCodes39, ({ file, start: start2 }) => {
|
|
129916
129908
|
const info = getInfo10(file, start2);
|
|
@@ -129942,7 +129934,7 @@ ${lanes.join("\n")}
|
|
|
129942
129934
|
return void 0;
|
|
129943
129935
|
const sourceFile = context.sourceFile;
|
|
129944
129936
|
const tags = getJSDocTags(signature);
|
|
129945
|
-
const names = new Set();
|
|
129937
|
+
const names = /* @__PURE__ */ new Set();
|
|
129946
129938
|
for (const tag of tags) {
|
|
129947
129939
|
if (isJSDocParameterTag(tag) && isIdentifier(tag.name)) {
|
|
129948
129940
|
names.add(tag.name.escapedText);
|
|
@@ -130520,7 +130512,7 @@ ${lanes.join("\n")}
|
|
|
130520
130512
|
},
|
|
130521
130513
|
fixIds: [fixId36],
|
|
130522
130514
|
getAllCodeActions: function getAllCodeActionsToFixAwaitInSyncFunction(context) {
|
|
130523
|
-
const seen = new Map();
|
|
130515
|
+
const seen = /* @__PURE__ */ new Map();
|
|
130524
130516
|
return codeFixAll(context, errorCodes46, (changes, diag2) => {
|
|
130525
130517
|
const nodes = getNodes3(diag2.file, diag2.start);
|
|
130526
130518
|
if (!nodes || !addToSeen(seen, getNodeId(nodes.insertBefore)))
|
|
@@ -130977,7 +130969,7 @@ ${lanes.join("\n")}
|
|
|
130977
130969
|
};
|
|
130978
130970
|
}
|
|
130979
130971
|
function combineUsages(usages) {
|
|
130980
|
-
const combinedProperties = new Map();
|
|
130972
|
+
const combinedProperties = /* @__PURE__ */ new Map();
|
|
130981
130973
|
for (const u of usages) {
|
|
130982
130974
|
if (u.properties) {
|
|
130983
130975
|
u.properties.forEach((p, name) => {
|
|
@@ -130988,7 +130980,7 @@ ${lanes.join("\n")}
|
|
|
130988
130980
|
});
|
|
130989
130981
|
}
|
|
130990
130982
|
}
|
|
130991
|
-
const properties = new Map();
|
|
130983
|
+
const properties = /* @__PURE__ */ new Map();
|
|
130992
130984
|
combinedProperties.forEach((ps, name) => {
|
|
130993
130985
|
properties.set(name, combineUsages(ps));
|
|
130994
130986
|
});
|
|
@@ -131235,7 +131227,7 @@ ${lanes.join("\n")}
|
|
|
131235
131227
|
function inferTypeFromPropertyAccessExpression(parent2, usage) {
|
|
131236
131228
|
const name = escapeLeadingUnderscores(parent2.name.text);
|
|
131237
131229
|
if (!usage.properties) {
|
|
131238
|
-
usage.properties = new Map();
|
|
131230
|
+
usage.properties = /* @__PURE__ */ new Map();
|
|
131239
131231
|
}
|
|
131240
131232
|
const propertyUsage = usage.properties.get(name) || createEmptyUsage();
|
|
131241
131233
|
calculateUsageOfNode(parent2, propertyUsage);
|
|
@@ -131385,7 +131377,7 @@ ${lanes.join("\n")}
|
|
|
131385
131377
|
return types;
|
|
131386
131378
|
}
|
|
131387
131379
|
function inferStructuralType(usage) {
|
|
131388
|
-
const members = new Map();
|
|
131380
|
+
const members = /* @__PURE__ */ new Map();
|
|
131389
131381
|
if (usage.properties) {
|
|
131390
131382
|
usage.properties.forEach((u, name) => {
|
|
131391
131383
|
const symbol = checker.createSymbol(4 /* Property */, name);
|
|
@@ -131603,7 +131595,7 @@ ${lanes.join("\n")}
|
|
|
131603
131595
|
},
|
|
131604
131596
|
fixIds: [fixId40],
|
|
131605
131597
|
getAllCodeActions: (context) => {
|
|
131606
|
-
const seenLines = new Set();
|
|
131598
|
+
const seenLines = /* @__PURE__ */ new Set();
|
|
131607
131599
|
return codeFixAll(context, errorCodes50, (changes, diag2) => {
|
|
131608
131600
|
if (ts_textChanges_exports.isValidLocationToAddComment(diag2.file, diag2.start)) {
|
|
131609
131601
|
makeChange8(changes, diag2.file, diag2.start, seenLines);
|
|
@@ -131944,7 +131936,7 @@ ${lanes.join("\n")}
|
|
|
131944
131936
|
}
|
|
131945
131937
|
function getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, contextNode, scriptTarget, flags, tracker) {
|
|
131946
131938
|
const argumentTypeNodes = [];
|
|
131947
|
-
const argumentTypeParameters = new Map();
|
|
131939
|
+
const argumentTypeParameters = /* @__PURE__ */ new Map();
|
|
131948
131940
|
for (let i = 0; i < instanceTypes.length; i += 1) {
|
|
131949
131941
|
const instanceType = instanceTypes[i];
|
|
131950
131942
|
if (instanceType.isUnionOrIntersection() && instanceType.types.some(typeContainsTypeParameter)) {
|
|
@@ -131984,7 +131976,7 @@ ${lanes.join("\n")}
|
|
|
131984
131976
|
}
|
|
131985
131977
|
function createDummyParameters(argCount, names, types, minArgumentCount, inJs) {
|
|
131986
131978
|
const parameters = [];
|
|
131987
|
-
const parameterNameCounts = new Map();
|
|
131979
|
+
const parameterNameCounts = /* @__PURE__ */ new Map();
|
|
131988
131980
|
for (let i = 0; i < argCount; i++) {
|
|
131989
131981
|
const parameterName = (names == null ? void 0 : names[i]) || `arg${i}`;
|
|
131990
131982
|
const parameterNameCount = parameterNameCounts.get(parameterName);
|
|
@@ -132947,7 +132939,7 @@ ${lanes.join("\n")}
|
|
|
132947
132939
|
},
|
|
132948
132940
|
getAllCodeActions: (context) => {
|
|
132949
132941
|
const { program } = context;
|
|
132950
|
-
const seen = new Map();
|
|
132942
|
+
const seen = /* @__PURE__ */ new Map();
|
|
132951
132943
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
132952
132944
|
eachDiagnostic(context, errorCodes61, (diag2) => {
|
|
132953
132945
|
const info = getInfo17(diag2.file, diag2.start, program);
|
|
@@ -133033,7 +133025,7 @@ ${lanes.join("\n")}
|
|
|
133033
133025
|
}
|
|
133034
133026
|
},
|
|
133035
133027
|
getAllCodeActions(context) {
|
|
133036
|
-
return codeFixAll(context, errorCodes63, (changes, diag2) => makeChange11(changes, diag2.file, diag2, context.program, new Set()));
|
|
133028
|
+
return codeFixAll(context, errorCodes63, (changes, diag2) => makeChange11(changes, diag2.file, diag2, context.program, /* @__PURE__ */ new Set()));
|
|
133037
133029
|
}
|
|
133038
133030
|
});
|
|
133039
133031
|
function makeChange11(changes, sourceFile, span, program, seen) {
|
|
@@ -134032,7 +134024,7 @@ ${lanes.join("\n")}
|
|
|
134032
134024
|
const variableDeclaration = getVariableDeclaration(location2);
|
|
134033
134025
|
const useSemicolons = probablyUsesSemicolons(sourceFile);
|
|
134034
134026
|
const typeChecker = program.getTypeChecker();
|
|
134035
|
-
const uniques = new Map();
|
|
134027
|
+
const uniques = /* @__PURE__ */ new Map();
|
|
134036
134028
|
for (let i = 0; i < symbols.length; i++) {
|
|
134037
134029
|
const symbol = symbols[i];
|
|
134038
134030
|
const origin = symbolToOriginInfoMap == null ? void 0 : symbolToOriginInfoMap[i];
|
|
@@ -134111,7 +134103,7 @@ ${lanes.join("\n")}
|
|
|
134111
134103
|
}
|
|
134112
134104
|
function getLabelStatementCompletions(node) {
|
|
134113
134105
|
const entries = [];
|
|
134114
|
-
const uniques = new Map();
|
|
134106
|
+
const uniques = /* @__PURE__ */ new Map();
|
|
134115
134107
|
let current = node;
|
|
134116
134108
|
while (current) {
|
|
134117
134109
|
if (isFunctionLike(current)) {
|
|
@@ -134537,7 +134529,7 @@ ${lanes.join("\n")}
|
|
|
134537
134529
|
let importSpecifierResolver;
|
|
134538
134530
|
const symbolToOriginInfoMap = [];
|
|
134539
134531
|
const symbolToSortTextMap = [];
|
|
134540
|
-
const seenPropertySymbols = new Map();
|
|
134532
|
+
const seenPropertySymbols = /* @__PURE__ */ new Map();
|
|
134541
134533
|
const isTypeOnlyLocation = isTypeOnlyCompletion();
|
|
134542
134534
|
const getModuleSpecifierResolutionHost = memoizeOne((isFromPackageJson) => {
|
|
134543
134535
|
return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);
|
|
@@ -135124,7 +135116,7 @@ ${lanes.join("\n")}
|
|
|
135124
135116
|
const containerActualType = typeChecker.getTypeFromTypeNode(containerTypeNode);
|
|
135125
135117
|
const members = getPropertiesForCompletion(containerExpectedType, typeChecker);
|
|
135126
135118
|
const existingMembers = getPropertiesForCompletion(containerActualType, typeChecker);
|
|
135127
|
-
const existingMemberEscapedNames = new Set();
|
|
135119
|
+
const existingMemberEscapedNames = /* @__PURE__ */ new Set();
|
|
135128
135120
|
existingMembers.forEach((s) => existingMemberEscapedNames.add(s.escapedName));
|
|
135129
135121
|
symbols = concatenate(symbols, filter(members, (s) => !existingMemberEscapedNames.has(s.escapedName)));
|
|
135130
135122
|
completionKind = 0 /* ObjectPropertyDeclaration */;
|
|
@@ -135465,8 +135457,8 @@ ${lanes.join("\n")}
|
|
|
135465
135457
|
if (existingMembers.length === 0) {
|
|
135466
135458
|
return contextualMemberSymbols;
|
|
135467
135459
|
}
|
|
135468
|
-
const membersDeclaredBySpreadAssignment = new Set();
|
|
135469
|
-
const existingMemberNames = new Set();
|
|
135460
|
+
const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();
|
|
135461
|
+
const existingMemberNames = /* @__PURE__ */ new Set();
|
|
135470
135462
|
for (const m of existingMembers) {
|
|
135471
135463
|
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 */) {
|
|
135472
135464
|
continue;
|
|
@@ -135545,7 +135537,7 @@ ${lanes.join("\n")}
|
|
|
135545
135537
|
}
|
|
135546
135538
|
}
|
|
135547
135539
|
function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) {
|
|
135548
|
-
const existingMemberNames = new Set();
|
|
135540
|
+
const existingMemberNames = /* @__PURE__ */ new Set();
|
|
135549
135541
|
for (const m of existingMembers) {
|
|
135550
135542
|
if (m.kind !== 169 /* PropertyDeclaration */ && m.kind !== 171 /* MethodDeclaration */ && m.kind !== 174 /* GetAccessor */ && m.kind !== 175 /* SetAccessor */) {
|
|
135551
135543
|
continue;
|
|
@@ -135567,8 +135559,8 @@ ${lanes.join("\n")}
|
|
|
135567
135559
|
return baseSymbols.filter((propertySymbol) => !existingMemberNames.has(propertySymbol.escapedName) && !!propertySymbol.declarations && !(getDeclarationModifierFlagsFromSymbol(propertySymbol) & 8 /* Private */) && !(propertySymbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(propertySymbol.valueDeclaration)));
|
|
135568
135560
|
}
|
|
135569
135561
|
function filterJsxAttributes(symbols2, attributes) {
|
|
135570
|
-
const seenNames = new Set();
|
|
135571
|
-
const membersDeclaredBySpreadAssignment = new Set();
|
|
135562
|
+
const seenNames = /* @__PURE__ */ new Set();
|
|
135563
|
+
const membersDeclaredBySpreadAssignment = /* @__PURE__ */ new Set();
|
|
135572
135564
|
for (const attr of attributes) {
|
|
135573
135565
|
if (isCurrentlyEditingNode(attr)) {
|
|
135574
135566
|
continue;
|
|
@@ -136045,7 +136037,7 @@ ${lanes.join("\n")}
|
|
|
136045
136037
|
function isArrowFunctionBody(node) {
|
|
136046
136038
|
return node.parent && isArrowFunction(node.parent) && node.parent.body === node;
|
|
136047
136039
|
}
|
|
136048
|
-
function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = new Map()) {
|
|
136040
|
+
function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new Map()) {
|
|
136049
136041
|
return nonAliasCanBeReferencedAtTypeLocation(symbol) || nonAliasCanBeReferencedAtTypeLocation(skipAlias(symbol.exportSymbol || symbol, checker));
|
|
136050
136042
|
function nonAliasCanBeReferencedAtTypeLocation(symbol2) {
|
|
136051
136043
|
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));
|
|
@@ -136100,7 +136092,7 @@ ${lanes.join("\n")}
|
|
|
136100
136092
|
["external module name" /* externalModuleName */]: 2
|
|
136101
136093
|
};
|
|
136102
136094
|
function createNameAndKindSet() {
|
|
136103
|
-
const map2 = new Map();
|
|
136095
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
136104
136096
|
function add(value) {
|
|
136105
136097
|
const existing = map2.get(value.name);
|
|
136106
136098
|
if (!existing || kindPrecedence[existing.kind] < kindPrecedence[value.kind]) {
|
|
@@ -136314,7 +136306,7 @@ ${lanes.join("\n")}
|
|
|
136314
136306
|
}
|
|
136315
136307
|
function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) {
|
|
136316
136308
|
let isNewIdentifier = false;
|
|
136317
|
-
const uniques = new Map();
|
|
136309
|
+
const uniques = /* @__PURE__ */ new Map();
|
|
136318
136310
|
const candidates = [];
|
|
136319
136311
|
const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg;
|
|
136320
136312
|
checker.getResolvedSignatureForStringLiteralCompletions(call, editingArgument, candidates);
|
|
@@ -136357,7 +136349,7 @@ ${lanes.join("\n")}
|
|
|
136357
136349
|
hasIndexSignature: hasIndexSignature(contextualType)
|
|
136358
136350
|
};
|
|
136359
136351
|
}
|
|
136360
|
-
function getStringLiteralTypes(type, uniques = new Map()) {
|
|
136352
|
+
function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new Map()) {
|
|
136361
136353
|
if (!type)
|
|
136362
136354
|
return emptyArray;
|
|
136363
136355
|
type = skipConstraint(type);
|
|
@@ -136729,7 +136721,7 @@ ${lanes.join("\n")}
|
|
|
136729
136721
|
return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values()));
|
|
136730
136722
|
}
|
|
136731
136723
|
function getCompletionEntriesFromTypings(host, options, scriptPath, fragmentDirectory, extensionOptions, result = createNameAndKindSet()) {
|
|
136732
|
-
const seen = new Map();
|
|
136724
|
+
const seen = /* @__PURE__ */ new Map();
|
|
136733
136725
|
const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || emptyArray;
|
|
136734
136726
|
for (const root of typeRoots) {
|
|
136735
136727
|
getCompletionEntriesFromDirectories(root);
|
|
@@ -137111,7 +137103,7 @@ ${lanes.join("\n")}
|
|
|
137111
137103
|
return refs;
|
|
137112
137104
|
}
|
|
137113
137105
|
function getDirectImportsMap(sourceFiles, checker, cancellationToken) {
|
|
137114
|
-
const map2 = new Map();
|
|
137106
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
137115
137107
|
for (const sourceFile of sourceFiles) {
|
|
137116
137108
|
if (cancellationToken)
|
|
137117
137109
|
cancellationToken.throwIfCancellationRequested();
|
|
@@ -137460,7 +137452,7 @@ ${lanes.join("\n")}
|
|
|
137460
137452
|
referenceEntries = entries && [...entries];
|
|
137461
137453
|
} else if (entries) {
|
|
137462
137454
|
const queue = createQueue(entries);
|
|
137463
|
-
const seenNodes = new Map();
|
|
137455
|
+
const seenNodes = /* @__PURE__ */ new Map();
|
|
137464
137456
|
while (!queue.isEmpty()) {
|
|
137465
137457
|
const entry = queue.dequeue();
|
|
137466
137458
|
if (!addToSeen(seenNodes, getNodeId(entry.node))) {
|
|
@@ -138103,7 +138095,7 @@ ${lanes.join("\n")}
|
|
|
138103
138095
|
this.searchMeaning = searchMeaning;
|
|
138104
138096
|
this.options = options;
|
|
138105
138097
|
this.result = result;
|
|
138106
|
-
this.inheritsFromCache = new Map();
|
|
138098
|
+
this.inheritsFromCache = /* @__PURE__ */ new Map();
|
|
138107
138099
|
this.markSeenContainingTypeReference = nodeSeenTracker();
|
|
138108
138100
|
this.markSeenReExportRHS = nodeSeenTracker();
|
|
138109
138101
|
this.symbolIdToReferences = [];
|
|
@@ -138143,7 +138135,7 @@ ${lanes.join("\n")}
|
|
|
138143
138135
|
}
|
|
138144
138136
|
markSearchedSymbols(sourceFile, symbols) {
|
|
138145
138137
|
const sourceId = getNodeId(sourceFile);
|
|
138146
|
-
const seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = new Set());
|
|
138138
|
+
const seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = /* @__PURE__ */ new Set());
|
|
138147
138139
|
let anyNewSymbols = false;
|
|
138148
138140
|
for (const sym of symbols) {
|
|
138149
138141
|
anyNewSymbols = tryAddToSet(seenSymbols, getSymbolId(sym)) || anyNewSymbols;
|
|
@@ -138929,7 +138921,7 @@ ${lanes.join("\n")}
|
|
|
138929
138921
|
}
|
|
138930
138922
|
}
|
|
138931
138923
|
function getPropertySymbolsFromBaseTypes(symbol, propertyName, checker, cb) {
|
|
138932
|
-
const seen = new Map();
|
|
138924
|
+
const seen = /* @__PURE__ */ new Map();
|
|
138933
138925
|
return recur(symbol);
|
|
138934
138926
|
function recur(symbol2) {
|
|
138935
138927
|
if (!(symbol2.flags & (32 /* Class */ | 64 /* Interface */)) || !addToSeen(seen, getSymbolId(symbol2)))
|
|
@@ -140784,7 +140776,7 @@ ${lanes.join("\n")}
|
|
|
140784
140776
|
});
|
|
140785
140777
|
|
|
140786
140778
|
// src/services/refactorProvider.ts
|
|
140787
|
-
var refactors = new Map();
|
|
140779
|
+
var refactors = /* @__PURE__ */ new Map();
|
|
140788
140780
|
function registerRefactor(name, refactor) {
|
|
140789
140781
|
refactors.set(name, refactor);
|
|
140790
140782
|
}
|
|
@@ -141107,7 +141099,7 @@ ${lanes.join("\n")}
|
|
|
141107
141099
|
function doChangeNamespaceToNamed(sourceFile, checker, changes, toConvert, allowSyntheticDefaultImports) {
|
|
141108
141100
|
let usedAsNamespaceOrDefault = false;
|
|
141109
141101
|
const nodesToReplace = [];
|
|
141110
|
-
const conflictingNames = new Map();
|
|
141102
|
+
const conflictingNames = /* @__PURE__ */ new Map();
|
|
141111
141103
|
ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(toConvert.name, checker, sourceFile, (id) => {
|
|
141112
141104
|
if (!isPropertyAccessOrQualifiedName(id.parent)) {
|
|
141113
141105
|
usedAsNamespaceOrDefault = true;
|
|
@@ -141120,7 +141112,7 @@ ${lanes.join("\n")}
|
|
|
141120
141112
|
nodesToReplace.push(id.parent);
|
|
141121
141113
|
}
|
|
141122
141114
|
});
|
|
141123
|
-
const exportNameToImportName = new Map();
|
|
141115
|
+
const exportNameToImportName = /* @__PURE__ */ new Map();
|
|
141124
141116
|
for (const propertyAccessOrQualifiedName of nodesToReplace) {
|
|
141125
141117
|
const exportName = getRightOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName).text;
|
|
141126
141118
|
let importName = exportNameToImportName.get(exportName);
|
|
@@ -141150,7 +141142,7 @@ ${lanes.join("\n")}
|
|
|
141150
141142
|
const checker = program.getTypeChecker();
|
|
141151
141143
|
const importDecl = toConvert.parent.parent;
|
|
141152
141144
|
const { moduleSpecifier } = importDecl;
|
|
141153
|
-
const toConvertSymbols = new Set();
|
|
141145
|
+
const toConvertSymbols = /* @__PURE__ */ new Set();
|
|
141154
141146
|
toConvert.elements.forEach((namedImport) => {
|
|
141155
141147
|
const symbol = checker.getSymbolAtLocation(namedImport.name);
|
|
141156
141148
|
if (symbol) {
|
|
@@ -141172,7 +141164,7 @@ ${lanes.join("\n")}
|
|
|
141172
141164
|
}
|
|
141173
141165
|
const namespaceNameConflicts = toConvert.elements.some(hasNamespaceNameConflict);
|
|
141174
141166
|
const namespaceImportName = namespaceNameConflicts ? getUniqueName(preferredName, sourceFile) : preferredName;
|
|
141175
|
-
const neededNamedImports = new Set();
|
|
141167
|
+
const neededNamedImports = /* @__PURE__ */ new Set();
|
|
141176
141168
|
for (const element of toConvert.elements) {
|
|
141177
141169
|
const propertyName = (element.propertyName || element.name).text;
|
|
141178
141170
|
ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(element.name, checker, sourceFile, (id) => {
|
|
@@ -141302,7 +141294,7 @@ ${lanes.join("\n")}
|
|
|
141302
141294
|
return void 0;
|
|
141303
141295
|
if (isIntersectionTypeNode(node)) {
|
|
141304
141296
|
const result = [];
|
|
141305
|
-
const seen = new Map();
|
|
141297
|
+
const seen = /* @__PURE__ */ new Map();
|
|
141306
141298
|
for (const type of node.types) {
|
|
141307
141299
|
const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type);
|
|
141308
141300
|
if (!flattenedTypeMembers || !flattenedTypeMembers.every((type2) => type2.name && addToSeen(seen, getNameFromPropertyName(type2.name)))) {
|
|
@@ -141954,7 +141946,7 @@ ${lanes.join("\n")}
|
|
|
141954
141946
|
}
|
|
141955
141947
|
var SymbolSet = class {
|
|
141956
141948
|
constructor() {
|
|
141957
|
-
this.map = new Map();
|
|
141949
|
+
this.map = /* @__PURE__ */ new Map();
|
|
141958
141950
|
}
|
|
141959
141951
|
add(symbol) {
|
|
141960
141952
|
this.map.set(String(getSymbolId(symbol)), symbol);
|
|
@@ -143618,10 +143610,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
143618
143610
|
return emptyArray;
|
|
143619
143611
|
}
|
|
143620
143612
|
const functionActions = [];
|
|
143621
|
-
const usedFunctionNames = new Map();
|
|
143613
|
+
const usedFunctionNames = /* @__PURE__ */ new Map();
|
|
143622
143614
|
let innermostErrorFunctionAction;
|
|
143623
143615
|
const constantActions = [];
|
|
143624
|
-
const usedConstantNames = new Map();
|
|
143616
|
+
const usedConstantNames = /* @__PURE__ */ new Map();
|
|
143625
143617
|
let innermostErrorConstantAction;
|
|
143626
143618
|
let i = 0;
|
|
143627
143619
|
for (const { functionExtraction, constantExtraction } of extractions) {
|
|
@@ -144730,13 +144722,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
144730
144722
|
return Usage2;
|
|
144731
144723
|
})(Usage || {});
|
|
144732
144724
|
function collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, checker, cancellationToken) {
|
|
144733
|
-
const allTypeParameterUsages = new Map();
|
|
144725
|
+
const allTypeParameterUsages = /* @__PURE__ */ new Map();
|
|
144734
144726
|
const usagesPerScope = [];
|
|
144735
144727
|
const substitutionsPerScope = [];
|
|
144736
144728
|
const functionErrorsPerScope = [];
|
|
144737
144729
|
const constantErrorsPerScope = [];
|
|
144738
144730
|
const visibleDeclarationsInExtractedRange = [];
|
|
144739
|
-
const exposedVariableSymbolSet = new Map();
|
|
144731
|
+
const exposedVariableSymbolSet = /* @__PURE__ */ new Map();
|
|
144740
144732
|
const exposedVariableDeclarations = [];
|
|
144741
144733
|
let firstExposedNonVariableDeclaration;
|
|
144742
144734
|
const expression = !isReadonlyArray(targetRange.range) ? targetRange.range : targetRange.range.length === 1 && isExpressionStatement(targetRange.range[0]) ? targetRange.range[0].expression : void 0;
|
|
@@ -144750,8 +144742,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
144750
144742
|
expressionDiagnostic = createDiagnosticForNode(expression, Messages.uselessConstantType);
|
|
144751
144743
|
}
|
|
144752
144744
|
for (const scope of scopes) {
|
|
144753
|
-
usagesPerScope.push({ usages: new Map(), typeParameterUsages: new Map(), substitutions: new Map() });
|
|
144754
|
-
substitutionsPerScope.push(new Map());
|
|
144745
|
+
usagesPerScope.push({ usages: /* @__PURE__ */ new Map(), typeParameterUsages: /* @__PURE__ */ new Map(), substitutions: /* @__PURE__ */ new Map() });
|
|
144746
|
+
substitutionsPerScope.push(/* @__PURE__ */ new Map());
|
|
144755
144747
|
functionErrorsPerScope.push([]);
|
|
144756
144748
|
const constantErrors = [];
|
|
144757
144749
|
if (expressionDiagnostic) {
|
|
@@ -144765,7 +144757,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
144765
144757
|
}
|
|
144766
144758
|
constantErrorsPerScope.push(constantErrors);
|
|
144767
144759
|
}
|
|
144768
|
-
const seenUsages = new Map();
|
|
144760
|
+
const seenUsages = /* @__PURE__ */ new Map();
|
|
144769
144761
|
const target = isReadonlyArray(targetRange.range) ? factory.createBlock(targetRange.range) : targetRange.range;
|
|
144770
144762
|
const unmodifiedNode = isReadonlyArray(targetRange.range) ? first(targetRange.range) : targetRange.range;
|
|
144771
144763
|
const inGenericContext = isInGenericContext(unmodifiedNode);
|
|
@@ -144775,7 +144767,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
144775
144767
|
recordTypeParameterUsages(contextualType);
|
|
144776
144768
|
}
|
|
144777
144769
|
if (allTypeParameterUsages.size > 0) {
|
|
144778
|
-
const seenTypeParameterUsages = new Map();
|
|
144770
|
+
const seenTypeParameterUsages = /* @__PURE__ */ new Map();
|
|
144779
144771
|
let i = 0;
|
|
144780
144772
|
for (let curr = unmodifiedNode; curr !== void 0 && i < scopes.length; curr = curr.parent) {
|
|
144781
144773
|
if (curr === scopes[i]) {
|
|
@@ -146793,7 +146785,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
146793
146785
|
this.formatContext = formatContext;
|
|
146794
146786
|
this.changes = [];
|
|
146795
146787
|
this.newFiles = [];
|
|
146796
|
-
this.classesWithNodesInsertedAtStart = new Map();
|
|
146788
|
+
this.classesWithNodesInsertedAtStart = /* @__PURE__ */ new Map();
|
|
146797
146789
|
this.deletedNodes = [];
|
|
146798
146790
|
}
|
|
146799
146791
|
static fromContext(context) {
|
|
@@ -147242,7 +147234,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
147242
147234
|
});
|
|
147243
147235
|
}
|
|
147244
147236
|
finishDeleteDeclarations() {
|
|
147245
|
-
const deletedNodesInLists = new Set();
|
|
147237
|
+
const deletedNodesInLists = /* @__PURE__ */ new Set();
|
|
147246
147238
|
for (const { sourceFile, node } of this.deletedNodes) {
|
|
147247
147239
|
if (!this.deletedNodes.some((d) => d.sourceFile === sourceFile && rangeContainsRangeExclusive(d.node, node))) {
|
|
147248
147240
|
if (isArray(node)) {
|
|
@@ -151545,7 +151537,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
151545
151537
|
return fileName;
|
|
151546
151538
|
}
|
|
151547
151539
|
function createNormalizedPathMap() {
|
|
151548
|
-
const map2 = new Map();
|
|
151540
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
151549
151541
|
return {
|
|
151550
151542
|
get(path) {
|
|
151551
151543
|
return map2.get(path);
|
|
@@ -151581,7 +151573,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
151581
151573
|
var ThrottledOperations = class {
|
|
151582
151574
|
constructor(host, logger) {
|
|
151583
151575
|
this.host = host;
|
|
151584
|
-
this.pendingTimeouts = new Map();
|
|
151576
|
+
this.pendingTimeouts = /* @__PURE__ */ new Map();
|
|
151585
151577
|
this.logger = logger.hasLevel(3 /* verbose */) ? logger : void 0;
|
|
151586
151578
|
}
|
|
151587
151579
|
schedule(operationId, delay, cb) {
|
|
@@ -152366,7 +152358,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152366
152358
|
if ((arr1 || emptyArray2).length === 0 && (arr2 || emptyArray2).length === 0) {
|
|
152367
152359
|
return true;
|
|
152368
152360
|
}
|
|
152369
|
-
const set = new Map();
|
|
152361
|
+
const set = /* @__PURE__ */ new Map();
|
|
152370
152362
|
let unique = 0;
|
|
152371
152363
|
for (const v of arr1) {
|
|
152372
152364
|
if (set.get(v) !== true) {
|
|
@@ -152401,7 +152393,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152401
152393
|
var TypingsCache = class {
|
|
152402
152394
|
constructor(installer) {
|
|
152403
152395
|
this.installer = installer;
|
|
152404
|
-
this.perProjectCache = new Map();
|
|
152396
|
+
this.perProjectCache = /* @__PURE__ */ new Map();
|
|
152405
152397
|
}
|
|
152406
152398
|
isKnownTypesPackageName(name) {
|
|
152407
152399
|
return this.installer.isKnownTypesPackageName(name);
|
|
@@ -152526,9 +152518,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
152526
152518
|
this.compileOnSaveEnabled = compileOnSaveEnabled;
|
|
152527
152519
|
this.watchOptions = watchOptions;
|
|
152528
152520
|
this.rootFiles = [];
|
|
152529
|
-
this.rootFilesMap = new Map();
|
|
152521
|
+
this.rootFilesMap = /* @__PURE__ */ new Map();
|
|
152530
152522
|
this.plugins = [];
|
|
152531
|
-
this.cachedUnresolvedImportsPerFile = new Map();
|
|
152523
|
+
this.cachedUnresolvedImportsPerFile = /* @__PURE__ */ new Map();
|
|
152532
152524
|
this.hasAddedorRemovedFiles = false;
|
|
152533
152525
|
this.hasAddedOrRemovedSymlinks = false;
|
|
152534
152526
|
this.lastReportedVersion = 0;
|
|
@@ -153142,12 +153134,12 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153142
153134
|
this.markAsDirty();
|
|
153143
153135
|
}
|
|
153144
153136
|
registerFileUpdate(fileName) {
|
|
153145
|
-
(this.updatedFileNames || (this.updatedFileNames = new Set())).add(fileName);
|
|
153137
|
+
(this.updatedFileNames || (this.updatedFileNames = /* @__PURE__ */ new Set())).add(fileName);
|
|
153146
153138
|
}
|
|
153147
153139
|
markFileAsDirty(changedFile) {
|
|
153148
153140
|
this.markAsDirty();
|
|
153149
153141
|
if (this.exportMapCache && !this.exportMapCache.isEmpty()) {
|
|
153150
|
-
(this.changedFilesForExportMapCache || (this.changedFilesForExportMapCache = new Set())).add(changedFile);
|
|
153142
|
+
(this.changedFilesForExportMapCache || (this.changedFilesForExportMapCache = /* @__PURE__ */ new Set())).add(changedFile);
|
|
153151
153143
|
}
|
|
153152
153144
|
}
|
|
153153
153145
|
markAsDirty() {
|
|
@@ -153271,7 +153263,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153271
153263
|
}
|
|
153272
153264
|
updateMissingFilePathsWatch(
|
|
153273
153265
|
this.program,
|
|
153274
|
-
this.missingFilesMap || (this.missingFilesMap = new Map()),
|
|
153266
|
+
this.missingFilesMap || (this.missingFilesMap = /* @__PURE__ */ new Map()),
|
|
153275
153267
|
(missingFilePath) => this.addMissingFileWatcher(missingFilePath)
|
|
153276
153268
|
);
|
|
153277
153269
|
if (this.generatedFilesMap) {
|
|
@@ -153405,7 +153397,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153405
153397
|
if (this.generatedFilesMap.has(path))
|
|
153406
153398
|
return;
|
|
153407
153399
|
} else {
|
|
153408
|
-
this.generatedFilesMap = new Map();
|
|
153400
|
+
this.generatedFilesMap = /* @__PURE__ */ new Map();
|
|
153409
153401
|
}
|
|
153410
153402
|
this.generatedFilesMap.set(path, this.createGeneratedFileWatcher(generatedFile));
|
|
153411
153403
|
}
|
|
@@ -153539,8 +153531,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
153539
153531
|
(info2) => info2.fileName,
|
|
153540
153532
|
(info2) => info2.isSourceOfProjectReferenceRedirect
|
|
153541
153533
|
);
|
|
153542
|
-
const added = new Map();
|
|
153543
|
-
const removed = new Map();
|
|
153534
|
+
const added = /* @__PURE__ */ new Map();
|
|
153535
|
+
const removed = /* @__PURE__ */ new Map();
|
|
153544
153536
|
const updated = updatedFileNames ? arrayFrom(updatedFileNames.keys()) : [];
|
|
153545
153537
|
const updatedRedirects = [];
|
|
153546
153538
|
forEachEntry(currentFiles, (isSourceOfProjectReferenceRedirect, fileName) => {
|
|
@@ -154056,7 +154048,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154056
154048
|
return rootNames || emptyArray;
|
|
154057
154049
|
function addDependency(dependency) {
|
|
154058
154050
|
if (!startsWith(dependency, "@types/")) {
|
|
154059
|
-
(dependencyNames || (dependencyNames = new Set())).add(dependency);
|
|
154051
|
+
(dependencyNames || (dependencyNames = /* @__PURE__ */ new Set())).add(dependency);
|
|
154060
154052
|
}
|
|
154061
154053
|
}
|
|
154062
154054
|
function getRootNamesFromPackageJson(packageJson, program2, symlinkCache, resolveJs) {
|
|
@@ -154194,7 +154186,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154194
154186
|
getDirectoryPath(configFileName)
|
|
154195
154187
|
);
|
|
154196
154188
|
this.canonicalConfigFilePath = canonicalConfigFilePath;
|
|
154197
|
-
this.openFileWatchTriggered = new Map();
|
|
154189
|
+
this.openFileWatchTriggered = /* @__PURE__ */ new Map();
|
|
154198
154190
|
this.canConfigFileJsonReportNoInputFiles = false;
|
|
154199
154191
|
this.externalProjectRefCount = 0;
|
|
154200
154192
|
this.isInitialLoadPending = returnTrue;
|
|
@@ -154270,7 +154262,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154270
154262
|
}
|
|
154271
154263
|
setPotentialProjectReference(canonicalConfigPath) {
|
|
154272
154264
|
Debug.assert(this.isInitialLoadPending());
|
|
154273
|
-
(this.potentialProjectReferences || (this.potentialProjectReferences = new Set())).add(canonicalConfigPath);
|
|
154265
|
+
(this.potentialProjectReferences || (this.potentialProjectReferences = /* @__PURE__ */ new Set())).add(canonicalConfigPath);
|
|
154274
154266
|
}
|
|
154275
154267
|
getResolvedProjectReferenceToRedirect(fileName) {
|
|
154276
154268
|
const program = this.getCurrentProgram();
|
|
@@ -154423,7 +154415,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154423
154415
|
var OpenFileInfoTelemetryEvent = "openFileInfo";
|
|
154424
154416
|
var ensureProjectForOpenFileSchedule = "*ensureProjectForOpenFiles*";
|
|
154425
154417
|
function prepareConvertersForEnumLikeCompilerOptions(commandLineOptions) {
|
|
154426
|
-
const map2 = new Map();
|
|
154418
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
154427
154419
|
for (const option of commandLineOptions) {
|
|
154428
154420
|
if (typeof option.type === "object") {
|
|
154429
154421
|
const optionMap = option.type;
|
|
@@ -154586,7 +154578,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154586
154578
|
if (result)
|
|
154587
154579
|
return result;
|
|
154588
154580
|
} else if (projectReferenceProjectLoadKind !== 0 /* Find */) {
|
|
154589
|
-
seenResolvedRefs = new Map();
|
|
154581
|
+
seenResolvedRefs = /* @__PURE__ */ new Map();
|
|
154590
154582
|
const result = forEachResolvedProjectReferenceProjectWorker(
|
|
154591
154583
|
resolvedRefs,
|
|
154592
154584
|
project.getCompilerOptions(),
|
|
@@ -154629,7 +154621,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154629
154621
|
if (result) {
|
|
154630
154622
|
return result;
|
|
154631
154623
|
}
|
|
154632
|
-
(seenResolvedRefs || (seenResolvedRefs = new Map())).set(canonicalPath, loadKind);
|
|
154624
|
+
(seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Map())).set(canonicalPath, loadKind);
|
|
154633
154625
|
return ref.references && forEachResolvedProjectReferenceProjectWorker(ref.references, ref.commandLine.options, cb, loadKind, projectService, seenResolvedRefs);
|
|
154634
154626
|
});
|
|
154635
154627
|
}
|
|
@@ -154675,32 +154667,32 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
154675
154667
|
}
|
|
154676
154668
|
var _ProjectService = class {
|
|
154677
154669
|
constructor(opts) {
|
|
154678
|
-
this.filenameToScriptInfo = new Map();
|
|
154679
|
-
this.nodeModulesWatchers = new Map();
|
|
154680
|
-
this.filenameToScriptInfoVersion = new Map();
|
|
154681
|
-
this.allJsFilesForOpenFileTelemetry = new Map();
|
|
154682
|
-
this.externalProjectToConfiguredProjectMap = new Map();
|
|
154670
|
+
this.filenameToScriptInfo = /* @__PURE__ */ new Map();
|
|
154671
|
+
this.nodeModulesWatchers = /* @__PURE__ */ new Map();
|
|
154672
|
+
this.filenameToScriptInfoVersion = /* @__PURE__ */ new Map();
|
|
154673
|
+
this.allJsFilesForOpenFileTelemetry = /* @__PURE__ */ new Map();
|
|
154674
|
+
this.externalProjectToConfiguredProjectMap = /* @__PURE__ */ new Map();
|
|
154683
154675
|
this.externalProjects = [];
|
|
154684
154676
|
this.inferredProjects = [];
|
|
154685
|
-
this.configuredProjects = new Map();
|
|
154677
|
+
this.configuredProjects = /* @__PURE__ */ new Map();
|
|
154686
154678
|
this.newInferredProjectName = createProjectNameFactoryWithCounter(makeInferredProjectName);
|
|
154687
154679
|
this.newAutoImportProviderProjectName = createProjectNameFactoryWithCounter(makeAutoImportProviderProjectName);
|
|
154688
154680
|
this.newAuxiliaryProjectName = createProjectNameFactoryWithCounter(makeAuxiliaryProjectName);
|
|
154689
|
-
this.openFiles = new Map();
|
|
154690
|
-
this.configFileForOpenFiles = new Map();
|
|
154691
|
-
this.openFilesWithNonRootedDiskPath = new Map();
|
|
154692
|
-
this.compilerOptionsForInferredProjectsPerProjectRoot = new Map();
|
|
154693
|
-
this.watchOptionsForInferredProjectsPerProjectRoot = new Map();
|
|
154694
|
-
this.typeAcquisitionForInferredProjectsPerProjectRoot = new Map();
|
|
154695
|
-
this.projectToSizeMap = new Map();
|
|
154696
|
-
this.configFileExistenceInfoCache = new Map();
|
|
154681
|
+
this.openFiles = /* @__PURE__ */ new Map();
|
|
154682
|
+
this.configFileForOpenFiles = /* @__PURE__ */ new Map();
|
|
154683
|
+
this.openFilesWithNonRootedDiskPath = /* @__PURE__ */ new Map();
|
|
154684
|
+
this.compilerOptionsForInferredProjectsPerProjectRoot = /* @__PURE__ */ new Map();
|
|
154685
|
+
this.watchOptionsForInferredProjectsPerProjectRoot = /* @__PURE__ */ new Map();
|
|
154686
|
+
this.typeAcquisitionForInferredProjectsPerProjectRoot = /* @__PURE__ */ new Map();
|
|
154687
|
+
this.projectToSizeMap = /* @__PURE__ */ new Map();
|
|
154688
|
+
this.configFileExistenceInfoCache = /* @__PURE__ */ new Map();
|
|
154697
154689
|
this.safelist = defaultTypeSafeList;
|
|
154698
|
-
this.legacySafelist = new Map();
|
|
154699
|
-
this.pendingProjectUpdates = new Map();
|
|
154690
|
+
this.legacySafelist = /* @__PURE__ */ new Map();
|
|
154691
|
+
this.pendingProjectUpdates = /* @__PURE__ */ new Map();
|
|
154700
154692
|
this.pendingEnsureProjectForOpenFiles = false;
|
|
154701
|
-
this.seenProjects = new Map();
|
|
154702
|
-
this.sharedExtendedConfigFileWatchers = new Map();
|
|
154703
|
-
this.extendedConfigCache = new Map();
|
|
154693
|
+
this.seenProjects = /* @__PURE__ */ new Map();
|
|
154694
|
+
this.sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map();
|
|
154695
|
+
this.extendedConfigCache = /* @__PURE__ */ new Map();
|
|
154704
154696
|
this.host = opts.host;
|
|
154705
154697
|
this.logger = opts.logger;
|
|
154706
154698
|
this.cancellationToken = opts.cancellationToken;
|
|
@@ -155300,14 +155292,14 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155300
155292
|
let configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath);
|
|
155301
155293
|
if (configFileExistenceInfo) {
|
|
155302
155294
|
if (isOpenScriptInfo(info) && !((_a2 = configFileExistenceInfo.openFilesImpactedByConfigFile) == null ? void 0 : _a2.has(info.path))) {
|
|
155303
|
-
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = new Map())).set(info.path, false);
|
|
155295
|
+
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = /* @__PURE__ */ new Map())).set(info.path, false);
|
|
155304
155296
|
}
|
|
155305
155297
|
return configFileExistenceInfo.exists;
|
|
155306
155298
|
}
|
|
155307
155299
|
const exists = this.host.fileExists(configFileName);
|
|
155308
155300
|
let openFilesImpactedByConfigFile;
|
|
155309
155301
|
if (isOpenScriptInfo(info)) {
|
|
155310
|
-
(openFilesImpactedByConfigFile || (openFilesImpactedByConfigFile = new Map())).set(info.path, false);
|
|
155302
|
+
(openFilesImpactedByConfigFile || (openFilesImpactedByConfigFile = /* @__PURE__ */ new Map())).set(info.path, false);
|
|
155311
155303
|
}
|
|
155312
155304
|
configFileExistenceInfo = { exists, openFilesImpactedByConfigFile };
|
|
155313
155305
|
this.configFileExistenceInfoCache.set(canonicalConfigFilePath, configFileExistenceInfo);
|
|
@@ -155389,7 +155381,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155389
155381
|
configFileExistenceInfo = { exists: this.host.fileExists(configFileName) };
|
|
155390
155382
|
this.configFileExistenceInfoCache.set(canonicalConfigFilePath, configFileExistenceInfo);
|
|
155391
155383
|
}
|
|
155392
|
-
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = new Map())).set(info.path, true);
|
|
155384
|
+
(configFileExistenceInfo.openFilesImpactedByConfigFile || (configFileExistenceInfo.openFilesImpactedByConfigFile = /* @__PURE__ */ new Map())).set(info.path, true);
|
|
155393
155385
|
configFileExistenceInfo.watcher || (configFileExistenceInfo.watcher = canWatchDirectoryOrFile(getDirectoryPath(canonicalConfigFilePath)) ? this.watchFactory.watchFile(
|
|
155394
155386
|
configFileName,
|
|
155395
155387
|
(_filename, eventKind) => this.onConfigFileChanged(canonicalConfigFilePath, eventKind),
|
|
@@ -155600,7 +155592,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155600
155592
|
if (!configFileExistenceInfo.config) {
|
|
155601
155593
|
configFileExistenceInfo.config = {
|
|
155602
155594
|
cachedDirectoryStructureHost: createCachedDirectoryStructureHost(this.host, this.host.getCurrentDirectory(), this.host.useCaseSensitiveFileNames),
|
|
155603
|
-
projects: new Map(),
|
|
155595
|
+
projects: /* @__PURE__ */ new Map(),
|
|
155604
155596
|
reloadLevel: 2 /* Full */
|
|
155605
155597
|
};
|
|
155606
155598
|
}
|
|
@@ -155708,7 +155700,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155708
155700
|
}, void 0, " ")}`);
|
|
155709
155701
|
const oldCommandLine = (_b = configFileExistenceInfo.config) == null ? void 0 : _b.parsedCommandLine;
|
|
155710
155702
|
if (!configFileExistenceInfo.config) {
|
|
155711
|
-
configFileExistenceInfo.config = { parsedCommandLine, cachedDirectoryStructureHost, projects: new Map() };
|
|
155703
|
+
configFileExistenceInfo.config = { parsedCommandLine, cachedDirectoryStructureHost, projects: /* @__PURE__ */ new Map() };
|
|
155712
155704
|
} else {
|
|
155713
155705
|
configFileExistenceInfo.config.parsedCommandLine = parsedCommandLine;
|
|
155714
155706
|
configFileExistenceInfo.config.watchedDirectoriesStale = true;
|
|
@@ -155754,7 +155746,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155754
155746
|
return;
|
|
155755
155747
|
config.watchedDirectoriesStale = false;
|
|
155756
155748
|
updateWatchingWildcardDirectories(
|
|
155757
|
-
config.watchedDirectories || (config.watchedDirectories = new Map()),
|
|
155749
|
+
config.watchedDirectories || (config.watchedDirectories = /* @__PURE__ */ new Map()),
|
|
155758
155750
|
new Map(getEntries(config.parsedCommandLine.wildcardDirectories)),
|
|
155759
155751
|
(directory, flags) => this.watchWildcardDirectory(directory, flags, configFileName, config)
|
|
155760
155752
|
);
|
|
@@ -155782,7 +155774,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
155782
155774
|
}
|
|
155783
155775
|
updateNonInferredProjectFiles(project, files, propertyReader) {
|
|
155784
155776
|
const projectRootFilesMap = project.getRootFilesMap();
|
|
155785
|
-
const newRootScriptInfoMap = new Map();
|
|
155777
|
+
const newRootScriptInfoMap = /* @__PURE__ */ new Map();
|
|
155786
155778
|
for (const f of files) {
|
|
155787
155779
|
const newRootFile = propertyReader.getFileName(f);
|
|
155788
155780
|
const fileName = toNormalizedPath(newRootFile);
|
|
@@ -156081,7 +156073,7 @@ All files are: ${JSON.stringify(names)}`, "Err" /* Err */);
|
|
|
156081
156073
|
}
|
|
156082
156074
|
watchPackageJsonsInNodeModules(dir, project) {
|
|
156083
156075
|
const watcher = this.nodeModulesWatchers.get(dir) || this.createNodeModulesWatcher(dir);
|
|
156084
|
-
(watcher.affectedModuleSpecifierCacheProjects || (watcher.affectedModuleSpecifierCacheProjects = new Set())).add(project.getProjectName());
|
|
156076
|
+
(watcher.affectedModuleSpecifierCacheProjects || (watcher.affectedModuleSpecifierCacheProjects = /* @__PURE__ */ new Set())).add(project.getProjectName());
|
|
156085
156077
|
return {
|
|
156086
156078
|
close: () => {
|
|
156087
156079
|
var _a2;
|
|
@@ -156249,7 +156241,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156249
156241
|
addSourceInfoToSourceMap(sourceFileName, project, sourceInfos) {
|
|
156250
156242
|
if (sourceFileName) {
|
|
156251
156243
|
const sourceInfo = this.getOrCreateScriptInfoNotOpenedByClient(sourceFileName, project.currentDirectory, project.directoryStructureHost);
|
|
156252
|
-
(sourceInfos || (sourceInfos = new Set())).add(sourceInfo.path);
|
|
156244
|
+
(sourceInfos || (sourceInfos = /* @__PURE__ */ new Set())).add(sourceInfo.path);
|
|
156253
156245
|
}
|
|
156254
156246
|
return sourceInfos;
|
|
156255
156247
|
}
|
|
@@ -156284,7 +156276,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156284
156276
|
if (declarationInfo && isString(declarationInfo.sourceMapFilePath) && info !== declarationInfo) {
|
|
156285
156277
|
const sourceMapInfo = this.getScriptInfoForPath(declarationInfo.sourceMapFilePath);
|
|
156286
156278
|
if (sourceMapInfo) {
|
|
156287
|
-
(sourceMapInfo.sourceInfos || (sourceMapInfo.sourceInfos = new Set())).add(info.path);
|
|
156279
|
+
(sourceMapInfo.sourceInfos || (sourceMapInfo.sourceInfos = /* @__PURE__ */ new Set())).add(info.path);
|
|
156288
156280
|
}
|
|
156289
156281
|
}
|
|
156290
156282
|
if (info.cacheSourceFile)
|
|
@@ -156389,7 +156381,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156389
156381
|
this.ensureProjectForOpenFiles();
|
|
156390
156382
|
}
|
|
156391
156383
|
reloadConfiguredProjectForFiles(openFiles, clearSemanticCache, delayReload, shouldReloadProjectFor, reason) {
|
|
156392
|
-
const updatedProjects = new Map();
|
|
156384
|
+
const updatedProjects = /* @__PURE__ */ new Map();
|
|
156393
156385
|
const reloadChildProject = (child) => {
|
|
156394
156386
|
if (!updatedProjects.has(child.canonicalConfigFilePath)) {
|
|
156395
156387
|
updatedProjects.set(child.canonicalConfigFilePath, true);
|
|
@@ -156522,7 +156514,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156522
156514
|
return originalLocation;
|
|
156523
156515
|
function addOriginalConfiguredProject(originalProject) {
|
|
156524
156516
|
if (!project.originalConfiguredProjects) {
|
|
156525
|
-
project.originalConfiguredProjects = new Set();
|
|
156517
|
+
project.originalConfiguredProjects = /* @__PURE__ */ new Set();
|
|
156526
156518
|
}
|
|
156527
156519
|
project.originalConfiguredProjects.add(originalProject.canonicalConfigFilePath);
|
|
156528
156520
|
}
|
|
@@ -156633,7 +156625,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
156633
156625
|
this.configuredProjects,
|
|
156634
156626
|
(key, project) => !project.isInitialLoadPending() ? [key, true] : void 0
|
|
156635
156627
|
);
|
|
156636
|
-
const seenProjects = new Set();
|
|
156628
|
+
const seenProjects = /* @__PURE__ */ new Set();
|
|
156637
156629
|
for (const project of arrayFrom(this.configuredProjects.values())) {
|
|
156638
156630
|
if (forEachPotentialProjectReference(project, (potentialRefPath) => forProjects.has(potentialRefPath))) {
|
|
156639
156631
|
updateProjectIfDirty(project);
|
|
@@ -157095,7 +157087,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157095
157087
|
}
|
|
157096
157088
|
if (this.host.importPlugin) {
|
|
157097
157089
|
const importPromise = project.beginEnablePluginAsync(pluginConfigEntry, searchPaths, pluginConfigOverrides);
|
|
157098
|
-
(_a2 = this.pendingPluginEnablements) != null ? _a2 : this.pendingPluginEnablements = new Map();
|
|
157090
|
+
(_a2 = this.pendingPluginEnablements) != null ? _a2 : this.pendingPluginEnablements = /* @__PURE__ */ new Map();
|
|
157099
157091
|
let promises = this.pendingPluginEnablements.get(project);
|
|
157100
157092
|
if (!promises)
|
|
157101
157093
|
this.pendingPluginEnablements.set(project, promises = []);
|
|
@@ -157150,7 +157142,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157150
157142
|
}
|
|
157151
157143
|
configurePlugin(args) {
|
|
157152
157144
|
this.forEachEnabledProject((project) => project.onPluginConfigurationChanged(args.pluginName, args.configuration));
|
|
157153
|
-
this.currentPluginConfigOverrides = this.currentPluginConfigOverrides || new Map();
|
|
157145
|
+
this.currentPluginConfigOverrides = this.currentPluginConfigOverrides || /* @__PURE__ */ new Map();
|
|
157154
157146
|
this.currentPluginConfigOverrides.set(args.pluginName, args.configuration);
|
|
157155
157147
|
}
|
|
157156
157148
|
getPackageJsonsVisibleToFile(fileName, rootDir) {
|
|
@@ -157190,7 +157182,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157190
157182
|
});
|
|
157191
157183
|
}
|
|
157192
157184
|
watchPackageJsonFile(path) {
|
|
157193
|
-
const watchers = this.packageJsonFilesMap || (this.packageJsonFilesMap = new Map());
|
|
157185
|
+
const watchers = this.packageJsonFilesMap || (this.packageJsonFilesMap = /* @__PURE__ */ new Map());
|
|
157194
157186
|
if (!watchers.has(path)) {
|
|
157195
157187
|
this.invalidateProjectPackageJson(path);
|
|
157196
157188
|
watchers.set(path, this.watchFactory.watchFile(
|
|
@@ -157288,7 +157280,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157288
157280
|
if (p.isInNodeModules) {
|
|
157289
157281
|
const nodeModulesPath = p.path.substring(0, p.path.indexOf(nodeModulesPathPart) + nodeModulesPathPart.length - 1);
|
|
157290
157282
|
if (!(containedNodeModulesWatchers == null ? void 0 : containedNodeModulesWatchers.has(nodeModulesPath))) {
|
|
157291
|
-
(containedNodeModulesWatchers || (containedNodeModulesWatchers = new Map())).set(
|
|
157283
|
+
(containedNodeModulesWatchers || (containedNodeModulesWatchers = /* @__PURE__ */ new Map())).set(
|
|
157292
157284
|
nodeModulesPath,
|
|
157293
157285
|
host.watchNodeModulesForPackageJsonChanges(nodeModulesPath)
|
|
157294
157286
|
);
|
|
@@ -157335,7 +157327,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157335
157327
|
result.clear();
|
|
157336
157328
|
}
|
|
157337
157329
|
currentKey = newKey;
|
|
157338
|
-
return cache || (cache = new Map());
|
|
157330
|
+
return cache || (cache = /* @__PURE__ */ new Map());
|
|
157339
157331
|
}
|
|
157340
157332
|
function key(fromFileName, preferences, options) {
|
|
157341
157333
|
return `${fromFileName},${preferences.importModuleSpecifierEnding},${preferences.importModuleSpecifierPreference},${options.overrideImportMode}`;
|
|
@@ -157347,8 +157339,8 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
157347
157339
|
|
|
157348
157340
|
// src/server/packageJsonCache.ts
|
|
157349
157341
|
function createPackageJsonCache(host) {
|
|
157350
|
-
const packageJsons = new Map();
|
|
157351
|
-
const directoriesWithoutPackageJson = new Map();
|
|
157342
|
+
const packageJsons = /* @__PURE__ */ new Map();
|
|
157343
|
+
const directoriesWithoutPackageJson = /* @__PURE__ */ new Map();
|
|
157352
157344
|
return {
|
|
157353
157345
|
addOrUpdate,
|
|
157354
157346
|
forEach: packageJsons.forEach.bind(packageJsons),
|
|
@@ -157641,7 +157633,7 @@ ${json}${newLine}`;
|
|
|
157641
157633
|
}
|
|
157642
157634
|
}
|
|
157643
157635
|
}
|
|
157644
|
-
const updatedProjects = new Set();
|
|
157636
|
+
const updatedProjects = /* @__PURE__ */ new Set();
|
|
157645
157637
|
while (true) {
|
|
157646
157638
|
let progress = false;
|
|
157647
157639
|
perProjectResults.forEach((referencedSymbols, project) => {
|
|
@@ -157705,7 +157697,7 @@ ${json}${newLine}`;
|
|
|
157705
157697
|
}
|
|
157706
157698
|
}
|
|
157707
157699
|
function getPerProjectReferences(projects, defaultProject, initialLocation, isForRename, getResultsForPosition, forPositionInResult) {
|
|
157708
|
-
const resultsMap = new Map();
|
|
157700
|
+
const resultsMap = /* @__PURE__ */ new Map();
|
|
157709
157701
|
const queue = createQueue();
|
|
157710
157702
|
queue.enqueue({ project: defaultProject, location: initialLocation });
|
|
157711
157703
|
forEachProjectInProjects(projects, initialLocation.fileName, (project, path) => {
|
|
@@ -157717,7 +157709,7 @@ ${json}${newLine}`;
|
|
|
157717
157709
|
const defaultDefinition = getDefinitionLocation(defaultProject, initialLocation, isForRename);
|
|
157718
157710
|
const getGeneratedDefinition = memoize(() => defaultProject.isSourceOfProjectReferenceRedirect(defaultDefinition.fileName) ? defaultDefinition : defaultProject.getLanguageService().getSourceMapper().tryGetGeneratedPosition(defaultDefinition));
|
|
157719
157711
|
const getSourceDefinition = memoize(() => defaultProject.isSourceOfProjectReferenceRedirect(defaultDefinition.fileName) ? defaultDefinition : defaultProject.getLanguageService().getSourceMapper().tryGetSourcePosition(defaultDefinition));
|
|
157720
|
-
const searchedProjectKeys = new Set();
|
|
157712
|
+
const searchedProjectKeys = /* @__PURE__ */ new Set();
|
|
157721
157713
|
onCancellation:
|
|
157722
157714
|
while (!queue.isEmpty()) {
|
|
157723
157715
|
while (!queue.isEmpty()) {
|
|
@@ -159138,7 +159130,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
159138
159130
|
}
|
|
159139
159131
|
}
|
|
159140
159132
|
toSpanGroups(locations) {
|
|
159141
|
-
const map2 = new Map();
|
|
159133
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
159142
159134
|
for (const { fileName, textSpan, contextSpan, originalContextSpan: _2, originalTextSpan: _, originalFileName: _1, ...prefixSuffixText } of locations) {
|
|
159143
159135
|
let group2 = map2.get(fileName);
|
|
159144
159136
|
if (!group2)
|
|
@@ -159648,7 +159640,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
159648
159640
|
return [{ project, navigateToItems: project.getLanguageService().getNavigateToItems(searchValue, maxResultCount, file) }];
|
|
159649
159641
|
}
|
|
159650
159642
|
const outputs = [];
|
|
159651
|
-
const seenItems = new Map();
|
|
159643
|
+
const seenItems = /* @__PURE__ */ new Map();
|
|
159652
159644
|
if (!args.file && !projectFileName) {
|
|
159653
159645
|
this.projectService.loadAncestorProjectTree();
|
|
159654
159646
|
this.projectService.forEachEnabledProject((project) => addItemsForProject(project));
|
|
@@ -159769,7 +159761,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
159769
159761
|
const newPath = toNormalizedPath(args.newFilePath);
|
|
159770
159762
|
const formatOptions = this.getHostFormatOptions();
|
|
159771
159763
|
const preferences = this.getHostPreferences();
|
|
159772
|
-
const seenFiles = new Set();
|
|
159764
|
+
const seenFiles = /* @__PURE__ */ new Set();
|
|
159773
159765
|
const textChanges2 = [];
|
|
159774
159766
|
this.projectService.loadAncestorProjectTree();
|
|
159775
159767
|
this.projectService.forEachEnabledProject((project) => {
|
|
@@ -161224,7 +161216,7 @@ ${e.message}`;
|
|
|
161224
161216
|
let canWrite = true;
|
|
161225
161217
|
if (useWatchGuard) {
|
|
161226
161218
|
const currentDrive = extractWatchDirectoryCacheKey(sys2.resolvePath(sys2.getCurrentDirectory()), void 0);
|
|
161227
|
-
const statusCache = new Map();
|
|
161219
|
+
const statusCache = /* @__PURE__ */ new Map();
|
|
161228
161220
|
sys2.watchDirectory = (path, callback, recursive, options) => {
|
|
161229
161221
|
const cacheKey = extractWatchDirectoryCacheKey(path, currentDrive);
|
|
161230
161222
|
let status = cacheKey && statusCache.get(cacheKey);
|
|
@@ -161389,7 +161381,7 @@ ${e.message}`;
|
|
|
161389
161381
|
this.event = event;
|
|
161390
161382
|
this.activeRequestCount = 0;
|
|
161391
161383
|
this.requestQueue = createQueue();
|
|
161392
|
-
this.requestMap = new Map();
|
|
161384
|
+
this.requestMap = /* @__PURE__ */ new Map();
|
|
161393
161385
|
this.requestedRegistry = false;
|
|
161394
161386
|
}
|
|
161395
161387
|
isKnownTypesPackageName(name) {
|