typescript 4.9.0-dev.20220822 → 4.9.0-dev.20220823

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
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.9";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20220822";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220823";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -24563,17 +24563,6 @@ var ts;
24563
24563
  || kind === 173;
24564
24564
  }
24565
24565
  ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
24566
- function canHaveDecorators(node) {
24567
- var kind = node.kind;
24568
- return kind === 164
24569
- || kind === 167
24570
- || kind === 169
24571
- || kind === 172
24572
- || kind === 173
24573
- || kind === 226
24574
- || kind === 257;
24575
- }
24576
- ts.canHaveDecorators = canHaveDecorators;
24577
24566
  function canHaveIllegalDecorators(node) {
24578
24567
  var kind = node.kind;
24579
24568
  return kind === 296
@@ -24595,35 +24584,6 @@ var ts;
24595
24584
  || kind === 271;
24596
24585
  }
24597
24586
  ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
24598
- function canHaveModifiers(node) {
24599
- var kind = node.kind;
24600
- return kind === 163
24601
- || kind === 164
24602
- || kind === 166
24603
- || kind === 167
24604
- || kind === 168
24605
- || kind === 169
24606
- || kind === 171
24607
- || kind === 172
24608
- || kind === 173
24609
- || kind === 176
24610
- || kind === 180
24611
- || kind === 213
24612
- || kind === 214
24613
- || kind === 226
24614
- || kind === 237
24615
- || kind === 256
24616
- || kind === 257
24617
- || kind === 258
24618
- || kind === 259
24619
- || kind === 260
24620
- || kind === 261
24621
- || kind === 265
24622
- || kind === 266
24623
- || kind === 271
24624
- || kind === 272;
24625
- }
24626
- ts.canHaveModifiers = canHaveModifiers;
24627
24587
  function canHaveIllegalModifiers(node) {
24628
24588
  var kind = node.kind;
24629
24589
  return kind === 170
@@ -24871,6 +24831,46 @@ var ts;
24871
24831
  return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
24872
24832
  }
24873
24833
  ts.setTextRange = setTextRange;
24834
+ function canHaveModifiers(node) {
24835
+ var kind = node.kind;
24836
+ return kind === 163
24837
+ || kind === 164
24838
+ || kind === 166
24839
+ || kind === 167
24840
+ || kind === 168
24841
+ || kind === 169
24842
+ || kind === 171
24843
+ || kind === 172
24844
+ || kind === 173
24845
+ || kind === 176
24846
+ || kind === 180
24847
+ || kind === 213
24848
+ || kind === 214
24849
+ || kind === 226
24850
+ || kind === 237
24851
+ || kind === 256
24852
+ || kind === 257
24853
+ || kind === 258
24854
+ || kind === 259
24855
+ || kind === 260
24856
+ || kind === 261
24857
+ || kind === 265
24858
+ || kind === 266
24859
+ || kind === 271
24860
+ || kind === 272;
24861
+ }
24862
+ ts.canHaveModifiers = canHaveModifiers;
24863
+ function canHaveDecorators(node) {
24864
+ var kind = node.kind;
24865
+ return kind === 164
24866
+ || kind === 167
24867
+ || kind === 169
24868
+ || kind === 172
24869
+ || kind === 173
24870
+ || kind === 226
24871
+ || kind === 257;
24872
+ }
24873
+ ts.canHaveDecorators = canHaveDecorators;
24874
24874
  })(ts || (ts = {}));
24875
24875
  var ts;
24876
24876
  (function (ts) {
package/lib/tsserver.js CHANGED
@@ -109,7 +109,7 @@ var ts;
109
109
  // The following is baselined as a literal template type without intervention
110
110
  /** The version of the TypeScript compiler release */
111
111
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
112
- ts.version = ts.versionMajorMinor + ".0-dev.20220822";
112
+ ts.version = ts.versionMajorMinor + ".0-dev.20220823";
113
113
  /* @internal */
114
114
  var Comparison;
115
115
  (function (Comparison) {
@@ -130,7 +130,7 @@ var ts;
130
130
  function tryGetNativeMap() {
131
131
  // Internet Explorer's Map doesn't support iteration, so don't use it.
132
132
  var gMap = globals === null || globals === void 0 ? void 0 : globals.Map;
133
- // eslint-disable-next-line no-in-operator
133
+ // eslint-disable-next-line local/no-in-operator
134
134
  var constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined;
135
135
  if (!constructor) {
136
136
  throw new Error("No compatible Map implementation found.");
@@ -144,7 +144,7 @@ var ts;
144
144
  function tryGetNativeSet() {
145
145
  // Internet Explorer's Set doesn't support iteration, so don't use it.
146
146
  var gSet = globals === null || globals === void 0 ? void 0 : globals.Set;
147
- // eslint-disable-next-line no-in-operator
147
+ // eslint-disable-next-line local/no-in-operator
148
148
  var constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined;
149
149
  if (!constructor) {
150
150
  throw new Error("No compatible Set implementation found.");
@@ -2843,7 +2843,7 @@ var ts;
2843
2843
  Debug.formatControlFlowGraph = formatControlFlowGraph;
2844
2844
  var flowNodeProto;
2845
2845
  function attachFlowNodeDebugInfoWorker(flowNode) {
2846
- if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
2846
+ if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line local/no-in-operator
2847
2847
  Object.defineProperties(flowNode, {
2848
2848
  // for use with vscode-js-debug's new customDescriptionGenerator in launch.json
2849
2849
  __tsDebuggerDisplay: {
@@ -2889,7 +2889,7 @@ var ts;
2889
2889
  Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
2890
2890
  var nodeArrayProto;
2891
2891
  function attachNodeArrayDebugInfoWorker(array) {
2892
- if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line no-in-operator
2892
+ if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line local/no-in-operator
2893
2893
  Object.defineProperties(array, {
2894
2894
  __tsDebuggerDisplay: {
2895
2895
  value: function (defaultValue) {
@@ -30544,17 +30544,6 @@ var ts;
30544
30544
  || kind === 173 /* SetAccessor */;
30545
30545
  }
30546
30546
  ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
30547
- function canHaveDecorators(node) {
30548
- var kind = node.kind;
30549
- return kind === 164 /* Parameter */
30550
- || kind === 167 /* PropertyDeclaration */
30551
- || kind === 169 /* MethodDeclaration */
30552
- || kind === 172 /* GetAccessor */
30553
- || kind === 173 /* SetAccessor */
30554
- || kind === 226 /* ClassExpression */
30555
- || kind === 257 /* ClassDeclaration */;
30556
- }
30557
- ts.canHaveDecorators = canHaveDecorators;
30558
30547
  function canHaveIllegalDecorators(node) {
30559
30548
  var kind = node.kind;
30560
30549
  return kind === 296 /* PropertyAssignment */
@@ -30576,35 +30565,6 @@ var ts;
30576
30565
  || kind === 271 /* ExportAssignment */;
30577
30566
  }
30578
30567
  ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
30579
- function canHaveModifiers(node) {
30580
- var kind = node.kind;
30581
- return kind === 163 /* TypeParameter */
30582
- || kind === 164 /* Parameter */
30583
- || kind === 166 /* PropertySignature */
30584
- || kind === 167 /* PropertyDeclaration */
30585
- || kind === 168 /* MethodSignature */
30586
- || kind === 169 /* MethodDeclaration */
30587
- || kind === 171 /* Constructor */
30588
- || kind === 172 /* GetAccessor */
30589
- || kind === 173 /* SetAccessor */
30590
- || kind === 176 /* IndexSignature */
30591
- || kind === 180 /* ConstructorType */
30592
- || kind === 213 /* FunctionExpression */
30593
- || kind === 214 /* ArrowFunction */
30594
- || kind === 226 /* ClassExpression */
30595
- || kind === 237 /* VariableStatement */
30596
- || kind === 256 /* FunctionDeclaration */
30597
- || kind === 257 /* ClassDeclaration */
30598
- || kind === 258 /* InterfaceDeclaration */
30599
- || kind === 259 /* TypeAliasDeclaration */
30600
- || kind === 260 /* EnumDeclaration */
30601
- || kind === 261 /* ModuleDeclaration */
30602
- || kind === 265 /* ImportEqualsDeclaration */
30603
- || kind === 266 /* ImportDeclaration */
30604
- || kind === 271 /* ExportAssignment */
30605
- || kind === 272 /* ExportDeclaration */;
30606
- }
30607
- ts.canHaveModifiers = canHaveModifiers;
30608
30568
  function canHaveIllegalModifiers(node) {
30609
30569
  var kind = node.kind;
30610
30570
  return kind === 170 /* ClassStaticBlockDeclaration */
@@ -30893,6 +30853,46 @@ var ts;
30893
30853
  return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
30894
30854
  }
30895
30855
  ts.setTextRange = setTextRange;
30856
+ function canHaveModifiers(node) {
30857
+ var kind = node.kind;
30858
+ return kind === 163 /* TypeParameter */
30859
+ || kind === 164 /* Parameter */
30860
+ || kind === 166 /* PropertySignature */
30861
+ || kind === 167 /* PropertyDeclaration */
30862
+ || kind === 168 /* MethodSignature */
30863
+ || kind === 169 /* MethodDeclaration */
30864
+ || kind === 171 /* Constructor */
30865
+ || kind === 172 /* GetAccessor */
30866
+ || kind === 173 /* SetAccessor */
30867
+ || kind === 176 /* IndexSignature */
30868
+ || kind === 180 /* ConstructorType */
30869
+ || kind === 213 /* FunctionExpression */
30870
+ || kind === 214 /* ArrowFunction */
30871
+ || kind === 226 /* ClassExpression */
30872
+ || kind === 237 /* VariableStatement */
30873
+ || kind === 256 /* FunctionDeclaration */
30874
+ || kind === 257 /* ClassDeclaration */
30875
+ || kind === 258 /* InterfaceDeclaration */
30876
+ || kind === 259 /* TypeAliasDeclaration */
30877
+ || kind === 260 /* EnumDeclaration */
30878
+ || kind === 261 /* ModuleDeclaration */
30879
+ || kind === 265 /* ImportEqualsDeclaration */
30880
+ || kind === 266 /* ImportDeclaration */
30881
+ || kind === 271 /* ExportAssignment */
30882
+ || kind === 272 /* ExportDeclaration */;
30883
+ }
30884
+ ts.canHaveModifiers = canHaveModifiers;
30885
+ function canHaveDecorators(node) {
30886
+ var kind = node.kind;
30887
+ return kind === 164 /* Parameter */
30888
+ || kind === 167 /* PropertyDeclaration */
30889
+ || kind === 169 /* MethodDeclaration */
30890
+ || kind === 172 /* GetAccessor */
30891
+ || kind === 173 /* SetAccessor */
30892
+ || kind === 226 /* ClassExpression */
30893
+ || kind === 257 /* ClassDeclaration */;
30894
+ }
30895
+ ts.canHaveDecorators = canHaveDecorators;
30896
30896
  })(ts || (ts = {}));
30897
30897
  var ts;
30898
30898
  (function (ts) {
@@ -49729,10 +49729,10 @@ var ts;
49729
49729
  }
49730
49730
  // Issue errors globally
49731
49731
  var file = ts.getSourceFileOfNode(location);
49732
- addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line no-in-operator
49732
+ addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line local/no-in-operator
49733
49733
  return;
49734
49734
  }
49735
- addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
49735
+ addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line local/no-in-operator
49736
49736
  }
49737
49737
  function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
49738
49738
  var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
@@ -91359,7 +91359,7 @@ var ts;
91359
91359
  exit();
91360
91360
  return sourceIndex;
91361
91361
  }
91362
- /* eslint-disable boolean-trivia, no-null/no-null */
91362
+ /* eslint-disable local/boolean-trivia, no-null/no-null */
91363
91363
  function setSourceContent(sourceIndex, content) {
91364
91364
  enter();
91365
91365
  if (content !== null) {
@@ -91372,7 +91372,7 @@ var ts;
91372
91372
  }
91373
91373
  exit();
91374
91374
  }
91375
- /* eslint-enable boolean-trivia, no-null/no-null */
91375
+ /* eslint-enable local/boolean-trivia, no-null/no-null */
91376
91376
  function addName(name) {
91377
91377
  enter();
91378
91378
  if (!nameToNameIndexMap)
@@ -132628,7 +132628,7 @@ var ts;
132628
132628
  // defined in `ts.commentPragmas` would be excessive, but we can avoid
132629
132629
  // some obvious false positives (e.g. in XML-like doc comments) by
132630
132630
  // checking the element name.
132631
- // eslint-disable-next-line no-in-operator
132631
+ // eslint-disable-next-line local/no-in-operator
132632
132632
  if (!match[3] || !(match[3] in ts.commentPragmas)) {
132633
132633
  return false;
132634
132634
  }
@@ -140325,7 +140325,7 @@ var ts;
140325
140325
  }
140326
140326
  }
140327
140327
  function addReference(referenceLocation, relatedSymbol, state) {
140328
- var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line no-in-operator
140328
+ var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line local/no-in-operator
140329
140329
  // if rename symbol from default export anonymous function, for example `export default function() {}`, we do not need to add reference
140330
140330
  if (state.options.use === 2 /* Rename */ && referenceLocation.kind === 88 /* DefaultKeyword */) {
140331
140331
  return;
@@ -146111,11 +146111,11 @@ var ts;
146111
146111
  // not enough to put us in the substitution expression; we should consider ourselves part of
146112
146112
  // the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1).
146113
146113
  //
146114
- /* eslint-disable no-double-space */
146114
+ /* eslint-disable local/no-double-space */
146115
146115
  // Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # `
146116
146116
  // ^ ^ ^ ^ ^ ^ ^ ^ ^
146117
146117
  // Case: 1 1 3 2 1 3 2 2 1
146118
- /* eslint-enable no-double-space */
146118
+ /* eslint-enable local/no-double-space */
146119
146119
  ts.Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node.");
146120
146120
  if (ts.isTemplateLiteralToken(node)) {
146121
146121
  if (ts.isInsideTemplateLiteral(node, position, sourceFile)) {
@@ -154136,7 +154136,7 @@ var ts;
154136
154136
  name = getMapEntryOrDefault(funcNode.name);
154137
154137
  }
154138
154138
  // return undefined argName when arg is null or undefined
154139
- // eslint-disable-next-line no-in-operator
154139
+ // eslint-disable-next-line local/no-in-operator
154140
154140
  if (!name || "identifier" in name && name.identifier.text === "undefined") {
154141
154141
  return undefined;
154142
154142
  }
@@ -166322,7 +166322,7 @@ var ts;
166322
166322
  this.kind = kind;
166323
166323
  }
166324
166324
  NodeObject.prototype.assertHasRealPosition = function (message) {
166325
- // eslint-disable-next-line debug-assert
166325
+ // eslint-disable-next-line local/debug-assert
166326
166326
  ts.Debug.assert(!ts.positionIsSynthesized(this.pos) && !ts.positionIsSynthesized(this.end), message || "Node must have a real position for this operation");
166327
166327
  };
166328
166328
  NodeObject.prototype.getSourceFile = function () {
@@ -169366,7 +169366,7 @@ var debugObjectHost = (function () {
169366
169366
  return this;
169367
169367
  })();
169368
169368
  // We need to use 'null' to interface with the managed side.
169369
- /* eslint-disable no-in-operator */
169369
+ /* eslint-disable local/no-in-operator */
169370
169370
  /* @internal */
169371
169371
  var ts;
169372
169372
  (function (ts) {
@@ -170166,7 +170166,7 @@ var ts;
170166
170166
  }());
170167
170167
  ts.TypeScriptServicesFactory = TypeScriptServicesFactory;
170168
170168
  })(ts || (ts = {}));
170169
- /* eslint-enable no-in-operator */
170169
+ /* eslint-enable local/no-in-operator */
170170
170170
  // We polyfill `globalThis` here so re can reliably patch the global scope
170171
170171
  // in the contexts we want to in the same way across script and module formats
170172
170172
  /* eslint-enable no-var */
@@ -173226,7 +173226,7 @@ var ts;
173226
173226
  var newLS = pluginModule.create(info);
173227
173227
  for (var _i = 0, _a = Object.keys(this.languageService); _i < _a.length; _i++) {
173228
173228
  var k = _a[_i];
173229
- // eslint-disable-next-line no-in-operator
173229
+ // eslint-disable-next-line local/no-in-operator
173230
173230
  if (!(k in newLS)) {
173231
173231
  this.projectService.logger.info("Plugin activation warning: Missing proxied method " + k + " in created LS. Patching.");
173232
173232
  newLS[k] = this.languageService[k];
@@ -182425,7 +182425,7 @@ var ts;
182425
182425
  if (typeof value === "number") {
182426
182426
  return ts.factory.createNumericLiteral(value);
182427
182427
  }
182428
- // eslint-disable-next-line no-in-operator
182428
+ // eslint-disable-next-line local/no-in-operator
182429
182429
  if (typeof value === "object" && "base10Value" in value) { // PseudoBigInt
182430
182430
  return ts.factory.createBigIntLiteral(value);
182431
182431
  }
@@ -4834,6 +4834,8 @@ declare namespace ts {
4834
4834
  }
4835
4835
  declare namespace ts {
4836
4836
  function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
4837
+ function canHaveModifiers(node: Node): node is HasModifiers;
4838
+ function canHaveDecorators(node: Node): node is HasDecorators;
4837
4839
  }
4838
4840
  declare namespace ts {
4839
4841
  /**
@@ -108,7 +108,7 @@ var ts;
108
108
  // The following is baselined as a literal template type without intervention
109
109
  /** The version of the TypeScript compiler release */
110
110
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
111
- ts.version = ts.versionMajorMinor + ".0-dev.20220822";
111
+ ts.version = ts.versionMajorMinor + ".0-dev.20220823";
112
112
  /* @internal */
113
113
  var Comparison;
114
114
  (function (Comparison) {
@@ -129,7 +129,7 @@ var ts;
129
129
  function tryGetNativeMap() {
130
130
  // Internet Explorer's Map doesn't support iteration, so don't use it.
131
131
  var gMap = globals === null || globals === void 0 ? void 0 : globals.Map;
132
- // eslint-disable-next-line no-in-operator
132
+ // eslint-disable-next-line local/no-in-operator
133
133
  var constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined;
134
134
  if (!constructor) {
135
135
  throw new Error("No compatible Map implementation found.");
@@ -143,7 +143,7 @@ var ts;
143
143
  function tryGetNativeSet() {
144
144
  // Internet Explorer's Set doesn't support iteration, so don't use it.
145
145
  var gSet = globals === null || globals === void 0 ? void 0 : globals.Set;
146
- // eslint-disable-next-line no-in-operator
146
+ // eslint-disable-next-line local/no-in-operator
147
147
  var constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined;
148
148
  if (!constructor) {
149
149
  throw new Error("No compatible Set implementation found.");
@@ -2842,7 +2842,7 @@ var ts;
2842
2842
  Debug.formatControlFlowGraph = formatControlFlowGraph;
2843
2843
  var flowNodeProto;
2844
2844
  function attachFlowNodeDebugInfoWorker(flowNode) {
2845
- if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
2845
+ if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line local/no-in-operator
2846
2846
  Object.defineProperties(flowNode, {
2847
2847
  // for use with vscode-js-debug's new customDescriptionGenerator in launch.json
2848
2848
  __tsDebuggerDisplay: {
@@ -2888,7 +2888,7 @@ var ts;
2888
2888
  Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
2889
2889
  var nodeArrayProto;
2890
2890
  function attachNodeArrayDebugInfoWorker(array) {
2891
- if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line no-in-operator
2891
+ if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line local/no-in-operator
2892
2892
  Object.defineProperties(array, {
2893
2893
  __tsDebuggerDisplay: {
2894
2894
  value: function (defaultValue) {
@@ -30543,17 +30543,6 @@ var ts;
30543
30543
  || kind === 173 /* SetAccessor */;
30544
30544
  }
30545
30545
  ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
30546
- function canHaveDecorators(node) {
30547
- var kind = node.kind;
30548
- return kind === 164 /* Parameter */
30549
- || kind === 167 /* PropertyDeclaration */
30550
- || kind === 169 /* MethodDeclaration */
30551
- || kind === 172 /* GetAccessor */
30552
- || kind === 173 /* SetAccessor */
30553
- || kind === 226 /* ClassExpression */
30554
- || kind === 257 /* ClassDeclaration */;
30555
- }
30556
- ts.canHaveDecorators = canHaveDecorators;
30557
30546
  function canHaveIllegalDecorators(node) {
30558
30547
  var kind = node.kind;
30559
30548
  return kind === 296 /* PropertyAssignment */
@@ -30575,35 +30564,6 @@ var ts;
30575
30564
  || kind === 271 /* ExportAssignment */;
30576
30565
  }
30577
30566
  ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
30578
- function canHaveModifiers(node) {
30579
- var kind = node.kind;
30580
- return kind === 163 /* TypeParameter */
30581
- || kind === 164 /* Parameter */
30582
- || kind === 166 /* PropertySignature */
30583
- || kind === 167 /* PropertyDeclaration */
30584
- || kind === 168 /* MethodSignature */
30585
- || kind === 169 /* MethodDeclaration */
30586
- || kind === 171 /* Constructor */
30587
- || kind === 172 /* GetAccessor */
30588
- || kind === 173 /* SetAccessor */
30589
- || kind === 176 /* IndexSignature */
30590
- || kind === 180 /* ConstructorType */
30591
- || kind === 213 /* FunctionExpression */
30592
- || kind === 214 /* ArrowFunction */
30593
- || kind === 226 /* ClassExpression */
30594
- || kind === 237 /* VariableStatement */
30595
- || kind === 256 /* FunctionDeclaration */
30596
- || kind === 257 /* ClassDeclaration */
30597
- || kind === 258 /* InterfaceDeclaration */
30598
- || kind === 259 /* TypeAliasDeclaration */
30599
- || kind === 260 /* EnumDeclaration */
30600
- || kind === 261 /* ModuleDeclaration */
30601
- || kind === 265 /* ImportEqualsDeclaration */
30602
- || kind === 266 /* ImportDeclaration */
30603
- || kind === 271 /* ExportAssignment */
30604
- || kind === 272 /* ExportDeclaration */;
30605
- }
30606
- ts.canHaveModifiers = canHaveModifiers;
30607
30567
  function canHaveIllegalModifiers(node) {
30608
30568
  var kind = node.kind;
30609
30569
  return kind === 170 /* ClassStaticBlockDeclaration */
@@ -30892,6 +30852,46 @@ var ts;
30892
30852
  return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
30893
30853
  }
30894
30854
  ts.setTextRange = setTextRange;
30855
+ function canHaveModifiers(node) {
30856
+ var kind = node.kind;
30857
+ return kind === 163 /* TypeParameter */
30858
+ || kind === 164 /* Parameter */
30859
+ || kind === 166 /* PropertySignature */
30860
+ || kind === 167 /* PropertyDeclaration */
30861
+ || kind === 168 /* MethodSignature */
30862
+ || kind === 169 /* MethodDeclaration */
30863
+ || kind === 171 /* Constructor */
30864
+ || kind === 172 /* GetAccessor */
30865
+ || kind === 173 /* SetAccessor */
30866
+ || kind === 176 /* IndexSignature */
30867
+ || kind === 180 /* ConstructorType */
30868
+ || kind === 213 /* FunctionExpression */
30869
+ || kind === 214 /* ArrowFunction */
30870
+ || kind === 226 /* ClassExpression */
30871
+ || kind === 237 /* VariableStatement */
30872
+ || kind === 256 /* FunctionDeclaration */
30873
+ || kind === 257 /* ClassDeclaration */
30874
+ || kind === 258 /* InterfaceDeclaration */
30875
+ || kind === 259 /* TypeAliasDeclaration */
30876
+ || kind === 260 /* EnumDeclaration */
30877
+ || kind === 261 /* ModuleDeclaration */
30878
+ || kind === 265 /* ImportEqualsDeclaration */
30879
+ || kind === 266 /* ImportDeclaration */
30880
+ || kind === 271 /* ExportAssignment */
30881
+ || kind === 272 /* ExportDeclaration */;
30882
+ }
30883
+ ts.canHaveModifiers = canHaveModifiers;
30884
+ function canHaveDecorators(node) {
30885
+ var kind = node.kind;
30886
+ return kind === 164 /* Parameter */
30887
+ || kind === 167 /* PropertyDeclaration */
30888
+ || kind === 169 /* MethodDeclaration */
30889
+ || kind === 172 /* GetAccessor */
30890
+ || kind === 173 /* SetAccessor */
30891
+ || kind === 226 /* ClassExpression */
30892
+ || kind === 257 /* ClassDeclaration */;
30893
+ }
30894
+ ts.canHaveDecorators = canHaveDecorators;
30895
30895
  })(ts || (ts = {}));
30896
30896
  var ts;
30897
30897
  (function (ts) {
@@ -49728,10 +49728,10 @@ var ts;
49728
49728
  }
49729
49729
  // Issue errors globally
49730
49730
  var file = ts.getSourceFileOfNode(location);
49731
- addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line no-in-operator
49731
+ addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line local/no-in-operator
49732
49732
  return;
49733
49733
  }
49734
- addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
49734
+ addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line local/no-in-operator
49735
49735
  }
49736
49736
  function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
49737
49737
  var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
@@ -91358,7 +91358,7 @@ var ts;
91358
91358
  exit();
91359
91359
  return sourceIndex;
91360
91360
  }
91361
- /* eslint-disable boolean-trivia, no-null/no-null */
91361
+ /* eslint-disable local/boolean-trivia, no-null/no-null */
91362
91362
  function setSourceContent(sourceIndex, content) {
91363
91363
  enter();
91364
91364
  if (content !== null) {
@@ -91371,7 +91371,7 @@ var ts;
91371
91371
  }
91372
91372
  exit();
91373
91373
  }
91374
- /* eslint-enable boolean-trivia, no-null/no-null */
91374
+ /* eslint-enable local/boolean-trivia, no-null/no-null */
91375
91375
  function addName(name) {
91376
91376
  enter();
91377
91377
  if (!nameToNameIndexMap)
@@ -133046,7 +133046,7 @@ var ts;
133046
133046
  // defined in `ts.commentPragmas` would be excessive, but we can avoid
133047
133047
  // some obvious false positives (e.g. in XML-like doc comments) by
133048
133048
  // checking the element name.
133049
- // eslint-disable-next-line no-in-operator
133049
+ // eslint-disable-next-line local/no-in-operator
133050
133050
  if (!match[3] || !(match[3] in ts.commentPragmas)) {
133051
133051
  return false;
133052
133052
  }
@@ -140743,7 +140743,7 @@ var ts;
140743
140743
  }
140744
140744
  }
140745
140745
  function addReference(referenceLocation, relatedSymbol, state) {
140746
- var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line no-in-operator
140746
+ var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line local/no-in-operator
140747
140747
  // if rename symbol from default export anonymous function, for example `export default function() {}`, we do not need to add reference
140748
140748
  if (state.options.use === 2 /* Rename */ && referenceLocation.kind === 88 /* DefaultKeyword */) {
140749
140749
  return;
@@ -146529,11 +146529,11 @@ var ts;
146529
146529
  // not enough to put us in the substitution expression; we should consider ourselves part of
146530
146530
  // the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1).
146531
146531
  //
146532
- /* eslint-disable no-double-space */
146532
+ /* eslint-disable local/no-double-space */
146533
146533
  // Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # `
146534
146534
  // ^ ^ ^ ^ ^ ^ ^ ^ ^
146535
146535
  // Case: 1 1 3 2 1 3 2 2 1
146536
- /* eslint-enable no-double-space */
146536
+ /* eslint-enable local/no-double-space */
146537
146537
  ts.Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node.");
146538
146538
  if (ts.isTemplateLiteralToken(node)) {
146539
146539
  if (ts.isInsideTemplateLiteral(node, position, sourceFile)) {
@@ -154554,7 +154554,7 @@ var ts;
154554
154554
  name = getMapEntryOrDefault(funcNode.name);
154555
154555
  }
154556
154556
  // return undefined argName when arg is null or undefined
154557
- // eslint-disable-next-line no-in-operator
154557
+ // eslint-disable-next-line local/no-in-operator
154558
154558
  if (!name || "identifier" in name && name.identifier.text === "undefined") {
154559
154559
  return undefined;
154560
154560
  }
@@ -166740,7 +166740,7 @@ var ts;
166740
166740
  this.kind = kind;
166741
166741
  }
166742
166742
  NodeObject.prototype.assertHasRealPosition = function (message) {
166743
- // eslint-disable-next-line debug-assert
166743
+ // eslint-disable-next-line local/debug-assert
166744
166744
  ts.Debug.assert(!ts.positionIsSynthesized(this.pos) && !ts.positionIsSynthesized(this.end), message || "Node must have a real position for this operation");
166745
166745
  };
166746
166746
  NodeObject.prototype.getSourceFile = function () {
@@ -169784,7 +169784,7 @@ var debugObjectHost = (function () {
169784
169784
  return this;
169785
169785
  })();
169786
169786
  // We need to use 'null' to interface with the managed side.
169787
- /* eslint-disable no-in-operator */
169787
+ /* eslint-disable local/no-in-operator */
169788
169788
  /* @internal */
169789
169789
  var ts;
169790
169790
  (function (ts) {
@@ -170584,7 +170584,7 @@ var ts;
170584
170584
  }());
170585
170585
  ts.TypeScriptServicesFactory = TypeScriptServicesFactory;
170586
170586
  })(ts || (ts = {}));
170587
- /* eslint-enable no-in-operator */
170587
+ /* eslint-enable local/no-in-operator */
170588
170588
  // We polyfill `globalThis` here so re can reliably patch the global scope
170589
170589
  // in the contexts we want to in the same way across script and module formats
170590
170590
  /* eslint-enable no-var */
@@ -173225,7 +173225,7 @@ var ts;
173225
173225
  var newLS = pluginModule.create(info);
173226
173226
  for (var _i = 0, _a = Object.keys(this.languageService); _i < _a.length; _i++) {
173227
173227
  var k = _a[_i];
173228
- // eslint-disable-next-line no-in-operator
173228
+ // eslint-disable-next-line local/no-in-operator
173229
173229
  if (!(k in newLS)) {
173230
173230
  this.projectService.logger.info("Plugin activation warning: Missing proxied method " + k + " in created LS. Patching.");
173231
173231
  newLS[k] = this.languageService[k];
@@ -182170,7 +182170,7 @@ var ts;
182170
182170
  if (typeof value === "number") {
182171
182171
  return ts.factory.createNumericLiteral(value);
182172
182172
  }
182173
- // eslint-disable-next-line no-in-operator
182173
+ // eslint-disable-next-line local/no-in-operator
182174
182174
  if (typeof value === "object" && "base10Value" in value) { // PseudoBigInt
182175
182175
  return ts.factory.createBigIntLiteral(value);
182176
182176
  }
@@ -4834,6 +4834,8 @@ declare namespace ts {
4834
4834
  }
4835
4835
  declare namespace ts {
4836
4836
  function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
4837
+ function canHaveModifiers(node: Node): node is HasModifiers;
4838
+ function canHaveDecorators(node: Node): node is HasDecorators;
4837
4839
  }
4838
4840
  declare namespace ts {
4839
4841
  /**