@typescript-deploys/pr-build 5.3.0-pr-53681-19 → 5.3.0-pr-55739-21

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/tsserver.js CHANGED
@@ -103,6 +103,7 @@ __export(server_exports, {
103
103
  InternalEmitFlags: () => InternalEmitFlags,
104
104
  InternalSymbolName: () => InternalSymbolName,
105
105
  InvalidatedProjectKind: () => InvalidatedProjectKind,
106
+ JSDocParsingMode: () => JSDocParsingMode,
106
107
  JsDoc: () => ts_JsDoc_exports,
107
108
  JsTyping: () => ts_JsTyping_exports,
108
109
  JsxEmit: () => JsxEmit,
@@ -2328,7 +2329,7 @@ module.exports = __toCommonJS(server_exports);
2328
2329
 
2329
2330
  // src/compiler/corePublic.ts
2330
2331
  var versionMajorMinor = "5.3";
2331
- var version = `${versionMajorMinor}.0-insiders.20230915`;
2332
+ var version = `${versionMajorMinor}.0-insiders.20230918`;
2332
2333
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2333
2334
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2334
2335
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -7422,6 +7423,13 @@ var commentPragmas = {
7422
7423
  kind: 4 /* MultiLine */
7423
7424
  }
7424
7425
  };
7426
+ var JSDocParsingMode = /* @__PURE__ */ ((JSDocParsingMode8) => {
7427
+ JSDocParsingMode8[JSDocParsingMode8["ParseAll"] = 0] = "ParseAll";
7428
+ JSDocParsingMode8[JSDocParsingMode8["ParseForTypeErrors"] = 1] = "ParseForTypeErrors";
7429
+ JSDocParsingMode8[JSDocParsingMode8["ParseForTypeInfo"] = 2] = "ParseForTypeInfo";
7430
+ JSDocParsingMode8[JSDocParsingMode8["ParseNone"] = 3] = "ParseNone";
7431
+ return JSDocParsingMode8;
7432
+ })(JSDocParsingMode || {});
7425
7433
 
7426
7434
  // src/compiler/sys.ts
7427
7435
  function generateDjb2Hash(data) {
@@ -11453,7 +11461,7 @@ var unicodeESNextIdentifierStart = [65, 90, 97, 122, 170, 170, 181, 181, 186, 18
11453
11461
  var unicodeESNextIdentifierPart = [48, 57, 65, 90, 95, 95, 97, 122, 170, 170, 181, 181, 183, 183, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 895, 895, 902, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1519, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2045, 2045, 2048, 2093, 2112, 2139, 2144, 2154, 2208, 2228, 2230, 2237, 2259, 2273, 2275, 2403, 2406, 2415, 2417, 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, 2556, 2556, 2558, 2558, 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, 2809, 2815, 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, 3072, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3162, 3168, 3171, 3174, 3183, 3200, 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, 3328, 3331, 3333, 3340, 3342, 3344, 3346, 3396, 3398, 3400, 3402, 3406, 3412, 3415, 3423, 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, 3558, 3567, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 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, 4969, 4977, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 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, 6264, 6272, 6314, 6320, 6389, 6400, 6430, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6618, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6832, 6845, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7376, 7378, 7380, 7418, 7424, 7673, 7675, 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, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 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, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42737, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43047, 43072, 43123, 43136, 43205, 43216, 43225, 43232, 43255, 43259, 43259, 43261, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43488, 43518, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 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, 65071, 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, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66045, 66045, 66176, 66204, 66208, 66256, 66272, 66272, 66304, 66335, 66349, 66378, 66384, 66426, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66720, 66729, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68099, 68101, 68102, 68108, 68115, 68117, 68119, 68121, 68149, 68152, 68154, 68159, 68159, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68326, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68903, 68912, 68921, 69376, 69404, 69415, 69415, 69424, 69456, 69600, 69622, 69632, 69702, 69734, 69743, 69759, 69818, 69840, 69864, 69872, 69881, 69888, 69940, 69942, 69951, 69956, 69958, 69968, 70003, 70006, 70006, 70016, 70084, 70089, 70092, 70096, 70106, 70108, 70108, 70144, 70161, 70163, 70199, 70206, 70206, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70378, 70384, 70393, 70400, 70403, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70459, 70468, 70471, 70472, 70475, 70477, 70480, 70480, 70487, 70487, 70493, 70499, 70502, 70508, 70512, 70516, 70656, 70730, 70736, 70745, 70750, 70751, 70784, 70853, 70855, 70855, 70864, 70873, 71040, 71093, 71096, 71104, 71128, 71133, 71168, 71232, 71236, 71236, 71248, 71257, 71296, 71352, 71360, 71369, 71424, 71450, 71453, 71467, 71472, 71481, 71680, 71738, 71840, 71913, 71935, 71935, 72096, 72103, 72106, 72151, 72154, 72161, 72163, 72164, 72192, 72254, 72263, 72263, 72272, 72345, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72758, 72760, 72768, 72784, 72793, 72818, 72847, 72850, 72871, 72873, 72886, 72960, 72966, 72968, 72969, 72971, 73014, 73018, 73018, 73020, 73021, 73023, 73031, 73040, 73049, 73056, 73061, 73063, 73064, 73066, 73102, 73104, 73105, 73107, 73112, 73120, 73129, 73440, 73462, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92768, 92777, 92880, 92909, 92912, 92916, 92928, 92982, 92992, 92995, 93008, 93017, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94031, 94087, 94095, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 113821, 113822, 119141, 119145, 119149, 119154, 119163, 119170, 119173, 119179, 119210, 119213, 119362, 119364, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 120782, 120831, 121344, 121398, 121403, 121452, 121461, 121461, 121476, 121476, 121499, 121503, 121505, 121519, 122880, 122886, 122888, 122904, 122907, 122913, 122915, 122916, 122918, 122922, 123136, 123180, 123184, 123197, 123200, 123209, 123214, 123214, 123584, 123641, 124928, 125124, 125136, 125142, 125184, 125259, 125264, 125273, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101, 917760, 917999];
11454
11462
  var commentDirectiveRegExSingleLine = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/;
11455
11463
  var commentDirectiveRegExMultiLine = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;
11456
- var semanticJSDocTagRegEx = /@(?:see|link)/i;
11464
+ var jsDocSeeOrLink = /@(?:see|link)/i;
11457
11465
  function lookupInUnicodeMap(code, map2) {
11458
11466
  if (code < map2[0]) {
11459
11467
  return false;
@@ -11960,7 +11968,8 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
11960
11968
  var tokenFlags;
11961
11969
  var commentDirectives;
11962
11970
  var inJSDocType = 0;
11963
- var skipNonSemanticJSDoc = false;
11971
+ var scriptKind = 0 /* Unknown */;
11972
+ var jsDocParsingMode = 0 /* ParseAll */;
11964
11973
  setText(text, start2, length2);
11965
11974
  var scanner2 = {
11966
11975
  getTokenFullStart: () => fullStartPos,
@@ -12004,14 +12013,15 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12004
12013
  setText,
12005
12014
  setScriptTarget,
12006
12015
  setLanguageVariant,
12016
+ setScriptKind,
12017
+ setJSDocParsingMode,
12007
12018
  setOnError,
12008
12019
  resetTokenState,
12009
12020
  setTextPos: resetTokenState,
12010
12021
  setInJSDocType,
12011
12022
  tryScan,
12012
12023
  lookAhead,
12013
- scanRange,
12014
- setSkipNonSemanticJSDoc
12024
+ scanRange
12015
12025
  };
12016
12026
  if (Debug.isDebugging) {
12017
12027
  Object.defineProperty(scanner2, "__debugShowCurrentPositionInText", {
@@ -12799,7 +12809,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12799
12809
  tokenFlags |= 1 /* PrecedingLineBreak */;
12800
12810
  }
12801
12811
  }
12802
- if (isJSDoc2 && (!skipNonSemanticJSDoc || semanticJSDocTagRegEx.test(text.slice(fullStartPos, pos)))) {
12812
+ if (isJSDoc2 && shouldParseJSDoc()) {
12803
12813
  tokenFlags |= 2 /* PrecedingJSDocComment */;
12804
12814
  }
12805
12815
  commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart);
@@ -13058,6 +13068,21 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
13058
13068
  }
13059
13069
  }
13060
13070
  }
13071
+ function shouldParseJSDoc() {
13072
+ switch (jsDocParsingMode) {
13073
+ case 0 /* ParseAll */:
13074
+ return true;
13075
+ case 3 /* ParseNone */:
13076
+ return false;
13077
+ }
13078
+ if (scriptKind !== 3 /* TS */ && scriptKind !== 4 /* TSX */) {
13079
+ return true;
13080
+ }
13081
+ if (jsDocParsingMode === 2 /* ParseForTypeInfo */) {
13082
+ return false;
13083
+ }
13084
+ return jsDocSeeOrLink.test(text.slice(fullStartPos, pos));
13085
+ }
13061
13086
  function reScanInvalidIdentifier() {
13062
13087
  Debug.assert(token === 0 /* Unknown */, "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'.");
13063
13088
  pos = tokenStart = fullStartPos;
@@ -13472,8 +13497,11 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
13472
13497
  function setLanguageVariant(variant) {
13473
13498
  languageVariant = variant;
13474
13499
  }
13475
- function setSkipNonSemanticJSDoc(skip) {
13476
- skipNonSemanticJSDoc = skip;
13500
+ function setScriptKind(kind) {
13501
+ scriptKind = kind;
13502
+ }
13503
+ function setJSDocParsingMode(kind) {
13504
+ jsDocParsingMode = kind;
13477
13505
  }
13478
13506
  function resetTokenState(position) {
13479
13507
  Debug.assert(position >= 0);
@@ -30668,7 +30696,7 @@ function gatherPossibleChildren(node) {
30668
30696
  function setExternalModuleIndicator(sourceFile) {
30669
30697
  sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile);
30670
30698
  }
30671
- function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind, skipNonSemanticJSDoc) {
30699
+ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind, jsDocParsingMode) {
30672
30700
  var _a, _b, _c, _d;
30673
30701
  (_a = tracing) == null ? void 0 : _a.push(
30674
30702
  tracing.Phase.Parse,
@@ -30695,7 +30723,7 @@ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setPar
30695
30723
  setParentNodes,
30696
30724
  6 /* JSON */,
30697
30725
  noop,
30698
- skipNonSemanticJSDoc
30726
+ jsDocParsingMode
30699
30727
  );
30700
30728
  } else {
30701
30729
  const setIndicator = format === void 0 ? overrideSetExternalModuleIndicator : (file) => {
@@ -30711,7 +30739,7 @@ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setPar
30711
30739
  setParentNodes,
30712
30740
  scriptKind,
30713
30741
  setIndicator,
30714
- skipNonSemanticJSDoc
30742
+ jsDocParsingMode
30715
30743
  );
30716
30744
  }
30717
30745
  (_c = perfLogger) == null ? void 0 : _c.logStopParseSourceFile();
@@ -30845,7 +30873,7 @@ var Parser;
30845
30873
  var contextFlags;
30846
30874
  var topLevel = true;
30847
30875
  var parseErrorBeforeNextFinishedNode = false;
30848
- function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride, skipNonSemanticJSDoc) {
30876
+ function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride, jsDocParsingMode = 0 /* ParseAll */) {
30849
30877
  var _a;
30850
30878
  scriptKind2 = ensureScriptKind(fileName2, scriptKind2);
30851
30879
  if (scriptKind2 === 6 /* JSON */) {
@@ -30867,9 +30895,8 @@ var Parser;
30867
30895
  result2.pragmas = emptyMap;
30868
30896
  return result2;
30869
30897
  }
30870
- skipNonSemanticJSDoc = !!skipNonSemanticJSDoc && scriptKind2 !== 1 /* JS */ && scriptKind2 !== 2 /* JSX */;
30871
- initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, scriptKind2, skipNonSemanticJSDoc);
30872
- const result = parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicatorOverride || setExternalModuleIndicator, skipNonSemanticJSDoc);
30898
+ initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, scriptKind2, jsDocParsingMode);
30899
+ const result = parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicatorOverride || setExternalModuleIndicator, jsDocParsingMode);
30873
30900
  clearState();
30874
30901
  return result;
30875
30902
  }
@@ -30882,8 +30909,7 @@ var Parser;
30882
30909
  /*syntaxCursor*/
30883
30910
  void 0,
30884
30911
  1 /* JS */,
30885
- /*skipNonSemanticJSDoc*/
30886
- false
30912
+ 0 /* ParseAll */
30887
30913
  );
30888
30914
  nextToken();
30889
30915
  const entityName = parseEntityName(
@@ -30896,15 +30922,7 @@ var Parser;
30896
30922
  }
30897
30923
  Parser2.parseIsolatedEntityName = parseIsolatedEntityName2;
30898
30924
  function parseJsonText2(fileName2, sourceText2, languageVersion2 = 2 /* ES2015 */, syntaxCursor2, setParentNodes = false) {
30899
- initializeState(
30900
- fileName2,
30901
- sourceText2,
30902
- languageVersion2,
30903
- syntaxCursor2,
30904
- 6 /* JSON */,
30905
- /*skipNonSemanticJSDoc*/
30906
- false
30907
- );
30925
+ initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, 6 /* JSON */, 0 /* ParseAll */);
30908
30926
  sourceFlags = contextFlags;
30909
30927
  nextToken();
30910
30928
  const pos = getNodePos();
@@ -30985,7 +31003,7 @@ var Parser;
30985
31003
  return result;
30986
31004
  }
30987
31005
  Parser2.parseJsonText = parseJsonText2;
30988
- function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind, _skipNonSemanticJSDoc) {
31006
+ function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind, _jsDocParsingMode) {
30989
31007
  NodeConstructor2 = objectAllocator.getNodeConstructor();
30990
31008
  TokenConstructor2 = objectAllocator.getTokenConstructor();
30991
31009
  IdentifierConstructor2 = objectAllocator.getIdentifierConstructor();
@@ -31021,13 +31039,15 @@ var Parser;
31021
31039
  scanner2.setOnError(scanError);
31022
31040
  scanner2.setScriptTarget(languageVersion);
31023
31041
  scanner2.setLanguageVariant(languageVariant);
31024
- scanner2.setSkipNonSemanticJSDoc(_skipNonSemanticJSDoc);
31042
+ scanner2.setScriptKind(scriptKind);
31043
+ scanner2.setJSDocParsingMode(_jsDocParsingMode);
31025
31044
  }
31026
31045
  function clearState() {
31027
31046
  scanner2.clearCommentDirectives();
31028
31047
  scanner2.setText("");
31029
31048
  scanner2.setOnError(void 0);
31030
- scanner2.setSkipNonSemanticJSDoc(false);
31049
+ scanner2.setScriptKind(0 /* Unknown */);
31050
+ scanner2.setJSDocParsingMode(0 /* ParseAll */);
31031
31051
  sourceText = void 0;
31032
31052
  languageVersion = void 0;
31033
31053
  syntaxCursor = void 0;
@@ -31041,7 +31061,7 @@ var Parser;
31041
31061
  notParenthesizedArrow = void 0;
31042
31062
  topLevel = true;
31043
31063
  }
31044
- function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2, skipNonSemanticJSDoc) {
31064
+ function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2, jsDocParsingMode) {
31045
31065
  const isDeclarationFile = isDeclarationFileName(fileName);
31046
31066
  if (isDeclarationFile) {
31047
31067
  contextFlags |= 33554432 /* Ambient */;
@@ -31060,7 +31080,7 @@ var Parser;
31060
31080
  sourceFile.identifierCount = identifierCount;
31061
31081
  sourceFile.identifiers = identifiers;
31062
31082
  sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile);
31063
- sourceFile.skipNonSemanticJSDoc = skipNonSemanticJSDoc;
31083
+ sourceFile.jsDocParsingMode = jsDocParsingMode;
31064
31084
  if (jsDocDiagnostics) {
31065
31085
  sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile);
31066
31086
  }
@@ -36495,8 +36515,7 @@ var Parser;
36495
36515
  /*syntaxCursor*/
36496
36516
  void 0,
36497
36517
  1 /* JS */,
36498
- /*skipNonSemanticJSDoc*/
36499
- false
36518
+ 0 /* ParseAll */
36500
36519
  );
36501
36520
  scanner2.setText(content, start2, length2);
36502
36521
  currentToken = scanner2.scan();
@@ -36561,8 +36580,7 @@ var Parser;
36561
36580
  /*syntaxCursor*/
36562
36581
  void 0,
36563
36582
  1 /* JS */,
36564
- /*skipNonSemanticJSDoc*/
36565
- false
36583
+ 0 /* ParseAll */
36566
36584
  );
36567
36585
  const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start2, length2));
36568
36586
  const sourceFile = { languageVariant: 0 /* Standard */, text: content };
@@ -37519,7 +37537,7 @@ var IncrementalParser;
37519
37537
  true,
37520
37538
  sourceFile.scriptKind,
37521
37539
  sourceFile.setExternalModuleIndicator,
37522
- sourceFile.skipNonSemanticJSDoc
37540
+ sourceFile.jsDocParsingMode
37523
37541
  );
37524
37542
  }
37525
37543
  const incrementalSourceFile = sourceFile;
@@ -37544,7 +37562,7 @@ var IncrementalParser;
37544
37562
  true,
37545
37563
  sourceFile.scriptKind,
37546
37564
  sourceFile.setExternalModuleIndicator,
37547
- sourceFile.skipNonSemanticJSDoc
37565
+ sourceFile.jsDocParsingMode
37548
37566
  );
37549
37567
  result.commentDirectives = getNewCommentDirectives(
37550
37568
  sourceFile.commentDirectives,
@@ -44897,7 +44915,7 @@ function createBinder() {
44897
44915
  }
44898
44916
  function bindCaseBlock(node) {
44899
44917
  const clauses = node.clauses;
44900
- const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
44918
+ const isNarrowingSwitch = isNarrowingExpression(node.parent.expression);
44901
44919
  let fallthroughFlow = unreachableFlow;
44902
44920
  for (let i = 0; i < clauses.length; i++) {
44903
44921
  const clauseStart = i;
@@ -70249,17 +70267,6 @@ function createTypeChecker(host) {
70249
70267
  type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);
70250
70268
  } else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) {
70251
70269
  type = narrowTypeBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);
70252
- } else if (expr.kind === 112 /* TrueKeyword */) {
70253
- const clause = flow.switchStatement.caseBlock.clauses.find((_, index) => index === flow.clauseStart);
70254
- const clauseExpression = clause && clause.kind === 296 /* CaseClause */ ? clause.expression : void 0;
70255
- if (clauseExpression) {
70256
- type = narrowType(
70257
- type,
70258
- clauseExpression,
70259
- /*assumeTrue*/
70260
- true
70261
- );
70262
- }
70263
70270
  } else {
70264
70271
  if (strictNullChecks) {
70265
70272
  if (optionalChainContainsReference(expr, reference)) {
@@ -119759,10 +119766,16 @@ function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, ge
119759
119766
  }
119760
119767
  return getPathFromPathComponents(commonPathComponents);
119761
119768
  }
119762
- function createCompilerHost(options, setParentNodes) {
119763
- return createCompilerHostWorker(options, setParentNodes);
119769
+ function createCompilerHost(options, setParentNodes, jsDocParsingMode) {
119770
+ return createCompilerHostWorker(
119771
+ options,
119772
+ setParentNodes,
119773
+ /*system*/
119774
+ void 0,
119775
+ jsDocParsingMode
119776
+ );
119764
119777
  }
119765
- function createGetSourceFile(readFile, getCompilerOptions, setParentNodes, skipNonSemanticJSDocParsing) {
119778
+ function createGetSourceFile(readFile, getCompilerOptions, setParentNodes, jsDocParsingMode) {
119766
119779
  return (fileName, languageVersionOrOptions, onError) => {
119767
119780
  let text;
119768
119781
  try {
@@ -119783,7 +119796,7 @@ function createGetSourceFile(readFile, getCompilerOptions, setParentNodes, skipN
119783
119796
  setParentNodes,
119784
119797
  /*scriptKind*/
119785
119798
  void 0,
119786
- skipNonSemanticJSDocParsing
119799
+ jsDocParsingMode
119787
119800
  ) : void 0;
119788
119801
  };
119789
119802
  }
@@ -119808,7 +119821,7 @@ function createWriteFileMeasuringIO(actualWriteFile, createDirectory, directoryE
119808
119821
  }
119809
119822
  };
119810
119823
  }
119811
- function createCompilerHostWorker(options, setParentNodes, skipNonSemanticJSDocParsing, system = sys) {
119824
+ function createCompilerHostWorker(options, setParentNodes, system = sys, jsDocParsingMode) {
119812
119825
  const existingDirectories = /* @__PURE__ */ new Map();
119813
119826
  const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames);
119814
119827
  function directoryExists(directoryPath) {
@@ -119827,7 +119840,7 @@ function createCompilerHostWorker(options, setParentNodes, skipNonSemanticJSDocP
119827
119840
  const newLine = getNewLineCharacter(options);
119828
119841
  const realpath = system.realpath && ((path) => system.realpath(path));
119829
119842
  const compilerHost = {
119830
- getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), () => options, setParentNodes, skipNonSemanticJSDocParsing),
119843
+ getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), () => options, setParentNodes, jsDocParsingMode),
119831
119844
  getDefaultLibLocation,
119832
119845
  getDefaultLibFileName: (options2) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options2)),
119833
119846
  writeFile: createWriteFileMeasuringIO(
@@ -126968,7 +126981,7 @@ function createCompilerHostFromProgramHost(host, getCompilerOptions, directorySt
126968
126981
  getCompilerOptions,
126969
126982
  /*setParentNodes*/
126970
126983
  void 0,
126971
- host.skipNonSemanticJSDocParsing
126984
+ host.jsDocParsingMode
126972
126985
  ),
126973
126986
  getDefaultLibLocation: maybeBind(host, host.getDefaultLibLocation),
126974
126987
  getDefaultLibFileName: (options) => host.getDefaultLibFileName(options),
@@ -127154,13 +127167,13 @@ function readBuilderProgram(compilerOptions, host) {
127154
127167
  return void 0;
127155
127168
  return createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host);
127156
127169
  }
127157
- function createIncrementalCompilerHost(options, system = sys, skipNonSemanticJSDocParsing) {
127170
+ function createIncrementalCompilerHost(options, system = sys, jsDocParsingMode) {
127158
127171
  const host = createCompilerHostWorker(
127159
127172
  options,
127160
127173
  /*setParentNodes*/
127161
127174
  void 0,
127162
- skipNonSemanticJSDocParsing,
127163
- system
127175
+ system,
127176
+ jsDocParsingMode
127164
127177
  );
127165
127178
  host.createHash = maybeBind(system, system.createHash);
127166
127179
  host.storeFilesChangingSignatureDuringEmit = system.storeFilesChangingSignatureDuringEmit;
@@ -135083,10 +135096,10 @@ var DocumentHighlights;
135083
135096
  function isDocumentRegistryEntry(entry) {
135084
135097
  return !!entry.sourceFile;
135085
135098
  }
135086
- function createDocumentRegistry(useCaseSensitiveFileNames2, currentDirectory) {
135087
- return createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory);
135099
+ function createDocumentRegistry(useCaseSensitiveFileNames2, currentDirectory, jsDocParsingMode) {
135100
+ return createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory, jsDocParsingMode);
135088
135101
  }
135089
- function createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory = "", externalCache) {
135102
+ function createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirectory = "", jsDocParsingMode, externalCache) {
135090
135103
  const buckets = /* @__PURE__ */ new Map();
135091
135104
  const getCanonicalFileName = createGetCanonicalFileName(!!useCaseSensitiveFileNames2);
135092
135105
  function reportStats() {
@@ -135206,7 +135219,8 @@ function createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirec
135206
135219
  version2,
135207
135220
  /*setNodeParents*/
135208
135221
  false,
135209
- scriptKind
135222
+ scriptKind,
135223
+ jsDocParsingMode
135210
135224
  );
135211
135225
  if (externalCache) {
135212
135226
  externalCache.setDocument(keyWithMode, path, sourceFile);
@@ -136593,7 +136607,12 @@ function transpileModule(input, transpileOptions) {
136593
136607
  options
136594
136608
  ),
136595
136609
  setExternalModuleIndicator: getSetExternalModuleIndicator(options)
136596
- }
136610
+ },
136611
+ /*setParentNodes*/
136612
+ void 0,
136613
+ /*scriptKind*/
136614
+ void 0,
136615
+ 3 /* ParseNone */
136597
136616
  );
136598
136617
  if (transpileOptions.moduleName) {
136599
136618
  sourceFile.moduleName = transpileOptions.moduleName;
@@ -143792,7 +143811,8 @@ var SyntaxTreeCache = class {
143792
143811
  version2,
143793
143812
  /*setNodeParents*/
143794
143813
  true,
143795
- scriptKind
143814
+ scriptKind,
143815
+ this.host.jsDocParsingMode
143796
143816
  );
143797
143817
  } else if (this.currentFileVersion !== version2) {
143798
143818
  const editRange = scriptSnapshot.getChangeRange(this.currentFileScriptSnapshot);
@@ -143811,8 +143831,8 @@ function setSourceFileFields(sourceFile, scriptSnapshot, version2) {
143811
143831
  sourceFile.version = version2;
143812
143832
  sourceFile.scriptSnapshot = scriptSnapshot;
143813
143833
  }
143814
- function createLanguageServiceSourceFile(fileName, scriptSnapshot, scriptTargetOrOptions, version2, setNodeParents, scriptKind) {
143815
- const sourceFile = createSourceFile(fileName, getSnapshotText(scriptSnapshot), scriptTargetOrOptions, setNodeParents, scriptKind);
143834
+ function createLanguageServiceSourceFile(fileName, scriptSnapshot, scriptTargetOrOptions, version2, setNodeParents, scriptKind, jsDocParsingMode) {
143835
+ const sourceFile = createSourceFile(fileName, getSnapshotText(scriptSnapshot), scriptTargetOrOptions, setNodeParents, scriptKind, jsDocParsingMode);
143816
143836
  setSourceFileFields(sourceFile, scriptSnapshot, version2);
143817
143837
  return sourceFile;
143818
143838
  }
@@ -143852,7 +143872,8 @@ function updateLanguageServiceSourceFile(sourceFile, scriptSnapshot, version2, t
143852
143872
  version2,
143853
143873
  /*setNodeParents*/
143854
143874
  true,
143855
- sourceFile.scriptKind
143875
+ sourceFile.scriptKind,
143876
+ sourceFile.jsDocParsingMode
143856
143877
  );
143857
143878
  }
143858
143879
  var NoopCancellationToken = {
@@ -168987,7 +169008,8 @@ var changesToText;
168987
169008
  99 /* ESNext */,
168988
169009
  /*setParentNodes*/
168989
169010
  true,
168990
- scriptKind
169011
+ scriptKind,
169012
+ 3 /* ParseNone */
168991
169013
  );
168992
169014
  const changes = ts_formatting_exports.formatDocument(sourceFile, formatContext);
168993
169015
  return applyChanges(nonFormattedText, changes) + newLineCharacter;
@@ -172269,6 +172291,7 @@ __export(ts_exports2, {
172269
172291
  InternalEmitFlags: () => InternalEmitFlags,
172270
172292
  InternalSymbolName: () => InternalSymbolName,
172271
172293
  InvalidatedProjectKind: () => InvalidatedProjectKind,
172294
+ JSDocParsingMode: () => JSDocParsingMode,
172272
172295
  JsDoc: () => ts_JsDoc_exports,
172273
172296
  JsTyping: () => ts_JsTyping_exports,
172274
172297
  JsxEmit: () => JsxEmit,
@@ -176237,6 +176260,7 @@ var Project3 = class _Project {
176237
176260
  this.directoryStructureHost = directoryStructureHost;
176238
176261
  this.currentDirectory = this.projectService.getNormalizedAbsolutePath(currentDirectory);
176239
176262
  this.getCanonicalFileName = this.projectService.toCanonicalFileName;
176263
+ this.jsDocParsingMode = this.projectService.jsDocParsingMode;
176240
176264
  this.cancellationToken = new ThrottledCancellationToken(this.projectService.cancellationToken, this.projectService.throttleWaitMilliseconds);
176241
176265
  if (!this.compilerOptions) {
176242
176266
  this.compilerOptions = getDefaultCompilerOptions2();
@@ -178795,6 +178819,7 @@ var _ProjectService = class _ProjectService {
178795
178819
  this.allowLocalPluginLoads = !!opts.allowLocalPluginLoads;
178796
178820
  this.typesMapLocation = opts.typesMapLocation === void 0 ? combinePaths(getDirectoryPath(this.getExecutingFilePath()), "typesMap.json") : opts.typesMapLocation;
178797
178821
  this.session = opts.session;
178822
+ this.jsDocParsingMode = opts.jsDocParsingMode;
178798
178823
  if (opts.serverMode !== void 0) {
178799
178824
  this.serverMode = opts.serverMode;
178800
178825
  } else {
@@ -178820,7 +178845,7 @@ var _ProjectService = class _ProjectService {
178820
178845
  hostInfo: "Unknown host",
178821
178846
  extraFileExtensions: []
178822
178847
  };
178823
- this.documentRegistry = createDocumentRegistryInternal(this.host.useCaseSensitiveFileNames, this.currentDirectory, this);
178848
+ this.documentRegistry = createDocumentRegistryInternal(this.host.useCaseSensitiveFileNames, this.currentDirectory, this.jsDocParsingMode, this);
178824
178849
  const watchLogLevel = this.logger.hasLevel(3 /* verbose */) ? 2 /* Verbose */ : this.logger.loggingEnabled() ? 1 /* TriggerOnly */ : 0 /* None */;
178825
178850
  const log = watchLogLevel !== 0 /* None */ ? (s) => this.logger.info(s) : noop;
178826
178851
  this.packageJsonCache = createPackageJsonCache(this);
@@ -186831,6 +186856,7 @@ start(initializeNodeSystem(), require("os").platform());
186831
186856
  InternalEmitFlags,
186832
186857
  InternalSymbolName,
186833
186858
  InvalidatedProjectKind,
186859
+ JSDocParsingMode,
186834
186860
  JsDoc,
186835
186861
  JsTyping,
186836
186862
  JsxEmit,
@@ -3616,6 +3616,7 @@ declare namespace ts {
3616
3616
  typesMapLocation?: string;
3617
3617
  serverMode?: LanguageServiceMode;
3618
3618
  session: Session<unknown> | undefined;
3619
+ jsDocParsingMode?: JSDocParsingMode;
3619
3620
  }
3620
3621
  interface WatchOptionsAndErrors {
3621
3622
  watchOptions: WatchOptions;
@@ -3690,6 +3691,7 @@ declare namespace ts {
3690
3691
  private performanceEventHandler?;
3691
3692
  private pendingPluginEnablements?;
3692
3693
  private currentPluginEnablementPromise?;
3694
+ readonly jsDocParsingMode: JSDocParsingMode | undefined;
3693
3695
  constructor(opts: ProjectServiceOptions);
3694
3696
  toPath(fileName: string): Path;
3695
3697
  private loadTypesMap;
@@ -8607,6 +8609,12 @@ declare namespace ts {
8607
8609
  IndexSignatureParameters = 8848,
8608
8610
  JSDocComment = 33,
8609
8611
  }
8612
+ enum JSDocParsingMode {
8613
+ ParseAll = 0,
8614
+ ParseForTypeErrors = 1,
8615
+ ParseForTypeInfo = 2,
8616
+ ParseNone = 3,
8617
+ }
8610
8618
  interface UserPreferences {
8611
8619
  readonly disableSuggestions?: boolean;
8612
8620
  readonly quotePreference?: "auto" | "double" | "single";
@@ -8768,6 +8776,8 @@ declare namespace ts {
8768
8776
  setOnError(onError: ErrorCallback | undefined): void;
8769
8777
  setScriptTarget(scriptTarget: ScriptTarget): void;
8770
8778
  setLanguageVariant(variant: LanguageVariant): void;
8779
+ setScriptKind(scriptKind: ScriptKind): void;
8780
+ setJSDocParsingMode(kind: JSDocParsingMode): void;
8771
8781
  /** @deprecated use {@link resetTokenState} */
8772
8782
  setTextPos(textPos: number): void;
8773
8783
  resetTokenState(pos: number): void;
@@ -9413,7 +9423,7 @@ declare namespace ts {
9413
9423
  * that they appear in the source code. The language service depends on this property to locate nodes by position.
9414
9424
  */
9415
9425
  function forEachChild<T>(node: Node, cbNode: (node: Node) => T | undefined, cbNodes?: (nodes: NodeArray<Node>) => T | undefined): T | undefined;
9416
- function createSourceFile(fileName: string, sourceText: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind): SourceFile;
9426
+ function createSourceFile(fileName: string, sourceText: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, setParentNodes?: boolean, scriptKind?: ScriptKind, jsDocParsingMode?: JSDocParsingMode): SourceFile;
9417
9427
  function parseIsolatedEntityName(text: string, languageVersion: ScriptTarget): EntityName | undefined;
9418
9428
  /**
9419
9429
  * Parse json text into SyntaxTree and return node and parse errors if any
@@ -9718,7 +9728,7 @@ declare namespace ts {
9718
9728
  function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer;
9719
9729
  function findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined;
9720
9730
  function resolveTripleslashReference(moduleName: string, containingFile: string): string;
9721
- function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost;
9731
+ function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean, jsDocParsingMode?: JSDocParsingMode): CompilerHost;
9722
9732
  function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile, cancellationToken?: CancellationToken): readonly Diagnostic[];
9723
9733
  function formatDiagnostics(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
9724
9734
  function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
@@ -9930,7 +9940,7 @@ declare namespace ts {
9930
9940
  emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult<EmitResult>;
9931
9941
  }
9932
9942
  function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
9933
- function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
9943
+ function createIncrementalCompilerHost(options: CompilerOptions, system?: System, jsDocParsingMode?: JSDocParsingMode): CompilerHost;
9934
9944
  function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
9935
9945
  /**
9936
9946
  * Create the watch compiler host for either configFile or fileNames and its options
@@ -10027,6 +10037,7 @@ declare namespace ts {
10027
10037
  * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
10028
10038
  */
10029
10039
  getModuleResolutionCache?(): ModuleResolutionCache | undefined;
10040
+ jsDocParsingMode?: JSDocParsingMode;
10030
10041
  }
10031
10042
  interface WatchCompilerHost<T extends BuilderProgram> extends ProgramHost<T>, WatchHost {
10032
10043
  /** Instead of using output d.ts file from project reference, use its source file */
@@ -10277,6 +10288,7 @@ declare namespace ts {
10277
10288
  installPackage?(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
10278
10289
  writeFile?(fileName: string, content: string): void;
10279
10290
  getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
10291
+ jsDocParsingMode?: JSDocParsingMode;
10280
10292
  }
10281
10293
  type WithMetadata<T> = T & {
10282
10294
  metadata?: unknown;
@@ -11374,7 +11386,7 @@ declare namespace ts {
11374
11386
  fileName: string;
11375
11387
  highlightSpans: HighlightSpan[];
11376
11388
  }
11377
- function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string): DocumentRegistry;
11389
+ function createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string, jsDocParsingMode?: JSDocParsingMode): DocumentRegistry;
11378
11390
  /**
11379
11391
  * The document registry represents a store of SourceFile objects that can be shared between
11380
11392
  * multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST)
@@ -11482,7 +11494,7 @@ declare namespace ts {
11482
11494
  function displayPartsToString(displayParts: SymbolDisplayPart[] | undefined): string;
11483
11495
  function getDefaultCompilerOptions(): CompilerOptions;
11484
11496
  function getSupportedCodeFixes(): readonly string[];
11485
- function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTargetOrOptions: ScriptTarget | CreateSourceFileOptions, version: string, setNodeParents: boolean, scriptKind?: ScriptKind): SourceFile;
11497
+ function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTargetOrOptions: ScriptTarget | CreateSourceFileOptions, version: string, setNodeParents: boolean, scriptKind?: ScriptKind, jsDocParsingMode?: JSDocParsingMode): SourceFile;
11486
11498
  function updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: string, textChangeRange: TextChangeRange | undefined, aggressiveChecks?: boolean): SourceFile;
11487
11499
  function createLanguageService(host: LanguageServiceHost, documentRegistry?: DocumentRegistry, syntaxOnlyOrLanguageServiceMode?: boolean | LanguageServiceMode): LanguageService;
11488
11500
  /**