typescript 5.7.0-dev.20240914 → 5.7.0-dev.20240916

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 CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.7";
21
- var version = `${versionMajorMinor}.0-dev.20240914`;
21
+ var version = `${versionMajorMinor}.0-dev.20240916`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3854,6 +3854,42 @@ var EmitFlags = /* @__PURE__ */ ((EmitFlags3) => {
3854
3854
  EmitFlags3[EmitFlags3["NoAsciiEscaping"] = 16777216] = "NoAsciiEscaping";
3855
3855
  return EmitFlags3;
3856
3856
  })(EmitFlags || {});
3857
+ var LanguageFeatureMinimumTarget = {
3858
+ Classes: 2 /* ES2015 */,
3859
+ ForOf: 2 /* ES2015 */,
3860
+ Generators: 2 /* ES2015 */,
3861
+ Iteration: 2 /* ES2015 */,
3862
+ SpreadElements: 2 /* ES2015 */,
3863
+ RestElements: 2 /* ES2015 */,
3864
+ TaggedTemplates: 2 /* ES2015 */,
3865
+ DestructuringAssignment: 2 /* ES2015 */,
3866
+ BindingPatterns: 2 /* ES2015 */,
3867
+ ArrowFunctions: 2 /* ES2015 */,
3868
+ BlockScopedVariables: 2 /* ES2015 */,
3869
+ ObjectAssign: 2 /* ES2015 */,
3870
+ RegularExpressionFlagsUnicode: 2 /* ES2015 */,
3871
+ RegularExpressionFlagsSticky: 2 /* ES2015 */,
3872
+ Exponentiation: 3 /* ES2016 */,
3873
+ AsyncFunctions: 4 /* ES2017 */,
3874
+ ForAwaitOf: 5 /* ES2018 */,
3875
+ AsyncGenerators: 5 /* ES2018 */,
3876
+ AsyncIteration: 5 /* ES2018 */,
3877
+ ObjectSpreadRest: 5 /* ES2018 */,
3878
+ RegularExpressionFlagsDotAll: 5 /* ES2018 */,
3879
+ BindinglessCatch: 6 /* ES2019 */,
3880
+ BigInt: 7 /* ES2020 */,
3881
+ NullishCoalesce: 7 /* ES2020 */,
3882
+ OptionalChaining: 7 /* ES2020 */,
3883
+ LogicalAssignment: 8 /* ES2021 */,
3884
+ TopLevelAwait: 9 /* ES2022 */,
3885
+ ClassFields: 9 /* ES2022 */,
3886
+ PrivateNamesAndClassStaticBlocks: 9 /* ES2022 */,
3887
+ RegularExpressionFlagsHasIndices: 9 /* ES2022 */,
3888
+ ShebangComments: 99 /* ESNext */,
3889
+ UsingAndAwaitUsing: 99 /* ESNext */,
3890
+ ClassAndClassElementDecorators: 99 /* ESNext */,
3891
+ RegularExpressionFlagsUnicodeSets: 99 /* ESNext */
3892
+ };
3857
3893
  var commentPragmas = {
3858
3894
  "reference": {
3859
3895
  args: [
@@ -8070,11 +8106,11 @@ var charCodeToRegExpFlag = /* @__PURE__ */ new Map([
8070
8106
  [121 /* y */, 128 /* Sticky */]
8071
8107
  ]);
8072
8108
  var regExpFlagToFirstAvailableLanguageVersion = /* @__PURE__ */ new Map([
8073
- [1 /* HasIndices */, 9 /* RegularExpressionFlagsHasIndices */],
8074
- [16 /* DotAll */, 5 /* RegularExpressionFlagsDotAll */],
8075
- [32 /* Unicode */, 2 /* RegularExpressionFlagsUnicode */],
8076
- [64 /* UnicodeSets */, 99 /* RegularExpressionFlagsUnicodeSets */],
8077
- [128 /* Sticky */, 2 /* RegularExpressionFlagsSticky */]
8109
+ [1 /* HasIndices */, LanguageFeatureMinimumTarget.RegularExpressionFlagsHasIndices],
8110
+ [16 /* DotAll */, LanguageFeatureMinimumTarget.RegularExpressionFlagsDotAll],
8111
+ [32 /* Unicode */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicode],
8112
+ [64 /* UnicodeSets */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicodeSets],
8113
+ [128 /* Sticky */, LanguageFeatureMinimumTarget.RegularExpressionFlagsSticky]
8078
8114
  ]);
8079
8115
  var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
8080
8116
  var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
@@ -15006,17 +15042,15 @@ function isDefaultImport(node) {
15006
15042
  return (node.kind === 272 /* ImportDeclaration */ || node.kind === 351 /* JSDocImportTag */) && !!node.importClause && !!node.importClause.name;
15007
15043
  }
15008
15044
  function hasQuestionToken(node) {
15009
- if (node) {
15010
- switch (node.kind) {
15011
- case 169 /* Parameter */:
15012
- case 174 /* MethodDeclaration */:
15013
- case 173 /* MethodSignature */:
15014
- case 304 /* ShorthandPropertyAssignment */:
15015
- case 303 /* PropertyAssignment */:
15016
- case 172 /* PropertyDeclaration */:
15017
- case 171 /* PropertySignature */:
15018
- return node.questionToken !== void 0;
15019
- }
15045
+ switch (node.kind) {
15046
+ case 169 /* Parameter */:
15047
+ case 174 /* MethodDeclaration */:
15048
+ case 173 /* MethodSignature */:
15049
+ case 304 /* ShorthandPropertyAssignment */:
15050
+ case 303 /* PropertyAssignment */:
15051
+ case 172 /* PropertyDeclaration */:
15052
+ case 171 /* PropertySignature */:
15053
+ return node.questionToken !== void 0;
15020
15054
  }
15021
15055
  return false;
15022
15056
  }
@@ -17697,7 +17731,7 @@ function importSyntaxAffectsModuleResolution(options) {
17697
17731
  function createComputedCompilerOptions(options) {
17698
17732
  return options;
17699
17733
  }
17700
- var computedOptions = createComputedCompilerOptions({
17734
+ var _computedOptions = createComputedCompilerOptions({
17701
17735
  target: {
17702
17736
  dependencies: ["module"],
17703
17737
  computeValue: (compilerOptions) => {
@@ -17708,7 +17742,7 @@ var computedOptions = createComputedCompilerOptions({
17708
17742
  module: {
17709
17743
  dependencies: ["target"],
17710
17744
  computeValue: (compilerOptions) => {
17711
- return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
17745
+ return typeof compilerOptions.module === "number" ? compilerOptions.module : _computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
17712
17746
  }
17713
17747
  },
17714
17748
  moduleResolution: {
@@ -17716,7 +17750,7 @@ var computedOptions = createComputedCompilerOptions({
17716
17750
  computeValue: (compilerOptions) => {
17717
17751
  let moduleResolution = compilerOptions.moduleResolution;
17718
17752
  if (moduleResolution === void 0) {
17719
- switch (computedOptions.module.computeValue(compilerOptions)) {
17753
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
17720
17754
  case 1 /* CommonJS */:
17721
17755
  moduleResolution = 2 /* Node10 */;
17722
17756
  break;
@@ -17740,7 +17774,7 @@ var computedOptions = createComputedCompilerOptions({
17740
17774
  moduleDetection: {
17741
17775
  dependencies: ["module", "target"],
17742
17776
  computeValue: (compilerOptions) => {
17743
- return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
17777
+ return compilerOptions.moduleDetection || (_computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || _computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
17744
17778
  }
17745
17779
  },
17746
17780
  isolatedModules: {
@@ -17755,7 +17789,7 @@ var computedOptions = createComputedCompilerOptions({
17755
17789
  if (compilerOptions.esModuleInterop !== void 0) {
17756
17790
  return compilerOptions.esModuleInterop;
17757
17791
  }
17758
- switch (computedOptions.module.computeValue(compilerOptions)) {
17792
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
17759
17793
  case 100 /* Node16 */:
17760
17794
  case 199 /* NodeNext */:
17761
17795
  case 200 /* Preserve */:
@@ -17770,13 +17804,13 @@ var computedOptions = createComputedCompilerOptions({
17770
17804
  if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
17771
17805
  return compilerOptions.allowSyntheticDefaultImports;
17772
17806
  }
17773
- return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17807
+ return _computedOptions.esModuleInterop.computeValue(compilerOptions) || _computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17774
17808
  }
17775
17809
  },
17776
17810
  resolvePackageJsonExports: {
17777
17811
  dependencies: ["moduleResolution"],
17778
17812
  computeValue: (compilerOptions) => {
17779
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
17813
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
17780
17814
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
17781
17815
  return false;
17782
17816
  }
@@ -17795,7 +17829,7 @@ var computedOptions = createComputedCompilerOptions({
17795
17829
  resolvePackageJsonImports: {
17796
17830
  dependencies: ["moduleResolution", "resolvePackageJsonExports"],
17797
17831
  computeValue: (compilerOptions) => {
17798
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
17832
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
17799
17833
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
17800
17834
  return false;
17801
17835
  }
@@ -17817,7 +17851,7 @@ var computedOptions = createComputedCompilerOptions({
17817
17851
  if (compilerOptions.resolveJsonModule !== void 0) {
17818
17852
  return compilerOptions.resolveJsonModule;
17819
17853
  }
17820
- return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17854
+ return _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17821
17855
  }
17822
17856
  },
17823
17857
  declaration: {
@@ -17829,7 +17863,7 @@ var computedOptions = createComputedCompilerOptions({
17829
17863
  preserveConstEnums: {
17830
17864
  dependencies: ["isolatedModules", "verbatimModuleSyntax"],
17831
17865
  computeValue: (compilerOptions) => {
17832
- return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions));
17866
+ return !!(compilerOptions.preserveConstEnums || _computedOptions.isolatedModules.computeValue(compilerOptions));
17833
17867
  }
17834
17868
  },
17835
17869
  incremental: {
@@ -17841,7 +17875,7 @@ var computedOptions = createComputedCompilerOptions({
17841
17875
  declarationMap: {
17842
17876
  dependencies: ["declaration", "composite"],
17843
17877
  computeValue: (compilerOptions) => {
17844
- return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions));
17878
+ return !!(compilerOptions.declarationMap && _computedOptions.declaration.computeValue(compilerOptions));
17845
17879
  }
17846
17880
  },
17847
17881
  allowJs: {
@@ -17853,7 +17887,7 @@ var computedOptions = createComputedCompilerOptions({
17853
17887
  useDefineForClassFields: {
17854
17888
  dependencies: ["target", "module"],
17855
17889
  computeValue: (compilerOptions) => {
17856
- return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
17890
+ return compilerOptions.useDefineForClassFields === void 0 ? _computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
17857
17891
  }
17858
17892
  },
17859
17893
  noImplicitAny: {
@@ -17911,22 +17945,23 @@ var computedOptions = createComputedCompilerOptions({
17911
17945
  }
17912
17946
  }
17913
17947
  });
17914
- var getEmitScriptTarget = computedOptions.target.computeValue;
17915
- var getEmitModuleKind = computedOptions.module.computeValue;
17916
- var getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue;
17917
- var getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue;
17918
- var getIsolatedModules = computedOptions.isolatedModules.computeValue;
17919
- var getESModuleInterop = computedOptions.esModuleInterop.computeValue;
17920
- var getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue;
17921
- var getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue;
17922
- var getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue;
17923
- var getResolveJsonModule = computedOptions.resolveJsonModule.computeValue;
17924
- var getEmitDeclarations = computedOptions.declaration.computeValue;
17925
- var shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue;
17926
- var isIncrementalCompilation = computedOptions.incremental.computeValue;
17927
- var getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue;
17928
- var getAllowJSCompilerOption = computedOptions.allowJs.computeValue;
17929
- var getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue;
17948
+ var computedOptions = _computedOptions;
17949
+ var getEmitScriptTarget = _computedOptions.target.computeValue;
17950
+ var getEmitModuleKind = _computedOptions.module.computeValue;
17951
+ var getEmitModuleResolutionKind = _computedOptions.moduleResolution.computeValue;
17952
+ var getEmitModuleDetectionKind = _computedOptions.moduleDetection.computeValue;
17953
+ var getIsolatedModules = _computedOptions.isolatedModules.computeValue;
17954
+ var getESModuleInterop = _computedOptions.esModuleInterop.computeValue;
17955
+ var getAllowSyntheticDefaultImports = _computedOptions.allowSyntheticDefaultImports.computeValue;
17956
+ var getResolvePackageJsonExports = _computedOptions.resolvePackageJsonExports.computeValue;
17957
+ var getResolvePackageJsonImports = _computedOptions.resolvePackageJsonImports.computeValue;
17958
+ var getResolveJsonModule = _computedOptions.resolveJsonModule.computeValue;
17959
+ var getEmitDeclarations = _computedOptions.declaration.computeValue;
17960
+ var shouldPreserveConstEnums = _computedOptions.preserveConstEnums.computeValue;
17961
+ var isIncrementalCompilation = _computedOptions.incremental.computeValue;
17962
+ var getAreDeclarationMapsEnabled = _computedOptions.declarationMap.computeValue;
17963
+ var getAllowJSCompilerOption = _computedOptions.allowJs.computeValue;
17964
+ var getUseDefineForClassFields = _computedOptions.useDefineForClassFields.computeValue;
17930
17965
  function emitModuleKindIsNonNodeESM(moduleKind) {
17931
17966
  return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */;
17932
17967
  }
@@ -40815,13 +40850,13 @@ function comparePatternKeys(a, b) {
40815
40850
  const bPatternIndex = b.indexOf("*");
40816
40851
  const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
40817
40852
  const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
40818
- if (baseLenA > baseLenB) return -1;
40819
- if (baseLenB > baseLenA) return 1;
40820
- if (aPatternIndex === -1) return 1;
40821
- if (bPatternIndex === -1) return -1;
40822
- if (a.length > b.length) return -1;
40823
- if (b.length > a.length) return 1;
40824
- return 0;
40853
+ if (baseLenA > baseLenB) return -1 /* LessThan */;
40854
+ if (baseLenB > baseLenA) return 1 /* GreaterThan */;
40855
+ if (aPatternIndex === -1) return 1 /* GreaterThan */;
40856
+ if (bPatternIndex === -1) return -1 /* LessThan */;
40857
+ if (a.length > b.length) return -1 /* LessThan */;
40858
+ if (b.length > a.length) return 1 /* GreaterThan */;
40859
+ return 0 /* EqualTo */;
40825
40860
  }
40826
40861
  function loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) {
40827
40862
  const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports);
@@ -41436,7 +41471,7 @@ function resolveFromTypeRoot(moduleName, state) {
41436
41471
  }
41437
41472
  }
41438
41473
  function shouldAllowImportingTsExtension(compilerOptions, fromFileName) {
41439
- return !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName);
41474
+ return !!compilerOptions.allowImportingTsExtensions || !!fromFileName && isDeclarationFileName(fromFileName);
41440
41475
  }
41441
41476
  function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) {
41442
41477
  const traceEnabled = isTraceEnabled(compilerOptions, host);
@@ -72474,7 +72509,7 @@ function createTypeChecker(host) {
72474
72509
  return globalRegExpType;
72475
72510
  }
72476
72511
  function checkSpreadExpression(node, checkMode) {
72477
- if (languageVersion < 2 /* SpreadElements */) {
72512
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
72478
72513
  checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
72479
72514
  }
72480
72515
  const arrayOrIterableType = checkExpression(node.expression, checkMode);
@@ -72508,7 +72543,7 @@ function createTypeChecker(host) {
72508
72543
  for (let i = 0; i < elementCount; i++) {
72509
72544
  const e = elements[i];
72510
72545
  if (e.kind === 230 /* SpreadElement */) {
72511
- if (languageVersion < 2 /* SpreadElements */) {
72546
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
72512
72547
  checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
72513
72548
  }
72514
72549
  const spreadType = checkExpression(e.expression, checkMode, forceTuple);
@@ -72733,7 +72768,7 @@ function createTypeChecker(host) {
72733
72768
  addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type);
72734
72769
  }
72735
72770
  } else if (memberDecl.kind === 305 /* SpreadAssignment */) {
72736
- if (languageVersion < 2 /* ObjectAssign */) {
72771
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectAssign) {
72737
72772
  checkExternalEmitHelpers(memberDecl, 2 /* Assign */);
72738
72773
  }
72739
72774
  if (propertiesArray.length > 0) {
@@ -73710,7 +73745,7 @@ function createTypeChecker(host) {
73710
73745
  const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType;
73711
73746
  let prop;
73712
73747
  if (isPrivateIdentifier(right)) {
73713
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
73748
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
73714
73749
  if (assignmentKind !== 0 /* None */) {
73715
73750
  checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */);
73716
73751
  }
@@ -76327,7 +76362,7 @@ function createTypeChecker(host) {
76327
76362
  }
76328
76363
  function checkTaggedTemplateExpression(node) {
76329
76364
  if (!checkGrammarTaggedTemplateChain(node)) checkGrammarTypeArguments(node, node.typeArguments);
76330
- if (languageVersion < 2 /* TaggedTemplates */) {
76365
+ if (languageVersion < LanguageFeatureMinimumTarget.TaggedTemplates) {
76331
76366
  checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */);
76332
76367
  }
76333
76368
  const signature = getResolvedSignature(node);
@@ -78039,7 +78074,7 @@ function createTypeChecker(host) {
78039
78074
  return silentNeverType;
78040
78075
  }
78041
78076
  if (isPrivateIdentifier(left)) {
78042
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
78077
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
78043
78078
  checkExternalEmitHelpers(left, 2097152 /* ClassPrivateFieldIn */);
78044
78079
  }
78045
78080
  if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) {
@@ -78100,7 +78135,7 @@ function createTypeChecker(host) {
78100
78135
  if (propertyIndex < properties.length - 1) {
78101
78136
  error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);
78102
78137
  } else {
78103
- if (languageVersion < 5 /* ObjectSpreadRest */) {
78138
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
78104
78139
  checkExternalEmitHelpers(property, 4 /* Rest */);
78105
78140
  }
78106
78141
  const nonRestNames = [];
@@ -78121,7 +78156,7 @@ function createTypeChecker(host) {
78121
78156
  }
78122
78157
  function checkArrayLiteralAssignment(node, sourceType, checkMode) {
78123
78158
  const elements = node.elements;
78124
- if (languageVersion < 2 /* DestructuringAssignment */ && compilerOptions.downlevelIteration) {
78159
+ if (languageVersion < LanguageFeatureMinimumTarget.DestructuringAssignment && compilerOptions.downlevelIteration) {
78125
78160
  checkExternalEmitHelpers(node, 512 /* Read */);
78126
78161
  }
78127
78162
  const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType;
@@ -78895,10 +78930,10 @@ function createTypeChecker(host) {
78895
78930
  }
78896
78931
  const isAsync = (functionFlags & 2 /* Async */) !== 0;
78897
78932
  if (node.asteriskToken) {
78898
- if (isAsync && languageVersion < 5 /* AsyncGenerators */) {
78933
+ if (isAsync && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
78899
78934
  checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */);
78900
78935
  }
78901
- if (!isAsync && languageVersion < 2 /* Generators */ && compilerOptions.downlevelIteration) {
78936
+ if (!isAsync && languageVersion < LanguageFeatureMinimumTarget.Generators && compilerOptions.downlevelIteration) {
78902
78937
  checkExternalEmitHelpers(node, 256 /* Values */);
78903
78938
  }
78904
78939
  }
@@ -79728,13 +79763,13 @@ function createTypeChecker(host) {
79728
79763
  }
79729
79764
  const functionFlags = getFunctionFlags(node);
79730
79765
  if (!(functionFlags & 4 /* Invalid */)) {
79731
- if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < 5 /* AsyncGenerators */) {
79766
+ if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
79732
79767
  checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */);
79733
79768
  }
79734
- if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < 4 /* AsyncFunctions */) {
79769
+ if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.AsyncFunctions) {
79735
79770
  checkExternalEmitHelpers(node, 64 /* Awaiter */);
79736
79771
  }
79737
- if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < 2 /* Generators */) {
79772
+ if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < LanguageFeatureMinimumTarget.Generators) {
79738
79773
  checkExternalEmitHelpers(node, 128 /* Generator */);
79739
79774
  }
79740
79775
  }
@@ -79967,7 +80002,7 @@ function createTypeChecker(host) {
79967
80002
  }
79968
80003
  function setNodeLinksForPrivateIdentifierScope(node) {
79969
80004
  if (isPrivateIdentifier(node.name)) {
79970
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
80005
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
79971
80006
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
79972
80007
  getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */;
79973
80008
  }
@@ -81107,7 +81142,7 @@ function createTypeChecker(host) {
81107
81142
  if (node.kind === 169 /* Parameter */) {
81108
81143
  checkExternalEmitHelpers(firstDecorator, 32 /* Param */);
81109
81144
  }
81110
- } else if (languageVersion < 99 /* ClassAndClassElementDecorators */) {
81145
+ } else if (languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators) {
81111
81146
  checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */);
81112
81147
  if (isClassDeclaration(node)) {
81113
81148
  if (!node.name) {
@@ -81773,7 +81808,7 @@ function createTypeChecker(host) {
81773
81808
  potentialUnusedRenamedBindingElementsInTypes.push(node);
81774
81809
  return;
81775
81810
  }
81776
- if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ObjectSpreadRest */) {
81811
+ if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
81777
81812
  checkExternalEmitHelpers(node, 4 /* Rest */);
81778
81813
  }
81779
81814
  if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) {
@@ -81809,7 +81844,7 @@ function createTypeChecker(host) {
81809
81844
  }
81810
81845
  }
81811
81846
  if (isBindingPattern(node.name)) {
81812
- if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* BindingPatterns */ && compilerOptions.downlevelIteration) {
81847
+ if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < LanguageFeatureMinimumTarget.BindingPatterns && compilerOptions.downlevelIteration) {
81813
81848
  checkExternalEmitHelpers(node, 512 /* Read */);
81814
81849
  }
81815
81850
  forEach(node.name.elements, checkSourceElement);
@@ -81963,7 +81998,7 @@ function createTypeChecker(host) {
81963
81998
  }
81964
81999
  function checkVariableDeclarationList(node) {
81965
82000
  const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */;
81966
- if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < 99 /* UsingAndAwaitUsing */) {
82001
+ if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < LanguageFeatureMinimumTarget.UsingAndAwaitUsing) {
81967
82002
  checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */);
81968
82003
  }
81969
82004
  forEach(node.declarations, checkSourceElement);
@@ -82177,11 +82212,11 @@ function createTypeChecker(host) {
82177
82212
  grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block);
82178
82213
  } else {
82179
82214
  const functionFlags = getFunctionFlags(container);
82180
- if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 5 /* ForAwaitOf */) {
82215
+ if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.ForAwaitOf) {
82181
82216
  checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */);
82182
82217
  }
82183
82218
  }
82184
- } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ForOf */) {
82219
+ } else if (compilerOptions.downlevelIteration && languageVersion < LanguageFeatureMinimumTarget.ForOf) {
82185
82220
  checkExternalEmitHelpers(node, 256 /* ForOfIncludes */);
82186
82221
  }
82187
82222
  if (node.initializer.kind === 261 /* VariableDeclarationList */) {
@@ -83222,12 +83257,12 @@ function createTypeChecker(host) {
83222
83257
  return true;
83223
83258
  }
83224
83259
  function getFirstTransformableStaticClassElement(node) {
83225
- const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */ && classOrConstructorParameterIsDecorated(
83260
+ const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators && classOrConstructorParameterIsDecorated(
83226
83261
  /*useLegacyDecorators*/
83227
83262
  false,
83228
83263
  node
83229
83264
  );
83230
- const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */;
83265
+ const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
83231
83266
  const willTransformInitializers = !emitStandardClassFields;
83232
83267
  if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) {
83233
83268
  for (const member of node.members) {
@@ -83254,7 +83289,7 @@ function createTypeChecker(host) {
83254
83289
  if (node.name) return;
83255
83290
  const parent = walkUpOuterExpressions(node);
83256
83291
  if (!isNamedEvaluationSource(parent)) return;
83257
- const willTransformESDecorators = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */;
83292
+ const willTransformESDecorators = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
83258
83293
  let location;
83259
83294
  if (willTransformESDecorators && classOrConstructorParameterIsDecorated(
83260
83295
  /*useLegacyDecorators*/
@@ -83314,7 +83349,7 @@ function createTypeChecker(host) {
83314
83349
  const baseTypeNode = getEffectiveBaseTypeNode(node);
83315
83350
  if (baseTypeNode) {
83316
83351
  forEach(baseTypeNode.typeArguments, checkSourceElement);
83317
- if (languageVersion < 2 /* Classes */) {
83352
+ if (languageVersion < LanguageFeatureMinimumTarget.Classes) {
83318
83353
  checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */);
83319
83354
  }
83320
83355
  const extendsNode = getClassExtendsHeritageElement(node);
@@ -2841,14 +2841,14 @@ declare namespace ts {
2841
2841
  readonly jsDocParsingMode: JSDocParsingMode | undefined;
2842
2842
  isKnownTypesPackageName(name: string): boolean;
2843
2843
  installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
2844
- getCompilationSettings(): ts.CompilerOptions;
2845
- getCompilerOptions(): ts.CompilerOptions;
2844
+ getCompilationSettings(): CompilerOptions;
2845
+ getCompilerOptions(): CompilerOptions;
2846
2846
  getNewLine(): string;
2847
2847
  getProjectVersion(): string;
2848
2848
  getProjectReferences(): readonly ProjectReference[] | undefined;
2849
2849
  getScriptFileNames(): string[];
2850
2850
  private getOrCreateScriptInfoAndAttachToProject;
2851
- getScriptKind(fileName: string): ts.ScriptKind;
2851
+ getScriptKind(fileName: string): ScriptKind;
2852
2852
  getScriptVersion(filename: string): string;
2853
2853
  getScriptSnapshot(filename: string): IScriptSnapshot | undefined;
2854
2854
  getCancellationToken(): HostCancellationToken;
@@ -2884,16 +2884,16 @@ declare namespace ts {
2884
2884
  getProjectName(): string;
2885
2885
  protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition;
2886
2886
  getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray<string>;
2887
- getSourceFile(path: Path): ts.SourceFile | undefined;
2887
+ getSourceFile(path: Path): SourceFile | undefined;
2888
2888
  close(): void;
2889
2889
  private detachScriptInfoIfNotRoot;
2890
2890
  isClosed(): boolean;
2891
2891
  hasRoots(): boolean;
2892
2892
  getRootFiles(): NormalizedPath[];
2893
- getRootScriptInfos(): ts.server.ScriptInfo[];
2893
+ getRootScriptInfos(): ScriptInfo[];
2894
2894
  getScriptInfos(): ScriptInfo[];
2895
2895
  getExcludedFiles(): readonly NormalizedPath[];
2896
- getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): ts.server.NormalizedPath[];
2896
+ getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): NormalizedPath[];
2897
2897
  hasConfigFile(configFilePath: NormalizedPath): boolean;
2898
2898
  containsScriptInfo(info: ScriptInfo): boolean;
2899
2899
  containsFile(filename: NormalizedPath, requireOpen?: boolean): boolean;
@@ -2918,12 +2918,12 @@ declare namespace ts {
2918
2918
  private isValidGeneratedFileWatcher;
2919
2919
  private clearGeneratedFileWatch;
2920
2920
  getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined;
2921
- getScriptInfo(uncheckedFileName: string): ts.server.ScriptInfo | undefined;
2921
+ getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined;
2922
2922
  filesToString(writeProjectFileNames: boolean): string;
2923
2923
  private filesToStringWorker;
2924
2924
  setCompilerOptions(compilerOptions: CompilerOptions): void;
2925
2925
  setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
2926
- getTypeAcquisition(): ts.TypeAcquisition;
2926
+ getTypeAcquisition(): TypeAcquisition;
2927
2927
  protected removeRoot(info: ScriptInfo): void;
2928
2928
  protected enableGlobalPlugins(options: CompilerOptions): void;
2929
2929
  protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
@@ -2956,7 +2956,7 @@ declare namespace ts {
2956
2956
  getScriptFileNames(): string[];
2957
2957
  getLanguageService(): never;
2958
2958
  getHostForAutoImportProvider(): never;
2959
- getProjectReferences(): readonly ts.ProjectReference[] | undefined;
2959
+ getProjectReferences(): readonly ProjectReference[] | undefined;
2960
2960
  }
2961
2961
  /**
2962
2962
  * If a file is opened, the server will look for a tsconfig (or jsconfig)
@@ -2973,7 +2973,7 @@ declare namespace ts {
2973
2973
  * @returns: true if set of files in the project stays the same and false - otherwise.
2974
2974
  */
2975
2975
  updateGraph(): boolean;
2976
- getConfigFilePath(): ts.server.NormalizedPath;
2976
+ getConfigFilePath(): NormalizedPath;
2977
2977
  getProjectReferences(): readonly ProjectReference[] | undefined;
2978
2978
  updateReferences(refs: readonly ProjectReference[] | undefined): void;
2979
2979
  /**
@@ -2997,14 +2997,14 @@ declare namespace ts {
2997
2997
  compileOnSaveEnabled: boolean;
2998
2998
  excludedFiles: readonly NormalizedPath[];
2999
2999
  updateGraph(): boolean;
3000
- getExcludedFiles(): readonly ts.server.NormalizedPath[];
3000
+ getExcludedFiles(): readonly NormalizedPath[];
3001
3001
  }
3002
3002
  function convertFormatOptions(protocolOptions: protocol.FormatCodeSettings): FormatCodeSettings;
3003
3003
  function convertCompilerOptions(protocolOptions: protocol.ExternalProjectCompilerOptions): CompilerOptions & protocol.CompileOnSaveMixin;
3004
3004
  function convertWatchOptions(protocolOptions: protocol.ExternalProjectCompilerOptions, currentDirectory?: string): WatchOptionsAndErrors | undefined;
3005
3005
  function convertTypeAcquisition(protocolOptions: protocol.InferredProjectCompilerOptions): TypeAcquisition | undefined;
3006
3006
  function tryConvertScriptKindName(scriptKindName: protocol.ScriptKindName | ScriptKind): ScriptKind;
3007
- function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind.Unknown | ScriptKind.JS | ScriptKind.JSX | ScriptKind.TS | ScriptKind.TSX;
3007
+ function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind;
3008
3008
  const maxProgramSizeForNonTsFiles: number;
3009
3009
  const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground";
3010
3010
  interface ProjectsUpdatedInBackgroundEvent {
package/lib/typescript.js CHANGED
@@ -2269,7 +2269,7 @@ module.exports = __toCommonJS(typescript_exports);
2269
2269
 
2270
2270
  // src/compiler/corePublic.ts
2271
2271
  var versionMajorMinor = "5.7";
2272
- var version = `${versionMajorMinor}.0-dev.20240914`;
2272
+ var version = `${versionMajorMinor}.0-dev.20240916`;
2273
2273
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2274
2274
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2275
2275
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -7041,43 +7041,42 @@ var InternalEmitFlags = /* @__PURE__ */ ((InternalEmitFlags3) => {
7041
7041
  InternalEmitFlags3[InternalEmitFlags3["TransformPrivateStaticElements"] = 32] = "TransformPrivateStaticElements";
7042
7042
  return InternalEmitFlags3;
7043
7043
  })(InternalEmitFlags || {});
7044
- var LanguageFeatureMinimumTarget = /* @__PURE__ */ ((LanguageFeatureMinimumTarget2) => {
7045
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Classes"] = 2 /* ES2015 */] = "Classes";
7046
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ForOf"] = 2 /* ES2015 */] = "ForOf";
7047
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Generators"] = 2 /* ES2015 */] = "Generators";
7048
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Iteration"] = 2 /* ES2015 */] = "Iteration";
7049
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["SpreadElements"] = 2 /* ES2015 */] = "SpreadElements";
7050
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RestElements"] = 2 /* ES2015 */] = "RestElements";
7051
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["TaggedTemplates"] = 2 /* ES2015 */] = "TaggedTemplates";
7052
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["DestructuringAssignment"] = 2 /* ES2015 */] = "DestructuringAssignment";
7053
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BindingPatterns"] = 2 /* ES2015 */] = "BindingPatterns";
7054
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ArrowFunctions"] = 2 /* ES2015 */] = "ArrowFunctions";
7055
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BlockScopedVariables"] = 2 /* ES2015 */] = "BlockScopedVariables";
7056
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ObjectAssign"] = 2 /* ES2015 */] = "ObjectAssign";
7057
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsUnicode"] = 2 /* ES2015 */] = "RegularExpressionFlagsUnicode";
7058
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsSticky"] = 2 /* ES2015 */] = "RegularExpressionFlagsSticky";
7059
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Exponentiation"] = 3 /* ES2016 */] = "Exponentiation";
7060
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncFunctions"] = 4 /* ES2017 */] = "AsyncFunctions";
7061
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ForAwaitOf"] = 5 /* ES2018 */] = "ForAwaitOf";
7062
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncGenerators"] = 5 /* ES2018 */] = "AsyncGenerators";
7063
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncIteration"] = 5 /* ES2018 */] = "AsyncIteration";
7064
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ObjectSpreadRest"] = 5 /* ES2018 */] = "ObjectSpreadRest";
7065
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsDotAll"] = 5 /* ES2018 */] = "RegularExpressionFlagsDotAll";
7066
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BindinglessCatch"] = 6 /* ES2019 */] = "BindinglessCatch";
7067
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BigInt"] = 7 /* ES2020 */] = "BigInt";
7068
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["NullishCoalesce"] = 7 /* ES2020 */] = "NullishCoalesce";
7069
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["OptionalChaining"] = 7 /* ES2020 */] = "OptionalChaining";
7070
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["LogicalAssignment"] = 8 /* ES2021 */] = "LogicalAssignment";
7071
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["TopLevelAwait"] = 9 /* ES2022 */] = "TopLevelAwait";
7072
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ClassFields"] = 9 /* ES2022 */] = "ClassFields";
7073
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["PrivateNamesAndClassStaticBlocks"] = 9 /* ES2022 */] = "PrivateNamesAndClassStaticBlocks";
7074
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsHasIndices"] = 9 /* ES2022 */] = "RegularExpressionFlagsHasIndices";
7075
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ShebangComments"] = 99 /* ESNext */] = "ShebangComments";
7076
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["UsingAndAwaitUsing"] = 99 /* ESNext */] = "UsingAndAwaitUsing";
7077
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ClassAndClassElementDecorators"] = 99 /* ESNext */] = "ClassAndClassElementDecorators";
7078
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsUnicodeSets"] = 99 /* ESNext */] = "RegularExpressionFlagsUnicodeSets";
7079
- return LanguageFeatureMinimumTarget2;
7080
- })(LanguageFeatureMinimumTarget || {});
7044
+ var LanguageFeatureMinimumTarget = {
7045
+ Classes: 2 /* ES2015 */,
7046
+ ForOf: 2 /* ES2015 */,
7047
+ Generators: 2 /* ES2015 */,
7048
+ Iteration: 2 /* ES2015 */,
7049
+ SpreadElements: 2 /* ES2015 */,
7050
+ RestElements: 2 /* ES2015 */,
7051
+ TaggedTemplates: 2 /* ES2015 */,
7052
+ DestructuringAssignment: 2 /* ES2015 */,
7053
+ BindingPatterns: 2 /* ES2015 */,
7054
+ ArrowFunctions: 2 /* ES2015 */,
7055
+ BlockScopedVariables: 2 /* ES2015 */,
7056
+ ObjectAssign: 2 /* ES2015 */,
7057
+ RegularExpressionFlagsUnicode: 2 /* ES2015 */,
7058
+ RegularExpressionFlagsSticky: 2 /* ES2015 */,
7059
+ Exponentiation: 3 /* ES2016 */,
7060
+ AsyncFunctions: 4 /* ES2017 */,
7061
+ ForAwaitOf: 5 /* ES2018 */,
7062
+ AsyncGenerators: 5 /* ES2018 */,
7063
+ AsyncIteration: 5 /* ES2018 */,
7064
+ ObjectSpreadRest: 5 /* ES2018 */,
7065
+ RegularExpressionFlagsDotAll: 5 /* ES2018 */,
7066
+ BindinglessCatch: 6 /* ES2019 */,
7067
+ BigInt: 7 /* ES2020 */,
7068
+ NullishCoalesce: 7 /* ES2020 */,
7069
+ OptionalChaining: 7 /* ES2020 */,
7070
+ LogicalAssignment: 8 /* ES2021 */,
7071
+ TopLevelAwait: 9 /* ES2022 */,
7072
+ ClassFields: 9 /* ES2022 */,
7073
+ PrivateNamesAndClassStaticBlocks: 9 /* ES2022 */,
7074
+ RegularExpressionFlagsHasIndices: 9 /* ES2022 */,
7075
+ ShebangComments: 99 /* ESNext */,
7076
+ UsingAndAwaitUsing: 99 /* ESNext */,
7077
+ ClassAndClassElementDecorators: 99 /* ESNext */,
7078
+ RegularExpressionFlagsUnicodeSets: 99 /* ESNext */
7079
+ };
7081
7080
  var ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => {
7082
7081
  ExternalEmitHelpers2[ExternalEmitHelpers2["Extends"] = 1] = "Extends";
7083
7082
  ExternalEmitHelpers2[ExternalEmitHelpers2["Assign"] = 2] = "Assign";
@@ -11474,11 +11473,11 @@ var charCodeToRegExpFlag = /* @__PURE__ */ new Map([
11474
11473
  [121 /* y */, 128 /* Sticky */]
11475
11474
  ]);
11476
11475
  var regExpFlagToFirstAvailableLanguageVersion = /* @__PURE__ */ new Map([
11477
- [1 /* HasIndices */, 9 /* RegularExpressionFlagsHasIndices */],
11478
- [16 /* DotAll */, 5 /* RegularExpressionFlagsDotAll */],
11479
- [32 /* Unicode */, 2 /* RegularExpressionFlagsUnicode */],
11480
- [64 /* UnicodeSets */, 99 /* RegularExpressionFlagsUnicodeSets */],
11481
- [128 /* Sticky */, 2 /* RegularExpressionFlagsSticky */]
11476
+ [1 /* HasIndices */, LanguageFeatureMinimumTarget.RegularExpressionFlagsHasIndices],
11477
+ [16 /* DotAll */, LanguageFeatureMinimumTarget.RegularExpressionFlagsDotAll],
11478
+ [32 /* Unicode */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicode],
11479
+ [64 /* UnicodeSets */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicodeSets],
11480
+ [128 /* Sticky */, LanguageFeatureMinimumTarget.RegularExpressionFlagsSticky]
11482
11481
  ]);
11483
11482
  var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
11484
11483
  var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
@@ -18747,17 +18746,15 @@ function forEachImportClauseDeclaration(node, action) {
18747
18746
  }
18748
18747
  }
18749
18748
  function hasQuestionToken(node) {
18750
- if (node) {
18751
- switch (node.kind) {
18752
- case 169 /* Parameter */:
18753
- case 174 /* MethodDeclaration */:
18754
- case 173 /* MethodSignature */:
18755
- case 304 /* ShorthandPropertyAssignment */:
18756
- case 303 /* PropertyAssignment */:
18757
- case 172 /* PropertyDeclaration */:
18758
- case 171 /* PropertySignature */:
18759
- return node.questionToken !== void 0;
18760
- }
18749
+ switch (node.kind) {
18750
+ case 169 /* Parameter */:
18751
+ case 174 /* MethodDeclaration */:
18752
+ case 173 /* MethodSignature */:
18753
+ case 304 /* ShorthandPropertyAssignment */:
18754
+ case 303 /* PropertyAssignment */:
18755
+ case 172 /* PropertyDeclaration */:
18756
+ case 171 /* PropertySignature */:
18757
+ return node.questionToken !== void 0;
18761
18758
  }
18762
18759
  return false;
18763
18760
  }
@@ -21671,7 +21668,7 @@ function importSyntaxAffectsModuleResolution(options) {
21671
21668
  function createComputedCompilerOptions(options) {
21672
21669
  return options;
21673
21670
  }
21674
- var computedOptions = createComputedCompilerOptions({
21671
+ var _computedOptions = createComputedCompilerOptions({
21675
21672
  target: {
21676
21673
  dependencies: ["module"],
21677
21674
  computeValue: (compilerOptions) => {
@@ -21682,7 +21679,7 @@ var computedOptions = createComputedCompilerOptions({
21682
21679
  module: {
21683
21680
  dependencies: ["target"],
21684
21681
  computeValue: (compilerOptions) => {
21685
- return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
21682
+ return typeof compilerOptions.module === "number" ? compilerOptions.module : _computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
21686
21683
  }
21687
21684
  },
21688
21685
  moduleResolution: {
@@ -21690,7 +21687,7 @@ var computedOptions = createComputedCompilerOptions({
21690
21687
  computeValue: (compilerOptions) => {
21691
21688
  let moduleResolution = compilerOptions.moduleResolution;
21692
21689
  if (moduleResolution === void 0) {
21693
- switch (computedOptions.module.computeValue(compilerOptions)) {
21690
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
21694
21691
  case 1 /* CommonJS */:
21695
21692
  moduleResolution = 2 /* Node10 */;
21696
21693
  break;
@@ -21714,7 +21711,7 @@ var computedOptions = createComputedCompilerOptions({
21714
21711
  moduleDetection: {
21715
21712
  dependencies: ["module", "target"],
21716
21713
  computeValue: (compilerOptions) => {
21717
- return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
21714
+ return compilerOptions.moduleDetection || (_computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || _computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
21718
21715
  }
21719
21716
  },
21720
21717
  isolatedModules: {
@@ -21729,7 +21726,7 @@ var computedOptions = createComputedCompilerOptions({
21729
21726
  if (compilerOptions.esModuleInterop !== void 0) {
21730
21727
  return compilerOptions.esModuleInterop;
21731
21728
  }
21732
- switch (computedOptions.module.computeValue(compilerOptions)) {
21729
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
21733
21730
  case 100 /* Node16 */:
21734
21731
  case 199 /* NodeNext */:
21735
21732
  case 200 /* Preserve */:
@@ -21744,13 +21741,13 @@ var computedOptions = createComputedCompilerOptions({
21744
21741
  if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
21745
21742
  return compilerOptions.allowSyntheticDefaultImports;
21746
21743
  }
21747
- return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21744
+ return _computedOptions.esModuleInterop.computeValue(compilerOptions) || _computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21748
21745
  }
21749
21746
  },
21750
21747
  resolvePackageJsonExports: {
21751
21748
  dependencies: ["moduleResolution"],
21752
21749
  computeValue: (compilerOptions) => {
21753
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
21750
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
21754
21751
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
21755
21752
  return false;
21756
21753
  }
@@ -21769,7 +21766,7 @@ var computedOptions = createComputedCompilerOptions({
21769
21766
  resolvePackageJsonImports: {
21770
21767
  dependencies: ["moduleResolution", "resolvePackageJsonExports"],
21771
21768
  computeValue: (compilerOptions) => {
21772
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
21769
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
21773
21770
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
21774
21771
  return false;
21775
21772
  }
@@ -21791,7 +21788,7 @@ var computedOptions = createComputedCompilerOptions({
21791
21788
  if (compilerOptions.resolveJsonModule !== void 0) {
21792
21789
  return compilerOptions.resolveJsonModule;
21793
21790
  }
21794
- return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21791
+ return _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21795
21792
  }
21796
21793
  },
21797
21794
  declaration: {
@@ -21803,7 +21800,7 @@ var computedOptions = createComputedCompilerOptions({
21803
21800
  preserveConstEnums: {
21804
21801
  dependencies: ["isolatedModules", "verbatimModuleSyntax"],
21805
21802
  computeValue: (compilerOptions) => {
21806
- return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions));
21803
+ return !!(compilerOptions.preserveConstEnums || _computedOptions.isolatedModules.computeValue(compilerOptions));
21807
21804
  }
21808
21805
  },
21809
21806
  incremental: {
@@ -21815,7 +21812,7 @@ var computedOptions = createComputedCompilerOptions({
21815
21812
  declarationMap: {
21816
21813
  dependencies: ["declaration", "composite"],
21817
21814
  computeValue: (compilerOptions) => {
21818
- return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions));
21815
+ return !!(compilerOptions.declarationMap && _computedOptions.declaration.computeValue(compilerOptions));
21819
21816
  }
21820
21817
  },
21821
21818
  allowJs: {
@@ -21827,7 +21824,7 @@ var computedOptions = createComputedCompilerOptions({
21827
21824
  useDefineForClassFields: {
21828
21825
  dependencies: ["target", "module"],
21829
21826
  computeValue: (compilerOptions) => {
21830
- return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
21827
+ return compilerOptions.useDefineForClassFields === void 0 ? _computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
21831
21828
  }
21832
21829
  },
21833
21830
  noImplicitAny: {
@@ -21885,22 +21882,23 @@ var computedOptions = createComputedCompilerOptions({
21885
21882
  }
21886
21883
  }
21887
21884
  });
21888
- var getEmitScriptTarget = computedOptions.target.computeValue;
21889
- var getEmitModuleKind = computedOptions.module.computeValue;
21890
- var getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue;
21891
- var getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue;
21892
- var getIsolatedModules = computedOptions.isolatedModules.computeValue;
21893
- var getESModuleInterop = computedOptions.esModuleInterop.computeValue;
21894
- var getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue;
21895
- var getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue;
21896
- var getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue;
21897
- var getResolveJsonModule = computedOptions.resolveJsonModule.computeValue;
21898
- var getEmitDeclarations = computedOptions.declaration.computeValue;
21899
- var shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue;
21900
- var isIncrementalCompilation = computedOptions.incremental.computeValue;
21901
- var getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue;
21902
- var getAllowJSCompilerOption = computedOptions.allowJs.computeValue;
21903
- var getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue;
21885
+ var computedOptions = _computedOptions;
21886
+ var getEmitScriptTarget = _computedOptions.target.computeValue;
21887
+ var getEmitModuleKind = _computedOptions.module.computeValue;
21888
+ var getEmitModuleResolutionKind = _computedOptions.moduleResolution.computeValue;
21889
+ var getEmitModuleDetectionKind = _computedOptions.moduleDetection.computeValue;
21890
+ var getIsolatedModules = _computedOptions.isolatedModules.computeValue;
21891
+ var getESModuleInterop = _computedOptions.esModuleInterop.computeValue;
21892
+ var getAllowSyntheticDefaultImports = _computedOptions.allowSyntheticDefaultImports.computeValue;
21893
+ var getResolvePackageJsonExports = _computedOptions.resolvePackageJsonExports.computeValue;
21894
+ var getResolvePackageJsonImports = _computedOptions.resolvePackageJsonImports.computeValue;
21895
+ var getResolveJsonModule = _computedOptions.resolveJsonModule.computeValue;
21896
+ var getEmitDeclarations = _computedOptions.declaration.computeValue;
21897
+ var shouldPreserveConstEnums = _computedOptions.preserveConstEnums.computeValue;
21898
+ var isIncrementalCompilation = _computedOptions.incremental.computeValue;
21899
+ var getAreDeclarationMapsEnabled = _computedOptions.declarationMap.computeValue;
21900
+ var getAllowJSCompilerOption = _computedOptions.allowJs.computeValue;
21901
+ var getUseDefineForClassFields = _computedOptions.useDefineForClassFields.computeValue;
21904
21902
  function emitModuleKindIsNonNodeESM(moduleKind) {
21905
21903
  return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */;
21906
21904
  }
@@ -45327,13 +45325,13 @@ function comparePatternKeys(a, b) {
45327
45325
  const bPatternIndex = b.indexOf("*");
45328
45326
  const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
45329
45327
  const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
45330
- if (baseLenA > baseLenB) return -1;
45331
- if (baseLenB > baseLenA) return 1;
45332
- if (aPatternIndex === -1) return 1;
45333
- if (bPatternIndex === -1) return -1;
45334
- if (a.length > b.length) return -1;
45335
- if (b.length > a.length) return 1;
45336
- return 0;
45328
+ if (baseLenA > baseLenB) return -1 /* LessThan */;
45329
+ if (baseLenB > baseLenA) return 1 /* GreaterThan */;
45330
+ if (aPatternIndex === -1) return 1 /* GreaterThan */;
45331
+ if (bPatternIndex === -1) return -1 /* LessThan */;
45332
+ if (a.length > b.length) return -1 /* LessThan */;
45333
+ if (b.length > a.length) return 1 /* GreaterThan */;
45334
+ return 0 /* EqualTo */;
45337
45335
  }
45338
45336
  function loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) {
45339
45337
  const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports);
@@ -45948,7 +45946,7 @@ function resolveFromTypeRoot(moduleName, state) {
45948
45946
  }
45949
45947
  }
45950
45948
  function shouldAllowImportingTsExtension(compilerOptions, fromFileName) {
45951
- return !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName);
45949
+ return !!compilerOptions.allowImportingTsExtensions || !!fromFileName && isDeclarationFileName(fromFileName);
45952
45950
  }
45953
45951
  function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) {
45954
45952
  const traceEnabled = isTraceEnabled(compilerOptions, host);
@@ -77104,7 +77102,7 @@ function createTypeChecker(host) {
77104
77102
  return globalRegExpType;
77105
77103
  }
77106
77104
  function checkSpreadExpression(node, checkMode) {
77107
- if (languageVersion < 2 /* SpreadElements */) {
77105
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
77108
77106
  checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
77109
77107
  }
77110
77108
  const arrayOrIterableType = checkExpression(node.expression, checkMode);
@@ -77138,7 +77136,7 @@ function createTypeChecker(host) {
77138
77136
  for (let i = 0; i < elementCount; i++) {
77139
77137
  const e = elements[i];
77140
77138
  if (e.kind === 230 /* SpreadElement */) {
77141
- if (languageVersion < 2 /* SpreadElements */) {
77139
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
77142
77140
  checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
77143
77141
  }
77144
77142
  const spreadType = checkExpression(e.expression, checkMode, forceTuple);
@@ -77363,7 +77361,7 @@ function createTypeChecker(host) {
77363
77361
  addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type);
77364
77362
  }
77365
77363
  } else if (memberDecl.kind === 305 /* SpreadAssignment */) {
77366
- if (languageVersion < 2 /* ObjectAssign */) {
77364
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectAssign) {
77367
77365
  checkExternalEmitHelpers(memberDecl, 2 /* Assign */);
77368
77366
  }
77369
77367
  if (propertiesArray.length > 0) {
@@ -78340,7 +78338,7 @@ function createTypeChecker(host) {
78340
78338
  const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType;
78341
78339
  let prop;
78342
78340
  if (isPrivateIdentifier(right)) {
78343
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
78341
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
78344
78342
  if (assignmentKind !== 0 /* None */) {
78345
78343
  checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */);
78346
78344
  }
@@ -80957,7 +80955,7 @@ function createTypeChecker(host) {
80957
80955
  }
80958
80956
  function checkTaggedTemplateExpression(node) {
80959
80957
  if (!checkGrammarTaggedTemplateChain(node)) checkGrammarTypeArguments(node, node.typeArguments);
80960
- if (languageVersion < 2 /* TaggedTemplates */) {
80958
+ if (languageVersion < LanguageFeatureMinimumTarget.TaggedTemplates) {
80961
80959
  checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */);
80962
80960
  }
80963
80961
  const signature = getResolvedSignature(node);
@@ -82669,7 +82667,7 @@ function createTypeChecker(host) {
82669
82667
  return silentNeverType;
82670
82668
  }
82671
82669
  if (isPrivateIdentifier(left)) {
82672
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
82670
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
82673
82671
  checkExternalEmitHelpers(left, 2097152 /* ClassPrivateFieldIn */);
82674
82672
  }
82675
82673
  if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) {
@@ -82730,7 +82728,7 @@ function createTypeChecker(host) {
82730
82728
  if (propertyIndex < properties.length - 1) {
82731
82729
  error2(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);
82732
82730
  } else {
82733
- if (languageVersion < 5 /* ObjectSpreadRest */) {
82731
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
82734
82732
  checkExternalEmitHelpers(property, 4 /* Rest */);
82735
82733
  }
82736
82734
  const nonRestNames = [];
@@ -82751,7 +82749,7 @@ function createTypeChecker(host) {
82751
82749
  }
82752
82750
  function checkArrayLiteralAssignment(node, sourceType, checkMode) {
82753
82751
  const elements = node.elements;
82754
- if (languageVersion < 2 /* DestructuringAssignment */ && compilerOptions.downlevelIteration) {
82752
+ if (languageVersion < LanguageFeatureMinimumTarget.DestructuringAssignment && compilerOptions.downlevelIteration) {
82755
82753
  checkExternalEmitHelpers(node, 512 /* Read */);
82756
82754
  }
82757
82755
  const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType;
@@ -83525,10 +83523,10 @@ function createTypeChecker(host) {
83525
83523
  }
83526
83524
  const isAsync = (functionFlags & 2 /* Async */) !== 0;
83527
83525
  if (node.asteriskToken) {
83528
- if (isAsync && languageVersion < 5 /* AsyncGenerators */) {
83526
+ if (isAsync && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
83529
83527
  checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */);
83530
83528
  }
83531
- if (!isAsync && languageVersion < 2 /* Generators */ && compilerOptions.downlevelIteration) {
83529
+ if (!isAsync && languageVersion < LanguageFeatureMinimumTarget.Generators && compilerOptions.downlevelIteration) {
83532
83530
  checkExternalEmitHelpers(node, 256 /* Values */);
83533
83531
  }
83534
83532
  }
@@ -84358,13 +84356,13 @@ function createTypeChecker(host) {
84358
84356
  }
84359
84357
  const functionFlags = getFunctionFlags(node);
84360
84358
  if (!(functionFlags & 4 /* Invalid */)) {
84361
- if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < 5 /* AsyncGenerators */) {
84359
+ if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
84362
84360
  checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */);
84363
84361
  }
84364
- if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < 4 /* AsyncFunctions */) {
84362
+ if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.AsyncFunctions) {
84365
84363
  checkExternalEmitHelpers(node, 64 /* Awaiter */);
84366
84364
  }
84367
- if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < 2 /* Generators */) {
84365
+ if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < LanguageFeatureMinimumTarget.Generators) {
84368
84366
  checkExternalEmitHelpers(node, 128 /* Generator */);
84369
84367
  }
84370
84368
  }
@@ -84597,7 +84595,7 @@ function createTypeChecker(host) {
84597
84595
  }
84598
84596
  function setNodeLinksForPrivateIdentifierScope(node) {
84599
84597
  if (isPrivateIdentifier(node.name)) {
84600
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
84598
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
84601
84599
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
84602
84600
  getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */;
84603
84601
  }
@@ -85737,7 +85735,7 @@ function createTypeChecker(host) {
85737
85735
  if (node.kind === 169 /* Parameter */) {
85738
85736
  checkExternalEmitHelpers(firstDecorator, 32 /* Param */);
85739
85737
  }
85740
- } else if (languageVersion < 99 /* ClassAndClassElementDecorators */) {
85738
+ } else if (languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators) {
85741
85739
  checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */);
85742
85740
  if (isClassDeclaration(node)) {
85743
85741
  if (!node.name) {
@@ -86403,7 +86401,7 @@ function createTypeChecker(host) {
86403
86401
  potentialUnusedRenamedBindingElementsInTypes.push(node);
86404
86402
  return;
86405
86403
  }
86406
- if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ObjectSpreadRest */) {
86404
+ if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
86407
86405
  checkExternalEmitHelpers(node, 4 /* Rest */);
86408
86406
  }
86409
86407
  if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) {
@@ -86439,7 +86437,7 @@ function createTypeChecker(host) {
86439
86437
  }
86440
86438
  }
86441
86439
  if (isBindingPattern(node.name)) {
86442
- if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* BindingPatterns */ && compilerOptions.downlevelIteration) {
86440
+ if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < LanguageFeatureMinimumTarget.BindingPatterns && compilerOptions.downlevelIteration) {
86443
86441
  checkExternalEmitHelpers(node, 512 /* Read */);
86444
86442
  }
86445
86443
  forEach(node.name.elements, checkSourceElement);
@@ -86593,7 +86591,7 @@ function createTypeChecker(host) {
86593
86591
  }
86594
86592
  function checkVariableDeclarationList(node) {
86595
86593
  const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */;
86596
- if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < 99 /* UsingAndAwaitUsing */) {
86594
+ if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < LanguageFeatureMinimumTarget.UsingAndAwaitUsing) {
86597
86595
  checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */);
86598
86596
  }
86599
86597
  forEach(node.declarations, checkSourceElement);
@@ -86807,11 +86805,11 @@ function createTypeChecker(host) {
86807
86805
  grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block);
86808
86806
  } else {
86809
86807
  const functionFlags = getFunctionFlags(container);
86810
- if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 5 /* ForAwaitOf */) {
86808
+ if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.ForAwaitOf) {
86811
86809
  checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */);
86812
86810
  }
86813
86811
  }
86814
- } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ForOf */) {
86812
+ } else if (compilerOptions.downlevelIteration && languageVersion < LanguageFeatureMinimumTarget.ForOf) {
86815
86813
  checkExternalEmitHelpers(node, 256 /* ForOfIncludes */);
86816
86814
  }
86817
86815
  if (node.initializer.kind === 261 /* VariableDeclarationList */) {
@@ -87852,12 +87850,12 @@ function createTypeChecker(host) {
87852
87850
  return true;
87853
87851
  }
87854
87852
  function getFirstTransformableStaticClassElement(node) {
87855
- const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */ && classOrConstructorParameterIsDecorated(
87853
+ const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators && classOrConstructorParameterIsDecorated(
87856
87854
  /*useLegacyDecorators*/
87857
87855
  false,
87858
87856
  node
87859
87857
  );
87860
- const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */;
87858
+ const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
87861
87859
  const willTransformInitializers = !emitStandardClassFields;
87862
87860
  if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) {
87863
87861
  for (const member of node.members) {
@@ -87884,7 +87882,7 @@ function createTypeChecker(host) {
87884
87882
  if (node.name) return;
87885
87883
  const parent2 = walkUpOuterExpressions(node);
87886
87884
  if (!isNamedEvaluationSource(parent2)) return;
87887
- const willTransformESDecorators = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */;
87885
+ const willTransformESDecorators = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
87888
87886
  let location;
87889
87887
  if (willTransformESDecorators && classOrConstructorParameterIsDecorated(
87890
87888
  /*useLegacyDecorators*/
@@ -87944,7 +87942,7 @@ function createTypeChecker(host) {
87944
87942
  const baseTypeNode = getEffectiveBaseTypeNode(node);
87945
87943
  if (baseTypeNode) {
87946
87944
  forEach(baseTypeNode.typeArguments, checkSourceElement);
87947
- if (languageVersion < 2 /* Classes */) {
87945
+ if (languageVersion < LanguageFeatureMinimumTarget.Classes) {
87948
87946
  checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */);
87949
87947
  }
87950
87948
  const extendsNode = getClassExtendsHeritageElement(node);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.7.0-dev.20240914",
5
+ "version": "5.7.0-dev.20240916",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -116,5 +116,5 @@
116
116
  "node": "20.1.0",
117
117
  "npm": "8.19.4"
118
118
  },
119
- "gitHead": "89e004f632323a276b67649e118e78f39a7dc429"
119
+ "gitHead": "52eaa7b02fdeaa8969f88c7f5c0b252f5f0bd147"
120
120
  }