@typescript-deploys/pr-build 5.2.0-pr-55004-3 → 5.2.0-pr-54935-17

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.20230713`;
21
+ var version = `${versionMajorMinor}.0-insiders.20230718`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -15525,7 +15525,7 @@ function isPrototypeAccess(node) {
15525
15525
  return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype";
15526
15526
  }
15527
15527
  function isRightSideOfQualifiedNameOrPropertyAccess(node) {
15528
- return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node;
15528
+ return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node;
15529
15529
  }
15530
15530
  function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(node) {
15531
15531
  return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node;
@@ -23887,7 +23887,7 @@ var addDisposableResourceHelper = {
23887
23887
  text: `
23888
23888
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
23889
23889
  if (value !== null && value !== void 0) {
23890
- if (typeof value !== "object") throw new TypeError("Object expected.");
23890
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
23891
23891
  var dispose;
23892
23892
  if (async) {
23893
23893
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -27818,9 +27818,6 @@ var Parser;
27818
27818
  break;
27819
27819
  }
27820
27820
  parseExpected(28 /* CommaToken */, getExpectedCommaDiagnostic(kind));
27821
- if (!(contextFlags & 134217728 /* JsonFile */) && token() === 19 /* OpenBraceToken */) {
27822
- break;
27823
- }
27824
27821
  if (considerSemicolonAsDelimiter && token() === 27 /* SemicolonToken */ && !scanner.hasPrecedingLineBreak()) {
27825
27822
  nextToken();
27826
27823
  }
@@ -48187,7 +48184,7 @@ function createTypeChecker(host) {
48187
48184
  return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
48188
48185
  }
48189
48186
  function addPropertyToElementList(propertySymbol, context, typeElements) {
48190
- var _a;
48187
+ var _a, _b;
48191
48188
  const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
48192
48189
  const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
48193
48190
  const saveEnclosingDeclaration = context.enclosingDeclaration;
@@ -48237,17 +48234,57 @@ function createTypeChecker(host) {
48237
48234
  context.reverseMappedStack.pop();
48238
48235
  }
48239
48236
  }
48240
- const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
48241
- if (modifiers) {
48242
- context.approximateLength += 9;
48237
+ if (propertySymbol.flags & 98304 /* Accessor */) {
48238
+ if (propertySymbol.flags & 32768 /* GetAccessor */) {
48239
+ const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
48240
+ const getAccessorSignature = factory.createGetAccessorDeclaration(
48241
+ /*modifiers*/
48242
+ void 0,
48243
+ propertyName,
48244
+ [],
48245
+ propertyTypeNode,
48246
+ /*body*/
48247
+ void 0
48248
+ );
48249
+ setCommentRange(getAccessorSignature, getAccessorDecl);
48250
+ typeElements.push(getAccessorSignature);
48251
+ }
48252
+ if (propertySymbol.flags & 65536 /* SetAccessor */) {
48253
+ const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
48254
+ const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
48255
+ const setAccessorSignature = factory.createSetAccessorDeclaration(
48256
+ /*modifiers*/
48257
+ void 0,
48258
+ propertyName,
48259
+ [factory.createParameterDeclaration(
48260
+ /*modifiers*/
48261
+ void 0,
48262
+ /*dotDotDotToken*/
48263
+ void 0,
48264
+ parameterName,
48265
+ /*questionToken*/
48266
+ void 0,
48267
+ propertyTypeNode
48268
+ )],
48269
+ /*body*/
48270
+ void 0
48271
+ );
48272
+ setCommentRange(setAccessorSignature, setAccessorDecl);
48273
+ typeElements.push(setAccessorSignature);
48274
+ }
48275
+ } else {
48276
+ const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
48277
+ if (modifiers) {
48278
+ context.approximateLength += 9;
48279
+ }
48280
+ const propertySignature = factory.createPropertySignature(
48281
+ modifiers,
48282
+ propertyName,
48283
+ optionalToken,
48284
+ propertyTypeNode
48285
+ );
48286
+ typeElements.push(preserveCommentsOn(propertySignature));
48243
48287
  }
48244
- const propertySignature = factory.createPropertySignature(
48245
- modifiers,
48246
- propertyName,
48247
- optionalToken,
48248
- propertyTypeNode
48249
- );
48250
- typeElements.push(preserveCommentsOn(propertySignature));
48251
48288
  function preserveCommentsOn(node) {
48252
48289
  var _a2;
48253
48290
  if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
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.20230713`;
2330
+ var version = `${versionMajorMinor}.0-insiders.20230718`;
2331
2331
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2332
2332
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2333
2333
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -19513,7 +19513,7 @@ function isPrototypeAccess(node) {
19513
19513
  return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype";
19514
19514
  }
19515
19515
  function isRightSideOfQualifiedNameOrPropertyAccess(node) {
19516
- return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node;
19516
+ return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node;
19517
19517
  }
19518
19518
  function isRightSideOfAccessExpression(node) {
19519
19519
  return isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node;
@@ -28151,7 +28151,7 @@ var addDisposableResourceHelper = {
28151
28151
  text: `
28152
28152
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
28153
28153
  if (value !== null && value !== void 0) {
28154
- if (typeof value !== "object") throw new TypeError("Object expected.");
28154
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
28155
28155
  var dispose;
28156
28156
  if (async) {
28157
28157
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -32216,9 +32216,6 @@ var Parser;
32216
32216
  break;
32217
32217
  }
32218
32218
  parseExpected(28 /* CommaToken */, getExpectedCommaDiagnostic(kind));
32219
- if (!(contextFlags & 134217728 /* JsonFile */) && token() === 19 /* OpenBraceToken */) {
32220
- break;
32221
- }
32222
32219
  if (considerSemicolonAsDelimiter && token() === 27 /* SemicolonToken */ && !scanner2.hasPrecedingLineBreak()) {
32223
32220
  nextToken();
32224
32221
  }
@@ -52894,7 +52891,7 @@ function createTypeChecker(host) {
52894
52891
  return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
52895
52892
  }
52896
52893
  function addPropertyToElementList(propertySymbol, context, typeElements) {
52897
- var _a;
52894
+ var _a, _b;
52898
52895
  const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
52899
52896
  const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
52900
52897
  const saveEnclosingDeclaration = context.enclosingDeclaration;
@@ -52944,17 +52941,57 @@ function createTypeChecker(host) {
52944
52941
  context.reverseMappedStack.pop();
52945
52942
  }
52946
52943
  }
52947
- const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
52948
- if (modifiers) {
52949
- context.approximateLength += 9;
52944
+ if (propertySymbol.flags & 98304 /* Accessor */) {
52945
+ if (propertySymbol.flags & 32768 /* GetAccessor */) {
52946
+ const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
52947
+ const getAccessorSignature = factory.createGetAccessorDeclaration(
52948
+ /*modifiers*/
52949
+ void 0,
52950
+ propertyName,
52951
+ [],
52952
+ propertyTypeNode,
52953
+ /*body*/
52954
+ void 0
52955
+ );
52956
+ setCommentRange(getAccessorSignature, getAccessorDecl);
52957
+ typeElements.push(getAccessorSignature);
52958
+ }
52959
+ if (propertySymbol.flags & 65536 /* SetAccessor */) {
52960
+ const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
52961
+ const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
52962
+ const setAccessorSignature = factory.createSetAccessorDeclaration(
52963
+ /*modifiers*/
52964
+ void 0,
52965
+ propertyName,
52966
+ [factory.createParameterDeclaration(
52967
+ /*modifiers*/
52968
+ void 0,
52969
+ /*dotDotDotToken*/
52970
+ void 0,
52971
+ parameterName,
52972
+ /*questionToken*/
52973
+ void 0,
52974
+ propertyTypeNode
52975
+ )],
52976
+ /*body*/
52977
+ void 0
52978
+ );
52979
+ setCommentRange(setAccessorSignature, setAccessorDecl);
52980
+ typeElements.push(setAccessorSignature);
52981
+ }
52982
+ } else {
52983
+ const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
52984
+ if (modifiers) {
52985
+ context.approximateLength += 9;
52986
+ }
52987
+ const propertySignature = factory.createPropertySignature(
52988
+ modifiers,
52989
+ propertyName,
52990
+ optionalToken,
52991
+ propertyTypeNode
52992
+ );
52993
+ typeElements.push(preserveCommentsOn(propertySignature));
52950
52994
  }
52951
- const propertySignature = factory.createPropertySignature(
52952
- modifiers,
52953
- propertyName,
52954
- optionalToken,
52955
- propertyTypeNode
52956
- );
52957
- typeElements.push(preserveCommentsOn(propertySignature));
52958
52995
  function preserveCommentsOn(node) {
52959
52996
  var _a2;
52960
52997
  if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
@@ -138065,7 +138102,7 @@ function getInliningInfo(file, startPosition, tryWithReferenceToken, program) {
138065
138102
  if (!isIdentifier(token)) {
138066
138103
  return void 0;
138067
138104
  }
138068
- if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2)) {
138105
+ if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) {
138069
138106
  if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) {
138070
138107
  return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) };
138071
138108
  }
@@ -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.20230713`;
38
+ version = `${versionMajorMinor}.0-insiders.20230718`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -17214,7 +17214,7 @@ ${lanes.join("\n")}
17214
17214
  return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype";
17215
17215
  }
17216
17216
  function isRightSideOfQualifiedNameOrPropertyAccess(node) {
17217
- return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node;
17217
+ return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node;
17218
17218
  }
17219
17219
  function isRightSideOfAccessExpression(node) {
17220
17220
  return isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node;
@@ -26029,7 +26029,7 @@ ${lanes.join("\n")}
26029
26029
  text: `
26030
26030
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
26031
26031
  if (value !== null && value !== void 0) {
26032
- if (typeof value !== "object") throw new TypeError("Object expected.");
26032
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
26033
26033
  var dispose;
26034
26034
  if (async) {
26035
26035
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -30289,9 +30289,6 @@ ${lanes.join("\n")}
30289
30289
  break;
30290
30290
  }
30291
30291
  parseExpected(28 /* CommaToken */, getExpectedCommaDiagnostic(kind));
30292
- if (!(contextFlags & 134217728 /* JsonFile */) && token() === 19 /* OpenBraceToken */) {
30293
- break;
30294
- }
30295
30292
  if (considerSemicolonAsDelimiter && token() === 27 /* SemicolonToken */ && !scanner2.hasPrecedingLineBreak()) {
30296
30293
  nextToken();
30297
30294
  }
@@ -50661,7 +50658,7 @@ ${lanes.join("\n")}
50661
50658
  return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
50662
50659
  }
50663
50660
  function addPropertyToElementList(propertySymbol, context, typeElements) {
50664
- var _a;
50661
+ var _a, _b;
50665
50662
  const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
50666
50663
  const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
50667
50664
  const saveEnclosingDeclaration = context.enclosingDeclaration;
@@ -50711,17 +50708,57 @@ ${lanes.join("\n")}
50711
50708
  context.reverseMappedStack.pop();
50712
50709
  }
50713
50710
  }
50714
- const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
50715
- if (modifiers) {
50716
- context.approximateLength += 9;
50711
+ if (propertySymbol.flags & 98304 /* Accessor */) {
50712
+ if (propertySymbol.flags & 32768 /* GetAccessor */) {
50713
+ const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
50714
+ const getAccessorSignature = factory.createGetAccessorDeclaration(
50715
+ /*modifiers*/
50716
+ void 0,
50717
+ propertyName,
50718
+ [],
50719
+ propertyTypeNode,
50720
+ /*body*/
50721
+ void 0
50722
+ );
50723
+ setCommentRange(getAccessorSignature, getAccessorDecl);
50724
+ typeElements.push(getAccessorSignature);
50725
+ }
50726
+ if (propertySymbol.flags & 65536 /* SetAccessor */) {
50727
+ const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
50728
+ const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
50729
+ const setAccessorSignature = factory.createSetAccessorDeclaration(
50730
+ /*modifiers*/
50731
+ void 0,
50732
+ propertyName,
50733
+ [factory.createParameterDeclaration(
50734
+ /*modifiers*/
50735
+ void 0,
50736
+ /*dotDotDotToken*/
50737
+ void 0,
50738
+ parameterName,
50739
+ /*questionToken*/
50740
+ void 0,
50741
+ propertyTypeNode
50742
+ )],
50743
+ /*body*/
50744
+ void 0
50745
+ );
50746
+ setCommentRange(setAccessorSignature, setAccessorDecl);
50747
+ typeElements.push(setAccessorSignature);
50748
+ }
50749
+ } else {
50750
+ const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
50751
+ if (modifiers) {
50752
+ context.approximateLength += 9;
50753
+ }
50754
+ const propertySignature = factory.createPropertySignature(
50755
+ modifiers,
50756
+ propertyName,
50757
+ optionalToken,
50758
+ propertyTypeNode
50759
+ );
50760
+ typeElements.push(preserveCommentsOn(propertySignature));
50717
50761
  }
50718
- const propertySignature = factory.createPropertySignature(
50719
- modifiers,
50720
- propertyName,
50721
- optionalToken,
50722
- propertyTypeNode
50723
- );
50724
- typeElements.push(preserveCommentsOn(propertySignature));
50725
50762
  function preserveCommentsOn(node) {
50726
50763
  var _a2;
50727
50764
  if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
@@ -136403,7 +136440,7 @@ ${lanes.join("\n")}
136403
136440
  if (!isIdentifier(token)) {
136404
136441
  return void 0;
136405
136442
  }
136406
- if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2)) {
136443
+ if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) {
136407
136444
  if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) {
136408
136445
  return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) };
136409
136446
  }
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.20230713`;
38
+ version = `${versionMajorMinor}.0-insiders.20230718`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -17214,7 +17214,7 @@ ${lanes.join("\n")}
17214
17214
  return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype";
17215
17215
  }
17216
17216
  function isRightSideOfQualifiedNameOrPropertyAccess(node) {
17217
- return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node;
17217
+ return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node;
17218
17218
  }
17219
17219
  function isRightSideOfAccessExpression(node) {
17220
17220
  return isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node;
@@ -26029,7 +26029,7 @@ ${lanes.join("\n")}
26029
26029
  text: `
26030
26030
  var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
26031
26031
  if (value !== null && value !== void 0) {
26032
- if (typeof value !== "object") throw new TypeError("Object expected.");
26032
+ if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
26033
26033
  var dispose;
26034
26034
  if (async) {
26035
26035
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -30289,9 +30289,6 @@ ${lanes.join("\n")}
30289
30289
  break;
30290
30290
  }
30291
30291
  parseExpected(28 /* CommaToken */, getExpectedCommaDiagnostic(kind));
30292
- if (!(contextFlags & 134217728 /* JsonFile */) && token() === 19 /* OpenBraceToken */) {
30293
- break;
30294
- }
30295
30292
  if (considerSemicolonAsDelimiter && token() === 27 /* SemicolonToken */ && !scanner2.hasPrecedingLineBreak()) {
30296
30293
  nextToken();
30297
30294
  }
@@ -50661,7 +50658,7 @@ ${lanes.join("\n")}
50661
50658
  return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
50662
50659
  }
50663
50660
  function addPropertyToElementList(propertySymbol, context, typeElements) {
50664
- var _a;
50661
+ var _a, _b;
50665
50662
  const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
50666
50663
  const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
50667
50664
  const saveEnclosingDeclaration = context.enclosingDeclaration;
@@ -50711,17 +50708,57 @@ ${lanes.join("\n")}
50711
50708
  context.reverseMappedStack.pop();
50712
50709
  }
50713
50710
  }
50714
- const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
50715
- if (modifiers) {
50716
- context.approximateLength += 9;
50711
+ if (propertySymbol.flags & 98304 /* Accessor */) {
50712
+ if (propertySymbol.flags & 32768 /* GetAccessor */) {
50713
+ const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
50714
+ const getAccessorSignature = factory.createGetAccessorDeclaration(
50715
+ /*modifiers*/
50716
+ void 0,
50717
+ propertyName,
50718
+ [],
50719
+ propertyTypeNode,
50720
+ /*body*/
50721
+ void 0
50722
+ );
50723
+ setCommentRange(getAccessorSignature, getAccessorDecl);
50724
+ typeElements.push(getAccessorSignature);
50725
+ }
50726
+ if (propertySymbol.flags & 65536 /* SetAccessor */) {
50727
+ const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
50728
+ const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
50729
+ const setAccessorSignature = factory.createSetAccessorDeclaration(
50730
+ /*modifiers*/
50731
+ void 0,
50732
+ propertyName,
50733
+ [factory.createParameterDeclaration(
50734
+ /*modifiers*/
50735
+ void 0,
50736
+ /*dotDotDotToken*/
50737
+ void 0,
50738
+ parameterName,
50739
+ /*questionToken*/
50740
+ void 0,
50741
+ propertyTypeNode
50742
+ )],
50743
+ /*body*/
50744
+ void 0
50745
+ );
50746
+ setCommentRange(setAccessorSignature, setAccessorDecl);
50747
+ typeElements.push(setAccessorSignature);
50748
+ }
50749
+ } else {
50750
+ const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
50751
+ if (modifiers) {
50752
+ context.approximateLength += 9;
50753
+ }
50754
+ const propertySignature = factory.createPropertySignature(
50755
+ modifiers,
50756
+ propertyName,
50757
+ optionalToken,
50758
+ propertyTypeNode
50759
+ );
50760
+ typeElements.push(preserveCommentsOn(propertySignature));
50717
50761
  }
50718
- const propertySignature = factory.createPropertySignature(
50719
- modifiers,
50720
- propertyName,
50721
- optionalToken,
50722
- propertyTypeNode
50723
- );
50724
- typeElements.push(preserveCommentsOn(propertySignature));
50725
50762
  function preserveCommentsOn(node) {
50726
50763
  var _a2;
50727
50764
  if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
@@ -136418,7 +136455,7 @@ ${lanes.join("\n")}
136418
136455
  if (!isIdentifier(token)) {
136419
136456
  return void 0;
136420
136457
  }
136421
- if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2)) {
136458
+ if (isInitializedVariable(parent2) && isVariableDeclarationInVariableStatement(parent2) && isIdentifier(parent2.name)) {
136422
136459
  if (((_a = checker.getMergedSymbol(parent2.symbol).declarations) == null ? void 0 : _a.length) !== 1) {
136423
136460
  return { error: getLocaleSpecificMessage(Diagnostics.Variables_with_multiple_declarations_cannot_be_inlined) };
136424
136461
  }
@@ -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.20230713`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230718`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -19725,9 +19725,6 @@ var Parser;
19725
19725
  break;
19726
19726
  }
19727
19727
  parseExpected(28 /* CommaToken */, getExpectedCommaDiagnostic(kind));
19728
- if (!(contextFlags & 134217728 /* JsonFile */) && token() === 19 /* OpenBraceToken */) {
19729
- break;
19730
- }
19731
19728
  if (considerSemicolonAsDelimiter && token() === 27 /* SemicolonToken */ && !scanner.hasPrecedingLineBreak()) {
19732
19729
  nextToken();
19733
19730
  }
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-55004-3",
5
+ "version": "5.2.0-pr-54935-17",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -51,9 +51,9 @@
51
51
  "@types/node": "latest",
52
52
  "@types/source-map-support": "^0.5.6",
53
53
  "@types/which": "^2.0.1",
54
- "@typescript-eslint/eslint-plugin": "^5.33.1",
55
- "@typescript-eslint/parser": "^5.33.1",
56
- "@typescript-eslint/utils": "^5.33.1",
54
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
55
+ "@typescript-eslint/parser": "^6.0.0",
56
+ "@typescript-eslint/utils": "^6.0.0",
57
57
  "azure-devops-node-api": "^12.0.0",
58
58
  "c8": "^7.14.0",
59
59
  "chai": "^4.3.7",
@@ -64,7 +64,6 @@
64
64
  "esbuild": "^0.18.1",
65
65
  "eslint": "^8.22.0",
66
66
  "eslint-formatter-autolinkable-stylish": "^1.2.0",
67
- "eslint-plugin-import": "^2.26.0",
68
67
  "eslint-plugin-local": "^1.0.0",
69
68
  "eslint-plugin-no-null": "^1.0.2",
70
69
  "eslint-plugin-simple-import-sort": "^10.0.0",
@@ -115,5 +114,5 @@
115
114
  "node": "20.1.0",
116
115
  "npm": "8.19.4"
117
116
  },
118
- "gitHead": "c76e5f102e31c130e9f15ba27457912c84d17823"
117
+ "gitHead": "97fed5392059d7b43492184c2a4b7fc2f5b764a8"
119
118
  }