@typescript-deploys/pr-build 5.2.0-pr-52899-20 → 5.2.0-pr-54781-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.2";
21
- var version = `${versionMajorMinor}.0-insiders.20230623`;
21
+ var version = `${versionMajorMinor}.0-insiders.20230626`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -7748,7 +7748,6 @@ var Diagnostics = {
7748
7748
  Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"),
7749
7749
  Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."),
7750
7750
  Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."),
7751
- Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."),
7752
7751
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
7753
7752
  Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
7754
7753
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
@@ -60954,7 +60953,6 @@ function createTypeChecker(host) {
60954
60953
  } else if (targetFlags & 8388608 /* IndexedAccess */) {
60955
60954
  if (sourceFlags & 8388608 /* IndexedAccess */) {
60956
60955
  if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
60957
- instantiateType(source2.objectType, reportUnreliableMapper);
60958
60956
  result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
60959
60957
  }
60960
60958
  if (result2) {
@@ -107537,6 +107535,21 @@ function transformDeclarations(context) {
107537
107535
  const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */));
107538
107536
  return factory2.updateModifiers(statement, modifiers);
107539
107537
  }
107538
+ function updateModuleDeclarationAndKeyword(node, modifiers, name, body) {
107539
+ const updated = factory2.updateModuleDeclaration(node, modifiers, name, body);
107540
+ if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) {
107541
+ return updated;
107542
+ }
107543
+ const fixed = factory2.createModuleDeclaration(
107544
+ updated.modifiers,
107545
+ updated.name,
107546
+ updated.body,
107547
+ updated.flags | 32 /* Namespace */
107548
+ );
107549
+ setOriginalNode(fixed, updated);
107550
+ setTextRange(fixed, updated);
107551
+ return fixed;
107552
+ }
107540
107553
  function transformTopLevelDeclaration(input) {
107541
107554
  if (lateMarkedStatements) {
107542
107555
  while (orderedRemoveItem(lateMarkedStatements, input))
@@ -107724,7 +107737,7 @@ function transformDeclarations(context) {
107724
107737
  needsScopeFixMarker = oldNeedsScopeFix;
107725
107738
  resultHasScopeMarker = oldHasScopeFix;
107726
107739
  const mods = ensureModifiers(input);
107727
- return cleanup(factory2.updateModuleDeclaration(
107740
+ return cleanup(updateModuleDeclarationAndKeyword(
107728
107741
  input,
107729
107742
  mods,
107730
107743
  isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name,
@@ -107738,7 +107751,7 @@ function transformDeclarations(context) {
107738
107751
  const id = getOriginalNodeId(inner);
107739
107752
  const body = lateStatementReplacementMap.get(id);
107740
107753
  lateStatementReplacementMap.delete(id);
107741
- return cleanup(factory2.updateModuleDeclaration(
107754
+ return cleanup(updateModuleDeclarationAndKeyword(
107742
107755
  input,
107743
107756
  mods,
107744
107757
  input.name,
package/lib/tsserver.js CHANGED
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
2327
2327
 
2328
2328
  // src/compiler/corePublic.ts
2329
2329
  var versionMajorMinor = "5.2";
2330
- var version = `${versionMajorMinor}.0-insiders.20230623`;
2330
+ var version = `${versionMajorMinor}.0-insiders.20230626`;
2331
2331
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2332
2332
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2333
2333
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -11269,7 +11269,6 @@ var Diagnostics = {
11269
11269
  Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"),
11270
11270
  Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."),
11271
11271
  Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."),
11272
- Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."),
11273
11272
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
11274
11273
  Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
11275
11274
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
@@ -65630,7 +65629,6 @@ function createTypeChecker(host) {
65630
65629
  } else if (targetFlags & 8388608 /* IndexedAccess */) {
65631
65630
  if (sourceFlags & 8388608 /* IndexedAccess */) {
65632
65631
  if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
65633
- instantiateType(source2.objectType, reportUnreliableMapper);
65634
65632
  result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
65635
65633
  }
65636
65634
  if (result2) {
@@ -112384,6 +112382,21 @@ function transformDeclarations(context) {
112384
112382
  const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */));
112385
112383
  return factory2.updateModifiers(statement, modifiers);
112386
112384
  }
112385
+ function updateModuleDeclarationAndKeyword(node, modifiers, name, body) {
112386
+ const updated = factory2.updateModuleDeclaration(node, modifiers, name, body);
112387
+ if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) {
112388
+ return updated;
112389
+ }
112390
+ const fixed = factory2.createModuleDeclaration(
112391
+ updated.modifiers,
112392
+ updated.name,
112393
+ updated.body,
112394
+ updated.flags | 32 /* Namespace */
112395
+ );
112396
+ setOriginalNode(fixed, updated);
112397
+ setTextRange(fixed, updated);
112398
+ return fixed;
112399
+ }
112387
112400
  function transformTopLevelDeclaration(input) {
112388
112401
  if (lateMarkedStatements) {
112389
112402
  while (orderedRemoveItem(lateMarkedStatements, input))
@@ -112571,7 +112584,7 @@ function transformDeclarations(context) {
112571
112584
  needsScopeFixMarker = oldNeedsScopeFix;
112572
112585
  resultHasScopeMarker = oldHasScopeFix;
112573
112586
  const mods = ensureModifiers(input);
112574
- return cleanup(factory2.updateModuleDeclaration(
112587
+ return cleanup(updateModuleDeclarationAndKeyword(
112575
112588
  input,
112576
112589
  mods,
112577
112590
  isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name,
@@ -112585,7 +112598,7 @@ function transformDeclarations(context) {
112585
112598
  const id = getOriginalNodeId(inner);
112586
112599
  const body = lateStatementReplacementMap.get(id);
112587
112600
  lateStatementReplacementMap.delete(id);
112588
- return cleanup(factory2.updateModuleDeclaration(
112601
+ return cleanup(updateModuleDeclarationAndKeyword(
112589
112602
  input,
112590
112603
  mods,
112591
112604
  input.name,
@@ -156662,7 +156675,6 @@ var CompletionSource = /* @__PURE__ */ ((CompletionSource2) => {
156662
156675
  CompletionSource2["TypeOnlyAlias"] = "TypeOnlyAlias/";
156663
156676
  CompletionSource2["ObjectLiteralMethodSnippet"] = "ObjectLiteralMethodSnippet/";
156664
156677
  CompletionSource2["SwitchCases"] = "SwitchCases/";
156665
- CompletionSource2["ObjectLiteralMemberWithComma"] = "ObjectLiteralMemberWithComma/";
156666
156678
  return CompletionSource2;
156667
156679
  })(CompletionSource || {});
156668
156680
  var SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {
@@ -157541,7 +157553,6 @@ function createCompletionEntryForLiteral(sourceFile, preferences, literal) {
157541
157553
  return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* string */, kindModifiers: "" /* none */, sortText: SortText.LocationPriority };
157542
157554
  }
157543
157555
  function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) {
157544
- var _a, _b;
157545
157556
  let insertText;
157546
157557
  let filterText;
157547
157558
  let replacementSpan = getReplacementSpanForContextToken(replacementToken);
@@ -157600,10 +157611,6 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken,
157600
157611
  if ((origin == null ? void 0 : origin.kind) === 64 /* TypeOnlyAlias */) {
157601
157612
  hasAction = true;
157602
157613
  }
157603
- if (completionKind === 0 /* ObjectPropertyDeclaration */ && contextToken && ((_a = findPrecedingToken(contextToken.pos, sourceFile, contextToken)) == null ? void 0 : _a.kind) !== 28 /* CommaToken */ && (isMethodDeclaration(contextToken.parent.parent) || isSpreadAssignment(contextToken.parent) || ((_b = findAncestor(contextToken.parent, (node) => isPropertyAssignment(node))) == null ? void 0 : _b.getLastToken()) === contextToken || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(contextToken.getSourceFile(), contextToken.getEnd()).line !== getLineAndCharacterOfPosition(contextToken.getSourceFile(), position).line)) {
157604
- source = "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */;
157605
- hasAction = true;
157606
- }
157607
157614
  if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) {
157608
157615
  let importAdder;
157609
157616
  const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext);
@@ -158334,7 +158341,7 @@ function getSymbolCompletionFromEntryId(program, log, sourceFile, position, entr
158334
158341
  return firstDefined(symbols, (symbol, index) => {
158335
158342
  const origin = symbolToOriginInfoMap[index];
158336
158343
  const info = getCompletionEntryDisplayNameForSymbol(symbol, getEmitScriptTarget(compilerOptions), origin, completionKind, completionData.isJsxIdentifierExpected);
158337
- return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source || entryId.source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0;
158344
+ return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0;
158338
158345
  }) || { type: "none" };
158339
158346
  }
158340
158347
  function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) {
@@ -158479,21 +158486,6 @@ function getCompletionEntryCodeActionsAndSourceDisplay(name, location, contextTo
158479
158486
  Debug.assertIsDefined(codeAction2, "Expected to have a code action for promoting type-only alias");
158480
158487
  return { codeActions: [codeAction2], sourceDisplay: void 0 };
158481
158488
  }
158482
- if (source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */ && contextToken) {
158483
- const changes = ts_textChanges_exports.ChangeTracker.with(
158484
- { host, formatContext, preferences },
158485
- (tracker) => tracker.insertText(sourceFile, contextToken.end, ",")
158486
- );
158487
- if (changes) {
158488
- return {
158489
- sourceDisplay: void 0,
158490
- codeActions: [{
158491
- changes,
158492
- description: diagnosticToString([Diagnostics.Add_missing_comma_for_object_member_completion_0, name])
158493
- }]
158494
- };
158495
- }
158496
- }
158497
158489
  if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) {
158498
158490
  return { codeActions: void 0, sourceDisplay: void 0 };
158499
158491
  }
@@ -159400,7 +159392,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
159400
159392
  }
159401
159393
  function tryGetObjectLikeCompletionSymbols() {
159402
159394
  const symbolsStartIndex = symbols.length;
159403
- const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position);
159395
+ const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken);
159404
159396
  if (!objectLikeContainer)
159405
159397
  return 0 /* Continue */;
159406
159398
  completionKind = 0 /* ObjectPropertyDeclaration */;
@@ -159886,7 +159878,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
159886
159878
  return node2.getStart(sourceFile) <= position && position <= node2.getEnd();
159887
159879
  }
159888
159880
  }
159889
- function tryGetObjectLikeCompletionContainer(contextToken, position) {
159881
+ function tryGetObjectLikeCompletionContainer(contextToken) {
159890
159882
  if (contextToken) {
159891
159883
  const { parent: parent2 } = contextToken;
159892
159884
  switch (contextToken.kind) {
@@ -159901,26 +159893,7 @@ function tryGetObjectLikeCompletionContainer(contextToken, position) {
159901
159893
  case 134 /* AsyncKeyword */:
159902
159894
  return tryCast(parent2.parent, isObjectLiteralExpression);
159903
159895
  case 80 /* Identifier */:
159904
- if (contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent)) {
159905
- return contextToken.parent.parent;
159906
- } else {
159907
- if (isObjectLiteralExpression(contextToken.parent.parent) && (isSpreadAssignment(contextToken.parent) || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(contextToken.getSourceFile(), contextToken.getEnd()).line !== getLineAndCharacterOfPosition(contextToken.getSourceFile(), position).line)) {
159908
- return contextToken.parent.parent;
159909
- }
159910
- const ancestorNode2 = findAncestor(parent2, (node) => isPropertyAssignment(node));
159911
- if (ancestorNode2 && ancestorNode2.getLastToken() === contextToken && isObjectLiteralExpression(ancestorNode2.parent)) {
159912
- return ancestorNode2.parent;
159913
- }
159914
- }
159915
- break;
159916
- default:
159917
- if (parent2.parent && parent2.parent.parent && isMethodDeclaration(parent2.parent) && isObjectLiteralExpression(parent2.parent.parent)) {
159918
- return parent2.parent.parent;
159919
- }
159920
- const ancestorNode = findAncestor(parent2, (node) => isPropertyAssignment(node));
159921
- if (contextToken.kind !== 59 /* ColonToken */ && ancestorNode && ancestorNode.getLastToken() === contextToken && isObjectLiteralExpression(ancestorNode.parent)) {
159922
- return ancestorNode.parent;
159923
- }
159896
+ return contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent) ? contextToken.parent.parent : void 0;
159924
159897
  }
159925
159898
  }
159926
159899
  return void 0;
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.2";
38
- version = `${versionMajorMinor}.0-insiders.20230623`;
38
+ version = `${versionMajorMinor}.0-insiders.20230626`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -9052,7 +9052,6 @@ ${lanes.join("\n")}
9052
9052
  Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"),
9053
9053
  Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."),
9054
9054
  Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."),
9055
- Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."),
9056
9055
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
9057
9056
  Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
9058
9057
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
@@ -63397,7 +63396,6 @@ ${lanes.join("\n")}
63397
63396
  } else if (targetFlags & 8388608 /* IndexedAccess */) {
63398
63397
  if (sourceFlags & 8388608 /* IndexedAccess */) {
63399
63398
  if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
63400
- instantiateType(source2.objectType, reportUnreliableMapper);
63401
63399
  result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
63402
63400
  }
63403
63401
  if (result2) {
@@ -110461,6 +110459,21 @@ ${lanes.join("\n")}
110461
110459
  const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */));
110462
110460
  return factory2.updateModifiers(statement, modifiers);
110463
110461
  }
110462
+ function updateModuleDeclarationAndKeyword(node, modifiers, name, body) {
110463
+ const updated = factory2.updateModuleDeclaration(node, modifiers, name, body);
110464
+ if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) {
110465
+ return updated;
110466
+ }
110467
+ const fixed = factory2.createModuleDeclaration(
110468
+ updated.modifiers,
110469
+ updated.name,
110470
+ updated.body,
110471
+ updated.flags | 32 /* Namespace */
110472
+ );
110473
+ setOriginalNode(fixed, updated);
110474
+ setTextRange(fixed, updated);
110475
+ return fixed;
110476
+ }
110464
110477
  function transformTopLevelDeclaration(input) {
110465
110478
  if (lateMarkedStatements) {
110466
110479
  while (orderedRemoveItem(lateMarkedStatements, input))
@@ -110648,7 +110661,7 @@ ${lanes.join("\n")}
110648
110661
  needsScopeFixMarker = oldNeedsScopeFix;
110649
110662
  resultHasScopeMarker = oldHasScopeFix;
110650
110663
  const mods = ensureModifiers(input);
110651
- return cleanup(factory2.updateModuleDeclaration(
110664
+ return cleanup(updateModuleDeclarationAndKeyword(
110652
110665
  input,
110653
110666
  mods,
110654
110667
  isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name,
@@ -110662,7 +110675,7 @@ ${lanes.join("\n")}
110662
110675
  const id = getOriginalNodeId(inner);
110663
110676
  const body = lateStatementReplacementMap.get(id);
110664
110677
  lateStatementReplacementMap.delete(id);
110665
- return cleanup(factory2.updateModuleDeclaration(
110678
+ return cleanup(updateModuleDeclarationAndKeyword(
110666
110679
  input,
110667
110680
  mods,
110668
110681
  input.name,
@@ -156773,7 +156786,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
156773
156786
  return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* string */, kindModifiers: "" /* none */, sortText: SortText.LocationPriority };
156774
156787
  }
156775
156788
  function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) {
156776
- var _a, _b;
156777
156789
  let insertText;
156778
156790
  let filterText;
156779
156791
  let replacementSpan = getReplacementSpanForContextToken(replacementToken);
@@ -156832,10 +156844,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
156832
156844
  if ((origin == null ? void 0 : origin.kind) === 64 /* TypeOnlyAlias */) {
156833
156845
  hasAction = true;
156834
156846
  }
156835
- if (completionKind === 0 /* ObjectPropertyDeclaration */ && contextToken && ((_a = findPrecedingToken(contextToken.pos, sourceFile, contextToken)) == null ? void 0 : _a.kind) !== 28 /* CommaToken */ && (isMethodDeclaration(contextToken.parent.parent) || isSpreadAssignment(contextToken.parent) || ((_b = findAncestor(contextToken.parent, (node) => isPropertyAssignment(node))) == null ? void 0 : _b.getLastToken()) === contextToken || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(contextToken.getSourceFile(), contextToken.getEnd()).line !== getLineAndCharacterOfPosition(contextToken.getSourceFile(), position).line)) {
156836
- source = "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */;
156837
- hasAction = true;
156838
- }
156839
156847
  if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) {
156840
156848
  let importAdder;
156841
156849
  const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext);
@@ -157566,7 +157574,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157566
157574
  return firstDefined(symbols, (symbol, index) => {
157567
157575
  const origin = symbolToOriginInfoMap[index];
157568
157576
  const info = getCompletionEntryDisplayNameForSymbol(symbol, getEmitScriptTarget(compilerOptions), origin, completionKind, completionData.isJsxIdentifierExpected);
157569
- return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source || entryId.source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0;
157577
+ return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0;
157570
157578
  }) || { type: "none" };
157571
157579
  }
157572
157580
  function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) {
@@ -157711,21 +157719,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157711
157719
  Debug.assertIsDefined(codeAction2, "Expected to have a code action for promoting type-only alias");
157712
157720
  return { codeActions: [codeAction2], sourceDisplay: void 0 };
157713
157721
  }
157714
- if (source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */ && contextToken) {
157715
- const changes = ts_textChanges_exports.ChangeTracker.with(
157716
- { host, formatContext, preferences },
157717
- (tracker) => tracker.insertText(sourceFile, contextToken.end, ",")
157718
- );
157719
- if (changes) {
157720
- return {
157721
- sourceDisplay: void 0,
157722
- codeActions: [{
157723
- changes,
157724
- description: diagnosticToString([Diagnostics.Add_missing_comma_for_object_member_completion_0, name])
157725
- }]
157726
- };
157727
- }
157728
- }
157729
157722
  if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) {
157730
157723
  return { codeActions: void 0, sourceDisplay: void 0 };
157731
157724
  }
@@ -158623,7 +158616,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158623
158616
  }
158624
158617
  function tryGetObjectLikeCompletionSymbols() {
158625
158618
  const symbolsStartIndex = symbols.length;
158626
- const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position);
158619
+ const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken);
158627
158620
  if (!objectLikeContainer)
158628
158621
  return 0 /* Continue */;
158629
158622
  completionKind = 0 /* ObjectPropertyDeclaration */;
@@ -159109,7 +159102,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159109
159102
  return node2.getStart(sourceFile) <= position && position <= node2.getEnd();
159110
159103
  }
159111
159104
  }
159112
- function tryGetObjectLikeCompletionContainer(contextToken, position) {
159105
+ function tryGetObjectLikeCompletionContainer(contextToken) {
159113
159106
  if (contextToken) {
159114
159107
  const { parent: parent2 } = contextToken;
159115
159108
  switch (contextToken.kind) {
@@ -159124,26 +159117,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159124
159117
  case 134 /* AsyncKeyword */:
159125
159118
  return tryCast(parent2.parent, isObjectLiteralExpression);
159126
159119
  case 80 /* Identifier */:
159127
- if (contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent)) {
159128
- return contextToken.parent.parent;
159129
- } else {
159130
- if (isObjectLiteralExpression(contextToken.parent.parent) && (isSpreadAssignment(contextToken.parent) || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(contextToken.getSourceFile(), contextToken.getEnd()).line !== getLineAndCharacterOfPosition(contextToken.getSourceFile(), position).line)) {
159131
- return contextToken.parent.parent;
159132
- }
159133
- const ancestorNode2 = findAncestor(parent2, (node) => isPropertyAssignment(node));
159134
- if (ancestorNode2 && ancestorNode2.getLastToken() === contextToken && isObjectLiteralExpression(ancestorNode2.parent)) {
159135
- return ancestorNode2.parent;
159136
- }
159137
- }
159138
- break;
159139
- default:
159140
- if (parent2.parent && parent2.parent.parent && isMethodDeclaration(parent2.parent) && isObjectLiteralExpression(parent2.parent.parent)) {
159141
- return parent2.parent.parent;
159142
- }
159143
- const ancestorNode = findAncestor(parent2, (node) => isPropertyAssignment(node));
159144
- if (contextToken.kind !== 59 /* ColonToken */ && ancestorNode && ancestorNode.getLastToken() === contextToken && isObjectLiteralExpression(ancestorNode.parent)) {
159145
- return ancestorNode.parent;
159146
- }
159120
+ return contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent) ? contextToken.parent.parent : void 0;
159147
159121
  }
159148
159122
  }
159149
159123
  return void 0;
@@ -159685,7 +159659,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159685
159659
  CompletionSource2["TypeOnlyAlias"] = "TypeOnlyAlias/";
159686
159660
  CompletionSource2["ObjectLiteralMethodSnippet"] = "ObjectLiteralMethodSnippet/";
159687
159661
  CompletionSource2["SwitchCases"] = "SwitchCases/";
159688
- CompletionSource2["ObjectLiteralMemberWithComma"] = "ObjectLiteralMemberWithComma/";
159689
159662
  return CompletionSource2;
159690
159663
  })(CompletionSource || {});
159691
159664
  SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.2";
38
- version = `${versionMajorMinor}.0-insiders.20230623`;
38
+ version = `${versionMajorMinor}.0-insiders.20230626`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -9052,7 +9052,6 @@ ${lanes.join("\n")}
9052
9052
  Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"),
9053
9053
  Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."),
9054
9054
  Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."),
9055
- Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."),
9056
9055
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
9057
9056
  Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
9058
9057
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
@@ -63397,7 +63396,6 @@ ${lanes.join("\n")}
63397
63396
  } else if (targetFlags & 8388608 /* IndexedAccess */) {
63398
63397
  if (sourceFlags & 8388608 /* IndexedAccess */) {
63399
63398
  if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
63400
- instantiateType(source2.objectType, reportUnreliableMapper);
63401
63399
  result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
63402
63400
  }
63403
63401
  if (result2) {
@@ -110461,6 +110459,21 @@ ${lanes.join("\n")}
110461
110459
  const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (258047 /* All */ ^ 1 /* Export */));
110462
110460
  return factory2.updateModifiers(statement, modifiers);
110463
110461
  }
110462
+ function updateModuleDeclarationAndKeyword(node, modifiers, name, body) {
110463
+ const updated = factory2.updateModuleDeclaration(node, modifiers, name, body);
110464
+ if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) {
110465
+ return updated;
110466
+ }
110467
+ const fixed = factory2.createModuleDeclaration(
110468
+ updated.modifiers,
110469
+ updated.name,
110470
+ updated.body,
110471
+ updated.flags | 32 /* Namespace */
110472
+ );
110473
+ setOriginalNode(fixed, updated);
110474
+ setTextRange(fixed, updated);
110475
+ return fixed;
110476
+ }
110464
110477
  function transformTopLevelDeclaration(input) {
110465
110478
  if (lateMarkedStatements) {
110466
110479
  while (orderedRemoveItem(lateMarkedStatements, input))
@@ -110648,7 +110661,7 @@ ${lanes.join("\n")}
110648
110661
  needsScopeFixMarker = oldNeedsScopeFix;
110649
110662
  resultHasScopeMarker = oldHasScopeFix;
110650
110663
  const mods = ensureModifiers(input);
110651
- return cleanup(factory2.updateModuleDeclaration(
110664
+ return cleanup(updateModuleDeclarationAndKeyword(
110652
110665
  input,
110653
110666
  mods,
110654
110667
  isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name,
@@ -110662,7 +110675,7 @@ ${lanes.join("\n")}
110662
110675
  const id = getOriginalNodeId(inner);
110663
110676
  const body = lateStatementReplacementMap.get(id);
110664
110677
  lateStatementReplacementMap.delete(id);
110665
- return cleanup(factory2.updateModuleDeclaration(
110678
+ return cleanup(updateModuleDeclarationAndKeyword(
110666
110679
  input,
110667
110680
  mods,
110668
110681
  input.name,
@@ -156788,7 +156801,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
156788
156801
  return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* string */, kindModifiers: "" /* none */, sortText: SortText.LocationPriority };
156789
156802
  }
156790
156803
  function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) {
156791
- var _a, _b;
156792
156804
  let insertText;
156793
156805
  let filterText;
156794
156806
  let replacementSpan = getReplacementSpanForContextToken(replacementToken);
@@ -156847,10 +156859,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
156847
156859
  if ((origin == null ? void 0 : origin.kind) === 64 /* TypeOnlyAlias */) {
156848
156860
  hasAction = true;
156849
156861
  }
156850
- if (completionKind === 0 /* ObjectPropertyDeclaration */ && contextToken && ((_a = findPrecedingToken(contextToken.pos, sourceFile, contextToken)) == null ? void 0 : _a.kind) !== 28 /* CommaToken */ && (isMethodDeclaration(contextToken.parent.parent) || isSpreadAssignment(contextToken.parent) || ((_b = findAncestor(contextToken.parent, (node) => isPropertyAssignment(node))) == null ? void 0 : _b.getLastToken()) === contextToken || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(contextToken.getSourceFile(), contextToken.getEnd()).line !== getLineAndCharacterOfPosition(contextToken.getSourceFile(), position).line)) {
156851
- source = "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */;
156852
- hasAction = true;
156853
- }
156854
156862
  if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) {
156855
156863
  let importAdder;
156856
156864
  const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext);
@@ -157581,7 +157589,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157581
157589
  return firstDefined(symbols, (symbol, index) => {
157582
157590
  const origin = symbolToOriginInfoMap[index];
157583
157591
  const info = getCompletionEntryDisplayNameForSymbol(symbol, getEmitScriptTarget(compilerOptions), origin, completionKind, completionData.isJsxIdentifierExpected);
157584
- return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source || entryId.source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0;
157592
+ return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" /* ClassMemberSnippet */ && symbol.flags & 106500 /* ClassMember */ || entryId.source === "ObjectLiteralMethodSnippet/" /* ObjectLiteralMethodSnippet */ && symbol.flags & (4 /* Property */ | 8192 /* Method */) || getSourceFromOrigin(origin) === entryId.source) ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : void 0;
157585
157593
  }) || { type: "none" };
157586
157594
  }
157587
157595
  function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) {
@@ -157726,21 +157734,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157726
157734
  Debug.assertIsDefined(codeAction2, "Expected to have a code action for promoting type-only alias");
157727
157735
  return { codeActions: [codeAction2], sourceDisplay: void 0 };
157728
157736
  }
157729
- if (source === "ObjectLiteralMemberWithComma/" /* ObjectLiteralMemberWithComma */ && contextToken) {
157730
- const changes = ts_textChanges_exports.ChangeTracker.with(
157731
- { host, formatContext, preferences },
157732
- (tracker) => tracker.insertText(sourceFile, contextToken.end, ",")
157733
- );
157734
- if (changes) {
157735
- return {
157736
- sourceDisplay: void 0,
157737
- codeActions: [{
157738
- changes,
157739
- description: diagnosticToString([Diagnostics.Add_missing_comma_for_object_member_completion_0, name])
157740
- }]
157741
- };
157742
- }
157743
- }
157744
157737
  if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) {
157745
157738
  return { codeActions: void 0, sourceDisplay: void 0 };
157746
157739
  }
@@ -158638,7 +158631,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158638
158631
  }
158639
158632
  function tryGetObjectLikeCompletionSymbols() {
158640
158633
  const symbolsStartIndex = symbols.length;
158641
- const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position);
158634
+ const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken);
158642
158635
  if (!objectLikeContainer)
158643
158636
  return 0 /* Continue */;
158644
158637
  completionKind = 0 /* ObjectPropertyDeclaration */;
@@ -159124,7 +159117,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159124
159117
  return node2.getStart(sourceFile) <= position && position <= node2.getEnd();
159125
159118
  }
159126
159119
  }
159127
- function tryGetObjectLikeCompletionContainer(contextToken, position) {
159120
+ function tryGetObjectLikeCompletionContainer(contextToken) {
159128
159121
  if (contextToken) {
159129
159122
  const { parent: parent2 } = contextToken;
159130
159123
  switch (contextToken.kind) {
@@ -159139,26 +159132,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159139
159132
  case 134 /* AsyncKeyword */:
159140
159133
  return tryCast(parent2.parent, isObjectLiteralExpression);
159141
159134
  case 80 /* Identifier */:
159142
- if (contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent)) {
159143
- return contextToken.parent.parent;
159144
- } else {
159145
- if (isObjectLiteralExpression(contextToken.parent.parent) && (isSpreadAssignment(contextToken.parent) || isShorthandPropertyAssignment(contextToken.parent) && getLineAndCharacterOfPosition(contextToken.getSourceFile(), contextToken.getEnd()).line !== getLineAndCharacterOfPosition(contextToken.getSourceFile(), position).line)) {
159146
- return contextToken.parent.parent;
159147
- }
159148
- const ancestorNode2 = findAncestor(parent2, (node) => isPropertyAssignment(node));
159149
- if (ancestorNode2 && ancestorNode2.getLastToken() === contextToken && isObjectLiteralExpression(ancestorNode2.parent)) {
159150
- return ancestorNode2.parent;
159151
- }
159152
- }
159153
- break;
159154
- default:
159155
- if (parent2.parent && parent2.parent.parent && isMethodDeclaration(parent2.parent) && isObjectLiteralExpression(parent2.parent.parent)) {
159156
- return parent2.parent.parent;
159157
- }
159158
- const ancestorNode = findAncestor(parent2, (node) => isPropertyAssignment(node));
159159
- if (contextToken.kind !== 59 /* ColonToken */ && ancestorNode && ancestorNode.getLastToken() === contextToken && isObjectLiteralExpression(ancestorNode.parent)) {
159160
- return ancestorNode.parent;
159161
- }
159135
+ return contextToken.text === "async" && isShorthandPropertyAssignment(contextToken.parent) ? contextToken.parent.parent : void 0;
159162
159136
  }
159163
159137
  }
159164
159138
  return void 0;
@@ -159700,7 +159674,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159700
159674
  CompletionSource2["TypeOnlyAlias"] = "TypeOnlyAlias/";
159701
159675
  CompletionSource2["ObjectLiteralMethodSnippet"] = "ObjectLiteralMethodSnippet/";
159702
159676
  CompletionSource2["SwitchCases"] = "SwitchCases/";
159703
- CompletionSource2["ObjectLiteralMemberWithComma"] = "ObjectLiteralMemberWithComma/";
159704
159677
  return CompletionSource2;
159705
159678
  })(CompletionSource || {});
159706
159679
  SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.2";
57
- var version = `${versionMajorMinor}.0-insiders.20230623`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230626`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -7122,7 +7122,6 @@ var Diagnostics = {
7122
7122
  Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"),
7123
7123
  Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."),
7124
7124
  Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."),
7125
- Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."),
7126
7125
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
7127
7126
  Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
7128
7127
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.2.0-pr-52899-20",
5
+ "version": "5.2.0-pr-54781-9",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "c1175951e647970ae871beecc7dc204a7daeafb1"
118
+ "gitHead": "b62f8859ac8428b17034dbf3a821fb772d84955b"
119
119
  }