typescript 5.1.0-dev.20230323 → 5.1.0-dev.20230325

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
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(server_exports);
2286
2286
 
2287
2287
  // src/compiler/corePublic.ts
2288
2288
  var versionMajorMinor = "5.1";
2289
- var version = `${versionMajorMinor}.0-dev.20230323`;
2289
+ var version = `${versionMajorMinor}.0-dev.20230325`;
2290
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2291
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2292
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -6234,9 +6234,15 @@ var TokenFlags = /* @__PURE__ */ ((TokenFlags2) => {
6234
6234
  TokenFlags2[TokenFlags2["ContainsSeparator"] = 512] = "ContainsSeparator";
6235
6235
  TokenFlags2[TokenFlags2["UnicodeEscape"] = 1024] = "UnicodeEscape";
6236
6236
  TokenFlags2[TokenFlags2["ContainsInvalidEscape"] = 2048] = "ContainsInvalidEscape";
6237
+ TokenFlags2[TokenFlags2["HexEscape"] = 4096] = "HexEscape";
6238
+ TokenFlags2[TokenFlags2["ContainsLeadingZero"] = 8192] = "ContainsLeadingZero";
6239
+ TokenFlags2[TokenFlags2["ContainsInvalidSeparator"] = 16384] = "ContainsInvalidSeparator";
6237
6240
  TokenFlags2[TokenFlags2["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier";
6238
- TokenFlags2[TokenFlags2["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags";
6239
- TokenFlags2[TokenFlags2["TemplateLiteralLikeFlags"] = 2048 /* ContainsInvalidEscape */] = "TemplateLiteralLikeFlags";
6241
+ TokenFlags2[TokenFlags2["WithSpecifier"] = 448] = "WithSpecifier";
6242
+ TokenFlags2[TokenFlags2["StringLiteralFlags"] = 7176] = "StringLiteralFlags";
6243
+ TokenFlags2[TokenFlags2["NumericLiteralFlags"] = 25584] = "NumericLiteralFlags";
6244
+ TokenFlags2[TokenFlags2["TemplateLiteralLikeFlags"] = 7176] = "TemplateLiteralLikeFlags";
6245
+ TokenFlags2[TokenFlags2["IsInvalid"] = 26656] = "IsInvalid";
6240
6246
  return TokenFlags2;
6241
6247
  })(TokenFlags || {});
6242
6248
  var FlowFlags = /* @__PURE__ */ ((FlowFlags2) => {
@@ -9233,7 +9239,6 @@ var Diagnostics = {
9233
9239
  _0_modifier_cannot_appear_on_an_index_signature: diag(1071, 1 /* Error */, "_0_modifier_cannot_appear_on_an_index_signature_1071", "'{0}' modifier cannot appear on an index signature."),
9234
9240
  A_0_modifier_cannot_be_used_with_an_import_declaration: diag(1079, 1 /* Error */, "A_0_modifier_cannot_be_used_with_an_import_declaration_1079", "A '{0}' modifier cannot be used with an import declaration."),
9235
9241
  Invalid_reference_directive_syntax: diag(1084, 1 /* Error */, "Invalid_reference_directive_syntax_1084", "Invalid 'reference' directive syntax."),
9236
- Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0: diag(1085, 1 /* Error */, "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085", "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),
9237
9242
  _0_modifier_cannot_appear_on_a_constructor_declaration: diag(1089, 1 /* Error */, "_0_modifier_cannot_appear_on_a_constructor_declaration_1089", "'{0}' modifier cannot appear on a constructor declaration."),
9238
9243
  _0_modifier_cannot_appear_on_a_parameter: diag(1090, 1 /* Error */, "_0_modifier_cannot_appear_on_a_parameter_1090", "'{0}' modifier cannot appear on a parameter."),
9239
9244
  Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: diag(1091, 1 /* Error */, "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091", "Only a single variable declaration is allowed in a 'for...in' statement."),
@@ -9264,7 +9269,7 @@ var Diagnostics = {
9264
9269
  An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: diag(1118, 1 /* Error */, "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118", "An object literal cannot have multiple get/set accessors with the same name."),
9265
9270
  An_object_literal_cannot_have_property_and_accessor_with_the_same_name: diag(1119, 1 /* Error */, "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119", "An object literal cannot have property and accessor with the same name."),
9266
9271
  An_export_assignment_cannot_have_modifiers: diag(1120, 1 /* Error */, "An_export_assignment_cannot_have_modifiers_1120", "An export assignment cannot have modifiers."),
9267
- Octal_literals_are_not_allowed_in_strict_mode: diag(1121, 1 /* Error */, "Octal_literals_are_not_allowed_in_strict_mode_1121", "Octal literals are not allowed in strict mode."),
9272
+ Octal_literals_are_not_allowed_Use_the_syntax_0: diag(1121, 1 /* Error */, "Octal_literals_are_not_allowed_Use_the_syntax_0_1121", "Octal literals are not allowed. Use the syntax '{0}'."),
9268
9273
  Variable_declaration_list_cannot_be_empty: diag(1123, 1 /* Error */, "Variable_declaration_list_cannot_be_empty_1123", "Variable declaration list cannot be empty."),
9269
9274
  Digit_expected: diag(1124, 1 /* Error */, "Digit_expected_1124", "Digit expected."),
9270
9275
  Hexadecimal_digit_expected: diag(1125, 1 /* Error */, "Hexadecimal_digit_expected_1125", "Hexadecimal digit expected."),
@@ -9575,6 +9580,9 @@ var Diagnostics = {
9575
9580
  _0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1484, 1 /* Error */, "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484", "'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
9576
9581
  _0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1485, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485", "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
9577
9582
  Decorator_used_before_export_here: diag(1486, 1 /* Error */, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."),
9583
+ Octal_escape_sequences_are_not_allowed_Use_the_syntax_0: diag(1487, 1 /* Error */, "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487", "Octal escape sequences are not allowed. Use the syntax '{0}'."),
9584
+ Escape_sequence_0_is_not_allowed: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."),
9585
+ Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."),
9578
9586
  The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
9579
9587
  The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
9580
9588
  Call_signature_return_types_0_and_1_are_incompatible: diag(
@@ -10915,8 +10923,6 @@ var Diagnostics = {
10915
10923
  Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, 1 /* Error */, "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012", "Parameter modifiers can only be used in TypeScript files."),
10916
10924
  Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, 1 /* Error */, "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013", "Non-null assertions can only be used in TypeScript files."),
10917
10925
  Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, 1 /* Error */, "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016", "Type assertion expressions can only be used in TypeScript files."),
10918
- Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: diag(8017, 1 /* Error */, "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017", "Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),
10919
- Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0: diag(8018, 1 /* Error */, "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018", "Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),
10920
10926
  Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."),
10921
10927
  JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."),
10922
10928
  JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),
@@ -11919,7 +11925,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
11919
11925
  isReservedWord: () => token >= 82 /* FirstReservedWord */ && token <= 117 /* LastReservedWord */,
11920
11926
  isUnterminated: () => (tokenFlags & 4 /* Unterminated */) !== 0,
11921
11927
  getCommentDirectives: () => commentDirectives,
11922
- getNumericLiteralFlags: () => tokenFlags & 1008 /* NumericLiteralFlags */,
11928
+ getNumericLiteralFlags: () => tokenFlags & 25584 /* NumericLiteralFlags */,
11923
11929
  getTokenFlags: () => tokenFlags,
11924
11930
  reScanGreaterToken,
11925
11931
  reScanAsteriskEqualsToken,
@@ -11960,11 +11966,11 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
11960
11966
  });
11961
11967
  }
11962
11968
  return scanner2;
11963
- function error(message, errPos = pos, length3) {
11969
+ function error(message, errPos = pos, length3, arg0) {
11964
11970
  if (onError) {
11965
11971
  const oldPos = pos;
11966
11972
  pos = errPos;
11967
- onError(message, length3 || 0);
11973
+ onError(message, length3 || 0, arg0);
11968
11974
  pos = oldPos;
11969
11975
  }
11970
11976
  }
@@ -11981,10 +11987,13 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
11981
11987
  allowSeparator = false;
11982
11988
  isPreviousTokenSeparator = true;
11983
11989
  result += text.substring(start3, pos);
11984
- } else if (isPreviousTokenSeparator) {
11985
- error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);
11986
11990
  } else {
11987
- error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);
11991
+ tokenFlags |= 16384 /* ContainsInvalidSeparator */;
11992
+ if (isPreviousTokenSeparator) {
11993
+ error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);
11994
+ } else {
11995
+ error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);
11996
+ }
11988
11997
  }
11989
11998
  pos++;
11990
11999
  start3 = pos;
@@ -11999,13 +12008,39 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
11999
12008
  break;
12000
12009
  }
12001
12010
  if (text.charCodeAt(pos - 1) === 95 /* _ */) {
12011
+ tokenFlags |= 16384 /* ContainsInvalidSeparator */;
12002
12012
  error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);
12003
12013
  }
12004
12014
  return result + text.substring(start3, pos);
12005
12015
  }
12006
12016
  function scanNumber() {
12007
- const start3 = pos;
12008
- const mainFragment = scanNumberFragment();
12017
+ let start3 = pos;
12018
+ let mainFragment;
12019
+ if (text.charCodeAt(pos) === 48 /* _0 */) {
12020
+ pos++;
12021
+ if (text.charCodeAt(pos) === 95 /* _ */) {
12022
+ tokenFlags |= 512 /* ContainsSeparator */ | 16384 /* ContainsInvalidSeparator */;
12023
+ error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);
12024
+ pos--;
12025
+ mainFragment = scanNumberFragment();
12026
+ } else if (!scanDigits()) {
12027
+ tokenFlags |= 8192 /* ContainsLeadingZero */;
12028
+ mainFragment = "" + +tokenValue;
12029
+ } else if (!tokenValue) {
12030
+ mainFragment = "0";
12031
+ } else {
12032
+ tokenValue = "" + parseInt(tokenValue, 8);
12033
+ tokenFlags |= 32 /* Octal */;
12034
+ const withMinus = token === 40 /* MinusToken */;
12035
+ const literal = (withMinus ? "-" : "") + "0o" + (+tokenValue).toString(8);
12036
+ if (withMinus)
12037
+ start3--;
12038
+ error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start3, pos - start3, literal);
12039
+ return { type: 8 /* NumericLiteral */, value: tokenValue };
12040
+ }
12041
+ } else {
12042
+ mainFragment = scanNumberFragment();
12043
+ }
12009
12044
  let decimalFragment;
12010
12045
  let scientificFragment;
12011
12046
  if (text.charCodeAt(pos) === 46 /* dot */) {
@@ -12039,6 +12074,10 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12039
12074
  } else {
12040
12075
  result = text.substring(start3, end2);
12041
12076
  }
12077
+ if (tokenFlags & 8192 /* ContainsLeadingZero */) {
12078
+ error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start3, end2 - start3);
12079
+ return { type: 8 /* NumericLiteral */, value: "" + +result };
12080
+ }
12042
12081
  if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) {
12043
12082
  checkForIdentifierStartAfterNumericLiteral(start3, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */));
12044
12083
  return {
@@ -12070,12 +12109,17 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12070
12109
  pos = identifierStart;
12071
12110
  }
12072
12111
  }
12073
- function scanOctalDigits() {
12112
+ function scanDigits() {
12074
12113
  const start3 = pos;
12075
- while (isOctalDigit(text.charCodeAt(pos))) {
12114
+ let isOctal = true;
12115
+ while (isDigit(text.charCodeAt(pos))) {
12116
+ if (!isOctalDigit(text.charCodeAt(pos))) {
12117
+ isOctal = false;
12118
+ }
12076
12119
  pos++;
12077
12120
  }
12078
- return +text.substring(start3, pos);
12121
+ tokenValue = text.substring(start3, pos);
12122
+ return isOctal;
12079
12123
  }
12080
12124
  function scanExactNumberOfHexDigits(count, canHaveSeparators) {
12081
12125
  const valueString = scanHexDigits(
@@ -12153,7 +12197,10 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12153
12197
  }
12154
12198
  if (ch === 92 /* backslash */ && !jsxAttributeString) {
12155
12199
  result += text.substring(start3, pos);
12156
- result += scanEscapeSequence();
12200
+ result += scanEscapeSequence(
12201
+ /*shouldEmitInvalidEscapeError*/
12202
+ true
12203
+ );
12157
12204
  start3 = pos;
12158
12205
  continue;
12159
12206
  }
@@ -12167,7 +12214,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12167
12214
  }
12168
12215
  return result;
12169
12216
  }
12170
- function scanTemplateAndSetTokenValue(isTaggedTemplate) {
12217
+ function scanTemplateAndSetTokenValue(shouldEmitInvalidEscapeError) {
12171
12218
  const startedWithBacktick = text.charCodeAt(pos) === 96 /* backtick */;
12172
12219
  pos++;
12173
12220
  let start3 = pos;
@@ -12196,7 +12243,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12196
12243
  }
12197
12244
  if (currChar === 92 /* backslash */) {
12198
12245
  contents += text.substring(start3, pos);
12199
- contents += scanEscapeSequence(isTaggedTemplate);
12246
+ contents += scanEscapeSequence(shouldEmitInvalidEscapeError);
12200
12247
  start3 = pos;
12201
12248
  continue;
12202
12249
  }
@@ -12216,7 +12263,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12216
12263
  tokenValue = contents;
12217
12264
  return resultingToken;
12218
12265
  }
12219
- function scanEscapeSequence(isTaggedTemplate) {
12266
+ function scanEscapeSequence(shouldEmitInvalidEscapeError) {
12220
12267
  const start3 = pos;
12221
12268
  pos++;
12222
12269
  if (pos >= end) {
@@ -12227,12 +12274,37 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12227
12274
  pos++;
12228
12275
  switch (ch) {
12229
12276
  case 48 /* _0 */:
12230
- if (isTaggedTemplate && pos < end && isDigit(text.charCodeAt(pos))) {
12277
+ if (pos >= end || !isDigit(text.charCodeAt(pos))) {
12278
+ return "\0";
12279
+ }
12280
+ case 49 /* _1 */:
12281
+ case 50 /* _2 */:
12282
+ case 51 /* _3 */:
12283
+ if (pos < end && isOctalDigit(text.charCodeAt(pos))) {
12231
12284
  pos++;
12232
- tokenFlags |= 2048 /* ContainsInvalidEscape */;
12233
- return text.substring(start3, pos);
12234
12285
  }
12235
- return "\0";
12286
+ case 52 /* _4 */:
12287
+ case 53 /* _5 */:
12288
+ case 54 /* _6 */:
12289
+ case 55 /* _7 */:
12290
+ if (pos < end && isOctalDigit(text.charCodeAt(pos))) {
12291
+ pos++;
12292
+ }
12293
+ tokenFlags |= 2048 /* ContainsInvalidEscape */;
12294
+ if (shouldEmitInvalidEscapeError) {
12295
+ const code = parseInt(text.substring(start3 + 1, pos), 8);
12296
+ error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start3, pos - start3, "\\x" + padLeft(code.toString(16), 2, "0"));
12297
+ return String.fromCharCode(code);
12298
+ }
12299
+ return text.substring(start3, pos);
12300
+ case 56 /* _8 */:
12301
+ case 57 /* _9 */:
12302
+ tokenFlags |= 2048 /* ContainsInvalidEscape */;
12303
+ if (shouldEmitInvalidEscapeError) {
12304
+ error(Diagnostics.Escape_sequence_0_is_not_allowed, start3, pos - start3, text.substring(start3, pos));
12305
+ return String.fromCharCode(ch);
12306
+ }
12307
+ return text.substring(start3, pos);
12236
12308
  case 98 /* b */:
12237
12309
  return "\b";
12238
12310
  case 116 /* t */:
@@ -12250,59 +12322,69 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12250
12322
  case 34 /* doubleQuote */:
12251
12323
  return '"';
12252
12324
  case 117 /* u */:
12253
- if (isTaggedTemplate) {
12254
- for (let escapePos = pos; escapePos < pos + 4; escapePos++) {
12255
- if (escapePos < end && !isHexDigit(text.charCodeAt(escapePos)) && text.charCodeAt(escapePos) !== 123 /* openBrace */) {
12256
- pos = escapePos;
12257
- tokenFlags |= 2048 /* ContainsInvalidEscape */;
12258
- return text.substring(start3, pos);
12259
- }
12260
- }
12261
- }
12262
12325
  if (pos < end && text.charCodeAt(pos) === 123 /* openBrace */) {
12263
12326
  pos++;
12264
- if (isTaggedTemplate && !isHexDigit(text.charCodeAt(pos))) {
12327
+ const escapedValueString = scanMinimumNumberOfHexDigits(
12328
+ 1,
12329
+ /*canHaveSeparators*/
12330
+ false
12331
+ );
12332
+ const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;
12333
+ if (escapedValue < 0) {
12265
12334
  tokenFlags |= 2048 /* ContainsInvalidEscape */;
12335
+ if (shouldEmitInvalidEscapeError) {
12336
+ error(Diagnostics.Hexadecimal_digit_expected);
12337
+ }
12266
12338
  return text.substring(start3, pos);
12267
12339
  }
12268
- if (isTaggedTemplate) {
12269
- const savePos = pos;
12270
- const escapedValueString = scanMinimumNumberOfHexDigits(
12271
- 1,
12272
- /*canHaveSeparators*/
12273
- false
12274
- );
12275
- const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;
12276
- if (!isCodePoint(escapedValue) || text.charCodeAt(pos) !== 125 /* closeBrace */) {
12277
- tokenFlags |= 2048 /* ContainsInvalidEscape */;
12278
- return text.substring(start3, pos);
12279
- } else {
12280
- pos = savePos;
12340
+ if (!isCodePoint(escapedValue)) {
12341
+ tokenFlags |= 2048 /* ContainsInvalidEscape */;
12342
+ if (shouldEmitInvalidEscapeError) {
12343
+ error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive);
12344
+ }
12345
+ return text.substring(start3, pos);
12346
+ }
12347
+ if (pos >= end) {
12348
+ tokenFlags |= 2048 /* ContainsInvalidEscape */;
12349
+ if (shouldEmitInvalidEscapeError) {
12350
+ error(Diagnostics.Unexpected_end_of_text);
12281
12351
  }
12352
+ return text.substring(start3, pos);
12353
+ }
12354
+ if (text.charCodeAt(pos) !== 125 /* closeBrace */) {
12355
+ tokenFlags |= 2048 /* ContainsInvalidEscape */;
12356
+ if (shouldEmitInvalidEscapeError) {
12357
+ error(Diagnostics.Unterminated_Unicode_escape_sequence);
12358
+ }
12359
+ return text.substring(start3, pos);
12282
12360
  }
12361
+ pos++;
12283
12362
  tokenFlags |= 8 /* ExtendedUnicodeEscape */;
12284
- return scanExtendedUnicodeEscape();
12363
+ return utf16EncodeAsString(escapedValue);
12285
12364
  }
12286
- tokenFlags |= 1024 /* UnicodeEscape */;
12287
- return scanHexadecimalEscape(
12288
- /*numDigits*/
12289
- 4
12290
- );
12291
- case 120 /* x */:
12292
- if (isTaggedTemplate) {
12293
- if (!isHexDigit(text.charCodeAt(pos))) {
12365
+ for (; pos < start3 + 6; pos++) {
12366
+ if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) {
12294
12367
  tokenFlags |= 2048 /* ContainsInvalidEscape */;
12368
+ if (shouldEmitInvalidEscapeError) {
12369
+ error(Diagnostics.Hexadecimal_digit_expected);
12370
+ }
12295
12371
  return text.substring(start3, pos);
12296
- } else if (!isHexDigit(text.charCodeAt(pos + 1))) {
12297
- pos++;
12372
+ }
12373
+ }
12374
+ tokenFlags |= 1024 /* UnicodeEscape */;
12375
+ return String.fromCharCode(parseInt(text.substring(start3 + 2, pos), 16));
12376
+ case 120 /* x */:
12377
+ for (; pos < start3 + 4; pos++) {
12378
+ if (!(pos < end && isHexDigit(text.charCodeAt(pos)))) {
12298
12379
  tokenFlags |= 2048 /* ContainsInvalidEscape */;
12380
+ if (shouldEmitInvalidEscapeError) {
12381
+ error(Diagnostics.Hexadecimal_digit_expected);
12382
+ }
12299
12383
  return text.substring(start3, pos);
12300
12384
  }
12301
12385
  }
12302
- return scanHexadecimalEscape(
12303
- /*numDigits*/
12304
- 2
12305
- );
12386
+ tokenFlags |= 4096 /* HexEscape */;
12387
+ return String.fromCharCode(parseInt(text.substring(start3 + 2, pos), 16));
12306
12388
  case 13 /* carriageReturn */:
12307
12389
  if (pos < end && text.charCodeAt(pos) === 10 /* lineFeed */) {
12308
12390
  pos++;
@@ -12315,19 +12397,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12315
12397
  return String.fromCharCode(ch);
12316
12398
  }
12317
12399
  }
12318
- function scanHexadecimalEscape(numDigits) {
12319
- const escapedValue = scanExactNumberOfHexDigits(
12320
- numDigits,
12321
- /*canHaveSeparators*/
12322
- false
12323
- );
12324
- if (escapedValue >= 0) {
12325
- return String.fromCharCode(escapedValue);
12326
- } else {
12327
- error(Diagnostics.Hexadecimal_digit_expected);
12328
- return "";
12329
- }
12330
- }
12331
12400
  function scanExtendedUnicodeEscape() {
12332
12401
  const escapedValueString = scanMinimumNumberOfHexDigits(
12333
12402
  1,
@@ -12556,7 +12625,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12556
12625
  return token = 10 /* StringLiteral */;
12557
12626
  case 96 /* backtick */:
12558
12627
  return token = scanTemplateAndSetTokenValue(
12559
- /* isTaggedTemplate */
12628
+ /*shouldEmitInvalidEscapeError*/
12560
12629
  false
12561
12630
  );
12562
12631
  case 37 /* percent */:
@@ -12731,11 +12800,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
12731
12800
  tokenFlags |= 256 /* OctalSpecifier */;
12732
12801
  return token = checkBigIntSuffix();
12733
12802
  }
12734
- if (pos + 1 < end && isOctalDigit(text.charCodeAt(pos + 1))) {
12735
- tokenValue = "" + scanOctalDigits();
12736
- tokenFlags |= 32 /* Octal */;
12737
- return token = 8 /* NumericLiteral */;
12738
- }
12739
12803
  case 49 /* _1 */:
12740
12804
  case 50 /* _2 */:
12741
12805
  case 51 /* _3 */:
@@ -13052,14 +13116,13 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
13052
13116
  return void 0;
13053
13117
  }
13054
13118
  function reScanTemplateToken(isTaggedTemplate) {
13055
- Debug.assert(token === 19 /* CloseBraceToken */, "'reScanTemplateToken' should only be called on a '}'");
13056
13119
  pos = tokenStart;
13057
- return token = scanTemplateAndSetTokenValue(isTaggedTemplate);
13120
+ return token = scanTemplateAndSetTokenValue(!isTaggedTemplate);
13058
13121
  }
13059
13122
  function reScanTemplateHeadOrNoSubstitutionTemplate() {
13060
13123
  pos = tokenStart;
13061
13124
  return token = scanTemplateAndSetTokenValue(
13062
- /* isTaggedTemplate */
13125
+ /*shouldEmitInvalidEscapeError*/
13063
13126
  true
13064
13127
  );
13065
13128
  }
@@ -15781,8 +15844,13 @@ function canUseOriginalText(node, flags) {
15781
15844
  if (nodeIsSynthesized(node) || !node.parent || flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated) {
15782
15845
  return false;
15783
15846
  }
15784
- if (isNumericLiteral(node) && node.numericLiteralFlags & 512 /* ContainsSeparator */) {
15785
- return !!(flags & 8 /* AllowNumericSeparator */);
15847
+ if (isNumericLiteral(node)) {
15848
+ if (node.numericLiteralFlags & 26656 /* IsInvalid */) {
15849
+ return false;
15850
+ }
15851
+ if (node.numericLiteralFlags & 512 /* ContainsSeparator */) {
15852
+ return !!(flags & 8 /* AllowNumericSeparator */);
15853
+ }
15786
15854
  }
15787
15855
  return !isBigIntLiteral(node);
15788
15856
  }
@@ -16110,7 +16178,7 @@ function getSpanOfTokenAtPosition(sourceFile, pos) {
16110
16178
  true,
16111
16179
  sourceFile.languageVariant,
16112
16180
  sourceFile.text,
16113
- /*onError:*/
16181
+ /*onError*/
16114
16182
  void 0,
16115
16183
  pos
16116
16184
  );
@@ -16125,7 +16193,7 @@ function scanTokenAtPosition(sourceFile, pos) {
16125
16193
  true,
16126
16194
  sourceFile.languageVariant,
16127
16195
  sourceFile.text,
16128
- /*onError:*/
16196
+ /*onError*/
16129
16197
  void 0,
16130
16198
  pos
16131
16199
  );
@@ -17107,7 +17175,7 @@ function isSameEntityName(name, initializer) {
17107
17175
  function getRightMostAssignedExpression(node) {
17108
17176
  while (isAssignmentExpression(
17109
17177
  node,
17110
- /*excludeCompoundAssignments*/
17178
+ /*excludeCompoundAssignment*/
17111
17179
  true
17112
17180
  )) {
17113
17181
  node = node.right;
@@ -17310,7 +17378,7 @@ function tryGetImportFromModuleSpecifier(node) {
17310
17378
  case 211 /* CallExpression */:
17311
17379
  return isImportCall(node.parent) || isRequireCall(
17312
17380
  node.parent,
17313
- /*checkArg*/
17381
+ /*requireStringLiteralLikeArgument*/
17314
17382
  false
17315
17383
  ) ? node.parent : void 0;
17316
17384
  case 199 /* LiteralType */:
@@ -19106,9 +19174,9 @@ function getEffectiveModifierFlags(node) {
19106
19174
  function getEffectiveModifierFlagsAlwaysIncludeJSDoc(node) {
19107
19175
  return getModifierFlagsWorker(
19108
19176
  node,
19109
- /*includeJSDOc*/
19177
+ /*includeJSDoc*/
19110
19178
  true,
19111
- /*alwaysIncludeJSDOc*/
19179
+ /*alwaysIncludeJSDoc*/
19112
19180
  true
19113
19181
  );
19114
19182
  }
@@ -21583,7 +21651,7 @@ function createParenthesizerRules(factory2) {
21583
21651
  if (!needsParens) {
21584
21652
  switch (getLeftmostExpression(
21585
21653
  check,
21586
- /*stopAtCallExpression*/
21654
+ /*stopAtCallExpressions*/
21587
21655
  false
21588
21656
  ).kind) {
21589
21657
  case 229 /* ClassExpression */:
@@ -23989,7 +24057,7 @@ function createNodeFactory(flags, baseFactory2) {
23989
24057
  return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateExpression(head, templateSpans), node) : node;
23990
24058
  }
23991
24059
  function checkTemplateLiteralLikeNode(kind, text, rawText, templateFlags = 0 /* None */) {
23992
- Debug.assert(!(templateFlags & ~2048 /* TemplateLiteralLikeFlags */), "Unsupported template flags.");
24060
+ Debug.assert(!(templateFlags & ~7176 /* TemplateLiteralLikeFlags */), "Unsupported template flags.");
23993
24061
  let cooked = void 0;
23994
24062
  if (rawText !== void 0 && rawText !== text) {
23995
24063
  cooked = getCookedText(kind, rawText);
@@ -24018,7 +24086,7 @@ function createNodeFactory(flags, baseFactory2) {
24018
24086
  const node = createBaseToken(kind);
24019
24087
  node.text = text;
24020
24088
  node.rawText = rawText;
24021
- node.templateFlags = templateFlags & 2048 /* TemplateLiteralLikeFlags */;
24089
+ node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */;
24022
24090
  node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags);
24023
24091
  return node;
24024
24092
  }
@@ -24026,7 +24094,7 @@ function createNodeFactory(flags, baseFactory2) {
24026
24094
  const node = createBaseDeclaration(kind);
24027
24095
  node.text = text;
24028
24096
  node.rawText = rawText;
24029
- node.templateFlags = templateFlags & 2048 /* TemplateLiteralLikeFlags */;
24097
+ node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */;
24030
24098
  node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags);
24031
24099
  return node;
24032
24100
  }
@@ -27382,7 +27450,7 @@ function createEmitHelperFactory(context) {
27382
27450
  context.requestEmitHelper(classPrivateFieldInHelper);
27383
27451
  return factory2.createCallExpression(
27384
27452
  getUnscopedHelperName("__classPrivateFieldIn"),
27385
- /* typeArguments*/
27453
+ /*typeArguments*/
27386
27454
  void 0,
27387
27455
  [state, receiver]
27388
27456
  );
@@ -29572,7 +29640,7 @@ function createAccessorPropertySetRedirector(factory2, node, modifiers, name) {
29572
29640
  [factory2.createParameterDeclaration(
29573
29641
  /*modifiers*/
29574
29642
  void 0,
29575
- /*dotdotDotToken*/
29643
+ /*dotDotDotToken*/
29576
29644
  void 0,
29577
29645
  "value"
29578
29646
  )],
@@ -30533,7 +30601,7 @@ var Parser;
30533
30601
  fileName2,
30534
30602
  2 /* ES2015 */,
30535
30603
  6 /* JSON */,
30536
- /*isDeclaration*/
30604
+ /*isDeclarationFile*/
30537
30605
  false,
30538
30606
  statements,
30539
30607
  endOfFileToken,
@@ -30887,8 +30955,8 @@ var Parser;
30887
30955
  function parseErrorAtRange(range, message, ...args) {
30888
30956
  parseErrorAt(range.pos, range.end, message, ...args);
30889
30957
  }
30890
- function scanError(message, length2) {
30891
- parseErrorAtPosition(scanner2.getTokenEnd(), length2, message);
30958
+ function scanError(message, length2, arg0) {
30959
+ parseErrorAtPosition(scanner2.getTokenEnd(), length2, message, arg0);
30892
30960
  }
30893
30961
  function getNodePos() {
30894
30962
  return scanner2.getTokenFullStart();
@@ -30927,9 +30995,6 @@ var Parser;
30927
30995
  function reScanTemplateToken(isTaggedTemplate) {
30928
30996
  return currentToken = scanner2.reScanTemplateToken(isTaggedTemplate);
30929
30997
  }
30930
- function reScanTemplateHeadOrNoSubstitutionTemplate() {
30931
- return currentToken = scanner2.reScanTemplateHeadOrNoSubstitutionTemplate();
30932
- }
30933
30998
  function reScanLessThanToken() {
30934
30999
  return currentToken = scanner2.reScanLessThanToken();
30935
31000
  }
@@ -31888,7 +31953,7 @@ var Parser;
31888
31953
  entity,
31889
31954
  parseRightSideOfDot(
31890
31955
  allowReservedWords,
31891
- /* allowPrivateIdentifiers */
31956
+ /*allowPrivateIdentifiers*/
31892
31957
  false
31893
31958
  )
31894
31959
  ),
@@ -32001,8 +32066,11 @@ var Parser;
32001
32066
  return parseLiteralLikeNode(token());
32002
32067
  }
32003
32068
  function parseTemplateHead(isTaggedTemplate) {
32004
- if (isTaggedTemplate) {
32005
- reScanTemplateHeadOrNoSubstitutionTemplate();
32069
+ if (!isTaggedTemplate && scanner2.getTokenFlags() & 26656 /* IsInvalid */) {
32070
+ reScanTemplateToken(
32071
+ /*isTaggedTemplate*/
32072
+ false
32073
+ );
32006
32074
  }
32007
32075
  const fragment = parseLiteralLikeNode(token());
32008
32076
  Debug.assert(fragment.kind === 15 /* TemplateHead */, "Template head has wrong token kind");
@@ -32020,8 +32088,7 @@ var Parser;
32020
32088
  }
32021
32089
  function parseLiteralLikeNode(kind) {
32022
32090
  const pos = getNodePos();
32023
- const node = isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, scanner2.getTokenValue(), getTemplateLiteralRawText(kind), scanner2.getTokenFlags() & 2048 /* TemplateLiteralLikeFlags */) : (
32024
- // Octal literals are not allowed in strict mode or ES5
32091
+ const node = isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, scanner2.getTokenValue(), getTemplateLiteralRawText(kind), scanner2.getTokenFlags() & 7176 /* TemplateLiteralLikeFlags */) : (
32025
32092
  // Note that theoretically the following condition would hold true literals like 009,
32026
32093
  // which is not octal. But because of how the scanner separates the tokens, we would
32027
32094
  // never get a token like this. Instead, we would get 00 and 9 as two separate tokens.
@@ -33825,7 +33892,7 @@ var Parser;
33825
33892
  parseExpected(43 /* SlashToken */);
33826
33893
  if (parseExpected(
33827
33894
  31 /* GreaterThanToken */,
33828
- /*diagnostic*/
33895
+ /*diagnosticMessage*/
33829
33896
  void 0,
33830
33897
  /*shouldAdvance*/
33831
33898
  false
@@ -33870,7 +33937,7 @@ var Parser;
33870
33937
  } else {
33871
33938
  if (parseExpected(
33872
33939
  19 /* CloseBraceToken */,
33873
- /*message*/
33940
+ /*diagnosticMessage*/
33874
33941
  void 0,
33875
33942
  /*shouldAdvance*/
33876
33943
  false
@@ -33923,7 +33990,7 @@ var Parser;
33923
33990
  const tagName = parseJsxElementName();
33924
33991
  if (parseExpected(
33925
33992
  31 /* GreaterThanToken */,
33926
- /*diagnostic*/
33993
+ /*diagnosticMessage*/
33927
33994
  void 0,
33928
33995
  /*shouldAdvance*/
33929
33996
  false
@@ -34077,7 +34144,10 @@ var Parser;
34077
34144
  const tagExpression = factory2.createTaggedTemplateExpression(
34078
34145
  tag,
34079
34146
  typeArguments,
34080
- token() === 14 /* NoSubstitutionTemplateLiteral */ ? (reScanTemplateHeadOrNoSubstitutionTemplate(), parseLiteralNode()) : parseTemplateExpression(
34147
+ token() === 14 /* NoSubstitutionTemplateLiteral */ ? (reScanTemplateToken(
34148
+ /*isTaggedTemplate*/
34149
+ true
34150
+ ), parseLiteralNode()) : parseTemplateExpression(
34081
34151
  /*isTaggedTemplate*/
34082
34152
  true
34083
34153
  )
@@ -34165,10 +34235,16 @@ var Parser;
34165
34235
  }
34166
34236
  function parsePrimaryExpression() {
34167
34237
  switch (token()) {
34238
+ case 14 /* NoSubstitutionTemplateLiteral */:
34239
+ if (scanner2.getTokenFlags() & 26656 /* IsInvalid */) {
34240
+ reScanTemplateToken(
34241
+ /*isTaggedTemplate*/
34242
+ false
34243
+ );
34244
+ }
34168
34245
  case 8 /* NumericLiteral */:
34169
34246
  case 9 /* BigIntLiteral */:
34170
34247
  case 10 /* StringLiteral */:
34171
- case 14 /* NoSubstitutionTemplateLiteral */:
34172
34248
  return parseLiteralNode();
34173
34249
  case 109 /* ThisKeyword */:
34174
34250
  case 107 /* SuperKeyword */:
@@ -34203,7 +34279,7 @@ var Parser;
34203
34279
  break;
34204
34280
  case 15 /* TemplateHead */:
34205
34281
  return parseTemplateExpression(
34206
- /* isTaggedTemplate */
34282
+ /*isTaggedTemplate*/
34207
34283
  false
34208
34284
  );
34209
34285
  case 80 /* PrivateIdentifier */:
@@ -35910,7 +35986,7 @@ var Parser;
35910
35986
  "file.js",
35911
35987
  content,
35912
35988
  99 /* Latest */,
35913
- /*_syntaxCursor:*/
35989
+ /*syntaxCursor*/
35914
35990
  void 0,
35915
35991
  1 /* JS */
35916
35992
  );
@@ -35953,7 +36029,7 @@ var Parser;
35953
36029
  const hasBrace = parseOptional(18 /* OpenBraceToken */);
35954
36030
  const p2 = getNodePos();
35955
36031
  let entityName = parseEntityName(
35956
- /* allowReservedWords*/
36032
+ /*allowReservedWords*/
35957
36033
  false
35958
36034
  );
35959
36035
  while (token() === 80 /* PrivateIdentifier */) {
@@ -35974,7 +36050,7 @@ var Parser;
35974
36050
  "",
35975
36051
  content,
35976
36052
  99 /* Latest */,
35977
- /*_syntaxCursor:*/
36053
+ /*syntaxCursor*/
35978
36054
  void 0,
35979
36055
  1 /* JS */
35980
36056
  );
@@ -41751,7 +41827,7 @@ function tryResolveJSModuleWorker(moduleName, initialDir, host) {
41751
41827
  2 /* JavaScript */,
41752
41828
  /*isConfigLookup*/
41753
41829
  false,
41754
- /*redirectedReferences*/
41830
+ /*redirectedReference*/
41755
41831
  void 0
41756
41832
  );
41757
41833
  }
@@ -42168,7 +42244,7 @@ function loadEntrypointsFromExportMap(scope, exports, state, extensions) {
42168
42244
  const result = loadFileNameFromPackageJsonField(
42169
42245
  extensions,
42170
42246
  finalPath,
42171
- /*recordOnlyFailures*/
42247
+ /*onlyRecordFailures*/
42172
42248
  false,
42173
42249
  state
42174
42250
  );
@@ -44993,11 +45069,6 @@ function createBinder() {
44993
45069
  }
44994
45070
  }
44995
45071
  }
44996
- function checkStrictModeNumericLiteral(node) {
44997
- if (languageVersion < 1 /* ES5 */ && inStrictMode && node.numericLiteralFlags & 32 /* Octal */) {
44998
- file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));
44999
- }
45000
- }
45001
45072
  function checkStrictModePostfixUnaryExpression(node) {
45002
45073
  if (inStrictMode) {
45003
45074
  checkStrictModeEvalOrArguments(node, node.operand);
@@ -45189,8 +45260,6 @@ function createBinder() {
45189
45260
  return checkStrictModeCatchClause(node);
45190
45261
  case 218 /* DeleteExpression */:
45191
45262
  return checkStrictModeDeleteExpression(node);
45192
- case 8 /* NumericLiteral */:
45193
- return checkStrictModeNumericLiteral(node);
45194
45263
  case 223 /* PostfixUnaryExpression */:
45195
45264
  return checkStrictModePostfixUnaryExpression(node);
45196
45265
  case 222 /* PrefixUnaryExpression */:
@@ -45648,7 +45717,7 @@ function createBinder() {
45648
45717
  parentSymbol,
45649
45718
  node.left.expression,
45650
45719
  isTopLevelNamespaceAssignment(node.left),
45651
- /*isPrototype*/
45720
+ /*isPrototypeProperty*/
45652
45721
  false,
45653
45722
  /*containerIsClass*/
45654
45723
  false
@@ -45780,7 +45849,7 @@ function createBinder() {
45780
45849
  function bindCallExpression(node) {
45781
45850
  if (!file.commonJsModuleIndicator && isRequireCall(
45782
45851
  node,
45783
- /*checkArgumentIsStringLiteralLike*/
45852
+ /*requireStringLiteralLikeArgument*/
45784
45853
  false
45785
45854
  )) {
45786
45855
  setCommonJsModuleIndicator(node);
@@ -47695,21 +47764,77 @@ function createTypeChecker(host) {
47695
47764
  }
47696
47765
  return t;
47697
47766
  }, () => "(unreliable reporter)");
47698
- var emptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47699
- var emptyJsxObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47767
+ var emptyObjectType = createAnonymousType(
47768
+ /*symbol*/
47769
+ void 0,
47770
+ emptySymbols,
47771
+ emptyArray,
47772
+ emptyArray,
47773
+ emptyArray
47774
+ );
47775
+ var emptyJsxObjectType = createAnonymousType(
47776
+ /*symbol*/
47777
+ void 0,
47778
+ emptySymbols,
47779
+ emptyArray,
47780
+ emptyArray,
47781
+ emptyArray
47782
+ );
47700
47783
  emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */;
47701
47784
  var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */);
47702
47785
  emptyTypeLiteralSymbol.members = createSymbolTable();
47703
47786
  var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray);
47704
- var unknownEmptyObjectType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47787
+ var unknownEmptyObjectType = createAnonymousType(
47788
+ /*symbol*/
47789
+ void 0,
47790
+ emptySymbols,
47791
+ emptyArray,
47792
+ emptyArray,
47793
+ emptyArray
47794
+ );
47705
47795
  var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType;
47706
- var emptyGenericType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47796
+ var emptyGenericType = createAnonymousType(
47797
+ /*symbol*/
47798
+ void 0,
47799
+ emptySymbols,
47800
+ emptyArray,
47801
+ emptyArray,
47802
+ emptyArray
47803
+ );
47707
47804
  emptyGenericType.instantiations = /* @__PURE__ */ new Map();
47708
- var anyFunctionType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47805
+ var anyFunctionType = createAnonymousType(
47806
+ /*symbol*/
47807
+ void 0,
47808
+ emptySymbols,
47809
+ emptyArray,
47810
+ emptyArray,
47811
+ emptyArray
47812
+ );
47709
47813
  anyFunctionType.objectFlags |= 262144 /* NonInferrableType */;
47710
- var noConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47711
- var circularConstraintType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47712
- var resolvingDefaultType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
47814
+ var noConstraintType = createAnonymousType(
47815
+ /*symbol*/
47816
+ void 0,
47817
+ emptySymbols,
47818
+ emptyArray,
47819
+ emptyArray,
47820
+ emptyArray
47821
+ );
47822
+ var circularConstraintType = createAnonymousType(
47823
+ /*symbol*/
47824
+ void 0,
47825
+ emptySymbols,
47826
+ emptyArray,
47827
+ emptyArray,
47828
+ emptyArray
47829
+ );
47830
+ var resolvingDefaultType = createAnonymousType(
47831
+ /*symbol*/
47832
+ void 0,
47833
+ emptySymbols,
47834
+ emptyArray,
47835
+ emptyArray,
47836
+ emptyArray
47837
+ );
47713
47838
  var markerSuperType = createTypeParameter();
47714
47839
  var markerSubType = createTypeParameter();
47715
47840
  markerSubType.constraint = markerSuperType;
@@ -47719,8 +47844,11 @@ function createTypeChecker(host) {
47719
47844
  markerSubTypeForCheck.constraint = markerSuperTypeForCheck;
47720
47845
  var noTypePredicate = createTypePredicate(1 /* Identifier */, "<<unresolved>>", 0, anyType);
47721
47846
  var anySignature = createSignature(
47847
+ /*declaration*/
47722
47848
  void 0,
47849
+ /*typeParameters*/
47723
47850
  void 0,
47851
+ /*thisParameter*/
47724
47852
  void 0,
47725
47853
  emptyArray,
47726
47854
  anyType,
@@ -47730,8 +47858,11 @@ function createTypeChecker(host) {
47730
47858
  0 /* None */
47731
47859
  );
47732
47860
  var unknownSignature = createSignature(
47861
+ /*declaration*/
47733
47862
  void 0,
47863
+ /*typeParameters*/
47734
47864
  void 0,
47865
+ /*thisParameter*/
47735
47866
  void 0,
47736
47867
  emptyArray,
47737
47868
  errorType,
@@ -47741,8 +47872,11 @@ function createTypeChecker(host) {
47741
47872
  0 /* None */
47742
47873
  );
47743
47874
  var resolvingSignature = createSignature(
47875
+ /*declaration*/
47744
47876
  void 0,
47877
+ /*typeParameters*/
47745
47878
  void 0,
47879
+ /*thisParameter*/
47746
47880
  void 0,
47747
47881
  emptyArray,
47748
47882
  anyType,
@@ -47752,8 +47886,11 @@ function createTypeChecker(host) {
47752
47886
  0 /* None */
47753
47887
  );
47754
47888
  var silentNeverSignature = createSignature(
47889
+ /*declaration*/
47755
47890
  void 0,
47891
+ /*typeParameters*/
47756
47892
  void 0,
47893
+ /*thisParameter*/
47757
47894
  void 0,
47758
47895
  emptyArray,
47759
47896
  silentNeverType,
@@ -48810,7 +48947,7 @@ function createTypeChecker(host) {
48810
48947
  if (originalLocation && isInJSFile(originalLocation) && originalLocation.parent) {
48811
48948
  if (isRequireCall(
48812
48949
  originalLocation.parent,
48813
- /*checkArgumentIsStringLiteralLike*/
48950
+ /*requireStringLiteralLikeArgument*/
48814
48951
  false
48815
48952
  )) {
48816
48953
  return requireSymbol;
@@ -49431,7 +49568,7 @@ function createTypeChecker(host) {
49431
49568
  node,
49432
49569
  moduleSymbol,
49433
49570
  resolved,
49434
- /*overwriteTypeOnly*/
49571
+ /*overwriteEmpty*/
49435
49572
  false
49436
49573
  );
49437
49574
  return resolved;
@@ -49441,7 +49578,7 @@ function createTypeChecker(host) {
49441
49578
  exportDefaultSymbol,
49442
49579
  /*finalTarget*/
49443
49580
  void 0,
49444
- /*overwriteTypeOnly*/
49581
+ /*overwriteEmpty*/
49445
49582
  false
49446
49583
  );
49447
49584
  return exportDefaultSymbol;
@@ -49492,7 +49629,7 @@ function createTypeChecker(host) {
49492
49629
  immediate,
49493
49630
  moduleSpecifier,
49494
49631
  dontResolveAlias,
49495
- /*suppressUsageError*/
49632
+ /*suppressInteropError*/
49496
49633
  false
49497
49634
  );
49498
49635
  markSymbolOfAliasDeclarationIfTypeOnly(
@@ -49511,7 +49648,7 @@ function createTypeChecker(host) {
49511
49648
  immediate,
49512
49649
  moduleSpecifier,
49513
49650
  dontResolveAlias,
49514
- /*suppressUsageError*/
49651
+ /*suppressInteropError*/
49515
49652
  false
49516
49653
  );
49517
49654
  markSymbolOfAliasDeclarationIfTypeOnly(
@@ -50003,6 +50140,7 @@ function createTypeChecker(host) {
50003
50140
  left,
50004
50141
  left.escapedText,
50005
50142
  111551 /* Value */,
50143
+ /*nameNotFoundMessage*/
50006
50144
  void 0,
50007
50145
  left,
50008
50146
  /*isUse*/
@@ -50038,6 +50176,7 @@ function createTypeChecker(host) {
50038
50176
  name,
50039
50177
  /*isUse*/
50040
50178
  true,
50179
+ /*excludeGlobals*/
50041
50180
  false
50042
50181
  ));
50043
50182
  if (!symbol) {
@@ -50742,7 +50881,7 @@ function createTypeChecker(host) {
50742
50881
  container,
50743
50882
  enclosingDeclaration,
50744
50883
  1920 /* Namespace */,
50745
- /*externalOnly*/
50884
+ /*useOnlyExternalAliasing*/
50746
50885
  false
50747
50886
  )) {
50748
50887
  return append(concatenate(concatenate([container], additionalContainers), reexportContainers), objectLiteralContainer);
@@ -51055,7 +51194,7 @@ function createTypeChecker(host) {
51055
51194
  if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) {
51056
51195
  if (isAccessible(
51057
51196
  getMergedSymbol(symbolFromSymbolTable.exportSymbol),
51058
- /*aliasSymbol*/
51197
+ /*resolvedAliasSymbol*/
51059
51198
  void 0,
51060
51199
  ignoreQualification
51061
51200
  )) {
@@ -51307,7 +51446,7 @@ function createTypeChecker(host) {
51307
51446
  enclosingDeclaration,
51308
51447
  firstIdentifier.escapedText,
51309
51448
  meaning,
51310
- /*nodeNotFoundErrorMessage*/
51449
+ /*nameNotFoundMessage*/
51311
51450
  void 0,
51312
51451
  /*nameArg*/
51313
51452
  void 0,
@@ -51327,7 +51466,7 @@ function createTypeChecker(host) {
51327
51466
  )),
51328
51467
  firstIdentifier,
51329
51468
  meaning,
51330
- /*computeAliases*/
51469
+ /*shouldComputeAliasesToMakeVisible*/
51331
51470
  false
51332
51471
  ).accessibility === 0 /* Accessible */) {
51333
51472
  return { accessibility: 0 /* Accessible */ };
@@ -51886,7 +52025,7 @@ function createTypeChecker(host) {
51886
52025
  symbol,
51887
52026
  context.enclosingDeclaration,
51888
52027
  isInstanceType,
51889
- /*computeAliases*/
52028
+ /*shouldComputeAliasesToMakeVisible*/
51890
52029
  false
51891
52030
  ).accessibility !== 0 /* Accessible */)) || symbol.flags & (384 /* Enum */ | 512 /* ValueModule */) || shouldWriteTypeOfFunctionSymbol()) {
51892
52031
  return symbolToTypeNode(symbol, context, isInstanceType);
@@ -51982,7 +52121,7 @@ function createTypeChecker(host) {
51982
52121
  function deepCloneOrReuseNodes(nodes, visitor, test, start2, count) {
51983
52122
  if (nodes && nodes.length === 0) {
51984
52123
  return setTextRange(factory.createNodeArray(
51985
- /*nodes*/
52124
+ /*elements*/
51986
52125
  void 0,
51987
52126
  nodes.hasTrailingComma
51988
52127
  ), nodes);
@@ -52570,12 +52709,12 @@ function createTypeChecker(host) {
52570
52709
  const thisTag = getJSDocThisTag(signature.declaration);
52571
52710
  if (thisTag && thisTag.typeExpression) {
52572
52711
  return factory.createParameterDeclaration(
52573
- /* modifiers */
52712
+ /*modifiers*/
52574
52713
  void 0,
52575
- /* dotDotDotToken */
52714
+ /*dotDotDotToken*/
52576
52715
  void 0,
52577
52716
  "this",
52578
- /* questionToken */
52717
+ /*questionToken*/
52579
52718
  void 0,
52580
52719
  typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context)
52581
52720
  );
@@ -52662,7 +52801,7 @@ function createTypeChecker(host) {
52662
52801
  firstIdentifier,
52663
52802
  firstIdentifier.escapedText,
52664
52803
  111551 /* Value */ | 1048576 /* ExportValue */,
52665
- /*nodeNotFoundErrorMessage*/
52804
+ /*nameNotFoundMessage*/
52666
52805
  void 0,
52667
52806
  /*nameArg*/
52668
52807
  void 0,
@@ -52995,7 +53134,7 @@ function createTypeChecker(host) {
52995
53134
  context.enclosingDeclaration,
52996
53135
  escapedName,
52997
53136
  788968 /* Type */,
52998
- /*nameNotFoundArg*/
53137
+ /*nameNotFoundMessage*/
52999
53138
  void 0,
53000
53139
  escapedName,
53001
53140
  /*isUse*/
@@ -53237,7 +53376,7 @@ function createTypeChecker(host) {
53237
53376
  67108863 /* All */,
53238
53377
  /*ignoreErrors*/
53239
53378
  true,
53240
- /*dontResolveALias*/
53379
+ /*dontResolveAlias*/
53241
53380
  true
53242
53381
  );
53243
53382
  if (sym) {
@@ -53316,7 +53455,7 @@ function createTypeChecker(host) {
53316
53455
  [factory.createParameterDeclaration(
53317
53456
  /*modifiers*/
53318
53457
  void 0,
53319
- /*dotdotdotToken*/
53458
+ /*dotDotDotToken*/
53320
53459
  void 0,
53321
53460
  "x",
53322
53461
  /*questionToken*/
@@ -53439,13 +53578,13 @@ function createTypeChecker(host) {
53439
53578
  const serializePropertySymbolForClass = makeSerializePropertySymbol(
53440
53579
  factory.createPropertyDeclaration,
53441
53580
  172 /* MethodDeclaration */,
53442
- /*useAcessors*/
53581
+ /*useAccessors*/
53443
53582
  true
53444
53583
  );
53445
53584
  const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol(
53446
53585
  (mods, name, question, type) => factory.createPropertySignature(mods, name, question, type),
53447
53586
  171 /* MethodSignature */,
53448
- /*useAcessors*/
53587
+ /*useAccessors*/
53449
53588
  false
53450
53589
  );
53451
53590
  const enclosingDeclaration = context.enclosingDeclaration;
@@ -53467,7 +53606,7 @@ function createTypeChecker(host) {
53467
53606
  sym,
53468
53607
  decl,
53469
53608
  meaning,
53470
- /*computeAliases*/
53609
+ /*shouldComputeAliasesToMakeVisible*/
53471
53610
  false
53472
53611
  );
53473
53612
  if (accessibleResult.accessibility === 0 /* Accessible */) {
@@ -53526,7 +53665,7 @@ function createTypeChecker(host) {
53526
53665
  factory.createNamedExports(map(flatMap(excessExports, (e) => getNamesOfDeclaration(e)), (id) => factory.createExportSpecifier(
53527
53666
  /*isTypeOnly*/
53528
53667
  false,
53529
- /*alias*/
53668
+ /*propertyName*/
53530
53669
  void 0,
53531
53670
  id
53532
53671
  ))),
@@ -53819,7 +53958,7 @@ function createTypeChecker(host) {
53819
53958
  addResult(factory.createExportAssignment(
53820
53959
  /*modifiers*/
53821
53960
  void 0,
53822
- /*isExportAssignment*/
53961
+ /*isExportEquals*/
53823
53962
  false,
53824
53963
  factory.createIdentifier(getInternalSymbolName(symbol, symbolName2))
53825
53964
  ), 0 /* None */);
@@ -54242,7 +54381,7 @@ function createTypeChecker(host) {
54242
54381
  )])
54243
54382
  ),
54244
54383
  factory.createStringLiteral(specifier2),
54245
- /*importClause*/
54384
+ /*assertClause*/
54246
54385
  void 0
54247
54386
  ), 0 /* None */);
54248
54387
  break;
@@ -54331,7 +54470,7 @@ function createTypeChecker(host) {
54331
54470
  factory.createImportClause(
54332
54471
  /*isTypeOnly*/
54333
54472
  false,
54334
- /*importClause*/
54473
+ /*name*/
54335
54474
  void 0,
54336
54475
  factory.createNamespaceImport(factory.createIdentifier(localName))
54337
54476
  ),
@@ -54359,7 +54498,7 @@ function createTypeChecker(host) {
54359
54498
  factory.createImportClause(
54360
54499
  /*isTypeOnly*/
54361
54500
  false,
54362
- /*importClause*/
54501
+ /*name*/
54363
54502
  void 0,
54364
54503
  factory.createNamedImports([
54365
54504
  factory.createImportSpecifier(
@@ -54720,7 +54859,7 @@ function createTypeChecker(host) {
54720
54859
  addResult(statement, 0 /* None */);
54721
54860
  return factory.createExpressionWithTypeArguments(
54722
54861
  factory.createIdentifier(tempName),
54723
- /*typeArgs*/
54862
+ /*typeArguments*/
54724
54863
  void 0
54725
54864
  );
54726
54865
  }
@@ -54745,7 +54884,7 @@ function createTypeChecker(host) {
54745
54884
  if (t.symbol) {
54746
54885
  return factory.createExpressionWithTypeArguments(
54747
54886
  symbolToExpression(t.symbol, context, 788968 /* Type */),
54748
- /*typeArgs*/
54887
+ /*typeArguments*/
54749
54888
  void 0
54750
54889
  );
54751
54890
  }
@@ -55051,7 +55190,9 @@ function createTypeChecker(host) {
55051
55190
  declaration,
55052
55191
  firstIdentifier.escapedText,
55053
55192
  111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */,
55193
+ /*nameNotFoundMessage*/
55054
55194
  void 0,
55195
+ /*nameArg*/
55055
55196
  void 0,
55056
55197
  /*isUse*/
55057
55198
  false
@@ -55836,7 +55977,14 @@ function createTypeChecker(host) {
55836
55977
  symbol.links.bindingElement = e;
55837
55978
  members.set(symbol.escapedName, symbol);
55838
55979
  });
55839
- const result = createAnonymousType(void 0, members, emptyArray, emptyArray, stringIndexInfo ? [stringIndexInfo] : emptyArray);
55980
+ const result = createAnonymousType(
55981
+ /*symbol*/
55982
+ void 0,
55983
+ members,
55984
+ emptyArray,
55985
+ emptyArray,
55986
+ stringIndexInfo ? [stringIndexInfo] : emptyArray
55987
+ );
55840
55988
  result.objectFlags |= objectFlags;
55841
55989
  if (includePatternInType) {
55842
55990
  result.pattern = pattern;
@@ -55998,7 +56146,7 @@ function createTypeChecker(host) {
55998
56146
  } else if (isParameter(declaration) || isPropertyDeclaration(declaration) || isPropertySignature(declaration) || isVariableDeclaration(declaration) || isBindingElement(declaration) || isJSDocPropertyLikeTag(declaration)) {
55999
56147
  type = getWidenedTypeForVariableLikeDeclaration(
56000
56148
  declaration,
56001
- /*includeOptionality*/
56149
+ /*reportErrors*/
56002
56150
  true
56003
56151
  );
56004
56152
  } else if (isEnumDeclaration(declaration)) {
@@ -56055,7 +56203,7 @@ function createTypeChecker(host) {
56055
56203
  const accessor = tryCast(getDeclarationOfKind(symbol, 170 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration);
56056
56204
  let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration(
56057
56205
  accessor,
56058
- /*includeOptionality*/
56206
+ /*reportErrors*/
56059
56207
  true
56060
56208
  );
56061
56209
  if (!type) {
@@ -56169,7 +56317,7 @@ function createTypeChecker(host) {
56169
56317
  const targetSymbol = resolveAlias(symbol);
56170
56318
  const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration(
56171
56319
  getDeclarationOfAliasSymbol(symbol),
56172
- /*dontResolveAlias*/
56320
+ /*dontRecursivelyResolve*/
56173
56321
  true
56174
56322
  );
56175
56323
  const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
@@ -57200,8 +57348,10 @@ function createTypeChecker(host) {
57200
57348
  const isAbstract = !!declaration && hasSyntacticModifier(declaration, 256 /* Abstract */);
57201
57349
  if (baseSignatures.length === 0) {
57202
57350
  return [createSignature(
57351
+ /*declaration*/
57203
57352
  void 0,
57204
57353
  classType.localTypeParameters,
57354
+ /*thisParameter*/
57205
57355
  void 0,
57206
57356
  emptyArray,
57207
57357
  classType,
@@ -58191,7 +58341,7 @@ function createTypeChecker(host) {
58191
58341
  return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(
58192
58342
  type,
58193
58343
  type,
58194
- /*apparentType*/
58344
+ /*needApparentType*/
58195
58345
  true
58196
58346
  ));
58197
58347
  }
@@ -58688,7 +58838,9 @@ function createTypeChecker(host) {
58688
58838
  param,
58689
58839
  paramSymbol.escapedName,
58690
58840
  111551 /* Value */,
58841
+ /*nameNotFoundMessage*/
58691
58842
  void 0,
58843
+ /*nameArg*/
58692
58844
  void 0,
58693
58845
  /*isUse*/
58694
58846
  false
@@ -59585,7 +59737,14 @@ function createTypeChecker(host) {
59585
59737
  /*isReadonly*/
59586
59738
  false
59587
59739
  )] : emptyArray;
59588
- return createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, indexInfo);
59740
+ return createAnonymousType(
59741
+ /*symbol*/
59742
+ void 0,
59743
+ emptySymbols,
59744
+ emptyArray,
59745
+ emptyArray,
59746
+ indexInfo
59747
+ );
59589
59748
  }
59590
59749
  return anyType;
59591
59750
  }
@@ -59693,6 +59852,7 @@ function createTypeChecker(host) {
59693
59852
  }
59694
59853
  function getGlobalSymbol(name, meaning, diagnostic) {
59695
59854
  return resolveName(
59855
+ /*location*/
59696
59856
  void 0,
59697
59857
  name,
59698
59858
  meaning,
@@ -61252,7 +61412,7 @@ function createTypeChecker(host) {
61252
61412
  let errorInfo;
61253
61413
  if (indexType.flags & 1024 /* EnumLiteral */) {
61254
61414
  errorInfo = chainDiagnosticMessages(
61255
- /* details */
61415
+ /*details*/
61256
61416
  void 0,
61257
61417
  Diagnostics.Property_0_does_not_exist_on_type_1,
61258
61418
  "[" + typeToString(indexType) + "]",
@@ -61261,7 +61421,7 @@ function createTypeChecker(host) {
61261
61421
  } else if (indexType.flags & 8192 /* UniqueESSymbol */) {
61262
61422
  const symbolName2 = getFullyQualifiedName(indexType.symbol, accessExpression);
61263
61423
  errorInfo = chainDiagnosticMessages(
61264
- /* details */
61424
+ /*details*/
61265
61425
  void 0,
61266
61426
  Diagnostics.Property_0_does_not_exist_on_type_1,
61267
61427
  "[" + symbolName2 + "]",
@@ -61269,7 +61429,7 @@ function createTypeChecker(host) {
61269
61429
  );
61270
61430
  } else if (indexType.flags & 128 /* StringLiteral */) {
61271
61431
  errorInfo = chainDiagnosticMessages(
61272
- /* details */
61432
+ /*details*/
61273
61433
  void 0,
61274
61434
  Diagnostics.Property_0_does_not_exist_on_type_1,
61275
61435
  indexType.value,
@@ -61277,7 +61437,7 @@ function createTypeChecker(host) {
61277
61437
  );
61278
61438
  } else if (indexType.flags & 256 /* NumberLiteral */) {
61279
61439
  errorInfo = chainDiagnosticMessages(
61280
- /* details */
61440
+ /*details*/
61281
61441
  void 0,
61282
61442
  Diagnostics.Property_0_does_not_exist_on_type_1,
61283
61443
  indexType.value,
@@ -61285,7 +61445,7 @@ function createTypeChecker(host) {
61285
61445
  );
61286
61446
  } else if (indexType.flags & (8 /* Number */ | 4 /* String */)) {
61287
61447
  errorInfo = chainDiagnosticMessages(
61288
- /* details */
61448
+ /*details*/
61289
61449
  void 0,
61290
61450
  Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,
61291
61451
  typeToString(indexType),
@@ -62905,7 +63065,7 @@ function createTypeChecker(host) {
62905
63065
  targetReturn,
62906
63066
  relation,
62907
63067
  returnExpression,
62908
- /*message*/
63068
+ /*headMessage*/
62909
63069
  void 0,
62910
63070
  containingMessageChain,
62911
63071
  resultObj
@@ -63229,7 +63389,7 @@ function createTypeChecker(host) {
63229
63389
  const childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName));
63230
63390
  const diagnostic = Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;
63231
63391
  invalidTextDiagnostic = { ...diagnostic, key: "!!ALREADY FORMATTED!!", message: formatMessage(
63232
- /*_dummy*/
63392
+ /*dummy*/
63233
63393
  void 0,
63234
63394
  diagnostic,
63235
63395
  tagNameText,
@@ -63320,7 +63480,7 @@ function createTypeChecker(host) {
63320
63480
  false,
63321
63481
  /*errorReporter*/
63322
63482
  void 0,
63323
- /*errorReporter*/
63483
+ /*incompatibleErrorReporter*/
63324
63484
  void 0,
63325
63485
  compareTypesAssignable,
63326
63486
  /*reportUnreliableMarkers*/
@@ -63394,12 +63554,7 @@ function createTypeChecker(host) {
63394
63554
  const paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount);
63395
63555
  const restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1;
63396
63556
  for (let i = 0; i < paramCount; i++) {
63397
- const sourceType = i === restIndex ? getRestTypeAtPosition(
63398
- source,
63399
- i,
63400
- /*readonly*/
63401
- true
63402
- ) : tryGetTypeAtPosition(source, i);
63557
+ const sourceType = i === restIndex ? getRestTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i);
63403
63558
  const targetType = i === restIndex ? getRestTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i);
63404
63559
  if (sourceType && targetType) {
63405
63560
  const sourceSig = checkMode & 3 /* Callback */ ? void 0 : getSingleCallSignature(getNonNullableType(sourceType));
@@ -63792,7 +63947,7 @@ function createTypeChecker(host) {
63792
63947
  reportError(...stack[0]);
63793
63948
  if (info) {
63794
63949
  reportRelationError(
63795
- /*headMessage*/
63950
+ /*message*/
63796
63951
  void 0,
63797
63952
  ...info
63798
63953
  );
@@ -63867,7 +64022,7 @@ function createTypeChecker(host) {
63867
64022
  }
63868
64023
  if (info) {
63869
64024
  reportRelationError(
63870
- /*headMessage*/
64025
+ /*message*/
63871
64026
  void 0,
63872
64027
  ...info
63873
64028
  );
@@ -64309,7 +64464,7 @@ function createTypeChecker(host) {
64309
64464
  if (containsType(targetTypes, source2)) {
64310
64465
  return -1 /* True */;
64311
64466
  }
64312
- if (getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) {
64467
+ if (relation !== comparableRelation && getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) {
64313
64468
  const alternateForm = source2 === source2.regularType ? source2.freshType : source2.regularType;
64314
64469
  const primitive = source2.flags & 128 /* StringLiteral */ ? stringType : source2.flags & 256 /* NumberLiteral */ ? numberType : source2.flags & 2048 /* BigIntLiteral */ ? bigintType : void 0;
64315
64470
  return primitive && containsType(targetTypes, primitive) || alternateForm && containsType(targetTypes, alternateForm) ? -1 /* True */ : 0 /* False */;
@@ -64540,7 +64695,7 @@ function createTypeChecker(host) {
64540
64695
  target2,
64541
64696
  intersectionState,
64542
64697
  relation,
64543
- /*ingnoreConstraints*/
64698
+ /*ignoreConstraints*/
64544
64699
  false
64545
64700
  );
64546
64701
  const entry = relation.get(id);
@@ -64936,7 +65091,7 @@ function createTypeChecker(host) {
64936
65091
  constraint,
64937
65092
  2 /* Target */,
64938
65093
  reportErrors2,
64939
- /* headMessage */
65094
+ /*headMessage*/
64940
65095
  void 0,
64941
65096
  intersectionState
64942
65097
  )) {
@@ -65348,7 +65503,7 @@ function createTypeChecker(host) {
65348
65503
  source2,
65349
65504
  type,
65350
65505
  0 /* Call */,
65351
- /*reportStructuralErrors*/
65506
+ /*reportErrors*/
65352
65507
  false,
65353
65508
  0 /* None */
65354
65509
  );
@@ -65357,7 +65512,7 @@ function createTypeChecker(host) {
65357
65512
  source2,
65358
65513
  type,
65359
65514
  1 /* Construct */,
65360
- /*reportStructuralErrors*/
65515
+ /*reportErrors*/
65361
65516
  false,
65362
65517
  0 /* None */
65363
65518
  );
@@ -65367,7 +65522,7 @@ function createTypeChecker(host) {
65367
65522
  type,
65368
65523
  /*sourceIsPrimitive*/
65369
65524
  false,
65370
- /*reportStructuralErrors*/
65525
+ /*reportErrors*/
65371
65526
  false,
65372
65527
  0 /* None */
65373
65528
  );
@@ -65953,7 +66108,7 @@ function createTypeChecker(host) {
65953
66108
  const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);
65954
66109
  let result2 = -1 /* True */;
65955
66110
  for (const targetInfo of indexInfos) {
65956
- const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
66111
+ const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
65957
66112
  if (!related) {
65958
66113
  return 0 /* False */;
65959
66114
  }
@@ -66857,6 +67012,7 @@ function createTypeChecker(host) {
66857
67012
  param,
66858
67013
  param.name.escapedText,
66859
67014
  788968 /* Type */,
67015
+ /*nameNotFoundMessage*/
66860
67016
  void 0,
66861
67017
  param.name.escapedText,
66862
67018
  /*isUse*/
@@ -67084,7 +67240,14 @@ function createTypeChecker(host) {
67084
67240
  /*isReadonly*/
67085
67241
  false
67086
67242
  )] : emptyArray;
67087
- return createAnonymousType(void 0, members, emptyArray, emptyArray, indexInfos);
67243
+ return createAnonymousType(
67244
+ /*symbol*/
67245
+ void 0,
67246
+ members,
67247
+ emptyArray,
67248
+ emptyArray,
67249
+ indexInfos
67250
+ );
67088
67251
  }
67089
67252
  function inferTypeForHomomorphicMappedType(source, target, constraint) {
67090
67253
  if (inInferTypeForHomomorphicMappedType) {
@@ -68580,7 +68743,7 @@ function createTypeChecker(host) {
68580
68743
  return source.flags & 1048576 /* Union */ ? !forEach(source.types, (t) => !contains(types, t)) : contains(types, source);
68581
68744
  }
68582
68745
  function isTypeSubsetOf(source, target) {
68583
- return source === target || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target);
68746
+ return !!(source === target || source.flags & 131072 /* Never */ || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target));
68584
68747
  }
68585
68748
  function isTypeSubsetOfUnion(source, target) {
68586
68749
  if (source.flags & 1048576 /* Union */) {
@@ -69280,7 +69443,7 @@ function createTypeChecker(host) {
69280
69443
  return type;
69281
69444
  }
69282
69445
  pushIfUnique(antecedentTypes, type);
69283
- if (!isTypeSubsetOf(type, declaredType)) {
69446
+ if (!isTypeSubsetOf(type, initialType)) {
69284
69447
  subtypeReduction = true;
69285
69448
  }
69286
69449
  if (isIncomplete(flowType)) {
@@ -69295,7 +69458,7 @@ function createTypeChecker(host) {
69295
69458
  return type;
69296
69459
  }
69297
69460
  antecedentTypes.push(type);
69298
- if (!isTypeSubsetOf(type, declaredType)) {
69461
+ if (!isTypeSubsetOf(type, initialType)) {
69299
69462
  subtypeReduction = true;
69300
69463
  }
69301
69464
  if (isIncomplete(flowType)) {
@@ -69349,7 +69512,7 @@ function createTypeChecker(host) {
69349
69512
  }
69350
69513
  const type = getTypeFromFlowType(flowType);
69351
69514
  pushIfUnique(antecedentTypes, type);
69352
- if (!isTypeSubsetOf(type, declaredType)) {
69515
+ if (!isTypeSubsetOf(type, initialType)) {
69353
69516
  subtypeReduction = true;
69354
69517
  }
69355
69518
  if (type === declaredType) {
@@ -70429,7 +70592,7 @@ function createTypeChecker(host) {
70429
70592
  const isNodeInTypeQuery = isInTypeQuery(node);
70430
70593
  let container = getThisContainer(
70431
70594
  node,
70432
- /* includeArrowFunctions */
70595
+ /*includeArrowFunctions*/
70433
70596
  true,
70434
70597
  /*includeClassComputedPropertyName*/
70435
70598
  true
@@ -70443,7 +70606,7 @@ function createTypeChecker(host) {
70443
70606
  if (container.kind === 217 /* ArrowFunction */) {
70444
70607
  container = getThisContainer(
70445
70608
  container,
70446
- /* includeArrowFunctions */
70609
+ /*includeArrowFunctions*/
70447
70610
  false,
70448
70611
  !thisInComputedPropertyName
70449
70612
  );
@@ -71056,6 +71219,7 @@ function createTypeChecker(host) {
71056
71219
  id,
71057
71220
  id.escapedText,
71058
71221
  111551 /* Value */,
71222
+ /*nameNotFoundMessage*/
71059
71223
  void 0,
71060
71224
  id.escapedText,
71061
71225
  /*isUse*/
@@ -71105,7 +71269,9 @@ function createTypeChecker(host) {
71105
71269
  declaration.left,
71106
71270
  name,
71107
71271
  111551 /* Value */,
71272
+ /*nameNotFoundMessage*/
71108
71273
  void 0,
71274
+ /*nameArg*/
71109
71275
  void 0,
71110
71276
  /*isUse*/
71111
71277
  true,
@@ -72458,7 +72624,7 @@ function createTypeChecker(host) {
72458
72624
  location,
72459
72625
  namespaceName,
72460
72626
  1920 /* Namespace */,
72461
- /*diagnosticMessage*/
72627
+ /*nameNotFoundMessage*/
72462
72628
  void 0,
72463
72629
  namespaceName,
72464
72630
  /*isUse*/
@@ -72481,7 +72647,7 @@ function createTypeChecker(host) {
72481
72647
  const s = resolveSymbol(getGlobalSymbol(
72482
72648
  JsxNames.JSX,
72483
72649
  1920 /* Namespace */,
72484
- /*diagnosticMessage*/
72650
+ /*diagnostic*/
72485
72651
  void 0
72486
72652
  ));
72487
72653
  if (s === unknownSymbol) {
@@ -72575,7 +72741,7 @@ function createTypeChecker(host) {
72575
72741
  function generateInitialErrorChain() {
72576
72742
  const componentName = getTextOfNode(openingLikeElement.tagName);
72577
72743
  return chainDiagnosticMessages(
72578
- /* details */
72744
+ /*details*/
72579
72745
  void 0,
72580
72746
  Diagnostics._0_cannot_be_used_as_a_JSX_component,
72581
72747
  componentName
@@ -72833,7 +72999,7 @@ function createTypeChecker(host) {
72833
72999
  function getThisParameterFromNodeContext(node) {
72834
73000
  const thisContainer = getThisContainer(
72835
73001
  node,
72836
- /* includeArrowFunctions */
73002
+ /*includeArrowFunctions*/
72837
73003
  false,
72838
73004
  /*includeClassComputedPropertyName*/
72839
73005
  false
@@ -72971,9 +73137,9 @@ function createTypeChecker(host) {
72971
73137
  if (symbol) {
72972
73138
  markPropertyAsReferenced(
72973
73139
  symbol,
72974
- /* nodeForCheckWriteOnly: */
73140
+ /*nodeForCheckWriteOnly*/
72975
73141
  void 0,
72976
- /* isThisAccess: */
73142
+ /*isSelfTypeAccess*/
72977
73143
  false
72978
73144
  );
72979
73145
  }
@@ -73514,7 +73680,7 @@ function createTypeChecker(host) {
73514
73680
  return isPropertyAccessible(
73515
73681
  node,
73516
73682
  node.kind === 209 /* PropertyAccessExpression */ && node.expression.kind === 107 /* SuperKeyword */,
73517
- /* isWrite */
73683
+ /*isWrite*/
73518
73684
  false,
73519
73685
  type,
73520
73686
  property
@@ -73528,7 +73694,7 @@ function createTypeChecker(host) {
73528
73694
  return !!prop && isPropertyAccessible(
73529
73695
  node,
73530
73696
  isSuper,
73531
- /* isWrite */
73697
+ /*isWrite*/
73532
73698
  false,
73533
73699
  type,
73534
73700
  prop
@@ -74241,7 +74407,17 @@ function createTypeChecker(host) {
74241
74407
  function isPromiseResolveArityError(node) {
74242
74408
  if (!isCallExpression(node) || !isIdentifier(node.expression))
74243
74409
  return false;
74244
- const symbol = resolveName(node.expression, node.expression.escapedText, 111551 /* Value */, void 0, void 0, false);
74410
+ const symbol = resolveName(
74411
+ node.expression,
74412
+ node.expression.escapedText,
74413
+ 111551 /* Value */,
74414
+ /*nameNotFoundMessage*/
74415
+ void 0,
74416
+ /*nameArg*/
74417
+ void 0,
74418
+ /*isUse*/
74419
+ false
74420
+ );
74245
74421
  const decl = symbol == null ? void 0 : symbol.valueDeclaration;
74246
74422
  if (!decl || !isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !isNewExpression(decl.parent.parent) || !isIdentifier(decl.parent.parent.expression)) {
74247
74423
  return false;
@@ -74720,7 +74896,7 @@ function createTypeChecker(host) {
74720
74896
  parameters,
74721
74897
  /*resolvedReturnType*/
74722
74898
  getIntersectionType(candidates.map(getReturnTypeOfSignature)),
74723
- /*typePredicate*/
74899
+ /*resolvedTypePredicate*/
74724
74900
  void 0,
74725
74901
  minArgumentCount,
74726
74902
  flags
@@ -74841,7 +75017,7 @@ function createTypeChecker(host) {
74841
75017
  if (isLineBreak(text.charCodeAt(skipTrivia(
74842
75018
  text,
74843
75019
  node.expression.end,
74844
- /* stopAfterLineBreak */
75020
+ /*stopAfterLineBreak*/
74845
75021
  true
74846
75022
  ) - 1))) {
74847
75023
  relatedInformation = createDiagnosticForNode(node.expression, Diagnostics.Are_you_missing_a_semicolon);
@@ -75020,7 +75196,7 @@ function createTypeChecker(host) {
75020
75196
  }
75021
75197
  if (!hasSignatures) {
75022
75198
  errorInfo = chainDiagnosticMessages(
75023
- /* detials */
75199
+ /*details*/
75024
75200
  void 0,
75025
75201
  isCall ? Diagnostics.No_constituent_of_type_0_is_callable : Diagnostics.No_constituent_of_type_0_is_constructable,
75026
75202
  typeToString(apparentType)
@@ -75061,7 +75237,7 @@ function createTypeChecker(host) {
75061
75237
  if (isCallExpression(errorTarget.parent)) {
75062
75238
  const { start: start2, length: length2 } = getDiagnosticSpanForCallNode(
75063
75239
  errorTarget.parent,
75064
- /* doNotIncludeArguments */
75240
+ /*doNotIncludeArguments*/
75065
75241
  true
75066
75242
  );
75067
75243
  diagnostic.start = start2;
@@ -75169,10 +75345,10 @@ function createTypeChecker(host) {
75169
75345
  [factory.createParameterDeclaration(
75170
75346
  /*modifiers*/
75171
75347
  void 0,
75172
- /*dotdotdot*/
75348
+ /*dotDotDotToken*/
75173
75349
  void 0,
75174
75350
  "props",
75175
- /*questionMark*/
75351
+ /*questionToken*/
75176
75352
  void 0,
75177
75353
  nodeBuilder.typeToTypeNode(result, node)
75178
75354
  )],
@@ -75192,7 +75368,7 @@ function createTypeChecker(host) {
75192
75368
  void 0,
75193
75369
  [parameterSymbol],
75194
75370
  typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType,
75195
- /*returnTypePredicate*/
75371
+ /*resolvedTypePredicate*/
75196
75372
  void 0,
75197
75373
  1,
75198
75374
  0 /* None */
@@ -75262,8 +75438,11 @@ function createTypeChecker(host) {
75262
75438
  return cached;
75263
75439
  }
75264
75440
  links.resolvedSignature = resolvingSignature;
75265
- const result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
75441
+ let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);
75266
75442
  if (result !== resolvingSignature) {
75443
+ if (links.resolvedSignature !== resolvingSignature) {
75444
+ result = links.resolvedSignature;
75445
+ }
75267
75446
  links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
75268
75447
  }
75269
75448
  return result;
@@ -75509,9 +75688,9 @@ function createTypeChecker(host) {
75509
75688
  const esModuleSymbol = resolveESModuleSymbol(
75510
75689
  moduleSymbol,
75511
75690
  specifier,
75512
- /*dontRecursivelyResolve*/
75691
+ /*dontResolveAlias*/
75513
75692
  true,
75514
- /*suppressUsageError*/
75693
+ /*suppressInteropError*/
75515
75694
  false
75516
75695
  );
75517
75696
  if (esModuleSymbol) {
@@ -75581,7 +75760,7 @@ function createTypeChecker(host) {
75581
75760
  function isCommonJsRequire(node) {
75582
75761
  if (!isRequireCall(
75583
75762
  node,
75584
- /*checkArgumentIsStringLiteralLike*/
75763
+ /*requireStringLiteralLikeArgument*/
75585
75764
  true
75586
75765
  )) {
75587
75766
  return false;
@@ -75622,14 +75801,14 @@ function createTypeChecker(host) {
75622
75801
  checkDeprecatedSignature(signature, node);
75623
75802
  return getReturnTypeOfSignature(signature);
75624
75803
  }
75625
- function checkAssertion(node) {
75804
+ function checkAssertion(node, checkMode) {
75626
75805
  if (node.kind === 214 /* TypeAssertionExpression */) {
75627
75806
  const file = getSourceFileOfNode(node);
75628
75807
  if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
75629
75808
  grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
75630
75809
  }
75631
75810
  }
75632
- return checkAssertionWorker(node, node.type, node.expression);
75811
+ return checkAssertionWorker(node, checkMode);
75633
75812
  }
75634
75813
  function isValidConstAssertionArgument(node) {
75635
75814
  switch (node.kind) {
@@ -75662,8 +75841,9 @@ function createTypeChecker(host) {
75662
75841
  }
75663
75842
  return false;
75664
75843
  }
75665
- function checkAssertionWorker(errNode, type, expression, checkMode) {
75666
- let exprType = checkExpression(expression, checkMode);
75844
+ function checkAssertionWorker(node, checkMode) {
75845
+ const { type, expression } = getAssertionTypeAndExpression(node);
75846
+ const exprType = checkExpression(expression, checkMode);
75667
75847
  if (isConstTypeReference(type)) {
75668
75848
  if (!isValidConstAssertionArgument(expression)) {
75669
75849
  error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals);
@@ -75671,7 +75851,29 @@ function createTypeChecker(host) {
75671
75851
  return getRegularTypeOfLiteralType(exprType);
75672
75852
  }
75673
75853
  checkSourceElement(type);
75674
- exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(exprType));
75854
+ checkNodeDeferred(node);
75855
+ return getTypeFromTypeNode(type);
75856
+ }
75857
+ function getAssertionTypeAndExpression(node) {
75858
+ let type;
75859
+ let expression;
75860
+ switch (node.kind) {
75861
+ case 232 /* AsExpression */:
75862
+ case 214 /* TypeAssertionExpression */:
75863
+ type = node.type;
75864
+ expression = node.expression;
75865
+ break;
75866
+ case 215 /* ParenthesizedExpression */:
75867
+ type = getJSDocTypeAssertionType(node);
75868
+ expression = node.expression;
75869
+ break;
75870
+ }
75871
+ return { type, expression };
75872
+ }
75873
+ function checkAssertionDeferred(node) {
75874
+ const { type, expression } = getAssertionTypeAndExpression(node);
75875
+ const errNode = isParenthesizedExpression(node) ? type : node;
75876
+ const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(checkExpression(expression)));
75675
75877
  const targetType = getTypeFromTypeNode(type);
75676
75878
  if (!isErrorType(targetType)) {
75677
75879
  addLazyDiagnostic(() => {
@@ -75686,7 +75888,6 @@ function createTypeChecker(host) {
75686
75888
  }
75687
75889
  });
75688
75890
  }
75689
- return targetType;
75690
75891
  }
75691
75892
  function checkNonNullChain(node) {
75692
75893
  const leftType = checkExpression(node.expression);
@@ -75738,7 +75939,14 @@ function createTypeChecker(host) {
75738
75939
  hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0);
75739
75940
  hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0);
75740
75941
  if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) {
75741
- const result3 = createAnonymousType(void 0, resolved.members, callSignatures, constructSignatures, resolved.indexInfos);
75942
+ const result3 = createAnonymousType(
75943
+ /*symbol*/
75944
+ void 0,
75945
+ resolved.members,
75946
+ callSignatures,
75947
+ constructSignatures,
75948
+ resolved.indexInfos
75949
+ );
75742
75950
  result3.objectFlags |= 8388608 /* InstantiationExpressionType */;
75743
75951
  result3.node = node;
75744
75952
  return result3;
@@ -75927,12 +76135,12 @@ function createTypeChecker(host) {
75927
76135
  }
75928
76136
  return void 0;
75929
76137
  }
75930
- function getRestTypeAtPosition(source, pos, readonly = false) {
76138
+ function getRestTypeAtPosition(source, pos) {
75931
76139
  const parameterCount = getParameterCount(source);
75932
76140
  const minArgumentCount = getMinArgumentCount(source);
75933
76141
  const restType = getEffectiveRestType(source);
75934
76142
  if (restType && pos >= parameterCount - 1) {
75935
- return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType), readonly);
76143
+ return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType));
75936
76144
  }
75937
76145
  const types = [];
75938
76146
  const flags = [];
@@ -75950,7 +76158,13 @@ function createTypeChecker(host) {
75950
76158
  names.push(name);
75951
76159
  }
75952
76160
  }
75953
- return createTupleType(types, flags, readonly, length(names) === length(types) ? names : void 0);
76161
+ return createTupleType(
76162
+ types,
76163
+ flags,
76164
+ /*readonly*/
76165
+ false,
76166
+ length(names) === length(types) ? names : void 0
76167
+ );
75954
76168
  }
75955
76169
  function getParameterCount(signature) {
75956
76170
  const length2 = signature.parameters.length;
@@ -76180,13 +76394,13 @@ function createTypeChecker(host) {
76180
76394
  }
76181
76395
  function createClassAccessorDecoratorTargetType(thisType, valueType) {
76182
76396
  return tryCreateTypeReference(getGlobalClassAccessorDecoratorTargetType(
76183
- /*reportError*/
76397
+ /*reportErrors*/
76184
76398
  true
76185
76399
  ), [thisType, valueType]);
76186
76400
  }
76187
76401
  function createClassAccessorDecoratorResultType(thisType, valueType) {
76188
76402
  return tryCreateTypeReference(getGlobalClassAccessorDecoratorResultType(
76189
- /*reportError*/
76403
+ /*reportErrors*/
76190
76404
  true
76191
76405
  ), [thisType, valueType]);
76192
76406
  }
@@ -76704,8 +76918,11 @@ function createTypeChecker(host) {
76704
76918
  }
76705
76919
  const returnType = getReturnTypeFromBody(node, checkMode);
76706
76920
  const returnOnlySignature = createSignature(
76921
+ /*declaration*/
76707
76922
  void 0,
76923
+ /*typeParameters*/
76708
76924
  void 0,
76925
+ /*thisParameter*/
76709
76926
  void 0,
76710
76927
  emptyArray,
76711
76928
  returnType,
@@ -77753,6 +77970,7 @@ function createTypeChecker(host) {
77753
77970
  prop.valueDeclaration,
77754
77971
  name,
77755
77972
  788968 /* Type */,
77973
+ /*nameNotFoundMessage*/
77756
77974
  void 0,
77757
77975
  name,
77758
77976
  /*isUse*/
@@ -78359,7 +78577,7 @@ function createTypeChecker(host) {
78359
78577
  }
78360
78578
  if (isCallExpression(expr) && expr.expression.kind !== 107 /* SuperKeyword */ && !isRequireCall(
78361
78579
  expr,
78362
- /*checkArgumentIsStringLiteralLike*/
78580
+ /*requireStringLiteralLikeArgument*/
78363
78581
  true
78364
78582
  ) && !isSymbolOrSymbolForCall(expr)) {
78365
78583
  return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
@@ -78419,8 +78637,7 @@ function createTypeChecker(host) {
78419
78637
  return checkSatisfiesExpressionWorker(node.expression, getJSDocSatisfiesExpressionType(node), checkMode);
78420
78638
  }
78421
78639
  if (isJSDocTypeAssertion(node)) {
78422
- const type = getJSDocTypeAssertionType(node);
78423
- return checkAssertionWorker(type, type, node.expression, checkMode);
78640
+ return checkAssertionWorker(node, checkMode);
78424
78641
  }
78425
78642
  }
78426
78643
  return checkExpression(node.expression, checkMode);
@@ -78495,7 +78712,7 @@ function createTypeChecker(host) {
78495
78712
  return checkTypeOfExpression(node);
78496
78713
  case 214 /* TypeAssertionExpression */:
78497
78714
  case 232 /* AsExpression */:
78498
- return checkAssertion(node);
78715
+ return checkAssertion(node, checkMode);
78499
78716
  case 233 /* NonNullExpression */:
78500
78717
  return checkNonNullAssertion(node);
78501
78718
  case 231 /* ExpressionWithTypeArguments */:
@@ -80012,7 +80229,7 @@ function createTypeChecker(host) {
80012
80229
  void 0,
80013
80230
  /*nameArg*/
80014
80231
  void 0,
80015
- /*isReference*/
80232
+ /*isUse*/
80016
80233
  true
80017
80234
  );
80018
80235
  if (rootSymbol && rootSymbol.flags & 2097152 /* Alias */) {
@@ -80756,7 +80973,7 @@ function createTypeChecker(host) {
80756
80973
  node,
80757
80974
  node.name.escapedText,
80758
80975
  3 /* Variable */,
80759
- /*nodeNotFoundErrorMessage*/
80976
+ /*nameNotFoundMessage*/
80760
80977
  void 0,
80761
80978
  /*nameArg*/
80762
80979
  void 0,
@@ -81574,12 +81791,12 @@ function createTypeChecker(host) {
81574
81791
  const suggestAwait = (
81575
81792
  // for (const x of Promise<...>) or [...Promise<...>]
81576
81793
  !!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType(
81577
- /** reportErrors */
81794
+ /*reportErrors*/
81578
81795
  false
81579
81796
  ) !== emptyGenericType && isTypeAssignableTo(
81580
81797
  type,
81581
81798
  getGlobalAsyncIterableType(
81582
- /** reportErrors */
81799
+ /*reportErrors*/
81583
81800
  false
81584
81801
  )
81585
81802
  )
@@ -82447,7 +82664,7 @@ function createTypeChecker(host) {
82447
82664
  type,
82448
82665
  typeWithThis,
82449
82666
  param,
82450
- /* memberIsParameterProperty */
82667
+ /*memberIsParameterProperty*/
82451
82668
  true
82452
82669
  );
82453
82670
  }
@@ -82461,7 +82678,7 @@ function createTypeChecker(host) {
82461
82678
  type,
82462
82679
  typeWithThis,
82463
82680
  member,
82464
- /* memberIsParameterProperty */
82681
+ /*memberIsParameterProperty*/
82465
82682
  false
82466
82683
  );
82467
82684
  }
@@ -82565,7 +82782,7 @@ function createTypeChecker(host) {
82565
82782
  getTypeOfSymbol(prop),
82566
82783
  getTypeOfSymbol(baseProp),
82567
82784
  member.name || member,
82568
- /*message*/
82785
+ /*headMessage*/
82569
82786
  void 0,
82570
82787
  rootChain
82571
82788
  )) {
@@ -82613,7 +82830,7 @@ function createTypeChecker(host) {
82613
82830
  memberHasOverrideModifier,
82614
82831
  hasAbstractModifier(member),
82615
82832
  isStatic(member),
82616
- /* memberIsParameterProperty */
82833
+ /*memberIsParameterProperty*/
82617
82834
  false,
82618
82835
  symbolName(memberSymbol)
82619
82836
  );
@@ -84081,6 +84298,10 @@ function createTypeChecker(host) {
84081
84298
  case 282 /* JsxElement */:
84082
84299
  checkJsxElementDeferred(node);
84083
84300
  break;
84301
+ case 214 /* TypeAssertionExpression */:
84302
+ case 232 /* AsExpression */:
84303
+ case 215 /* ParenthesizedExpression */:
84304
+ checkAssertionDeferred(node);
84084
84305
  }
84085
84306
  currentNode = saveCurrentNode;
84086
84307
  (_b = tracing) == null ? void 0 : _b.pop();
@@ -84443,7 +84664,12 @@ function createTypeChecker(host) {
84443
84664
  meaning = 1920 /* Namespace */;
84444
84665
  }
84445
84666
  meaning |= 2097152 /* Alias */;
84446
- const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(name, meaning) : void 0;
84667
+ const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName(
84668
+ name,
84669
+ meaning,
84670
+ /*ignoreErrors*/
84671
+ true
84672
+ ) : void 0;
84447
84673
  if (entityNameSymbol) {
84448
84674
  return entityNameSymbol;
84449
84675
  }
@@ -84472,7 +84698,7 @@ function createTypeChecker(host) {
84472
84698
  meaning,
84473
84699
  /*ignoreErrors*/
84474
84700
  false,
84475
- /* dontResolveAlias */
84701
+ /*dontResolveAlias*/
84476
84702
  true,
84477
84703
  getHostSignatureFromJSDoc(name)
84478
84704
  );
@@ -84495,7 +84721,7 @@ function createTypeChecker(host) {
84495
84721
  meaning,
84496
84722
  /*ignoreErrors*/
84497
84723
  true,
84498
- /* dontResolveAlias */
84724
+ /*dontResolveAlias*/
84499
84725
  true,
84500
84726
  getSourceFileOfNode(container)
84501
84727
  ) || result;
@@ -84668,7 +84894,7 @@ function createTypeChecker(host) {
84668
84894
  case 14 /* NoSubstitutionTemplateLiteral */:
84669
84895
  if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 270 /* ImportDeclaration */ || node.parent.kind === 276 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || (isInJSFile(node) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isRequireCall(
84670
84896
  node.parent,
84671
- /*checkArgumentIsStringLiteralLike*/
84897
+ /*requireStringLiteralLikeArgument*/
84672
84898
  false
84673
84899
  ) || isImportCall(node.parent)) || isLiteralTypeNode(node.parent) && isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent) {
84674
84900
  return resolveExternalModuleName(node, node, ignoreErrors);
@@ -85282,7 +85508,7 @@ function createTypeChecker(host) {
85282
85508
  location,
85283
85509
  reference.escapedText,
85284
85510
  111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
85285
- /*nodeNotFoundMessage*/
85511
+ /*nameNotFoundMessage*/
85286
85512
  void 0,
85287
85513
  /*nameArg*/
85288
85514
  void 0,
@@ -85299,7 +85525,7 @@ function createTypeChecker(host) {
85299
85525
  reference,
85300
85526
  reference.escapedText,
85301
85527
  111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */,
85302
- /*nodeNotFoundMessage*/
85528
+ /*nameNotFoundMessage*/
85303
85529
  void 0,
85304
85530
  /*nameArg*/
85305
85531
  void 0,
@@ -85716,7 +85942,14 @@ function createTypeChecker(host) {
85716
85942
  anyArrayType = createArrayType(anyType);
85717
85943
  autoArrayType = createArrayType(autoType);
85718
85944
  if (autoArrayType === emptyObjectType) {
85719
- autoArrayType = createAnonymousType(void 0, emptySymbols, emptyArray, emptyArray, emptyArray);
85945
+ autoArrayType = createAnonymousType(
85946
+ /*symbol*/
85947
+ void 0,
85948
+ emptySymbols,
85949
+ emptyArray,
85950
+ emptyArray,
85951
+ emptyArray
85952
+ );
85720
85953
  }
85721
85954
  globalReadonlyArrayType = getGlobalTypeOrUndefined(
85722
85955
  "ReadonlyArray",
@@ -86834,7 +87067,7 @@ function createTypeChecker(host) {
86834
87067
  if (node.label && current.label.escapedText === node.label.escapedText) {
86835
87068
  const isMisplacedContinueLabel = node.kind === 249 /* ContinueStatement */ && !isIterationStatement(
86836
87069
  current.statement,
86837
- /*lookInLabeledStatement*/
87070
+ /*lookInLabeledStatements*/
86838
87071
  true
86839
87072
  );
86840
87073
  if (isMisplacedContinueLabel) {
@@ -86851,7 +87084,7 @@ function createTypeChecker(host) {
86851
87084
  default:
86852
87085
  if (isIterationStatement(
86853
87086
  current,
86854
- /*lookInLabeledStatement*/
87087
+ /*lookInLabeledStatements*/
86855
87088
  false
86856
87089
  ) && !node.label) {
86857
87090
  return false;
@@ -87141,25 +87374,6 @@ function createTypeChecker(host) {
87141
87374
  return false;
87142
87375
  }
87143
87376
  function checkGrammarNumericLiteral(node) {
87144
- if (node.numericLiteralFlags & 32 /* Octal */) {
87145
- let diagnosticMessage;
87146
- if (languageVersion >= 1 /* ES5 */) {
87147
- diagnosticMessage = Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;
87148
- } else if (isChildOfNodeWithKind(node, 199 /* LiteralType */)) {
87149
- diagnosticMessage = Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;
87150
- } else if (isChildOfNodeWithKind(node, 303 /* EnumMember */)) {
87151
- diagnosticMessage = Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0;
87152
- }
87153
- if (diagnosticMessage) {
87154
- const withMinus = isPrefixUnaryExpression(node.parent) && node.parent.operator === 40 /* MinusToken */;
87155
- const literal = (withMinus ? "-" : "") + "0o" + node.text;
87156
- return grammarErrorOnNode(withMinus ? node.parent : node, diagnosticMessage, literal);
87157
- }
87158
- }
87159
- checkNumericLiteralValueSize(node);
87160
- return false;
87161
- }
87162
- function checkNumericLiteralValueSize(node) {
87163
87377
  const isFractional = getTextOfNode(node).indexOf(".") !== -1;
87164
87378
  const isScientific = node.numericLiteralFlags & 16 /* Scientific */;
87165
87379
  if (isFractional || isScientific) {
@@ -90271,7 +90485,7 @@ function processTaggedTemplateExpression(context, node, visitor, currentSourceFi
90271
90485
  );
90272
90486
  }
90273
90487
  function createTemplateCooked(factory2, template) {
90274
- return template.templateFlags ? factory2.createVoidZero() : factory2.createStringLiteral(template.text);
90488
+ return template.templateFlags & 26656 /* IsInvalid */ ? factory2.createVoidZero() : factory2.createStringLiteral(template.text);
90275
90489
  }
90276
90490
  function getRawLiteral(factory2, node, currentSourceFile) {
90277
90491
  let text = node.rawText;
@@ -90630,7 +90844,7 @@ function transformTypeScript(context) {
90630
90844
  let facts = 0 /* None */;
90631
90845
  if (some(getProperties(
90632
90846
  node,
90633
- /*requireInitialized*/
90847
+ /*requireInitializer*/
90634
90848
  true,
90635
90849
  /*isStatic*/
90636
90850
  true
@@ -92500,10 +92714,10 @@ function transformClassFields(context) {
92500
92714
  filter(node.modifiers, (m) => isModifier(m) && !isStaticModifier(m) && !isAccessorModifier(m)),
92501
92715
  node.asteriskToken,
92502
92716
  functionName,
92503
- /* typeParameters */
92717
+ /*typeParameters*/
92504
92718
  void 0,
92505
92719
  visitParameterList(node.parameters, visitor, context),
92506
- /* type */
92720
+ /*type*/
92507
92721
  void 0,
92508
92722
  visitFunctionBody(node.body, visitor, context)
92509
92723
  )
@@ -93108,7 +93322,7 @@ function transformClassFields(context) {
93108
93322
  info.brandCheckIdentifier,
93109
93323
  right,
93110
93324
  info.kind,
93111
- /* f */
93325
+ /*f*/
93112
93326
  void 0
93113
93327
  );
93114
93328
  case "f" /* Field */:
@@ -93180,7 +93394,7 @@ function transformClassFields(context) {
93180
93394
  if (facts & 4 /* NeedsClassSuperReference */) {
93181
93395
  const temp = factory2.createTempVariable(
93182
93396
  hoistVariableDeclaration,
93183
- /*reserveInNestedScopes*/
93397
+ /*reservedInNestedScopes*/
93184
93398
  true
93185
93399
  );
93186
93400
  getClassLexicalEnvironment().superClassReference = temp;
@@ -94013,7 +94227,7 @@ function transformClassFields(context) {
94013
94227
  const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable(
94014
94228
  /*recordTempVariable*/
94015
94229
  void 0,
94016
- /*reserveInNestedScopes*/
94230
+ /*reservedInNestedScopes*/
94017
94231
  true,
94018
94232
  prefix,
94019
94233
  suffix
@@ -94719,11 +94933,11 @@ function transformLegacyDecorators(context) {
94719
94933
  }
94720
94934
  function visitClassDeclaration(node) {
94721
94935
  if (!(classOrConstructorParameterIsDecorated(
94722
- /*legacyDecorators*/
94936
+ /*useLegacyDecorators*/
94723
94937
  true,
94724
94938
  node
94725
94939
  ) || childIsDecorated(
94726
- /*legacyDecorators*/
94940
+ /*useLegacyDecorators*/
94727
94941
  true,
94728
94942
  node
94729
94943
  ))) {
@@ -94978,7 +95192,7 @@ function transformLegacyDecorators(context) {
94978
95192
  }
94979
95193
  function isDecoratedClassElement(member, isStaticElement, parent2) {
94980
95194
  return nodeOrChildIsDecorated(
94981
- /*legacyDecorators*/
95195
+ /*useLegacyDecorators*/
94982
95196
  true,
94983
95197
  member,
94984
95198
  parent2
@@ -95330,7 +95544,7 @@ function transformESDecorators(context) {
95330
95544
  case 223 /* PostfixUnaryExpression */:
95331
95545
  return visitPreOrPostfixUnaryExpression(
95332
95546
  node,
95333
- /*discard*/
95547
+ /*discarded*/
95334
95548
  false
95335
95549
  );
95336
95550
  case 209 /* PropertyAccessExpression */:
@@ -95481,7 +95695,7 @@ function transformESDecorators(context) {
95481
95695
  let hasStaticPrivateClassElements = false;
95482
95696
  for (const member of node.members) {
95483
95697
  if (isNamedClassElement(member) && nodeOrChildIsDecorated(
95484
- /*legacyDecorators*/
95698
+ /*useLegacyDecorators*/
95485
95699
  false,
95486
95700
  member,
95487
95701
  node
@@ -95720,7 +95934,7 @@ function transformESDecorators(context) {
95720
95934
  if (leadingBlockStatements) {
95721
95935
  const leadingStaticBlockBody = factory2.createBlock(
95722
95936
  leadingBlockStatements,
95723
- /*multiline*/
95937
+ /*multiLine*/
95724
95938
  true
95725
95939
  );
95726
95940
  const leadingStaticBlock = factory2.createClassStaticBlockDeclaration(leadingStaticBlockBody);
@@ -95735,7 +95949,7 @@ function transformESDecorators(context) {
95735
95949
  if (trailingBlockStatements) {
95736
95950
  const trailingStaticBlockBody = factory2.createBlock(
95737
95951
  trailingBlockStatements,
95738
- /*multiline*/
95952
+ /*multiLine*/
95739
95953
  true
95740
95954
  );
95741
95955
  const trailingStaticBlock = factory2.createClassStaticBlockDeclaration(trailingStaticBlockBody);
@@ -95801,11 +96015,11 @@ function transformESDecorators(context) {
95801
96015
  }
95802
96016
  function isDecoratedClassLike(node) {
95803
96017
  return classOrConstructorParameterIsDecorated(
95804
- /*legacyDecorators*/
96018
+ /*useLegacyDecorators*/
95805
96019
  false,
95806
96020
  node
95807
96021
  ) || childIsDecorated(
95808
- /*legacyDecorators*/
96022
+ /*useLegacyDecorators*/
95809
96023
  false,
95810
96024
  node
95811
96025
  );
@@ -97485,15 +97699,15 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
97485
97699
  getterAndSetter.push(factory2.createPropertyAssignment(
97486
97700
  "get",
97487
97701
  factory2.createArrowFunction(
97488
- /* modifiers */
97702
+ /*modifiers*/
97489
97703
  void 0,
97490
- /* typeParameters */
97704
+ /*typeParameters*/
97491
97705
  void 0,
97492
97706
  /* parameters */
97493
97707
  [],
97494
- /* type */
97708
+ /*type*/
97495
97709
  void 0,
97496
- /* equalsGreaterThanToken */
97710
+ /*equalsGreaterThanToken*/
97497
97711
  void 0,
97498
97712
  setEmitFlags(
97499
97713
  factory2.createPropertyAccessExpression(
@@ -97512,29 +97726,29 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
97512
97726
  factory2.createPropertyAssignment(
97513
97727
  "set",
97514
97728
  factory2.createArrowFunction(
97515
- /* modifiers */
97729
+ /*modifiers*/
97516
97730
  void 0,
97517
- /* typeParameters */
97731
+ /*typeParameters*/
97518
97732
  void 0,
97519
97733
  /* parameters */
97520
97734
  [
97521
97735
  factory2.createParameterDeclaration(
97522
- /* modifiers */
97736
+ /*modifiers*/
97523
97737
  void 0,
97524
- /* dotDotDotToken */
97738
+ /*dotDotDotToken*/
97525
97739
  void 0,
97526
97740
  "v",
97527
- /* questionToken */
97741
+ /*questionToken*/
97528
97742
  void 0,
97529
- /* type */
97743
+ /*type*/
97530
97744
  void 0,
97531
- /* initializer */
97745
+ /*initializer*/
97532
97746
  void 0
97533
97747
  )
97534
97748
  ],
97535
- /* type */
97749
+ /*type*/
97536
97750
  void 0,
97537
- /* equalsGreaterThanToken */
97751
+ /*equalsGreaterThanToken*/
97538
97752
  void 0,
97539
97753
  factory2.createAssignment(
97540
97754
  setEmitFlags(
@@ -97561,7 +97775,7 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
97561
97775
  );
97562
97776
  });
97563
97777
  return factory2.createVariableStatement(
97564
- /* modifiers */
97778
+ /*modifiers*/
97565
97779
  void 0,
97566
97780
  factory2.createVariableDeclarationList(
97567
97781
  [
@@ -97569,20 +97783,20 @@ function createSuperAccessVariableStatement(factory2, resolver, node, names) {
97569
97783
  factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */),
97570
97784
  /*exclamationToken*/
97571
97785
  void 0,
97572
- /* type */
97786
+ /*type*/
97573
97787
  void 0,
97574
97788
  factory2.createCallExpression(
97575
97789
  factory2.createPropertyAccessExpression(
97576
97790
  factory2.createIdentifier("Object"),
97577
97791
  "create"
97578
97792
  ),
97579
- /* typeArguments */
97793
+ /*typeArguments*/
97580
97794
  void 0,
97581
97795
  [
97582
97796
  factory2.createNull(),
97583
97797
  factory2.createObjectLiteralExpression(
97584
97798
  accessors,
97585
- /* multiline */
97799
+ /*multiLine*/
97586
97800
  true
97587
97801
  )
97588
97802
  ]
@@ -98454,7 +98668,7 @@ function transformES2018(context) {
98454
98668
  enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken,
98455
98669
  visitNode(node.name, visitor, isPropertyName),
98456
98670
  visitNode(
98457
- /*questionToken*/
98671
+ /*node*/
98458
98672
  void 0,
98459
98673
  visitor,
98460
98674
  isQuestionToken
@@ -98680,7 +98894,7 @@ function transformES2018(context) {
98680
98894
  context,
98681
98895
  1 /* ObjectRest */,
98682
98896
  factory2.getGeneratedNameForNode(parameter),
98683
- /*doNotRecordTempVariablesInLine*/
98897
+ /*hoistTempVariables*/
98684
98898
  false,
98685
98899
  /*skipInitializer*/
98686
98900
  true
@@ -99223,7 +99437,7 @@ function transformJsx(context) {
99223
99437
  }
99224
99438
  const declaration = factory2.createVariableDeclaration(
99225
99439
  factory2.createUniqueName("_jsxFileName", 16 /* Optimistic */ | 32 /* FileLevel */),
99226
- /*exclaimationToken*/
99440
+ /*exclamationToken*/
99227
99441
  void 0,
99228
99442
  /*type*/
99229
99443
  void 0,
@@ -99292,7 +99506,7 @@ function transformJsx(context) {
99292
99506
  /*modifiers*/
99293
99507
  void 0,
99294
99508
  factory2.createImportClause(
99295
- /*typeOnly*/
99509
+ /*isTypeOnly*/
99296
99510
  false,
99297
99511
  /*name*/
99298
99512
  void 0,
@@ -99315,12 +99529,12 @@ function transformJsx(context) {
99315
99529
  factory2.createVariableDeclarationList([
99316
99530
  factory2.createVariableDeclaration(
99317
99531
  factory2.createObjectBindingPattern(arrayFrom(importSpecifiersMap.values(), (s) => factory2.createBindingElement(
99318
- /*dotdotdot*/
99532
+ /*dotDotDotToken*/
99319
99533
  void 0,
99320
99534
  s.propertyName,
99321
99535
  s.name
99322
99536
  ))),
99323
- /*exclaimationToken*/
99537
+ /*exclamationToken*/
99324
99538
  void 0,
99325
99539
  /*type*/
99326
99540
  void 0,
@@ -101637,7 +101851,7 @@ function transformES2015(context) {
101637
101851
  visitor,
101638
101852
  context,
101639
101853
  0 /* All */,
101640
- /*value*/
101854
+ /*rval*/
101641
101855
  void 0,
101642
101856
  (ancestorFacts & 32 /* ExportedVariableStatement */) !== 0
101643
101857
  );
@@ -106000,7 +106214,7 @@ function transformModule(context) {
106000
106214
  /*whenTrue*/
106001
106215
  createImportCallExpressionCommonJS(
106002
106216
  temp,
106003
- /* isInlineable */
106217
+ /*isInlineable*/
106004
106218
  true
106005
106219
  ),
106006
106220
  /*colonToken*/
@@ -106436,9 +106650,9 @@ function transformModule(context) {
106436
106650
  createExportExpression(
106437
106651
  factory2.getExportName(specifier),
106438
106652
  exportedValue,
106439
- /* location */
106653
+ /*location*/
106440
106654
  void 0,
106441
- /* liveBinding */
106655
+ /*liveBinding*/
106442
106656
  true
106443
106657
  )
106444
106658
  ),
@@ -106748,7 +106962,7 @@ function transformModule(context) {
106748
106962
  statements = appendExportsOfDeclaration(
106749
106963
  statements,
106750
106964
  importBinding,
106751
- /* liveBinding */
106965
+ /*liveBinding*/
106752
106966
  true
106753
106967
  );
106754
106968
  }
@@ -106817,7 +107031,7 @@ function transformModule(context) {
106817
107031
  name,
106818
107032
  /*location*/
106819
107033
  exportSpecifier.name,
106820
- /* allowComments */
107034
+ /*allowComments*/
106821
107035
  void 0,
106822
107036
  liveBinding
106823
107037
  );
@@ -106861,7 +107075,7 @@ function transformModule(context) {
106861
107075
  const statement = setTextRange(factory2.createExpressionStatement(createExportExpression(
106862
107076
  name,
106863
107077
  value,
106864
- /* location */
107078
+ /*location*/
106865
107079
  void 0,
106866
107080
  liveBinding
106867
107081
  )), location);
@@ -107336,7 +107550,7 @@ function transformSystemModule(context) {
107336
107550
  void 0,
107337
107551
  factory2.createObjectLiteralExpression(
107338
107552
  exportedNames,
107339
- /*multiline*/
107553
+ /*multiLine*/
107340
107554
  true
107341
107555
  )
107342
107556
  )
@@ -107428,7 +107642,7 @@ function transformSystemModule(context) {
107428
107642
  )
107429
107643
  )
107430
107644
  ],
107431
- /*multiline*/
107645
+ /*multiLine*/
107432
107646
  true
107433
107647
  )
107434
107648
  );
@@ -107493,7 +107707,7 @@ function transformSystemModule(context) {
107493
107707
  void 0,
107494
107708
  [factory2.createObjectLiteralExpression(
107495
107709
  properties,
107496
- /*multiline*/
107710
+ /*multiLine*/
107497
107711
  true
107498
107712
  )]
107499
107713
  )
@@ -109026,18 +109240,18 @@ function isInternalDeclaration(node, currentSourceFile) {
109026
109240
  getTrailingCommentRanges(text, skipTrivia(
109027
109241
  text,
109028
109242
  previousSibling.end + 1,
109029
- /* stopAfterLineBreak */
109243
+ /*stopAfterLineBreak*/
109030
109244
  false,
109031
- /* stopAtComments */
109245
+ /*stopAtComments*/
109032
109246
  true
109033
109247
  )),
109034
109248
  getLeadingCommentRanges(text, node.pos)
109035
109249
  ) : getTrailingCommentRanges(text, skipTrivia(
109036
109250
  text,
109037
109251
  node.pos,
109038
- /* stopAfterLineBreak */
109252
+ /*stopAfterLineBreak*/
109039
109253
  false,
109040
- /* stopAtComments */
109254
+ /*stopAtComments*/
109041
109255
  true
109042
109256
  ));
109043
109257
  return commentRanges && commentRanges.length && hasInternalAnnotation(last(commentRanges), currentSourceFile);
@@ -109153,7 +109367,7 @@ function transformDeclarations(context) {
109153
109367
  symbol,
109154
109368
  enclosingDeclaration2,
109155
109369
  meaning,
109156
- /*shouldComputeAliasesToMakeVisible*/
109370
+ /*shouldComputeAliasToMarkVisible*/
109157
109371
  true
109158
109372
  ));
109159
109373
  recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForSymbol(symbol, meaning));
@@ -109499,7 +109713,7 @@ function transformDeclarations(context) {
109499
109713
  return factory2.updateBindingElement(
109500
109714
  elem,
109501
109715
  elem.dotDotDotToken,
109502
- /* propertyName */
109716
+ /*propertyName*/
109503
109717
  void 0,
109504
109718
  elem.propertyName,
109505
109719
  shouldPrintWithInitializer(elem) ? elem.initializer : void 0
@@ -109861,7 +110075,7 @@ function transformDeclarations(context) {
109861
110075
  return cleanup(factory2.createPropertyDeclaration(
109862
110076
  ensureModifiers(input),
109863
110077
  input.name,
109864
- /*questionToken*/
110078
+ /*questionOrExclamationToken*/
109865
110079
  void 0,
109866
110080
  /*type*/
109867
110081
  void 0,
@@ -110425,7 +110639,7 @@ function transformDeclarations(context) {
110425
110639
  elems.push(factory2.createPropertyDeclaration(
110426
110640
  ensureModifiers(param),
110427
110641
  elem.name,
110428
- /*questionToken*/
110642
+ /*questionOrExclamationToken*/
110429
110643
  void 0,
110430
110644
  ensureType(
110431
110645
  elem,
@@ -110447,7 +110661,7 @@ function transformDeclarations(context) {
110447
110661
  /*modifiers*/
110448
110662
  void 0,
110449
110663
  factory2.createPrivateIdentifier("#private"),
110450
- /*questionToken*/
110664
+ /*questionOrExclamationToken*/
110451
110665
  void 0,
110452
110666
  /*type*/
110453
110667
  void 0,
@@ -111860,7 +112074,7 @@ function emitUsingBuildInfoWorker(config, host, getCommandLine, customTransforme
111860
112074
  declarationMapText,
111861
112075
  buildInfoPath,
111862
112076
  buildInfo,
111863
- /*onlyOwnText*/
112077
+ /*oldFileOfCurrentEmit*/
111864
112078
  true
111865
112079
  );
111866
112080
  const outputFiles = [];
@@ -112053,7 +112267,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
112053
112267
  writeBundle(
112054
112268
  bundle,
112055
112269
  beginPrint(),
112056
- /*sourceMapEmitter*/
112270
+ /*sourceMapGenerator*/
112057
112271
  void 0
112058
112272
  );
112059
112273
  return endPrint();
@@ -112062,7 +112276,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
112062
112276
  writeFile2(
112063
112277
  sourceFile,
112064
112278
  beginPrint(),
112065
- /*sourceMapEmitter*/
112279
+ /*sourceMapGenerator*/
112066
112280
  void 0
112067
112281
  );
112068
112282
  return endPrint();
@@ -113480,7 +113694,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
113480
113694
  /*jsxAttributeEscape*/
113481
113695
  false
113482
113696
  );
113483
- return !expression.numericLiteralFlags && !stringContains(text, tokenToString(24 /* DotToken */));
113697
+ return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !stringContains(text, tokenToString(24 /* DotToken */)) && !stringContains(text, String.fromCharCode(69 /* E */)) && !stringContains(text, String.fromCharCode(101 /* e */));
113484
113698
  } else if (isAccessExpression(expression)) {
113485
113699
  const constantValue = getConstantValue(expression);
113486
113700
  return typeof constantValue === "number" && isFinite(constantValue) && Math.floor(constantValue) === constantValue;
@@ -113543,7 +113757,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
113543
113757
  const indented = writeLineSeparatorsAndIndentBefore(node.expression, node);
113544
113758
  emitExpression(
113545
113759
  node.expression,
113546
- /*parenthesizerRules*/
113760
+ /*parenthesizerRule*/
113547
113761
  void 0
113548
113762
  );
113549
113763
  writeLineSeparatorsAfter(node.expression, node);
@@ -113757,7 +113971,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
113757
113971
  function emitAsExpression(node) {
113758
113972
  emitExpression(
113759
113973
  node.expression,
113760
- /*parenthesizerRules*/
113974
+ /*parenthesizerRule*/
113761
113975
  void 0
113762
113976
  );
113763
113977
  if (node.type) {
@@ -113774,7 +113988,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
113774
113988
  function emitSatisfiesExpression(node) {
113775
113989
  emitExpression(
113776
113990
  node.expression,
113777
- /*parenthesizerRules*/
113991
+ /*parenthesizerRule*/
113778
113992
  void 0
113779
113993
  );
113780
113994
  if (node.type) {
@@ -116094,7 +116308,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
116094
116308
  case 165 /* ComputedPropertyName */:
116095
116309
  return makeTempVariableName(
116096
116310
  0 /* Auto */,
116097
- /*reserveInNestedScopes*/
116311
+ /*reservedInNestedScopes*/
116098
116312
  true,
116099
116313
  privateName,
116100
116314
  prefix,
@@ -116103,7 +116317,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
116103
116317
  default:
116104
116318
  return makeTempVariableName(
116105
116319
  0 /* Auto */,
116106
- /*reserveInNestedScopes*/
116320
+ /*reservedInNestedScopes*/
116107
116321
  false,
116108
116322
  privateName,
116109
116323
  prefix,
@@ -117782,7 +117996,6 @@ var plainJSErrors = /* @__PURE__ */ new Set([
117782
117996
  Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,
117783
117997
  Diagnostics.Invalid_use_of_0_in_strict_mode.code,
117784
117998
  Diagnostics.A_label_is_not_allowed_here.code,
117785
- Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,
117786
117999
  Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,
117787
118000
  // grammar errors
117788
118001
  Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,
@@ -118449,7 +118662,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118449
118662
  return resolveTypeReferenceDirectiveNamesWorker(
118450
118663
  typeDirectiveNames,
118451
118664
  containingFile,
118452
- /*resuedNames*/
118665
+ /*reusedNames*/
118453
118666
  void 0
118454
118667
  );
118455
118668
  }
@@ -118777,7 +118990,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118777
118990
  void 0,
118778
118991
  /*transformers*/
118779
118992
  noTransformers,
118780
- /*emitOnlyDtsFiles*/
118993
+ /*emitOnly*/
118781
118994
  false,
118782
118995
  /*onlyBuildInfo*/
118783
118996
  true
@@ -119373,7 +119586,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
119373
119586
  const node = getNodeAtPosition(file2, r.lastIndex);
119374
119587
  if (shouldProcessRequires && isRequireCall(
119375
119588
  node,
119376
- /*checkArgumentIsStringLiteralLike*/
119589
+ /*requireStringLiteralLikeArgument*/
119377
119590
  true
119378
119591
  )) {
119379
119592
  setParentRecursive(
@@ -119970,7 +120183,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
119970
120183
  commandLine = host.getParsedCommandLine(refPath);
119971
120184
  if (!commandLine) {
119972
120185
  addFileToFilesByName(
119973
- /*sourceFile*/
120186
+ /*file*/
119974
120187
  void 0,
119975
120188
  sourceFilePath,
119976
120189
  /*redirectedPath*/
@@ -121293,7 +121506,7 @@ var BuilderState;
121293
121506
  ), sourceFiles);
121294
121507
  },
121295
121508
  cancellationToken,
121296
- /*emitOnlyDtsFiles*/
121509
+ /*emitOnly*/
121297
121510
  true,
121298
121511
  /*customTransformers*/
121299
121512
  void 0,
@@ -122509,7 +122722,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa
122509
122722
  continue;
122510
122723
  } else {
122511
122724
  result = state.program.getSemanticDiagnostics(
122512
- /*targetSourceFile*/
122725
+ /*sourceFile*/
122513
122726
  void 0,
122514
122727
  cancellationToken
122515
122728
  );
@@ -123313,7 +123526,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
123313
123526
  } else {
123314
123527
  resolutions.forEach((resolution) => watchAffectingLocationsOfResolution(
123315
123528
  resolution,
123316
- /*addToResolutionWithOnlyAffectingLocations*/
123529
+ /*addToResolutionsWithOnlyAffectingLocations*/
123317
123530
  true
123318
123531
  ));
123319
123532
  }
@@ -123673,7 +123886,7 @@ function prettyPathForFileError(error, cwd) {
123673
123886
  return getRelativePathFromDirectory(
123674
123887
  cwd,
123675
123888
  error.fileName,
123676
- /* ignoreCase */
123889
+ /*ignoreCase*/
123677
123890
  false
123678
123891
  ) + line;
123679
123892
  }
@@ -124843,7 +125056,6 @@ function createWatchProgram(host) {
124843
125056
  );
124844
125057
  }
124845
125058
  function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions2, watchType) {
124846
- Debug.assert(configFileName);
124847
125059
  updateSharedExtendedConfigFileWatcher(
124848
125060
  forProjectPath,
124849
125061
  options,
@@ -124859,7 +125071,7 @@ function createWatchProgram(host) {
124859
125071
  if (!(projects == null ? void 0 : projects.size))
124860
125072
  return;
124861
125073
  projects.forEach((projectPath) => {
124862
- if (toPath3(configFileName) === projectPath) {
125074
+ if (configFileName && toPath3(configFileName) === projectPath) {
124863
125075
  reloadLevel = 2 /* Full */;
124864
125076
  } else {
124865
125077
  const config = parsedConfigs == null ? void 0 : parsedConfigs.get(projectPath);
@@ -125612,7 +125824,7 @@ function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath,
125612
125824
  void 0,
125613
125825
  (name, text, writeByteOrderMark, _onError, _sourceFiles, data) => outputFiles.push({ name, text, writeByteOrderMark, data }),
125614
125826
  cancellationToken,
125615
- /*emitOnlyDts*/
125827
+ /*emitOnlyDtsFiles*/
125616
125828
  false,
125617
125829
  customTransformers || ((_b = (_a2 = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a2, project))
125618
125830
  );
@@ -128474,7 +128686,7 @@ function getTokenAtPositionWorker(sourceFile, position, allowPositionInLeadingTr
128474
128686
  }
128475
128687
  const start2 = allowPositionInLeadingTrivia ? children[middle].getFullStart() : children[middle].getStart(
128476
128688
  sourceFile,
128477
- /*includeJsDoc*/
128689
+ /*includeJsDocComment*/
128478
128690
  true
128479
128691
  );
128480
128692
  if (start2 > position) {
@@ -128509,7 +128721,7 @@ function getTokenAtPositionWorker(sourceFile, position, allowPositionInLeadingTr
128509
128721
  }
128510
128722
  start2 != null ? start2 : start2 = allowPositionInLeadingTrivia ? node.getFullStart() : node.getStart(
128511
128723
  sourceFile,
128512
- /*includeJsDoc*/
128724
+ /*includeJsDocComment*/
128513
128725
  true
128514
128726
  );
128515
128727
  if (start2 > position) {
@@ -129554,7 +129766,7 @@ function signatureToDisplayParts(typechecker, signature, enclosingDeclaration, f
129554
129766
  signature,
129555
129767
  enclosingDeclaration,
129556
129768
  flags,
129557
- /*signatureKind*/
129769
+ /*kind*/
129558
129770
  void 0,
129559
129771
  writer
129560
129772
  );
@@ -130209,13 +130421,13 @@ function getNamesForExportedSymbol(symbol, scriptTarget) {
130209
130421
  const fileNameCase = ts_codefix_exports.moduleSymbolToValidIdentifier(
130210
130422
  getSymbolParentOrFail(symbol),
130211
130423
  scriptTarget,
130212
- /*preferCapitalized*/
130424
+ /*forceCapitalize*/
130213
130425
  false
130214
130426
  );
130215
130427
  const capitalized = ts_codefix_exports.moduleSymbolToValidIdentifier(
130216
130428
  getSymbolParentOrFail(symbol),
130217
130429
  scriptTarget,
130218
- /*preferCapitalized*/
130430
+ /*forceCapitalize*/
130219
130431
  true
130220
130432
  );
130221
130433
  if (fileNameCase === capitalized)
@@ -130859,7 +131071,7 @@ function createClassifier() {
130859
131071
  const lastTemplateStackToken = lastOrUndefined(templateStack);
130860
131072
  if (lastTemplateStackToken === 15 /* TemplateHead */) {
130861
131073
  token = scanner2.reScanTemplateToken(
130862
- /* isTaggedTemplate */
131074
+ /*isTaggedTemplate*/
130863
131075
  false
130864
131076
  );
130865
131077
  if (token === 17 /* TemplateTail */) {
@@ -132557,7 +132769,7 @@ function matchTextChunk(candidate, chunk, stringToWordSpans) {
132557
132769
  candidate,
132558
132770
  span,
132559
132771
  chunk.text,
132560
- /*ignoreCase:*/
132772
+ /*ignoreCase*/
132561
132773
  true
132562
132774
  )) {
132563
132775
  return createPatternMatch(
@@ -132567,7 +132779,7 @@ function matchTextChunk(candidate, chunk, stringToWordSpans) {
132567
132779
  candidate,
132568
132780
  span,
132569
132781
  chunk.text,
132570
- /*ignoreCase:*/
132782
+ /*ignoreCase*/
132571
132783
  false
132572
132784
  )
132573
132785
  );
@@ -132576,7 +132788,7 @@ function matchTextChunk(candidate, chunk, stringToWordSpans) {
132576
132788
  if (chunk.text.length < candidate.length && isUpperCaseLetter(candidate.charCodeAt(index))) {
132577
132789
  return createPatternMatch(
132578
132790
  2 /* substring */,
132579
- /*isCaseSensitive:*/
132791
+ /*isCaseSensitive*/
132580
132792
  false
132581
132793
  );
132582
132794
  }
@@ -132584,7 +132796,7 @@ function matchTextChunk(candidate, chunk, stringToWordSpans) {
132584
132796
  if (candidate.indexOf(chunk.text) > 0) {
132585
132797
  return createPatternMatch(
132586
132798
  2 /* substring */,
132587
- /*isCaseSensitive:*/
132799
+ /*isCaseSensitive*/
132588
132800
  true
132589
132801
  );
132590
132802
  }
@@ -132594,13 +132806,13 @@ function matchTextChunk(candidate, chunk, stringToWordSpans) {
132594
132806
  candidate,
132595
132807
  candidateParts,
132596
132808
  chunk,
132597
- /*ignoreCase:*/
132809
+ /*ignoreCase*/
132598
132810
  false
132599
132811
  ) ? true : tryCamelCaseMatch(
132600
132812
  candidate,
132601
132813
  candidateParts,
132602
132814
  chunk,
132603
- /*ignoreCase:*/
132815
+ /*ignoreCase*/
132604
132816
  true
132605
132817
  ) ? false : void 0;
132606
132818
  if (isCaseSensitive !== void 0) {
@@ -132754,14 +132966,14 @@ function createTextChunk(text) {
132754
132966
  function breakIntoCharacterSpans(identifier) {
132755
132967
  return breakIntoSpans(
132756
132968
  identifier,
132757
- /*word:*/
132969
+ /*word*/
132758
132970
  false
132759
132971
  );
132760
132972
  }
132761
132973
  function breakIntoWordSpans(identifier) {
132762
132974
  return breakIntoSpans(
132763
132975
  identifier,
132764
- /*word:*/
132976
+ /*word*/
132765
132977
  true
132766
132978
  );
132767
132979
  }
@@ -133119,7 +133331,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo
133119
133331
  if (length(stack)) {
133120
133332
  if (lastOrUndefined(stack) === 15 /* TemplateHead */) {
133121
133333
  if (scanner.reScanTemplateToken(
133122
- /* isTaggedTemplate */
133334
+ /*isTaggedTemplate*/
133123
133335
  false
133124
133336
  ) === 17 /* TemplateTail */) {
133125
133337
  stack.pop();
@@ -133356,7 +133568,7 @@ function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) {
133356
133568
  const init = node.declarationList.declarations[0].initializer;
133357
133569
  if (init && isRequireCall(
133358
133570
  init,
133359
- /*checkArgumentIsStringLiteralLike*/
133571
+ /*requireStringLiteralLikeArgument*/
133360
133572
  true
133361
133573
  )) {
133362
133574
  diags.push(createDiagnosticForNode(init, Diagnostics.require_call_may_be_converted_to_an_import));
@@ -133382,7 +133594,7 @@ function containsTopLevelCommonjs(sourceFile) {
133382
133594
  case 241 /* VariableStatement */:
133383
133595
  return statement.declarationList.declarations.some((decl) => !!decl.initializer && isRequireCall(
133384
133596
  propertyAccessLeftHandSide(decl.initializer),
133385
- /*checkArgumentIsStringLiteralLike*/
133597
+ /*requireStringLiteralLikeArgument*/
133386
133598
  true
133387
133599
  ));
133388
133600
  case 242 /* ExpressionStatement */: {
@@ -133390,7 +133602,7 @@ function containsTopLevelCommonjs(sourceFile) {
133390
133602
  if (!isBinaryExpression(expression))
133391
133603
  return isRequireCall(
133392
133604
  expression,
133393
- /*checkArgumentIsStringLiteralLike*/
133605
+ /*requireStringLiteralLikeArgument*/
133394
133606
  true
133395
133607
  );
133396
133608
  const kind = getAssignmentDeclarationKind(expression);
@@ -133581,7 +133793,7 @@ function transpileModule(input, transpileOptions) {
133581
133793
  languageVersion: getEmitScriptTarget(options),
133582
133794
  impliedNodeFormat: getImpliedNodeFormatForFile(
133583
133795
  toPath(inputFileName, "", compilerHost.getCanonicalFileName),
133584
- /*cache*/
133796
+ /*packageJsonInfoCache*/
133585
133797
  void 0,
133586
133798
  compilerHost,
133587
133799
  options
@@ -134161,10 +134373,10 @@ function tryMergeEs5Class(a, b, bIndex, parent2) {
134161
134373
  if (ctorFunction !== void 0) {
134162
134374
  const ctorNode = setTextRange(
134163
134375
  factory.createConstructorDeclaration(
134164
- /* modifiers */
134376
+ /*modifiers*/
134165
134377
  void 0,
134166
134378
  [],
134167
- /* body */
134379
+ /*body*/
134168
134380
  void 0
134169
134381
  ),
134170
134382
  ctorFunction
@@ -134183,12 +134395,12 @@ function tryMergeEs5Class(a, b, bIndex, parent2) {
134183
134395
  }
134184
134396
  }
134185
134397
  lastANode = a.node = setTextRange(factory.createClassDeclaration(
134186
- /* modifiers */
134398
+ /*modifiers*/
134187
134399
  void 0,
134188
134400
  a.name || factory.createIdentifier("__class__"),
134189
- /* typeParameters */
134401
+ /*typeParameters*/
134190
134402
  void 0,
134191
- /* heritageClauses */
134403
+ /*heritageClauses*/
134192
134404
  void 0,
134193
134405
  []
134194
134406
  ), a.node);
@@ -134205,12 +134417,12 @@ function tryMergeEs5Class(a, b, bIndex, parent2) {
134205
134417
  if (!a.additionalNodes)
134206
134418
  a.additionalNodes = [];
134207
134419
  a.additionalNodes.push(setTextRange(factory.createClassDeclaration(
134208
- /* modifiers */
134420
+ /*modifiers*/
134209
134421
  void 0,
134210
134422
  a.name || factory.createIdentifier("__class__"),
134211
- /* typeParameters */
134423
+ /*typeParameters*/
134212
134424
  void 0,
134213
- /* heritageClauses */
134425
+ /*heritageClauses*/
134214
134426
  void 0,
134215
134427
  []
134216
134428
  ), b.node));
@@ -135791,7 +136003,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h
135791
136003
  result,
135792
136004
  parseConfigHost,
135793
136005
  getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory),
135794
- /*optionsToExtend*/
136006
+ /*existingOptions*/
135795
136007
  void 0,
135796
136008
  getNormalizedAbsolutePath(configFileName, currentDirectory)
135797
136009
  );
@@ -136844,7 +137056,7 @@ function transform(source, transformers, compilerOptions) {
136844
137056
  const result = transformNodes(
136845
137057
  /*resolver*/
136846
137058
  void 0,
136847
- /*emitHost*/
137059
+ /*host*/
136848
137060
  void 0,
136849
137061
  factory,
136850
137062
  compilerOptions,
@@ -137634,9 +137846,9 @@ var CoreServicesShimObject = class extends ShimBase {
137634
137846
  () => {
137635
137847
  const result = preProcessFile(
137636
137848
  getSnapshotText(sourceTextSnapshot),
137637
- /* readImportFiles */
137849
+ /*readImportFiles*/
137638
137850
  true,
137639
- /* detectJavaScriptImports */
137851
+ /*detectJavaScriptImports*/
137640
137852
  true
137641
137853
  );
137642
137854
  return {
@@ -137705,7 +137917,7 @@ var CoreServicesShimObject = class extends ShimBase {
137705
137917
  }
137706
137918
  discoverTypings(discoverTypingsJson) {
137707
137919
  const getCanonicalFileName = createGetCanonicalFileName(
137708
- /*useCaseSensitivefileNames:*/
137920
+ /*useCaseSensitiveFileNames*/
137709
137921
  false
137710
137922
  );
137711
137923
  return this.forwardJSONCall("discoverTypings()", () => {
@@ -137747,7 +137959,7 @@ var TypeScriptServicesFactory = class {
137747
137959
  const languageService = createLanguageService(
137748
137960
  hostAdapter,
137749
137961
  this.documentRegistry,
137750
- /*syntaxOnly*/
137962
+ /*syntaxOnlyOrLanguageServiceMode*/
137751
137963
  false
137752
137964
  );
137753
137965
  return new LanguageServiceShimObject(this, host, languageService);
@@ -139717,7 +139929,7 @@ function doChange2(changes, sourceFile, position, checker, preferences, compiler
139717
139929
  const prototypes = firstDeclaration.parent.right;
139718
139930
  createClassElement(
139719
139931
  prototypes.symbol,
139720
- /** modifiers */
139932
+ /*modifiers*/
139721
139933
  void 0,
139722
139934
  memberElements
139723
139935
  );
@@ -139789,7 +140001,7 @@ function doChange2(changes, sourceFile, position, checker, preferences, compiler
139789
140001
  members.push(factory.createPropertyDeclaration(
139790
140002
  modifiers,
139791
140003
  symbol2.name,
139792
- /*questionToken*/
140004
+ /*questionOrExclamationToken*/
139793
140005
  void 0,
139794
140006
  /*type*/
139795
140007
  void 0,
@@ -139829,7 +140041,7 @@ function doChange2(changes, sourceFile, position, checker, preferences, compiler
139829
140041
  const prop = factory.createPropertyDeclaration(
139830
140042
  modifiers,
139831
140043
  memberDeclaration.name,
139832
- /*questionToken*/
140044
+ /*questionOrExclamationToken*/
139833
140045
  void 0,
139834
140046
  /*type*/
139835
140047
  void 0,
@@ -140292,7 +140504,7 @@ function transformFinally(node, onFinally, transformer, hasContinuation, continu
140292
140504
  hasContinuation,
140293
140505
  /*continuationArgName*/
140294
140506
  void 0,
140295
- /*argName*/
140507
+ /*inputArgName*/
140296
140508
  void 0,
140297
140509
  node,
140298
140510
  transformer
@@ -140699,7 +140911,7 @@ function fixImportOfModuleExports(importingFile, exportingFile, changes, quotePr
140699
140911
  case 211 /* CallExpression */:
140700
140912
  if (isRequireCall(
140701
140913
  importNode,
140702
- /*checkArgumentIsStringLiteralLike*/
140914
+ /*requireStringLiteralLikeArgument*/
140703
140915
  false
140704
140916
  )) {
140705
140917
  changes.replaceNode(importingFile, importNode, factory.createPropertyAccessExpression(getSynthesizedDeepClone(importNode), "default"));
@@ -140774,11 +140986,11 @@ function convertStatement(sourceFile, statement, checker, changes, identifiers,
140774
140986
  case 211 /* CallExpression */: {
140775
140987
  if (isRequireCall(
140776
140988
  expression,
140777
- /*checkArgumentIsStringLiteralLike*/
140989
+ /*requireStringLiteralLikeArgument*/
140778
140990
  true
140779
140991
  )) {
140780
140992
  changes.replaceNode(sourceFile, statement, makeImport(
140781
- /*name*/
140993
+ /*defaultImport*/
140782
140994
  void 0,
140783
140995
  /*namedImports*/
140784
140996
  void 0,
@@ -140809,14 +141021,14 @@ function convertVariableStatement(sourceFile, statement, changes, checker, ident
140809
141021
  return convertedImports([]);
140810
141022
  } else if (isRequireCall(
140811
141023
  initializer,
140812
- /*checkArgumentIsStringLiteralLike*/
141024
+ /*requireStringLiteralLikeArgument*/
140813
141025
  true
140814
141026
  )) {
140815
141027
  foundImport = true;
140816
141028
  return convertSingleImport(name, initializer.arguments[0], checker, identifiers, target, quotePreference);
140817
141029
  } else if (isPropertyAccessExpression(initializer) && isRequireCall(
140818
141030
  initializer.expression,
140819
- /*checkArgumentIsStringLiteralLike*/
141031
+ /*requireStringLiteralLikeArgument*/
140820
141032
  true
140821
141033
  )) {
140822
141034
  foundImport = true;
@@ -140872,7 +141084,7 @@ function convertAssignment(sourceFile, checker, assignment, changes, exports, us
140872
141084
  } else {
140873
141085
  const replacement = isObjectLiteralExpression(right) ? tryChangeModuleExportsObject(right, useSitesToUnqualify) : isRequireCall(
140874
141086
  right,
140875
- /*checkArgumentIsStringLiteralLike*/
141087
+ /*requireStringLiteralLikeArgument*/
140876
141088
  true
140877
141089
  ) ? convertReExportAll(right.arguments[0], checker) : void 0;
140878
141090
  if (replacement) {
@@ -140940,7 +141152,7 @@ function convertReExportAll(reExported, checker) {
140940
141152
  }
140941
141153
  function reExportStar(moduleSpecifier) {
140942
141154
  return makeExportDeclaration(
140943
- /*exportClause*/
141155
+ /*exportSpecifiers*/
140944
141156
  void 0,
140945
141157
  moduleSpecifier
140946
141158
  );
@@ -141022,7 +141234,7 @@ function convertSingleImport(name, moduleSpecifier, checker, identifiers, target
141022
141234
  const importSpecifiers = mapAllOrFail(name.elements, (e) => e.dotDotDotToken || e.initializer || e.propertyName && !isIdentifier(e.propertyName) || !isIdentifier(e.name) ? void 0 : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text));
141023
141235
  if (importSpecifiers) {
141024
141236
  return convertedImports([makeImport(
141025
- /*name*/
141237
+ /*defaultImport*/
141026
141238
  void 0,
141027
141239
  importSpecifiers,
141028
141240
  moduleSpecifier,
@@ -141155,7 +141367,7 @@ function makeSingleImport(localName, propertyName, moduleSpecifier, quotePrefere
141155
141367
  moduleSpecifier,
141156
141368
  quotePreference
141157
141369
  ) : makeImport(
141158
- /*name*/
141370
+ /*defaultImport*/
141159
141371
  void 0,
141160
141372
  [makeImportSpecifier(propertyName, localName)],
141161
141373
  moduleSpecifier,
@@ -141803,7 +142015,7 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre
141803
142015
  symbol,
141804
142016
  symbolName2,
141805
142017
  moduleSymbol,
141806
- /*isJsxTagName*/
142018
+ /*preferCapitalized*/
141807
142019
  false,
141808
142020
  program,
141809
142021
  host,
@@ -143676,7 +143888,7 @@ registerCodeFix({
143676
143888
  info.declaration,
143677
143889
  info.expression,
143678
143890
  info.commentSource,
143679
- /* withParen */
143891
+ /*withParen*/
143680
143892
  false
143681
143893
  );
143682
143894
  break;
@@ -143797,7 +144009,7 @@ function getInfo6(checker, sourceFile, position, errorCode) {
143797
144009
  checker,
143798
144010
  declaration,
143799
144011
  checker.getTypeFromTypeNode(declaration.type),
143800
- /* isFunctionType */
144012
+ /*isFunctionType*/
143801
144013
  false
143802
144014
  );
143803
144015
  case Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:
@@ -143811,7 +144023,7 @@ function getInfo6(checker, sourceFile, position, errorCode) {
143811
144023
  checker,
143812
144024
  declaration,
143813
144025
  type,
143814
- /* isFunctionType */
144026
+ /*isFunctionType*/
143815
144027
  true
143816
144028
  );
143817
144029
  case Diagnostics.Type_0_is_not_assignable_to_type_1.code:
@@ -143824,7 +144036,7 @@ function getInfo6(checker, sourceFile, position, errorCode) {
143824
144036
  checker,
143825
144037
  initializer,
143826
144038
  checker.getTypeAtLocation(node.parent),
143827
- /* isFunctionType */
144039
+ /*isFunctionType*/
143828
144040
  true
143829
144041
  );
143830
144042
  }
@@ -143877,7 +144089,7 @@ function getActionForFixRemoveBracesFromArrowFunctionBody(context, declaration,
143877
144089
  declaration,
143878
144090
  expression,
143879
144091
  commentSource,
143880
- /* withParen */
144092
+ /*withParen*/
143881
144093
  false
143882
144094
  ));
143883
144095
  return createCodeFixAction(fixId23, changes, Diagnostics.Remove_braces_from_arrow_function_body, fixRemoveBracesFromArrowFunctionBody, Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues);
@@ -144001,9 +144213,9 @@ function getInfo7(sourceFile, tokenPos, errorCode, checker, program) {
144001
144213
  const properties = arrayFrom(checker.getUnmatchedProperties(
144002
144214
  checker.getTypeAtLocation(parent2),
144003
144215
  checker.getParameterType(signature, argIndex),
144004
- /* requireOptionalProperties */
144216
+ /*requireOptionalProperties*/
144005
144217
  false,
144006
- /* matchDiscriminantProperties */
144218
+ /*matchDiscriminantProperties*/
144007
144219
  false
144008
144220
  ));
144009
144221
  if (!length(properties))
@@ -144017,9 +144229,9 @@ function getInfo7(sourceFile, tokenPos, errorCode, checker, program) {
144017
144229
  const properties = arrayFrom(checker.getUnmatchedProperties(
144018
144230
  checker.getTypeAtLocation(parent2.initializer),
144019
144231
  targetType,
144020
- /* requireOptionalProperties */
144232
+ /*requireOptionalProperties*/
144021
144233
  false,
144022
- /* matchDiscriminantProperties */
144234
+ /*matchDiscriminantProperties*/
144023
144235
  false
144024
144236
  ));
144025
144237
  if (!length(properties))
@@ -144112,7 +144324,7 @@ function addMissingMemberInJs(changeTracker, sourceFile, classDeclaration, token
144112
144324
  /*modifiers*/
144113
144325
  void 0,
144114
144326
  tokenName,
144115
- /*questionToken*/
144327
+ /*questionOrExclamationToken*/
144116
144328
  void 0,
144117
144329
  /*type*/
144118
144330
  void 0,
@@ -144175,7 +144387,7 @@ function addPropertyDeclaration(changeTracker, sourceFile, node, tokenName, type
144175
144387
  const property = isClassLike(node) ? factory.createPropertyDeclaration(
144176
144388
  modifiers,
144177
144389
  tokenName,
144178
- /*questionToken*/
144390
+ /*questionOrExclamationToken*/
144179
144391
  void 0,
144180
144392
  typeNode,
144181
144393
  /*initializer*/
@@ -144971,7 +145183,7 @@ registerCodeFix({
144971
145183
  preferences,
144972
145184
  sourceFile,
144973
145185
  span.start,
144974
- /* useHtmlEntity */
145186
+ /*useHtmlEntity*/
144975
145187
  false
144976
145188
  ));
144977
145189
  const changeToHtmlEntity = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange18(
@@ -144979,7 +145191,7 @@ registerCodeFix({
144979
145191
  preferences,
144980
145192
  sourceFile,
144981
145193
  span.start,
144982
- /* useHtmlEntity */
145194
+ /*useHtmlEntity*/
144983
145195
  true
144984
145196
  ));
144985
145197
  return [
@@ -146116,7 +146328,7 @@ function tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFil
146116
146328
  if (importableReference && changes.tryInsertTypeAnnotation(sourceFile, declaration, importableReference.typeNode)) {
146117
146329
  forEach(importableReference.symbols, (s) => importAdder.addImportFromExportedSymbol(
146118
146330
  s,
146119
- /*usageIsTypeOnly*/
146331
+ /*isValidTypeOnlyUseSite*/
146120
146332
  true
146121
146333
  ));
146122
146334
  return true;
@@ -146172,7 +146384,7 @@ function annotateJSDocParameters(changes, sourceFile, parameterInferences, progr
146172
146384
  /*isBracketed*/
146173
146385
  !!isOptional,
146174
146386
  factory.createJSDocTypeExpression(typeNode),
146175
- /* isNameFirst */
146387
+ /*isNameFirst*/
146176
146388
  false,
146177
146389
  /*comment*/
146178
146390
  void 0
@@ -146950,7 +147162,7 @@ function createMissingMemberNodes(classDeclaration, possiblyMissingSymbols, sour
146950
147162
  preferences,
146951
147163
  importAdder,
146952
147164
  addClassElement,
146953
- /* body */
147165
+ /*body*/
146954
147166
  void 0
146955
147167
  );
146956
147168
  }
@@ -147424,7 +147636,7 @@ function createMethodImplementingSignatures(checker, context, enclosingDeclarati
147424
147636
  const parameters = createDummyParameters(
147425
147637
  maxNonRestArgs,
147426
147638
  maxArgsParameterSymbolNames,
147427
- /* types */
147639
+ /*types*/
147428
147640
  void 0,
147429
147641
  minArgumentCount,
147430
147642
  /*inJs*/
@@ -147493,7 +147705,7 @@ function createStubbedBody(text, quotePreference) {
147493
147705
  )]
147494
147706
  )
147495
147707
  )],
147496
- /*multiline*/
147708
+ /*multiLine*/
147497
147709
  true
147498
147710
  );
147499
147711
  }
@@ -148095,7 +148307,7 @@ function getInfo14(sourceFile, program, pos) {
148095
148307
  const { parent: parent2 } = getTokenAtPosition(sourceFile, pos);
148096
148308
  if (!isRequireCall(
148097
148309
  parent2,
148098
- /*checkArgumentIsStringLiteralLike*/
148310
+ /*requireStringLiteralLikeArgument*/
148099
148311
  true
148100
148312
  )) {
148101
148313
  Debug.failBadSyntaxKind(parent2);
@@ -148228,7 +148440,7 @@ function doChange29(changes, sourceFile, importType) {
148228
148440
  importType.assertions,
148229
148441
  importType.qualifier,
148230
148442
  importType.typeArguments,
148231
- /* isTypeOf */
148443
+ /*isTypeOf*/
148232
148444
  true
148233
148445
  );
148234
148446
  changes.replaceNode(sourceFile, importType, newTypeNode);
@@ -149419,14 +149631,14 @@ function getEntryForMemberCompletion(host, program, options, preferences, name,
149419
149631
  const emptyStmt = factory.createEmptyStatement();
149420
149632
  body = factory.createBlock(
149421
149633
  [emptyStmt],
149422
- /* multiline */
149634
+ /*multiLine*/
149423
149635
  true
149424
149636
  );
149425
149637
  setSnippetElement(emptyStmt, { kind: 0 /* TabStop */, order: 0 });
149426
149638
  } else {
149427
149639
  body = factory.createBlock(
149428
149640
  [],
149429
- /* multiline */
149641
+ /*multiLine*/
149430
149642
  true
149431
149643
  );
149432
149644
  }
@@ -149604,14 +149816,14 @@ function createObjectLiteralMethod(symbol, enclosingDeclaration, sourceFile, pro
149604
149816
  const emptyStmt = factory.createEmptyStatement();
149605
149817
  body = factory.createBlock(
149606
149818
  [emptyStmt],
149607
- /* multiline */
149819
+ /*multiLine*/
149608
149820
  true
149609
149821
  );
149610
149822
  setSnippetElement(emptyStmt, { kind: 0 /* TabStop */, order: 0 });
149611
149823
  } else {
149612
149824
  body = factory.createBlock(
149613
149825
  [],
149614
- /* multiline */
149826
+ /*multiLine*/
149615
149827
  true
149616
149828
  );
149617
149829
  }
@@ -150595,7 +150807,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
150595
150807
  if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) {
150596
150808
  addPropertySymbol(
150597
150809
  symbol,
150598
- /* insertAwait */
150810
+ /*insertAwait*/
150599
150811
  false,
150600
150812
  insertQuestionDot
150601
150813
  );
@@ -150611,7 +150823,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
150611
150823
  if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, promiseType, symbol)) {
150612
150824
  addPropertySymbol(
150613
150825
  symbol,
150614
- /* insertAwait */
150826
+ /*insertAwait*/
150615
150827
  true,
150616
150828
  insertQuestionDot
150617
150829
  );
@@ -151110,7 +151322,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
151110
151322
  objectLikeContainer,
151111
151323
  /*isSuper*/
151112
151324
  false,
151113
- /*writing*/
151325
+ /*isWrite*/
151114
151326
  false,
151115
151327
  typeForObject,
151116
151328
  propertySymbol
@@ -152148,7 +152360,7 @@ function convertStringLiteralCompletions(completion, contextToken, sourceFile, h
152148
152360
  options,
152149
152361
  /*formatContext*/
152150
152362
  void 0,
152151
- /*isTypeOnlyLocation */
152363
+ /*isTypeOnlyLocation*/
152152
152364
  void 0,
152153
152365
  /*propertyAccessToConvert*/
152154
152366
  void 0,
@@ -152413,7 +152625,7 @@ function getStringLiteralCompletionsFromModuleNamesWorker(sourceFile, node, comp
152413
152625
  const scriptPath = sourceFile.path;
152414
152626
  const scriptDirectory = getDirectoryPath(scriptPath);
152415
152627
  const extensionOptions = getExtensionOptions(compilerOptions, 1 /* ModuleSpecifier */, sourceFile, typeChecker, preferences, mode);
152416
- return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker);
152628
+ return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && !compilerOptions.paths && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker);
152417
152629
  }
152418
152630
  function getExtensionOptions(compilerOptions, referenceKind, importingSourceFile, typeChecker, preferences, resolutionMode) {
152419
152631
  return {
@@ -152616,8 +152828,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, c
152616
152828
  const result = createNameAndKindSet();
152617
152829
  const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
152618
152830
  if (baseUrl) {
152619
- const projectDir = compilerOptions.project || host.getCurrentDirectory();
152620
- const absolute = normalizePath(combinePaths(projectDir, baseUrl));
152831
+ const absolute = normalizePath(combinePaths(host.getCurrentDirectory(), baseUrl));
152621
152832
  getCompletionEntriesForDirectoryFragment(
152622
152833
  fragment,
152623
152834
  absolute,
@@ -152629,9 +152840,10 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, c
152629
152840
  void 0,
152630
152841
  result
152631
152842
  );
152632
- if (paths) {
152633
- addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths);
152634
- }
152843
+ }
152844
+ if (paths) {
152845
+ const absolute = getPathsBasePath(compilerOptions, host);
152846
+ addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths);
152635
152847
  }
152636
152848
  const fragmentDirectory = getFragmentDirectory(fragment);
152637
152849
  for (const ambientName of getAmbientModuleCompletions(fragment, fragmentDirectory, typeChecker)) {
@@ -153058,7 +153270,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, {
153058
153270
  } else if (direct.exportClause.kind === 278 /* NamespaceExport */) {
153059
153271
  addIndirectUser(
153060
153272
  getSourceFileLikeForImportDeclaration(direct),
153061
- /** addTransitiveDependencies */
153273
+ /*addTransitiveDependencies*/
153062
153274
  true
153063
153275
  );
153064
153276
  } else {
@@ -153069,7 +153281,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, {
153069
153281
  if (!isAvailableThroughGlobal && direct.isTypeOf && !direct.qualifier && isExported2(direct)) {
153070
153282
  addIndirectUser(
153071
153283
  direct.getSourceFile(),
153072
- /** addTransitiveDependencies */
153284
+ /*addTransitiveDependencies*/
153073
153285
  true
153074
153286
  );
153075
153287
  }
@@ -153088,7 +153300,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, {
153088
153300
  /** addTransitiveDependencies */
153089
153301
  !!isExported2(
153090
153302
  importCall,
153091
- /** stopAtAmbientModule */
153303
+ /*stopAtAmbientModule*/
153092
153304
  true
153093
153305
  )
153094
153306
  );
@@ -153110,7 +153322,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, {
153110
153322
  if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) {
153111
153323
  addIndirectUser(
153112
153324
  sourceFileLike,
153113
- /** addTransitiveDependencies */
153325
+ /*addTransitiveDependencies*/
153114
153326
  true
153115
153327
  );
153116
153328
  } else {
@@ -153136,7 +153348,7 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, {
153136
153348
  if (!isImportTypeNode(directImport)) {
153137
153349
  addIndirectUser(
153138
153350
  getSourceFileLikeForImportDeclaration(directImport),
153139
- /** addTransitiveDependencies */
153351
+ /*addTransitiveDependencies*/
153140
153352
  true
153141
153353
  );
153142
153354
  }
@@ -153267,10 +153479,10 @@ function findModuleReferences(program, sourceFiles, searchModuleSymbol) {
153267
153479
  }
153268
153480
  }
153269
153481
  }
153270
- forEachImport(referencingFile, (_importDecl, moduleSpecifier) => {
153482
+ forEachImport(referencingFile, (importDecl, moduleSpecifier) => {
153271
153483
  const moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);
153272
153484
  if (moduleSymbol === searchModuleSymbol) {
153273
- refs.push({ kind: "import", literal: moduleSpecifier });
153485
+ refs.push(nodeIsSynthesized(importDecl) ? { kind: "implicit", literal: moduleSpecifier, referencingFile } : { kind: "import", literal: moduleSpecifier });
153274
153486
  }
153275
153487
  });
153276
153488
  }
@@ -154170,6 +154382,12 @@ var Core;
154170
154382
  }
154171
154383
  }
154172
154384
  return nodeEntry(reference.literal);
154385
+ } else if (reference.kind === "implicit") {
154386
+ const range = reference.literal.text !== externalHelpersModuleNameText && forEachChildRecursively(
154387
+ reference.referencingFile,
154388
+ (n) => !(n.transformFlags & 2 /* ContainsJsx */) ? "skip" : isJsxElement(n) || isJsxSelfClosingElement(n) || isJsxFragment(n) ? n : void 0
154389
+ ) || reference.referencingFile.statements[0] || reference.referencingFile;
154390
+ return nodeEntry(range);
154173
154391
  } else {
154174
154392
  return {
154175
154393
  kind: 0 /* Span */,
@@ -155063,7 +155281,7 @@ var Core;
155063
155281
  function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) {
155064
155282
  let searchSpaceNode = getThisContainer(
155065
155283
  thisOrSuperKeyword,
155066
- /* includeArrowFunctions */
155284
+ /*includeArrowFunctions*/
155067
155285
  false,
155068
155286
  /*includeClassComputedPropertyName*/
155069
155287
  false
@@ -155103,7 +155321,7 @@ var Core;
155103
155321
  }
155104
155322
  const container = getThisContainer(
155105
155323
  node,
155106
- /* includeArrowFunctions */
155324
+ /*includeArrowFunctions*/
155107
155325
  false,
155108
155326
  /*includeClassComputedPropertyName*/
155109
155327
  false
@@ -157768,7 +157986,7 @@ function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportNam
157768
157986
  changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) });
157769
157987
  const quotePreference = isStringLiteral(clause.parent.moduleSpecifier) ? quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1 /* Double */;
157770
157988
  const newImport = makeImport(
157771
- /*default*/
157989
+ /*defaultImport*/
157772
157990
  void 0,
157773
157991
  [makeImportSpecifier2(exportName, ref.text)],
157774
157992
  clause.parent.moduleSpecifier,
@@ -158191,7 +158409,7 @@ function collectTypeParameters(checker, selection, enclosingNode, file) {
158191
158409
  typeName.text,
158192
158410
  typeName,
158193
158411
  262144 /* TypeParameter */,
158194
- /* excludeGlobals */
158412
+ /*excludeGlobals*/
158195
158413
  true
158196
158414
  );
158197
158415
  for (const decl of (symbol == null ? void 0 : symbol.declarations) || emptyArray) {
@@ -158222,7 +158440,7 @@ function collectTypeParameters(checker, selection, enclosingNode, file) {
158222
158440
  node.exprName.text,
158223
158441
  node.exprName,
158224
158442
  111551 /* Value */,
158225
- /* excludeGlobals */
158443
+ /*excludeGlobals*/
158226
158444
  false
158227
158445
  );
158228
158446
  if ((symbol == null ? void 0 : symbol.valueDeclaration) && rangeContainsSkipTrivia(enclosingNode, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, symbol.valueDeclaration, file)) {
@@ -158243,7 +158461,7 @@ function collectTypeParameters(checker, selection, enclosingNode, file) {
158243
158461
  function doTypeAliasChange(changes, file, name, info) {
158244
158462
  const { enclosingNode, selection, typeParameters } = info;
158245
158463
  const newTypeNode = factory.createTypeAliasDeclaration(
158246
- /* modifiers */
158464
+ /*modifiers*/
158247
158465
  void 0,
158248
158466
  name,
158249
158467
  typeParameters.map((id) => factory.updateTypeParameterDeclaration(
@@ -158251,7 +158469,7 @@ function doTypeAliasChange(changes, file, name, info) {
158251
158469
  id.modifiers,
158252
158470
  id.name,
158253
158471
  id.constraint,
158254
- /* defaultType */
158472
+ /*defaultType*/
158255
158473
  void 0
158256
158474
  )),
158257
158475
  selection
@@ -158260,12 +158478,12 @@ function doTypeAliasChange(changes, file, name, info) {
158260
158478
  file,
158261
158479
  enclosingNode,
158262
158480
  ignoreSourceNewlines(newTypeNode),
158263
- /* blankLineBetween */
158481
+ /*blankLineBetween*/
158264
158482
  true
158265
158483
  );
158266
158484
  changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
158267
158485
  id.name,
158268
- /* typeArguments */
158486
+ /*typeArguments*/
158269
158487
  void 0
158270
158488
  ))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });
158271
158489
  }
@@ -158273,11 +158491,11 @@ function doInterfaceChange(changes, file, name, info) {
158273
158491
  var _a2;
158274
158492
  const { enclosingNode, selection, typeParameters, typeElements } = info;
158275
158493
  const newTypeNode = factory.createInterfaceDeclaration(
158276
- /* modifiers */
158494
+ /*modifiers*/
158277
158495
  void 0,
158278
158496
  name,
158279
158497
  typeParameters,
158280
- /* heritageClauses */
158498
+ /*heritageClauses*/
158281
158499
  void 0,
158282
158500
  typeElements
158283
158501
  );
@@ -158286,12 +158504,12 @@ function doInterfaceChange(changes, file, name, info) {
158286
158504
  file,
158287
158505
  enclosingNode,
158288
158506
  ignoreSourceNewlines(newTypeNode),
158289
- /* blankLineBetween */
158507
+ /*blankLineBetween*/
158290
158508
  true
158291
158509
  );
158292
158510
  changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
158293
158511
  id.name,
158294
- /* typeArguments */
158512
+ /*typeArguments*/
158295
158513
  void 0
158296
158514
  ))), { leadingTriviaOption: ts_textChanges_exports.LeadingTriviaOption.Exclude, trailingTriviaOption: ts_textChanges_exports.TrailingTriviaOption.ExcludeWhitespace });
158297
158515
  }
@@ -158320,7 +158538,7 @@ function doTypedefChange(changes, context, file, name, info) {
158320
158538
  templates.push(template);
158321
158539
  });
158322
158540
  const jsDoc = factory.createJSDocComment(
158323
- /* comment */
158541
+ /*comment*/
158324
158542
  void 0,
158325
158543
  factory.createNodeArray(concatenate(templates, [node]))
158326
158544
  );
@@ -158335,13 +158553,13 @@ function doTypedefChange(changes, context, file, name, info) {
158335
158553
  file,
158336
158554
  enclosingNode,
158337
158555
  jsDoc,
158338
- /* blankLineBetween */
158556
+ /*blankLineBetween*/
158339
158557
  true
158340
158558
  );
158341
158559
  }
158342
158560
  changes.replaceNode(file, selection, factory.createTypeReferenceNode(name, typeParameters.map((id) => factory.createTypeReferenceNode(
158343
158561
  id.name,
158344
- /* typeArguments */
158562
+ /*typeArguments*/
158345
158563
  void 0
158346
158564
  ))));
158347
158565
  }
@@ -158457,7 +158675,7 @@ function isPureImport(node) {
158457
158675
  case 241 /* VariableStatement */:
158458
158676
  return node.declarationList.declarations.every((d) => !!d.initializer && isRequireCall(
158459
158677
  d.initializer,
158460
- /*checkArgumentIsStringLiteralLike*/
158678
+ /*requireStringLiteralLikeArgument*/
158461
158679
  true
158462
158680
  ));
158463
158681
  default:
@@ -158647,7 +158865,7 @@ function forEachImportInStatement(statement, cb) {
158647
158865
  for (const decl of statement.declarationList.declarations) {
158648
158866
  if (decl.initializer && isRequireCall(
158649
158867
  decl.initializer,
158650
- /*checkArgumentIsStringLiteralLike*/
158868
+ /*requireStringLiteralLikeArgument*/
158651
158869
  true
158652
158870
  )) {
158653
158871
  cb(decl);
@@ -158939,7 +159157,7 @@ function isInImport(decl) {
158939
159157
  function isVariableDeclarationInImport(decl) {
158940
159158
  return isSourceFile(decl.parent.parent.parent) && !!decl.initializer && isRequireCall(
158941
159159
  decl.initializer,
158942
- /*checkArgumentIsStringLiteralLike*/
159160
+ /*requireStringLiteralLikeArgument*/
158943
159161
  true
158944
159162
  );
158945
159163
  }
@@ -159446,7 +159664,7 @@ function getRefactorEditsToRemoveFunctionBraces(context, actionName2) {
159446
159664
  const returnStatement2 = factory.createReturnStatement(expression);
159447
159665
  body = factory.createBlock(
159448
159666
  [returnStatement2],
159449
- /* multiLine */
159667
+ /*multiLine*/
159450
159668
  true
159451
159669
  );
159452
159670
  copyLeadingComments(
@@ -159454,7 +159672,7 @@ function getRefactorEditsToRemoveFunctionBraces(context, actionName2) {
159454
159672
  returnStatement2,
159455
159673
  file,
159456
159674
  3 /* MultiLineCommentTrivia */,
159457
- /* hasTrailingNewLine */
159675
+ /*hasTrailingNewLine*/
159458
159676
  true
159459
159677
  );
159460
159678
  } else if (actionName2 === removeBracesAction.name && returnStatement) {
@@ -159465,7 +159683,7 @@ function getRefactorEditsToRemoveFunctionBraces(context, actionName2) {
159465
159683
  body,
159466
159684
  file,
159467
159685
  3 /* MultiLineCommentTrivia */,
159468
- /* hasTrailingNewLine */
159686
+ /*hasTrailingNewLine*/
159469
159687
  false
159470
159688
  );
159471
159689
  copyLeadingComments(
@@ -159473,7 +159691,7 @@ function getRefactorEditsToRemoveFunctionBraces(context, actionName2) {
159473
159691
  body,
159474
159692
  file,
159475
159693
  3 /* MultiLineCommentTrivia */,
159476
- /* hasTrailingNewLine */
159694
+ /*hasTrailingNewLine*/
159477
159695
  false
159478
159696
  );
159479
159697
  copyTrailingComments(
@@ -159481,7 +159699,7 @@ function getRefactorEditsToRemoveFunctionBraces(context, actionName2) {
159481
159699
  body,
159482
159700
  file,
159483
159701
  3 /* MultiLineCommentTrivia */,
159484
- /* hasTrailingNewLine */
159702
+ /*hasTrailingNewLine*/
159485
159703
  false
159486
159704
  );
159487
159705
  } else {
@@ -159666,14 +159884,14 @@ function convertToBlock(body) {
159666
159884
  body,
159667
159885
  returnStatement,
159668
159886
  file,
159669
- /* commentKind */
159887
+ /*commentKind*/
159670
159888
  void 0,
159671
- /* hasTrailingNewLine */
159889
+ /*hasTrailingNewLine*/
159672
159890
  true
159673
159891
  );
159674
159892
  return factory.createBlock(
159675
159893
  [returnStatement],
159676
- /* multiLine */
159894
+ /*multiLine*/
159677
159895
  true
159678
159896
  );
159679
159897
  } else {
@@ -159696,7 +159914,7 @@ function getEditInfoForConvertToAnonymousFunction(context, func) {
159696
159914
  const newNode = factory.createFunctionExpression(
159697
159915
  func.modifiers,
159698
159916
  func.asteriskToken,
159699
- /* name */
159917
+ /*name*/
159700
159918
  void 0,
159701
159919
  func.typeParameters,
159702
159920
  func.parameters,
@@ -160403,7 +160621,7 @@ var copyTrailingOperatorComments = (operators, file) => (index, targetNode) => {
160403
160621
  targetNode,
160404
160622
  file,
160405
160623
  3 /* MultiLineCommentTrivia */,
160406
- /* hasTrailingNewLine */
160624
+ /*hasTrailingNewLine*/
160407
160625
  false
160408
160626
  );
160409
160627
  }
@@ -160416,7 +160634,7 @@ var copyCommentFromMultiNode = (nodes, file, copyOperatorComments) => (indexes,
160416
160634
  targetNode,
160417
160635
  file,
160418
160636
  3 /* MultiLineCommentTrivia */,
160419
- /* hasTrailingNewLine */
160637
+ /*hasTrailingNewLine*/
160420
160638
  false
160421
160639
  );
160422
160640
  copyOperatorComments(index, targetNode);
@@ -160491,7 +160709,7 @@ function copyExpressionComments(node) {
160491
160709
  node.expression,
160492
160710
  file,
160493
160711
  3 /* MultiLineCommentTrivia */,
160494
- /* hasTrailingNewLine */
160712
+ /*hasTrailingNewLine*/
160495
160713
  false
160496
160714
  );
160497
160715
  copyTrailingAsLeadingComments(
@@ -160499,7 +160717,7 @@ function copyExpressionComments(node) {
160499
160717
  node.expression,
160500
160718
  file,
160501
160719
  3 /* MultiLineCommentTrivia */,
160502
- /* hasTrailingNewLine */
160720
+ /*hasTrailingNewLine*/
160503
160721
  false
160504
160722
  );
160505
160723
  }
@@ -161059,7 +161277,7 @@ function getRangeToExtract2(sourceFile, span, invoked = true) {
161059
161277
  if (rangeFacts & 8 /* UsesThis */) {
161060
161278
  const container = getThisContainer(
161061
161279
  nodeToCheck,
161062
- /** includeArrowFunctions */
161280
+ /*includeArrowFunctions*/
161063
161281
  false,
161064
161282
  /*includeClassComputedPropertyName*/
161065
161283
  false
@@ -161630,7 +161848,7 @@ function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParame
161630
161848
  edits,
161631
161849
  renameFilename,
161632
161850
  functionNameText,
161633
- /*isDeclaredBeforeUse*/
161851
+ /*preferLastLocation*/
161634
161852
  false
161635
161853
  );
161636
161854
  return { renameFilename, renameLocation, edits };
@@ -161673,7 +161891,7 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont
161673
161891
  const newVariable = factory.createPropertyDeclaration(
161674
161892
  modifiers,
161675
161893
  localNameText,
161676
- /*questionToken*/
161894
+ /*questionOrExclamationToken*/
161677
161895
  void 0,
161678
161896
  variableType,
161679
161897
  initializer
@@ -161763,7 +161981,7 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont
161763
161981
  edits,
161764
161982
  renameFilename,
161765
161983
  localNameText,
161766
- /*isDeclaredBeforeUse*/
161984
+ /*preferLastLocation*/
161767
161985
  true
161768
161986
  );
161769
161987
  return { renameFilename, renameLocation, edits };
@@ -161817,12 +162035,12 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont
161817
162035
  if (!firstParameter || isIdentifier(firstParameter.name) && firstParameter.name.escapedText !== "this") {
161818
162036
  const thisType = checker.getTypeOfSymbolAtLocation(functionSignature.thisParameter, node);
161819
162037
  parameters.splice(0, 0, factory.createParameterDeclaration(
161820
- /* modifiers */
162038
+ /*modifiers*/
161821
162039
  void 0,
161822
- /* dotDotDotToken */
162040
+ /*dotDotDotToken*/
161823
162041
  void 0,
161824
162042
  "this",
161825
- /* questionToken */
162043
+ /*questionToken*/
161826
162044
  void 0,
161827
162045
  checker.typeToTypeNode(thisType, scope, 1 /* NoTruncation */)
161828
162046
  ));
@@ -161884,7 +162102,7 @@ function transformFunctionBody(body, exposedVariableDeclarations, writes, substi
161884
162102
  if (isBlock(body) && !hasWritesOrVariableDeclarations && substitutions.size === 0) {
161885
162103
  return { body: factory.createBlock(
161886
162104
  body.statements,
161887
- /*multLine*/
162105
+ /*multiLine*/
161888
162106
  true
161889
162107
  ), returnValueProperty: void 0 };
161890
162108
  }
@@ -165291,7 +165509,7 @@ var deleteDeclaration;
165291
165509
  const end = skipTrivia(
165292
165510
  sourceFile.text,
165293
165511
  nextToken.end,
165294
- /*stopAfterLineBreaks*/
165512
+ /*stopAfterLineBreak*/
165295
165513
  false,
165296
165514
  /*stopAtComments*/
165297
165515
  true
@@ -165636,7 +165854,7 @@ function getFormattingScanner(text, languageVariant, startPos, endPos, cb) {
165636
165854
  if (token === 19 /* CloseBraceToken */) {
165637
165855
  lastScanAction = 3 /* RescanTemplateToken */;
165638
165856
  return scanner2.reScanTemplateToken(
165639
- /* isTaggedTemplate */
165857
+ /*isTaggedTemplate*/
165640
165858
  false
165641
165859
  );
165642
165860
  }
@@ -165647,7 +165865,7 @@ function getFormattingScanner(text, languageVariant, startPos, endPos, cb) {
165647
165865
  case 5 /* RescanJsxText */:
165648
165866
  lastScanAction = 5 /* RescanJsxText */;
165649
165867
  return scanner2.reScanJsxToken(
165650
- /* allowMultilineJsxText */
165868
+ /*allowMultilineJsxText*/
165651
165869
  false
165652
165870
  );
165653
165871
  case 6 /* RescanJsxAttributeValue */:
@@ -171302,7 +171520,7 @@ var ScriptInfo = class {
171302
171520
  this,
171303
171521
  /*fileExists*/
171304
171522
  false,
171305
- /*detachFromProjects*/
171523
+ /*detachFromProject*/
171306
171524
  false
171307
171525
  );
171308
171526
  p.onFileAddedOrRemoved(this.isSymlink());
@@ -173368,7 +173586,7 @@ var _AutoImportProviderProject = class extends Project3 {
173368
173586
  packageJson,
173369
173587
  program,
173370
173588
  symlinkCache,
173371
- /*allowJs*/
173589
+ /*resolveJs*/
173372
173590
  true
173373
173591
  );
173374
173592
  rootNames = concatenate(rootNames, entrypoints);
@@ -179445,7 +179663,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
179445
179663
  tags: this.mapJSDocTagInfo(
179446
179664
  quickInfo.tags,
179447
179665
  project,
179448
- /*useDisplayParts*/
179666
+ /*richResponse*/
179449
179667
  false
179450
179668
  )
179451
179669
  };
@@ -179842,7 +180060,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
179842
180060
  const projectItems = project.getLanguageService().getNavigateToItems(
179843
180061
  searchValue,
179844
180062
  maxResultCount,
179845
- /*filename*/
180063
+ /*fileName*/
179846
180064
  void 0,
179847
180065
  /*excludeDts*/
179848
180066
  project.isNonTsProject()