typescript 4.8.1-rc → 4.8.2

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.
@@ -303,7 +303,7 @@ var ts;
303
303
  // The following is baselined as a literal template type without intervention
304
304
  /** The version of the TypeScript compiler release */
305
305
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
306
- ts.version = "4.8.1-rc";
306
+ ts.version = "4.8.2";
307
307
  /* @internal */
308
308
  var Comparison;
309
309
  (function (Comparison) {
@@ -2683,6 +2683,7 @@ var ts;
2683
2683
  var currentAssertionLevel = 0 /* AssertionLevel.None */;
2684
2684
  Debug.currentLogLevel = LogLevel.Warning;
2685
2685
  Debug.isDebugging = false;
2686
+ Debug.enableDeprecationWarnings = true;
2686
2687
  function getTypeScriptVersion() {
2687
2688
  return typeScriptVersion !== null && typeScriptVersion !== void 0 ? typeScriptVersion : (typeScriptVersion = new ts.Version(ts.version));
2688
2689
  }
@@ -3306,7 +3307,7 @@ var ts;
3306
3307
  function createWarningDeprecation(name, errorAfter, since, message) {
3307
3308
  var hasWrittenDeprecation = false;
3308
3309
  return function () {
3309
- if (!hasWrittenDeprecation) {
3310
+ if (Debug.enableDeprecationWarnings && !hasWrittenDeprecation) {
3310
3311
  log.warn(formatDeprecationMessage(name, /*error*/ false, errorAfter, since, message));
3311
3312
  hasWrittenDeprecation = true;
3312
3313
  }
@@ -7194,7 +7195,6 @@ var ts;
7194
7195
  // not actually work.
7195
7196
  var byteOrderMarkIndicator = "\uFEFF";
7196
7197
  function getNodeSystem() {
7197
- var _a;
7198
7198
  var nativePattern = /^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/;
7199
7199
  var _fs = require("fs");
7200
7200
  var _path = require("path");
@@ -7204,7 +7204,7 @@ var ts;
7204
7204
  try {
7205
7205
  _crypto = require("crypto");
7206
7206
  }
7207
- catch (_b) {
7207
+ catch (_a) {
7208
7208
  _crypto = undefined;
7209
7209
  }
7210
7210
  var activeSession;
@@ -7215,10 +7215,10 @@ var ts;
7215
7215
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
7216
7216
  var platform = _os.platform();
7217
7217
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
7218
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
7218
+ var fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
7219
7219
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
7220
7220
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
7221
- var _c = createSystemWatchFunctions({
7221
+ var _b = createSystemWatchFunctions({
7222
7222
  pollingWatchFile: createSingleFileWatcherPerName(fsWatchFileWorker, useCaseSensitiveFileNames),
7223
7223
  getModifiedTime: getModifiedTime,
7224
7224
  setTimeout: setTimeout,
@@ -7238,7 +7238,7 @@ var ts;
7238
7238
  defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
7239
7239
  inodeWatching: isLinuxOrMacOs,
7240
7240
  sysLog: sysLog,
7241
- }), watchFile = _c.watchFile, watchDirectory = _c.watchDirectory;
7241
+ }), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
7242
7242
  var nodeSystem = {
7243
7243
  args: process.argv.slice(2),
7244
7244
  newLine: _os.EOL,
@@ -7631,9 +7631,12 @@ var ts;
7631
7631
  function getDirectories(path) {
7632
7632
  return getAccessibleFileSystemEntries(path).directories.slice();
7633
7633
  }
7634
+ function fsRealPathHandlingLongPath(path) {
7635
+ return path.length < 260 ? _fs.realpathSync.native(path) : _fs.realpathSync(path);
7636
+ }
7634
7637
  function realpath(path) {
7635
7638
  try {
7636
- return realpathSync(path);
7639
+ return fsRealpath(path);
7637
7640
  }
7638
7641
  catch (_a) {
7639
7642
  return path;
@@ -21561,7 +21564,7 @@ var ts;
21561
21564
  case 165 /* SyntaxKind.Decorator */: {
21562
21565
  var parent_2 = node.parent;
21563
21566
  return ts.canHaveDecorators(parent_2) ? parent_2.modifiers :
21564
- ts.canHaveIllegalDecorators(parent_2) ? parent_2.decorators :
21567
+ ts.canHaveIllegalDecorators(parent_2) ? parent_2.illegalDecorators :
21565
21568
  undefined;
21566
21569
  }
21567
21570
  case 291 /* SyntaxKind.HeritageClause */:
@@ -23638,7 +23641,7 @@ var ts;
23638
23641
  node.body = body;
23639
23642
  node.transformFlags = propagateChildFlags(body) | 16777216 /* TransformFlags.ContainsClassFields */;
23640
23643
  // The following properties are used only to report grammar errors
23641
- node.decorators = undefined;
23644
+ node.illegalDecorators = undefined;
23642
23645
  node.modifiers = undefined;
23643
23646
  return node;
23644
23647
  }
@@ -23650,7 +23653,7 @@ var ts;
23650
23653
  }
23651
23654
  function finishUpdateClassStaticBlockDeclaration(updated, original) {
23652
23655
  if (updated !== original) {
23653
- updated.decorators = original.decorators;
23656
+ updated.illegalDecorators = original.illegalDecorators;
23654
23657
  updated.modifiers = original.modifiers;
23655
23658
  }
23656
23659
  return update(updated, original);
@@ -23663,7 +23666,7 @@ var ts;
23663
23666
  /*type*/ undefined, body);
23664
23667
  node.transformFlags |= 1024 /* TransformFlags.ContainsES2015 */;
23665
23668
  // The following properties are used only to report grammar errors
23666
- node.decorators = undefined;
23669
+ node.illegalDecorators = undefined;
23667
23670
  node.typeParameters = undefined;
23668
23671
  node.type = undefined;
23669
23672
  return node;
@@ -23678,7 +23681,7 @@ var ts;
23678
23681
  }
23679
23682
  function finishUpdateConstructorDeclaration(updated, original) {
23680
23683
  if (updated !== original) {
23681
- updated.decorators = original.decorators;
23684
+ updated.illegalDecorators = original.illegalDecorators;
23682
23685
  updated.typeParameters = original.typeParameters;
23683
23686
  updated.type = original.type;
23684
23687
  }
@@ -25426,7 +25429,7 @@ var ts;
25426
25429
  }
25427
25430
  }
25428
25431
  // The following properties are used only to report grammar errors
25429
- node.decorators = undefined;
25432
+ node.illegalDecorators = undefined;
25430
25433
  return node;
25431
25434
  }
25432
25435
  // @api
@@ -25444,7 +25447,7 @@ var ts;
25444
25447
  function finishUpdateFunctionDeclaration(updated, original) {
25445
25448
  if (updated !== original) {
25446
25449
  // copy children used only for error reporting
25447
- updated.decorators = original.decorators;
25450
+ updated.illegalDecorators = original.illegalDecorators;
25448
25451
  }
25449
25452
  return finishUpdateBaseSignatureDeclaration(updated, original);
25450
25453
  }
@@ -25478,7 +25481,7 @@ var ts;
25478
25481
  node.members = createNodeArray(members);
25479
25482
  node.transformFlags = 1 /* TransformFlags.ContainsTypeScript */;
25480
25483
  // The following properties are used only to report grammar errors
25481
- node.decorators = undefined;
25484
+ node.illegalDecorators = undefined;
25482
25485
  return node;
25483
25486
  }
25484
25487
  // @api
@@ -25493,7 +25496,7 @@ var ts;
25493
25496
  }
25494
25497
  function finishUpdateInterfaceDeclaration(updated, original) {
25495
25498
  if (updated !== original) {
25496
- updated.decorators = original.decorators;
25499
+ updated.illegalDecorators = original.illegalDecorators;
25497
25500
  }
25498
25501
  return update(updated, original);
25499
25502
  }
@@ -25503,7 +25506,7 @@ var ts;
25503
25506
  node.type = type;
25504
25507
  node.transformFlags = 1 /* TransformFlags.ContainsTypeScript */;
25505
25508
  // The following properties are used only to report grammar errors
25506
- node.decorators = undefined;
25509
+ node.illegalDecorators = undefined;
25507
25510
  return node;
25508
25511
  }
25509
25512
  // @api
@@ -25517,7 +25520,7 @@ var ts;
25517
25520
  }
25518
25521
  function finishUpdateTypeAliasDeclaration(updated, original) {
25519
25522
  if (updated !== original) {
25520
- updated.decorators = original.decorators;
25523
+ updated.illegalDecorators = original.illegalDecorators;
25521
25524
  }
25522
25525
  return update(updated, original);
25523
25526
  }
@@ -25530,7 +25533,7 @@ var ts;
25530
25533
  1 /* TransformFlags.ContainsTypeScript */;
25531
25534
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // Enum declarations cannot contain `await`
25532
25535
  // The following properties are used only to report grammar errors
25533
- node.decorators = undefined;
25536
+ node.illegalDecorators = undefined;
25534
25537
  return node;
25535
25538
  }
25536
25539
  // @api
@@ -25543,7 +25546,7 @@ var ts;
25543
25546
  }
25544
25547
  function finishUpdateEnumDeclaration(updated, original) {
25545
25548
  if (updated !== original) {
25546
- updated.decorators = original.decorators;
25549
+ updated.illegalDecorators = original.illegalDecorators;
25547
25550
  }
25548
25551
  return update(updated, original);
25549
25552
  }
@@ -25567,7 +25570,7 @@ var ts;
25567
25570
  }
25568
25571
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // Module declarations cannot contain `await`.
25569
25572
  // The following properties are used only to report grammar errors
25570
- node.decorators = undefined;
25573
+ node.illegalDecorators = undefined;
25571
25574
  return node;
25572
25575
  }
25573
25576
  // @api
@@ -25580,7 +25583,7 @@ var ts;
25580
25583
  }
25581
25584
  function finishUpdateModuleDeclaration(updated, original) {
25582
25585
  if (updated !== original) {
25583
- updated.decorators = original.decorators;
25586
+ updated.illegalDecorators = original.illegalDecorators;
25584
25587
  }
25585
25588
  return update(updated, original);
25586
25589
  }
@@ -25616,7 +25619,7 @@ var ts;
25616
25619
  /*modifiers*/ undefined, name);
25617
25620
  node.transformFlags = 1 /* TransformFlags.ContainsTypeScript */;
25618
25621
  // The following properties are used only to report grammar errors
25619
- node.decorators = undefined;
25622
+ node.illegalDecorators = undefined;
25620
25623
  node.modifiers = undefined;
25621
25624
  return node;
25622
25625
  }
@@ -25628,7 +25631,7 @@ var ts;
25628
25631
  }
25629
25632
  function finishUpdateNamespaceExportDeclaration(updated, original) {
25630
25633
  if (updated !== original) {
25631
- updated.decorators = original.decorators;
25634
+ updated.illegalDecorators = original.illegalDecorators;
25632
25635
  updated.modifiers = original.modifiers;
25633
25636
  }
25634
25637
  return update(updated, original);
@@ -25643,7 +25646,7 @@ var ts;
25643
25646
  node.transformFlags |= 1 /* TransformFlags.ContainsTypeScript */;
25644
25647
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // Import= declaration is always parsed in an Await context
25645
25648
  // The following properties are used only to report grammar errors
25646
- node.decorators = undefined;
25649
+ node.illegalDecorators = undefined;
25647
25650
  return node;
25648
25651
  }
25649
25652
  // @api
@@ -25657,7 +25660,7 @@ var ts;
25657
25660
  }
25658
25661
  function finishUpdateImportEqualsDeclaration(updated, original) {
25659
25662
  if (updated !== original) {
25660
- updated.decorators = original.decorators;
25663
+ updated.illegalDecorators = original.illegalDecorators;
25661
25664
  }
25662
25665
  return update(updated, original);
25663
25666
  }
@@ -25673,7 +25676,7 @@ var ts;
25673
25676
  propagateChildFlags(node.moduleSpecifier);
25674
25677
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // always parsed in an Await context
25675
25678
  // The following properties are used only to report grammar errors
25676
- node.decorators = undefined;
25679
+ node.illegalDecorators = undefined;
25677
25680
  return node;
25678
25681
  }
25679
25682
  // @api
@@ -25687,7 +25690,7 @@ var ts;
25687
25690
  }
25688
25691
  function finishUpdateImportDeclaration(updated, original) {
25689
25692
  if (updated !== original) {
25690
- updated.decorators = original.decorators;
25693
+ updated.illegalDecorators = original.illegalDecorators;
25691
25694
  }
25692
25695
  return update(updated, original);
25693
25696
  }
@@ -25833,7 +25836,7 @@ var ts;
25833
25836
  node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression);
25834
25837
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // always parsed in an Await context
25835
25838
  // The following properties are used only to report grammar errors
25836
- node.decorators = undefined;
25839
+ node.illegalDecorators = undefined;
25837
25840
  return node;
25838
25841
  }
25839
25842
  // @api
@@ -25845,7 +25848,7 @@ var ts;
25845
25848
  }
25846
25849
  function finishUpdateExportAssignment(updated, original) {
25847
25850
  if (updated !== original) {
25848
- updated.decorators = original.decorators;
25851
+ updated.illegalDecorators = original.illegalDecorators;
25849
25852
  }
25850
25853
  return update(updated, original);
25851
25854
  }
@@ -25863,7 +25866,7 @@ var ts;
25863
25866
  propagateChildFlags(node.moduleSpecifier);
25864
25867
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // always parsed in an Await context
25865
25868
  // The following properties are used only to report grammar errors
25866
- node.decorators = undefined;
25869
+ node.illegalDecorators = undefined;
25867
25870
  return node;
25868
25871
  }
25869
25872
  // @api
@@ -25878,7 +25881,7 @@ var ts;
25878
25881
  }
25879
25882
  function finishUpdateExportDeclaration(updated, original) {
25880
25883
  if (updated !== original) {
25881
- updated.decorators = original.decorators;
25884
+ updated.illegalDecorators = original.illegalDecorators;
25882
25885
  }
25883
25886
  return update(updated, original);
25884
25887
  }
@@ -26642,7 +26645,7 @@ var ts;
26642
26645
  propagateChildFlags(node.name) |
26643
26646
  propagateChildFlags(node.initializer);
26644
26647
  // The following properties are used only to report grammar errors
26645
- node.decorators = undefined;
26648
+ node.illegalDecorators = undefined;
26646
26649
  node.modifiers = undefined;
26647
26650
  node.questionToken = undefined;
26648
26651
  node.exclamationToken = undefined;
@@ -26658,7 +26661,7 @@ var ts;
26658
26661
  function finishUpdatePropertyAssignment(updated, original) {
26659
26662
  // copy children used only for error reporting
26660
26663
  if (updated !== original) {
26661
- updated.decorators = original.decorators;
26664
+ updated.illegalDecorators = original.illegalDecorators;
26662
26665
  updated.modifiers = original.modifiers;
26663
26666
  updated.questionToken = original.questionToken;
26664
26667
  updated.exclamationToken = original.exclamationToken;
@@ -26675,7 +26678,7 @@ var ts;
26675
26678
  1024 /* TransformFlags.ContainsES2015 */;
26676
26679
  // The following properties are used only to report grammar errors
26677
26680
  node.equalsToken = undefined;
26678
- node.decorators = undefined;
26681
+ node.illegalDecorators = undefined;
26679
26682
  node.modifiers = undefined;
26680
26683
  node.questionToken = undefined;
26681
26684
  node.exclamationToken = undefined;
@@ -26692,7 +26695,7 @@ var ts;
26692
26695
  if (updated !== original) {
26693
26696
  // copy children used only for error reporting
26694
26697
  updated.equalsToken = original.equalsToken;
26695
- updated.decorators = original.decorators;
26698
+ updated.illegalDecorators = original.illegalDecorators;
26696
26699
  updated.modifiers = original.modifiers;
26697
26700
  updated.questionToken = original.questionToken;
26698
26701
  updated.exclamationToken = original.exclamationToken;
@@ -30703,17 +30706,6 @@ var ts;
30703
30706
  || kind === 173 /* SyntaxKind.SetAccessor */;
30704
30707
  }
30705
30708
  ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
30706
- function canHaveDecorators(node) {
30707
- var kind = node.kind;
30708
- return kind === 164 /* SyntaxKind.Parameter */
30709
- || kind === 167 /* SyntaxKind.PropertyDeclaration */
30710
- || kind === 169 /* SyntaxKind.MethodDeclaration */
30711
- || kind === 172 /* SyntaxKind.GetAccessor */
30712
- || kind === 173 /* SyntaxKind.SetAccessor */
30713
- || kind === 226 /* SyntaxKind.ClassExpression */
30714
- || kind === 257 /* SyntaxKind.ClassDeclaration */;
30715
- }
30716
- ts.canHaveDecorators = canHaveDecorators;
30717
30709
  function canHaveIllegalDecorators(node) {
30718
30710
  var kind = node.kind;
30719
30711
  return kind === 296 /* SyntaxKind.PropertyAssignment */
@@ -30735,35 +30727,6 @@ var ts;
30735
30727
  || kind === 271 /* SyntaxKind.ExportAssignment */;
30736
30728
  }
30737
30729
  ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
30738
- function canHaveModifiers(node) {
30739
- var kind = node.kind;
30740
- return kind === 163 /* SyntaxKind.TypeParameter */
30741
- || kind === 164 /* SyntaxKind.Parameter */
30742
- || kind === 166 /* SyntaxKind.PropertySignature */
30743
- || kind === 167 /* SyntaxKind.PropertyDeclaration */
30744
- || kind === 168 /* SyntaxKind.MethodSignature */
30745
- || kind === 169 /* SyntaxKind.MethodDeclaration */
30746
- || kind === 171 /* SyntaxKind.Constructor */
30747
- || kind === 172 /* SyntaxKind.GetAccessor */
30748
- || kind === 173 /* SyntaxKind.SetAccessor */
30749
- || kind === 176 /* SyntaxKind.IndexSignature */
30750
- || kind === 180 /* SyntaxKind.ConstructorType */
30751
- || kind === 213 /* SyntaxKind.FunctionExpression */
30752
- || kind === 214 /* SyntaxKind.ArrowFunction */
30753
- || kind === 226 /* SyntaxKind.ClassExpression */
30754
- || kind === 237 /* SyntaxKind.VariableStatement */
30755
- || kind === 256 /* SyntaxKind.FunctionDeclaration */
30756
- || kind === 257 /* SyntaxKind.ClassDeclaration */
30757
- || kind === 258 /* SyntaxKind.InterfaceDeclaration */
30758
- || kind === 259 /* SyntaxKind.TypeAliasDeclaration */
30759
- || kind === 260 /* SyntaxKind.EnumDeclaration */
30760
- || kind === 261 /* SyntaxKind.ModuleDeclaration */
30761
- || kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
30762
- || kind === 266 /* SyntaxKind.ImportDeclaration */
30763
- || kind === 271 /* SyntaxKind.ExportAssignment */
30764
- || kind === 272 /* SyntaxKind.ExportDeclaration */;
30765
- }
30766
- ts.canHaveModifiers = canHaveModifiers;
30767
30730
  function canHaveIllegalModifiers(node) {
30768
30731
  var kind = node.kind;
30769
30732
  return kind === 170 /* SyntaxKind.ClassStaticBlockDeclaration */
@@ -31052,6 +31015,46 @@ var ts;
31052
31015
  return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
31053
31016
  }
31054
31017
  ts.setTextRange = setTextRange;
31018
+ function canHaveModifiers(node) {
31019
+ var kind = node.kind;
31020
+ return kind === 163 /* SyntaxKind.TypeParameter */
31021
+ || kind === 164 /* SyntaxKind.Parameter */
31022
+ || kind === 166 /* SyntaxKind.PropertySignature */
31023
+ || kind === 167 /* SyntaxKind.PropertyDeclaration */
31024
+ || kind === 168 /* SyntaxKind.MethodSignature */
31025
+ || kind === 169 /* SyntaxKind.MethodDeclaration */
31026
+ || kind === 171 /* SyntaxKind.Constructor */
31027
+ || kind === 172 /* SyntaxKind.GetAccessor */
31028
+ || kind === 173 /* SyntaxKind.SetAccessor */
31029
+ || kind === 176 /* SyntaxKind.IndexSignature */
31030
+ || kind === 180 /* SyntaxKind.ConstructorType */
31031
+ || kind === 213 /* SyntaxKind.FunctionExpression */
31032
+ || kind === 214 /* SyntaxKind.ArrowFunction */
31033
+ || kind === 226 /* SyntaxKind.ClassExpression */
31034
+ || kind === 237 /* SyntaxKind.VariableStatement */
31035
+ || kind === 256 /* SyntaxKind.FunctionDeclaration */
31036
+ || kind === 257 /* SyntaxKind.ClassDeclaration */
31037
+ || kind === 258 /* SyntaxKind.InterfaceDeclaration */
31038
+ || kind === 259 /* SyntaxKind.TypeAliasDeclaration */
31039
+ || kind === 260 /* SyntaxKind.EnumDeclaration */
31040
+ || kind === 261 /* SyntaxKind.ModuleDeclaration */
31041
+ || kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
31042
+ || kind === 266 /* SyntaxKind.ImportDeclaration */
31043
+ || kind === 271 /* SyntaxKind.ExportAssignment */
31044
+ || kind === 272 /* SyntaxKind.ExportDeclaration */;
31045
+ }
31046
+ ts.canHaveModifiers = canHaveModifiers;
31047
+ function canHaveDecorators(node) {
31048
+ var kind = node.kind;
31049
+ return kind === 164 /* SyntaxKind.Parameter */
31050
+ || kind === 167 /* SyntaxKind.PropertyDeclaration */
31051
+ || kind === 169 /* SyntaxKind.MethodDeclaration */
31052
+ || kind === 172 /* SyntaxKind.GetAccessor */
31053
+ || kind === 173 /* SyntaxKind.SetAccessor */
31054
+ || kind === 226 /* SyntaxKind.ClassExpression */
31055
+ || kind === 257 /* SyntaxKind.ClassDeclaration */;
31056
+ }
31057
+ ts.canHaveDecorators = canHaveDecorators;
31055
31058
  })(ts || (ts = {}));
31056
31059
  var ts;
31057
31060
  (function (ts) {
@@ -31170,7 +31173,7 @@ var ts;
31170
31173
  visitNode(cbNode, node.default) ||
31171
31174
  visitNode(cbNode, node.expression);
31172
31175
  case 297 /* SyntaxKind.ShorthandPropertyAssignment */:
31173
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31176
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31174
31177
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31175
31178
  visitNode(cbNode, node.name) ||
31176
31179
  visitNode(cbNode, node.questionToken) ||
@@ -31200,7 +31203,7 @@ var ts;
31200
31203
  visitNode(cbNode, node.type) ||
31201
31204
  visitNode(cbNode, node.initializer);
31202
31205
  case 296 /* SyntaxKind.PropertyAssignment */:
31203
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31206
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31204
31207
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31205
31208
  visitNode(cbNode, node.name) ||
31206
31209
  visitNode(cbNode, node.questionToken) ||
@@ -31217,7 +31220,7 @@ var ts;
31217
31220
  visitNode(cbNode, node.name) ||
31218
31221
  visitNode(cbNode, node.initializer);
31219
31222
  case 176 /* SyntaxKind.IndexSignature */:
31220
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31223
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31221
31224
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31222
31225
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
31223
31226
  visitNodes(cbNode, cbNodes, node.parameters) ||
@@ -31255,7 +31258,7 @@ var ts;
31255
31258
  visitNodes(cbNode, cbNodes, node.parameters) ||
31256
31259
  visitNode(cbNode, node.type);
31257
31260
  case 171 /* SyntaxKind.Constructor */:
31258
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31261
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31259
31262
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31260
31263
  visitNode(cbNode, node.name) ||
31261
31264
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
@@ -31277,7 +31280,7 @@ var ts;
31277
31280
  visitNode(cbNode, node.type) ||
31278
31281
  visitNode(cbNode, node.body);
31279
31282
  case 256 /* SyntaxKind.FunctionDeclaration */:
31280
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31283
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31281
31284
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31282
31285
  visitNode(cbNode, node.asteriskToken) ||
31283
31286
  visitNode(cbNode, node.name) ||
@@ -31301,7 +31304,7 @@ var ts;
31301
31304
  visitNode(cbNode, node.equalsGreaterThanToken) ||
31302
31305
  visitNode(cbNode, node.body);
31303
31306
  case 170 /* SyntaxKind.ClassStaticBlockDeclaration */:
31304
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31307
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31305
31308
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31306
31309
  visitNode(cbNode, node.body);
31307
31310
  case 178 /* SyntaxKind.TypeReference */:
@@ -31429,7 +31432,7 @@ var ts;
31429
31432
  return visitNodes(cbNode, cbNodes, node.statements) ||
31430
31433
  visitNode(cbNode, node.endOfFileToken);
31431
31434
  case 237 /* SyntaxKind.VariableStatement */:
31432
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31435
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31433
31436
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31434
31437
  visitNode(cbNode, node.declarationList);
31435
31438
  case 255 /* SyntaxKind.VariableDeclarationList */:
@@ -31500,20 +31503,20 @@ var ts;
31500
31503
  visitNodes(cbNode, cbNodes, node.heritageClauses) ||
31501
31504
  visitNodes(cbNode, cbNodes, node.members);
31502
31505
  case 258 /* SyntaxKind.InterfaceDeclaration */:
31503
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31506
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31504
31507
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31505
31508
  visitNode(cbNode, node.name) ||
31506
31509
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
31507
31510
  visitNodes(cbNode, cbNodes, node.heritageClauses) ||
31508
31511
  visitNodes(cbNode, cbNodes, node.members);
31509
31512
  case 259 /* SyntaxKind.TypeAliasDeclaration */:
31510
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31513
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31511
31514
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31512
31515
  visitNode(cbNode, node.name) ||
31513
31516
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
31514
31517
  visitNode(cbNode, node.type);
31515
31518
  case 260 /* SyntaxKind.EnumDeclaration */:
31516
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31519
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31517
31520
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31518
31521
  visitNode(cbNode, node.name) ||
31519
31522
  visitNodes(cbNode, cbNodes, node.members);
@@ -31521,17 +31524,17 @@ var ts;
31521
31524
  return visitNode(cbNode, node.name) ||
31522
31525
  visitNode(cbNode, node.initializer);
31523
31526
  case 261 /* SyntaxKind.ModuleDeclaration */:
31524
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31527
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31525
31528
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31526
31529
  visitNode(cbNode, node.name) ||
31527
31530
  visitNode(cbNode, node.body);
31528
31531
  case 265 /* SyntaxKind.ImportEqualsDeclaration */:
31529
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31532
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31530
31533
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31531
31534
  visitNode(cbNode, node.name) ||
31532
31535
  visitNode(cbNode, node.moduleReference);
31533
31536
  case 266 /* SyntaxKind.ImportDeclaration */:
31534
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31537
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31535
31538
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31536
31539
  visitNode(cbNode, node.importClause) ||
31537
31540
  visitNode(cbNode, node.moduleSpecifier) ||
@@ -31545,7 +31548,7 @@ var ts;
31545
31548
  return visitNode(cbNode, node.name) ||
31546
31549
  visitNode(cbNode, node.value);
31547
31550
  case 264 /* SyntaxKind.NamespaceExportDeclaration */:
31548
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31551
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31549
31552
  visitNode(cbNode, node.name);
31550
31553
  case 268 /* SyntaxKind.NamespaceImport */:
31551
31554
  return visitNode(cbNode, node.name);
@@ -31555,7 +31558,7 @@ var ts;
31555
31558
  case 273 /* SyntaxKind.NamedExports */:
31556
31559
  return visitNodes(cbNode, cbNodes, node.elements);
31557
31560
  case 272 /* SyntaxKind.ExportDeclaration */:
31558
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31561
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31559
31562
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31560
31563
  visitNode(cbNode, node.exportClause) ||
31561
31564
  visitNode(cbNode, node.moduleSpecifier) ||
@@ -31565,7 +31568,7 @@ var ts;
31565
31568
  return visitNode(cbNode, node.propertyName) ||
31566
31569
  visitNode(cbNode, node.name);
31567
31570
  case 271 /* SyntaxKind.ExportAssignment */:
31568
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31571
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31569
31572
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31570
31573
  visitNode(cbNode, node.expression);
31571
31574
  case 223 /* SyntaxKind.TemplateExpression */:
@@ -31590,7 +31593,7 @@ var ts;
31590
31593
  case 277 /* SyntaxKind.ExternalModuleReference */:
31591
31594
  return visitNode(cbNode, node.expression);
31592
31595
  case 276 /* SyntaxKind.MissingDeclaration */:
31593
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31596
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31594
31597
  visitNodes(cbNode, cbNodes, node.modifiers);
31595
31598
  case 351 /* SyntaxKind.CommaListExpression */:
31596
31599
  return visitNodes(cbNode, cbNodes, node.elements);
@@ -34141,7 +34144,7 @@ var ts;
34141
34144
  var type = parseTypeAnnotation();
34142
34145
  parseTypeMemberSemicolon();
34143
34146
  var node = factory.createIndexSignature(modifiers, parameters, type);
34144
- node.decorators = decorators;
34147
+ node.illegalDecorators = decorators;
34145
34148
  return withJSDoc(finishNode(node, pos), hasJSDoc);
34146
34149
  }
34147
34150
  function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) {
@@ -36301,7 +36304,7 @@ var ts;
36301
36304
  node = factory.createPropertyAssignment(name, initializer);
36302
36305
  }
36303
36306
  // Decorators, Modifiers, questionToken, and exclamationToken are not supported by property assignments and are reported in the grammar checker
36304
- node.decorators = decorators;
36307
+ node.illegalDecorators = decorators;
36305
36308
  node.modifiers = modifiers;
36306
36309
  node.questionToken = questionToken;
36307
36310
  node.exclamationToken = exclamationToken;
@@ -36949,7 +36952,7 @@ var ts;
36949
36952
  // would follow. For recovery and error reporting purposes, return an incomplete declaration.
36950
36953
  var missing = createMissingNode(276 /* SyntaxKind.MissingDeclaration */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Declaration_expected);
36951
36954
  ts.setTextRangePos(missing, pos);
36952
- missing.decorators = decorators;
36955
+ missing.illegalDecorators = decorators;
36953
36956
  missing.modifiers = modifiers;
36954
36957
  return missing;
36955
36958
  }
@@ -37092,7 +37095,7 @@ var ts;
37092
37095
  parseSemicolon();
37093
37096
  var node = factory.createVariableStatement(modifiers, declarationList);
37094
37097
  // Decorators are not allowed on a variable statement, so we keep track of them to report them in the grammar checker.
37095
- node.decorators = decorators;
37098
+ node.illegalDecorators = decorators;
37096
37099
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37097
37100
  }
37098
37101
  function parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -37112,7 +37115,7 @@ var ts;
37112
37115
  var body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, ts.Diagnostics.or_expected);
37113
37116
  setAwaitContext(savedAwaitContext);
37114
37117
  var node = factory.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body);
37115
- node.decorators = decorators;
37118
+ node.illegalDecorators = decorators;
37116
37119
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37117
37120
  }
37118
37121
  function parseConstructorName() {
@@ -37135,7 +37138,7 @@ var ts;
37135
37138
  var body = parseFunctionBlockOrSemicolon(0 /* SignatureFlags.None */, ts.Diagnostics.or_expected);
37136
37139
  var node = factory.createConstructorDeclaration(modifiers, parameters, body);
37137
37140
  // Attach invalid nodes if they exist so that we can report them in the grammar checker.
37138
- node.decorators = decorators;
37141
+ node.illegalDecorators = decorators;
37139
37142
  node.typeParameters = typeParameters;
37140
37143
  node.type = type;
37141
37144
  return withJSDoc(finishNode(node, pos), hasJSDoc);
@@ -37251,7 +37254,7 @@ var ts;
37251
37254
  parseExpectedToken(124 /* SyntaxKind.StaticKeyword */);
37252
37255
  var body = parseClassStaticBlockBody();
37253
37256
  var node = withJSDoc(finishNode(factory.createClassStaticBlockDeclaration(body), pos), hasJSDoc);
37254
- node.decorators = decorators;
37257
+ node.illegalDecorators = decorators;
37255
37258
  node.modifiers = modifiers;
37256
37259
  return node;
37257
37260
  }
@@ -37492,7 +37495,7 @@ var ts;
37492
37495
  var heritageClauses = parseHeritageClauses();
37493
37496
  var members = parseObjectTypeMembers();
37494
37497
  var node = factory.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members);
37495
- node.decorators = decorators;
37498
+ node.illegalDecorators = decorators;
37496
37499
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37497
37500
  }
37498
37501
  function parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -37503,7 +37506,7 @@ var ts;
37503
37506
  var type = token() === 138 /* SyntaxKind.IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType();
37504
37507
  parseSemicolon();
37505
37508
  var node = factory.createTypeAliasDeclaration(modifiers, name, typeParameters, type);
37506
- node.decorators = decorators;
37509
+ node.illegalDecorators = decorators;
37507
37510
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37508
37511
  }
37509
37512
  // In an ambient declaration, the grammar only allows integer literals as initializers.
@@ -37529,7 +37532,7 @@ var ts;
37529
37532
  members = createMissingList();
37530
37533
  }
37531
37534
  var node = factory.createEnumDeclaration(modifiers, name, members);
37532
- node.decorators = decorators;
37535
+ node.illegalDecorators = decorators;
37533
37536
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37534
37537
  }
37535
37538
  function parseModuleBlock() {
@@ -37553,7 +37556,7 @@ var ts;
37553
37556
  ? parseModuleOrNamespaceDeclaration(getNodePos(), /*hasJSDoc*/ false, /*decorators*/ undefined, /*modifiers*/ undefined, 4 /* NodeFlags.NestedNamespace */ | namespaceFlag)
37554
37557
  : parseModuleBlock();
37555
37558
  var node = factory.createModuleDeclaration(modifiers, name, body, flags);
37556
- node.decorators = decorators;
37559
+ node.illegalDecorators = decorators;
37557
37560
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37558
37561
  }
37559
37562
  function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -37576,7 +37579,7 @@ var ts;
37576
37579
  parseSemicolon();
37577
37580
  }
37578
37581
  var node = factory.createModuleDeclaration(modifiers, name, body, flags);
37579
- node.decorators = decorators;
37582
+ node.illegalDecorators = decorators;
37580
37583
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37581
37584
  }
37582
37585
  function parseModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -37616,7 +37619,7 @@ var ts;
37616
37619
  parseSemicolon();
37617
37620
  var node = factory.createNamespaceExportDeclaration(name);
37618
37621
  // NamespaceExportDeclaration nodes cannot have decorators or modifiers, so we attach them here so we can report them in the grammar checker
37619
- node.decorators = decorators;
37622
+ node.illegalDecorators = decorators;
37620
37623
  node.modifiers = modifiers;
37621
37624
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37622
37625
  }
@@ -37656,7 +37659,7 @@ var ts;
37656
37659
  }
37657
37660
  parseSemicolon();
37658
37661
  var node = factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause);
37659
- node.decorators = decorators;
37662
+ node.illegalDecorators = decorators;
37660
37663
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37661
37664
  }
37662
37665
  function parseAssertEntry() {
@@ -37701,7 +37704,7 @@ var ts;
37701
37704
  var moduleReference = parseModuleReference();
37702
37705
  parseSemicolon();
37703
37706
  var node = factory.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference);
37704
- node.decorators = decorators;
37707
+ node.illegalDecorators = decorators;
37705
37708
  var finished = withJSDoc(finishNode(node, pos), hasJSDoc);
37706
37709
  return finished;
37707
37710
  }
@@ -37891,7 +37894,7 @@ var ts;
37891
37894
  parseSemicolon();
37892
37895
  setAwaitContext(savedAwaitContext);
37893
37896
  var node = factory.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause);
37894
- node.decorators = decorators;
37897
+ node.illegalDecorators = decorators;
37895
37898
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37896
37899
  }
37897
37900
  function parseExportAssignment(pos, hasJSDoc, decorators, modifiers) {
@@ -37908,7 +37911,7 @@ var ts;
37908
37911
  parseSemicolon();
37909
37912
  setAwaitContext(savedAwaitContext);
37910
37913
  var node = factory.createExportAssignment(modifiers, isExportEquals, expression);
37911
- node.decorators = decorators;
37914
+ node.illegalDecorators = decorators;
37912
37915
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37913
37916
  }
37914
37917
  var ParsingContext;
@@ -43272,10 +43275,12 @@ var ts;
43272
43275
  if (resolved) {
43273
43276
  var fileName = resolved.fileName, packageId = resolved.packageId;
43274
43277
  var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);
43278
+ var pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);
43275
43279
  resolvedTypeReferenceDirective = {
43276
43280
  primary: primary,
43277
- resolvedFileName: resolvedFileName,
43278
- originalPath: arePathsEqual(fileName, resolvedFileName, host) ? undefined : fileName,
43281
+ // If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames
43282
+ resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,
43283
+ originalPath: pathsAreEqual ? undefined : fileName,
43279
43284
  packageId: packageId,
43280
43285
  isExternalLibraryImport: pathContainsNodeModules(fileName),
43281
43286
  };
@@ -44060,8 +44065,10 @@ var ts;
44060
44065
  var resolvedValue = resolved_1.value;
44061
44066
  if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {
44062
44067
  var path = realPath(resolvedValue.path, host, traceEnabled);
44063
- var originalPath = arePathsEqual(path, resolvedValue.path, host) ? undefined : resolvedValue.path;
44064
- resolvedValue = __assign(__assign({}, resolvedValue), { path: path, originalPath: originalPath });
44068
+ var pathsAreEqual = arePathsEqual(path, resolvedValue.path, host);
44069
+ var originalPath = pathsAreEqual ? undefined : resolvedValue.path;
44070
+ // If the path and realpath are differing only in casing prefer path so that we can issue correct errors for casing under forceConsistentCasingInFileNames
44071
+ resolvedValue = __assign(__assign({}, resolvedValue), { path: pathsAreEqual ? resolvedValue.path : path, originalPath: originalPath });
44065
44072
  }
44066
44073
  // For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.
44067
44074
  return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };
@@ -73714,25 +73721,7 @@ var ts;
73714
73721
  }
73715
73722
  function getTypeOfPropertyOfContextualType(type, name, nameType) {
73716
73723
  return mapType(type, function (t) {
73717
- if (t.flags & 2097152 /* TypeFlags.Intersection */) {
73718
- var intersection = t;
73719
- var newTypes = ts.mapDefined(intersection.types, getTypeOfConcretePropertyOfContextualType);
73720
- if (newTypes.length > 0) {
73721
- return getIntersectionType(newTypes);
73722
- }
73723
- newTypes = ts.mapDefined(intersection.types, getTypeOfApplicableIndexInfoOfContextualType);
73724
- if (newTypes.length > 0) {
73725
- return getIntersectionType(newTypes);
73726
- }
73727
- return undefined;
73728
- }
73729
- var concretePropertyType = getTypeOfConcretePropertyOfContextualType(t);
73730
- if (concretePropertyType) {
73731
- return concretePropertyType;
73732
- }
73733
- return getTypeOfApplicableIndexInfoOfContextualType(t);
73734
- }, /*noReductions*/ true);
73735
- function getTypeOfConcretePropertyOfContextualType(t) {
73724
+ var _a;
73736
73725
  if (isGenericMappedType(t) && !t.declaration.nameType) {
73737
73726
  var constraint = getConstraintTypeFromMappedType(t);
73738
73727
  var constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
@@ -73740,9 +73729,8 @@ var ts;
73740
73729
  if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
73741
73730
  return substituteIndexedMappedType(t, propertyNameType);
73742
73731
  }
73743
- return undefined;
73744
73732
  }
73745
- if (t.flags & 3670016 /* TypeFlags.StructuredType */) {
73733
+ else if (t.flags & 3670016 /* TypeFlags.StructuredType */) {
73746
73734
  var prop = getPropertyOfType(t, name);
73747
73735
  if (prop) {
73748
73736
  return isCircularMappedProperty(prop) ? undefined : getTypeOfSymbol(prop);
@@ -73753,16 +73741,10 @@ var ts;
73753
73741
  return restType;
73754
73742
  }
73755
73743
  }
73744
+ return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
73756
73745
  }
73757
73746
  return undefined;
73758
- }
73759
- function getTypeOfApplicableIndexInfoOfContextualType(t) {
73760
- var _a;
73761
- if (!(t.flags & 3670016 /* TypeFlags.StructuredType */)) {
73762
- return undefined;
73763
- }
73764
- return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
73765
- }
73747
+ }, /*noReductions*/ true);
73766
73748
  }
73767
73749
  // In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of
73768
73750
  // the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one
@@ -88892,7 +88874,7 @@ var ts;
88892
88874
  return checkGrammarDecorators(node) || checkGrammarModifiers(node);
88893
88875
  }
88894
88876
  function checkGrammarDecorators(node) {
88895
- if (ts.canHaveIllegalDecorators(node) && ts.some(node.decorators)) {
88877
+ if (ts.canHaveIllegalDecorators(node) && ts.some(node.illegalDecorators)) {
88896
88878
  return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here);
88897
88879
  }
88898
88880
  if (!ts.canHaveDecorators(node) || !ts.hasDecorators(node)) {
@@ -182453,9 +182435,9 @@ var ts;
182453
182435
  // - error: 5.0
182454
182436
  var ts;
182455
182437
  (function (ts) {
182456
- var MUST_MERGE = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators have been combined with modifiers. Callers should switch to an overload without a 'decorators' parameter." };
182457
- var DISALLOW_DECORATORS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators are no longer supported for this function. Callers should switch to an overload without a 'decorators' parameter." };
182458
- var DISALLOW_DECORATORS_AND_MODIFIERS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators and modifiers are no longer supported for this function. Callers should switch to an overload without the 'decorators' or 'modifiers' parameters." };
182438
+ var MUST_MERGE = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter." };
182439
+ var DISALLOW_DECORATORS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter." };
182440
+ var DISALLOW_DECORATORS_AND_MODIFIERS = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters." };
182459
182441
  function patchNodeFactory(factory) {
182460
182442
  var createParameterDeclaration = factory.createParameterDeclaration, updateParameterDeclaration = factory.updateParameterDeclaration, createPropertyDeclaration = factory.createPropertyDeclaration, updatePropertyDeclaration = factory.updatePropertyDeclaration, createMethodDeclaration = factory.createMethodDeclaration, updateMethodDeclaration = factory.updateMethodDeclaration, createConstructorDeclaration = factory.createConstructorDeclaration, updateConstructorDeclaration = factory.updateConstructorDeclaration, createGetAccessorDeclaration = factory.createGetAccessorDeclaration, updateGetAccessorDeclaration = factory.updateGetAccessorDeclaration, createSetAccessorDeclaration = factory.createSetAccessorDeclaration, updateSetAccessorDeclaration = factory.updateSetAccessorDeclaration, createIndexSignature = factory.createIndexSignature, updateIndexSignature = factory.updateIndexSignature, createClassStaticBlockDeclaration = factory.createClassStaticBlockDeclaration, updateClassStaticBlockDeclaration = factory.updateClassStaticBlockDeclaration, createClassExpression = factory.createClassExpression, updateClassExpression = factory.updateClassExpression, createFunctionDeclaration = factory.createFunctionDeclaration, updateFunctionDeclaration = factory.updateFunctionDeclaration, createClassDeclaration = factory.createClassDeclaration, updateClassDeclaration = factory.updateClassDeclaration, createInterfaceDeclaration = factory.createInterfaceDeclaration, updateInterfaceDeclaration = factory.updateInterfaceDeclaration, createTypeAliasDeclaration = factory.createTypeAliasDeclaration, updateTypeAliasDeclaration = factory.updateTypeAliasDeclaration, createEnumDeclaration = factory.createEnumDeclaration, updateEnumDeclaration = factory.updateEnumDeclaration, createModuleDeclaration = factory.createModuleDeclaration, updateModuleDeclaration = factory.updateModuleDeclaration, createImportEqualsDeclaration = factory.createImportEqualsDeclaration, updateImportEqualsDeclaration = factory.updateImportEqualsDeclaration, createImportDeclaration = factory.createImportDeclaration, updateImportDeclaration = factory.updateImportDeclaration, createExportAssignment = factory.createExportAssignment, updateExportAssignment = factory.updateExportAssignment, createExportDeclaration = factory.createExportDeclaration, updateExportDeclaration = factory.updateExportDeclaration;
182461
182443
  factory.createParameterDeclaration = ts.buildOverload("createParameterDeclaration")
@@ -182682,7 +182664,7 @@ var ts;
182682
182664
  return (decorators === undefined || !ts.some(decorators, ts.isModifier)) &&
182683
182665
  (modifiers === undefined || !ts.some(modifiers, ts.isParameter)) &&
182684
182666
  (parameters === undefined || ts.isArray(parameters)) &&
182685
- (body === undefined || !ts.isBlock(body));
182667
+ (body === undefined || ts.isBlock(body));
182686
182668
  },
182687
182669
  })
182688
182670
  .deprecate({
@@ -182711,7 +182693,7 @@ var ts;
182711
182693
  return (decorators === undefined || !ts.some(decorators, ts.isModifier)) &&
182712
182694
  (modifiers === undefined || !ts.some(modifiers, ts.isParameter)) &&
182713
182695
  (parameters === undefined || ts.isArray(parameters)) &&
182714
- (body === undefined || !ts.isBlock(body));
182696
+ (body === undefined || ts.isBlock(body));
182715
182697
  },
182716
182698
  })
182717
182699
  .deprecate({