oxc-parser 0.99.0 → 0.102.0

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.
@@ -1,16 +1,16 @@
1
1
  // Auto-generated code, DO NOT EDIT DIRECTLY!
2
2
  // To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer_lazy.rs`.
3
3
 
4
- import { constructorError, TOKEN } from '../../src-js/raw-transfer/lazy-common.js';
5
- import { NodeArray } from '../../src-js/raw-transfer/node-array.js';
4
+ import { constructorError, TOKEN } from "../../src-js/raw-transfer/lazy-common.js";
5
+ import { NodeArray } from "../../src-js/raw-transfer/node-array.js";
6
6
 
7
- const textDecoder = new TextDecoder('utf-8', { ignoreBOM: true }),
7
+ const textDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
8
8
  decodeStr = textDecoder.decode.bind(textDecoder),
9
9
  { fromCodePoint } = String,
10
- inspectSymbol = Symbol.for('nodejs.util.inspect.custom');
10
+ inspectSymbol = Symbol.for("nodejs.util.inspect.custom");
11
11
 
12
12
  export class Program {
13
- type = 'Program';
13
+ type = "Program";
14
14
  #internal;
15
15
 
16
16
  constructor(pos, ast) {
@@ -53,7 +53,7 @@ export class Program {
53
53
 
54
54
  toJSON() {
55
55
  return {
56
- type: 'Program',
56
+ type: "Program",
57
57
  start: this.start,
58
58
  end: this.end,
59
59
  sourceType: this.sourceType,
@@ -163,7 +163,7 @@ function constructExpression(pos, ast) {
163
163
  }
164
164
 
165
165
  export class IdentifierName {
166
- type = 'IdentifierName';
166
+ type = "IdentifierName";
167
167
  #internal;
168
168
 
169
169
  constructor(pos, ast) {
@@ -196,7 +196,7 @@ export class IdentifierName {
196
196
 
197
197
  toJSON() {
198
198
  return {
199
- type: 'IdentifierName',
199
+ type: "IdentifierName",
200
200
  start: this.start,
201
201
  end: this.end,
202
202
  name: this.name,
@@ -211,7 +211,7 @@ export class IdentifierName {
211
211
  const DebugIdentifierName = class IdentifierName {};
212
212
 
213
213
  export class IdentifierReference {
214
- type = 'IdentifierReference';
214
+ type = "IdentifierReference";
215
215
  #internal;
216
216
 
217
217
  constructor(pos, ast) {
@@ -244,7 +244,7 @@ export class IdentifierReference {
244
244
 
245
245
  toJSON() {
246
246
  return {
247
- type: 'IdentifierReference',
247
+ type: "IdentifierReference",
248
248
  start: this.start,
249
249
  end: this.end,
250
250
  name: this.name,
@@ -259,7 +259,7 @@ export class IdentifierReference {
259
259
  const DebugIdentifierReference = class IdentifierReference {};
260
260
 
261
261
  export class BindingIdentifier {
262
- type = 'BindingIdentifier';
262
+ type = "BindingIdentifier";
263
263
  #internal;
264
264
 
265
265
  constructor(pos, ast) {
@@ -292,7 +292,7 @@ export class BindingIdentifier {
292
292
 
293
293
  toJSON() {
294
294
  return {
295
- type: 'BindingIdentifier',
295
+ type: "BindingIdentifier",
296
296
  start: this.start,
297
297
  end: this.end,
298
298
  name: this.name,
@@ -307,7 +307,7 @@ export class BindingIdentifier {
307
307
  const DebugBindingIdentifier = class BindingIdentifier {};
308
308
 
309
309
  export class LabelIdentifier {
310
- type = 'LabelIdentifier';
310
+ type = "LabelIdentifier";
311
311
  #internal;
312
312
 
313
313
  constructor(pos, ast) {
@@ -340,7 +340,7 @@ export class LabelIdentifier {
340
340
 
341
341
  toJSON() {
342
342
  return {
343
- type: 'LabelIdentifier',
343
+ type: "LabelIdentifier",
344
344
  start: this.start,
345
345
  end: this.end,
346
346
  name: this.name,
@@ -355,7 +355,7 @@ export class LabelIdentifier {
355
355
  const DebugLabelIdentifier = class LabelIdentifier {};
356
356
 
357
357
  export class ThisExpression {
358
- type = 'ThisExpression';
358
+ type = "ThisExpression";
359
359
  #internal;
360
360
 
361
361
  constructor(pos, ast) {
@@ -381,7 +381,7 @@ export class ThisExpression {
381
381
 
382
382
  toJSON() {
383
383
  return {
384
- type: 'ThisExpression',
384
+ type: "ThisExpression",
385
385
  start: this.start,
386
386
  end: this.end,
387
387
  };
@@ -395,7 +395,7 @@ export class ThisExpression {
395
395
  const DebugThisExpression = class ThisExpression {};
396
396
 
397
397
  export class ArrayExpression {
398
- type = 'ArrayExpression';
398
+ type = "ArrayExpression";
399
399
  #internal;
400
400
 
401
401
  constructor(pos, ast) {
@@ -423,12 +423,15 @@ export class ArrayExpression {
423
423
  const internal = this.#internal,
424
424
  cached = internal.$elements;
425
425
  if (cached !== void 0) return cached;
426
- return (internal.$elements = constructVecArrayExpressionElement(internal.pos + 8, internal.ast));
426
+ return (internal.$elements = constructVecArrayExpressionElement(
427
+ internal.pos + 8,
428
+ internal.ast,
429
+ ));
427
430
  }
428
431
 
429
432
  toJSON() {
430
433
  return {
431
- type: 'ArrayExpression',
434
+ type: "ArrayExpression",
432
435
  start: this.start,
433
436
  end: this.end,
434
437
  elements: this.elements,
@@ -540,7 +543,7 @@ function constructArrayExpressionElement(pos, ast) {
540
543
  }
541
544
 
542
545
  export class Elision {
543
- type = 'Elision';
546
+ type = "Elision";
544
547
  #internal;
545
548
 
546
549
  constructor(pos, ast) {
@@ -566,7 +569,7 @@ export class Elision {
566
569
 
567
570
  toJSON() {
568
571
  return {
569
- type: 'Elision',
572
+ type: "Elision",
570
573
  start: this.start,
571
574
  end: this.end,
572
575
  };
@@ -580,7 +583,7 @@ export class Elision {
580
583
  const DebugElision = class Elision {};
581
584
 
582
585
  export class ObjectExpression {
583
- type = 'ObjectExpression';
586
+ type = "ObjectExpression";
584
587
  #internal;
585
588
 
586
589
  constructor(pos, ast) {
@@ -613,7 +616,7 @@ export class ObjectExpression {
613
616
 
614
617
  toJSON() {
615
618
  return {
616
- type: 'ObjectExpression',
619
+ type: "ObjectExpression",
617
620
  start: this.start,
618
621
  end: this.end,
619
622
  properties: this.properties,
@@ -639,7 +642,7 @@ function constructObjectPropertyKind(pos, ast) {
639
642
  }
640
643
 
641
644
  export class ObjectProperty {
642
- type = 'ObjectProperty';
645
+ type = "ObjectProperty";
643
646
  #internal;
644
647
 
645
648
  constructor(pos, ast) {
@@ -695,7 +698,7 @@ export class ObjectProperty {
695
698
 
696
699
  toJSON() {
697
700
  return {
698
- type: 'ObjectProperty',
701
+ type: "ObjectProperty",
699
702
  start: this.start,
700
703
  end: this.end,
701
704
  kind: this.kind,
@@ -814,18 +817,18 @@ function constructPropertyKey(pos, ast) {
814
817
  function constructPropertyKind(pos, ast) {
815
818
  switch (ast.buffer[pos]) {
816
819
  case 0:
817
- return 'init';
820
+ return "init";
818
821
  case 1:
819
- return 'get';
822
+ return "get";
820
823
  case 2:
821
- return 'set';
824
+ return "set";
822
825
  default:
823
826
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for PropertyKind`);
824
827
  }
825
828
  }
826
829
 
827
830
  export class TemplateLiteral {
828
- type = 'TemplateLiteral';
831
+ type = "TemplateLiteral";
829
832
  #internal;
830
833
 
831
834
  constructor(pos, ast) {
@@ -865,7 +868,7 @@ export class TemplateLiteral {
865
868
 
866
869
  toJSON() {
867
870
  return {
868
- type: 'TemplateLiteral',
871
+ type: "TemplateLiteral",
869
872
  start: this.start,
870
873
  end: this.end,
871
874
  quasis: this.quasis,
@@ -881,7 +884,7 @@ export class TemplateLiteral {
881
884
  const DebugTemplateLiteral = class TemplateLiteral {};
882
885
 
883
886
  export class TaggedTemplateExpression {
884
- type = 'TaggedTemplateExpression';
887
+ type = "TaggedTemplateExpression";
885
888
  #internal;
886
889
 
887
890
  constructor(pos, ast) {
@@ -922,7 +925,7 @@ export class TaggedTemplateExpression {
922
925
 
923
926
  toJSON() {
924
927
  return {
925
- type: 'TaggedTemplateExpression',
928
+ type: "TaggedTemplateExpression",
926
929
  start: this.start,
927
930
  end: this.end,
928
931
  tag: this.tag,
@@ -939,7 +942,7 @@ export class TaggedTemplateExpression {
939
942
  const DebugTaggedTemplateExpression = class TaggedTemplateExpression {};
940
943
 
941
944
  export class TemplateElement {
942
- type = 'TemplateElement';
945
+ type = "TemplateElement";
943
946
  #internal;
944
947
 
945
948
  constructor(pos, ast) {
@@ -975,7 +978,7 @@ export class TemplateElement {
975
978
 
976
979
  toJSON() {
977
980
  return {
978
- type: 'TemplateElement',
981
+ type: "TemplateElement",
979
982
  start: this.start,
980
983
  end: this.end,
981
984
  value: this.value,
@@ -1046,7 +1049,7 @@ function constructMemberExpression(pos, ast) {
1046
1049
  }
1047
1050
 
1048
1051
  export class ComputedMemberExpression {
1049
- type = 'ComputedMemberExpression';
1052
+ type = "ComputedMemberExpression";
1050
1053
  #internal;
1051
1054
 
1052
1055
  constructor(pos, ast) {
@@ -1087,7 +1090,7 @@ export class ComputedMemberExpression {
1087
1090
 
1088
1091
  toJSON() {
1089
1092
  return {
1090
- type: 'ComputedMemberExpression',
1093
+ type: "ComputedMemberExpression",
1091
1094
  start: this.start,
1092
1095
  end: this.end,
1093
1096
  object: this.object,
@@ -1104,7 +1107,7 @@ export class ComputedMemberExpression {
1104
1107
  const DebugComputedMemberExpression = class ComputedMemberExpression {};
1105
1108
 
1106
1109
  export class StaticMemberExpression {
1107
- type = 'StaticMemberExpression';
1110
+ type = "StaticMemberExpression";
1108
1111
  #internal;
1109
1112
 
1110
1113
  constructor(pos, ast) {
@@ -1145,7 +1148,7 @@ export class StaticMemberExpression {
1145
1148
 
1146
1149
  toJSON() {
1147
1150
  return {
1148
- type: 'StaticMemberExpression',
1151
+ type: "StaticMemberExpression",
1149
1152
  start: this.start,
1150
1153
  end: this.end,
1151
1154
  object: this.object,
@@ -1162,7 +1165,7 @@ export class StaticMemberExpression {
1162
1165
  const DebugStaticMemberExpression = class StaticMemberExpression {};
1163
1166
 
1164
1167
  export class PrivateFieldExpression {
1165
- type = 'PrivateFieldExpression';
1168
+ type = "PrivateFieldExpression";
1166
1169
  #internal;
1167
1170
 
1168
1171
  constructor(pos, ast) {
@@ -1203,7 +1206,7 @@ export class PrivateFieldExpression {
1203
1206
 
1204
1207
  toJSON() {
1205
1208
  return {
1206
- type: 'PrivateFieldExpression',
1209
+ type: "PrivateFieldExpression",
1207
1210
  start: this.start,
1208
1211
  end: this.end,
1209
1212
  object: this.object,
@@ -1220,7 +1223,7 @@ export class PrivateFieldExpression {
1220
1223
  const DebugPrivateFieldExpression = class PrivateFieldExpression {};
1221
1224
 
1222
1225
  export class CallExpression {
1223
- type = 'CallExpression';
1226
+ type = "CallExpression";
1224
1227
  #internal;
1225
1228
 
1226
1229
  constructor(pos, ast) {
@@ -1268,7 +1271,7 @@ export class CallExpression {
1268
1271
 
1269
1272
  toJSON() {
1270
1273
  return {
1271
- type: 'CallExpression',
1274
+ type: "CallExpression",
1272
1275
  start: this.start,
1273
1276
  end: this.end,
1274
1277
  callee: this.callee,
@@ -1286,7 +1289,7 @@ export class CallExpression {
1286
1289
  const DebugCallExpression = class CallExpression {};
1287
1290
 
1288
1291
  export class NewExpression {
1289
- type = 'NewExpression';
1292
+ type = "NewExpression";
1290
1293
  #internal;
1291
1294
 
1292
1295
  constructor(pos, ast) {
@@ -1329,7 +1332,7 @@ export class NewExpression {
1329
1332
 
1330
1333
  toJSON() {
1331
1334
  return {
1332
- type: 'NewExpression',
1335
+ type: "NewExpression",
1333
1336
  start: this.start,
1334
1337
  end: this.end,
1335
1338
  callee: this.callee,
@@ -1346,7 +1349,7 @@ export class NewExpression {
1346
1349
  const DebugNewExpression = class NewExpression {};
1347
1350
 
1348
1351
  export class MetaProperty {
1349
- type = 'MetaProperty';
1352
+ type = "MetaProperty";
1350
1353
  #internal;
1351
1354
 
1352
1355
  constructor(pos, ast) {
@@ -1382,7 +1385,7 @@ export class MetaProperty {
1382
1385
 
1383
1386
  toJSON() {
1384
1387
  return {
1385
- type: 'MetaProperty',
1388
+ type: "MetaProperty",
1386
1389
  start: this.start,
1387
1390
  end: this.end,
1388
1391
  meta: this.meta,
@@ -1398,7 +1401,7 @@ export class MetaProperty {
1398
1401
  const DebugMetaProperty = class MetaProperty {};
1399
1402
 
1400
1403
  export class SpreadElement {
1401
- type = 'SpreadElement';
1404
+ type = "SpreadElement";
1402
1405
  #internal;
1403
1406
 
1404
1407
  constructor(pos, ast) {
@@ -1429,7 +1432,7 @@ export class SpreadElement {
1429
1432
 
1430
1433
  toJSON() {
1431
1434
  return {
1432
- type: 'SpreadElement',
1435
+ type: "SpreadElement",
1433
1436
  start: this.start,
1434
1437
  end: this.end,
1435
1438
  argument: this.argument,
@@ -1539,7 +1542,7 @@ function constructArgument(pos, ast) {
1539
1542
  }
1540
1543
 
1541
1544
  export class UpdateExpression {
1542
- type = 'UpdateExpression';
1545
+ type = "UpdateExpression";
1543
1546
  #internal;
1544
1547
 
1545
1548
  constructor(pos, ast) {
@@ -1580,7 +1583,7 @@ export class UpdateExpression {
1580
1583
 
1581
1584
  toJSON() {
1582
1585
  return {
1583
- type: 'UpdateExpression',
1586
+ type: "UpdateExpression",
1584
1587
  start: this.start,
1585
1588
  end: this.end,
1586
1589
  operator: this.operator,
@@ -1597,7 +1600,7 @@ export class UpdateExpression {
1597
1600
  const DebugUpdateExpression = class UpdateExpression {};
1598
1601
 
1599
1602
  export class UnaryExpression {
1600
- type = 'UnaryExpression';
1603
+ type = "UnaryExpression";
1601
1604
  #internal;
1602
1605
 
1603
1606
  constructor(pos, ast) {
@@ -1633,7 +1636,7 @@ export class UnaryExpression {
1633
1636
 
1634
1637
  toJSON() {
1635
1638
  return {
1636
- type: 'UnaryExpression',
1639
+ type: "UnaryExpression",
1637
1640
  start: this.start,
1638
1641
  end: this.end,
1639
1642
  operator: this.operator,
@@ -1649,7 +1652,7 @@ export class UnaryExpression {
1649
1652
  const DebugUnaryExpression = class UnaryExpression {};
1650
1653
 
1651
1654
  export class BinaryExpression {
1652
- type = 'BinaryExpression';
1655
+ type = "BinaryExpression";
1653
1656
  #internal;
1654
1657
 
1655
1658
  constructor(pos, ast) {
@@ -1690,7 +1693,7 @@ export class BinaryExpression {
1690
1693
 
1691
1694
  toJSON() {
1692
1695
  return {
1693
- type: 'BinaryExpression',
1696
+ type: "BinaryExpression",
1694
1697
  start: this.start,
1695
1698
  end: this.end,
1696
1699
  left: this.left,
@@ -1707,7 +1710,7 @@ export class BinaryExpression {
1707
1710
  const DebugBinaryExpression = class BinaryExpression {};
1708
1711
 
1709
1712
  export class PrivateInExpression {
1710
- type = 'PrivateInExpression';
1713
+ type = "PrivateInExpression";
1711
1714
  #internal;
1712
1715
 
1713
1716
  constructor(pos, ast) {
@@ -1743,7 +1746,7 @@ export class PrivateInExpression {
1743
1746
 
1744
1747
  toJSON() {
1745
1748
  return {
1746
- type: 'PrivateInExpression',
1749
+ type: "PrivateInExpression",
1747
1750
  start: this.start,
1748
1751
  end: this.end,
1749
1752
  left: this.left,
@@ -1759,7 +1762,7 @@ export class PrivateInExpression {
1759
1762
  const DebugPrivateInExpression = class PrivateInExpression {};
1760
1763
 
1761
1764
  export class LogicalExpression {
1762
- type = 'LogicalExpression';
1765
+ type = "LogicalExpression";
1763
1766
  #internal;
1764
1767
 
1765
1768
  constructor(pos, ast) {
@@ -1800,7 +1803,7 @@ export class LogicalExpression {
1800
1803
 
1801
1804
  toJSON() {
1802
1805
  return {
1803
- type: 'LogicalExpression',
1806
+ type: "LogicalExpression",
1804
1807
  start: this.start,
1805
1808
  end: this.end,
1806
1809
  left: this.left,
@@ -1817,7 +1820,7 @@ export class LogicalExpression {
1817
1820
  const DebugLogicalExpression = class LogicalExpression {};
1818
1821
 
1819
1822
  export class ConditionalExpression {
1820
- type = 'ConditionalExpression';
1823
+ type = "ConditionalExpression";
1821
1824
  #internal;
1822
1825
 
1823
1826
  constructor(pos, ast) {
@@ -1858,7 +1861,7 @@ export class ConditionalExpression {
1858
1861
 
1859
1862
  toJSON() {
1860
1863
  return {
1861
- type: 'ConditionalExpression',
1864
+ type: "ConditionalExpression",
1862
1865
  start: this.start,
1863
1866
  end: this.end,
1864
1867
  test: this.test,
@@ -1875,7 +1878,7 @@ export class ConditionalExpression {
1875
1878
  const DebugConditionalExpression = class ConditionalExpression {};
1876
1879
 
1877
1880
  export class AssignmentExpression {
1878
- type = 'AssignmentExpression';
1881
+ type = "AssignmentExpression";
1879
1882
  #internal;
1880
1883
 
1881
1884
  constructor(pos, ast) {
@@ -1916,7 +1919,7 @@ export class AssignmentExpression {
1916
1919
 
1917
1920
  toJSON() {
1918
1921
  return {
1919
- type: 'AssignmentExpression',
1922
+ type: "AssignmentExpression",
1920
1923
  start: this.start,
1921
1924
  end: this.end,
1922
1925
  operator: this.operator,
@@ -1994,7 +1997,7 @@ function constructAssignmentTargetPattern(pos, ast) {
1994
1997
  }
1995
1998
 
1996
1999
  export class ArrayAssignmentTarget {
1997
- type = 'ArrayAssignmentTarget';
2000
+ type = "ArrayAssignmentTarget";
1998
2001
  #internal;
1999
2002
 
2000
2003
  constructor(pos, ast) {
@@ -2022,12 +2025,15 @@ export class ArrayAssignmentTarget {
2022
2025
  const internal = this.#internal,
2023
2026
  cached = internal.$elements;
2024
2027
  if (cached !== void 0) return cached;
2025
- return (internal.$elements = constructVecOptionAssignmentTargetMaybeDefault(internal.pos + 8, internal.ast));
2028
+ return (internal.$elements = constructVecOptionAssignmentTargetMaybeDefault(
2029
+ internal.pos + 8,
2030
+ internal.ast,
2031
+ ));
2026
2032
  }
2027
2033
 
2028
2034
  toJSON() {
2029
2035
  return {
2030
- type: 'ArrayAssignmentTarget',
2036
+ type: "ArrayAssignmentTarget",
2031
2037
  start: this.start,
2032
2038
  end: this.end,
2033
2039
  elements: this.elements,
@@ -2042,7 +2048,7 @@ export class ArrayAssignmentTarget {
2042
2048
  const DebugArrayAssignmentTarget = class ArrayAssignmentTarget {};
2043
2049
 
2044
2050
  export class ObjectAssignmentTarget {
2045
- type = 'ObjectAssignmentTarget';
2051
+ type = "ObjectAssignmentTarget";
2046
2052
  #internal;
2047
2053
 
2048
2054
  constructor(pos, ast) {
@@ -2070,12 +2076,15 @@ export class ObjectAssignmentTarget {
2070
2076
  const internal = this.#internal,
2071
2077
  cached = internal.$properties;
2072
2078
  if (cached !== void 0) return cached;
2073
- return (internal.$properties = constructVecAssignmentTargetProperty(internal.pos + 8, internal.ast));
2079
+ return (internal.$properties = constructVecAssignmentTargetProperty(
2080
+ internal.pos + 8,
2081
+ internal.ast,
2082
+ ));
2074
2083
  }
2075
2084
 
2076
2085
  toJSON() {
2077
2086
  return {
2078
- type: 'ObjectAssignmentTarget',
2087
+ type: "ObjectAssignmentTarget",
2079
2088
  start: this.start,
2080
2089
  end: this.end,
2081
2090
  properties: this.properties,
@@ -2090,7 +2099,7 @@ export class ObjectAssignmentTarget {
2090
2099
  const DebugObjectAssignmentTarget = class ObjectAssignmentTarget {};
2091
2100
 
2092
2101
  export class AssignmentTargetRest {
2093
- type = 'AssignmentTargetRest';
2102
+ type = "AssignmentTargetRest";
2094
2103
  #internal;
2095
2104
 
2096
2105
  constructor(pos, ast) {
@@ -2121,7 +2130,7 @@ export class AssignmentTargetRest {
2121
2130
 
2122
2131
  toJSON() {
2123
2132
  return {
2124
- type: 'AssignmentTargetRest',
2133
+ type: "AssignmentTargetRest",
2125
2134
  start: this.start,
2126
2135
  end: this.end,
2127
2136
  argument: this.argument,
@@ -2160,12 +2169,14 @@ function constructAssignmentTargetMaybeDefault(pos, ast) {
2160
2169
  case 50:
2161
2170
  return constructBoxPrivateFieldExpression(pos + 8, ast);
2162
2171
  default:
2163
- throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for AssignmentTargetMaybeDefault`);
2172
+ throw new Error(
2173
+ `Unexpected discriminant ${ast.buffer[pos]} for AssignmentTargetMaybeDefault`,
2174
+ );
2164
2175
  }
2165
2176
  }
2166
2177
 
2167
2178
  export class AssignmentTargetWithDefault {
2168
- type = 'AssignmentTargetWithDefault';
2179
+ type = "AssignmentTargetWithDefault";
2169
2180
  #internal;
2170
2181
 
2171
2182
  constructor(pos, ast) {
@@ -2201,7 +2212,7 @@ export class AssignmentTargetWithDefault {
2201
2212
 
2202
2213
  toJSON() {
2203
2214
  return {
2204
- type: 'AssignmentTargetWithDefault',
2215
+ type: "AssignmentTargetWithDefault",
2205
2216
  start: this.start,
2206
2217
  end: this.end,
2207
2218
  left: this.left,
@@ -2228,7 +2239,7 @@ function constructAssignmentTargetProperty(pos, ast) {
2228
2239
  }
2229
2240
 
2230
2241
  export class AssignmentTargetPropertyIdentifier {
2231
- type = 'AssignmentTargetPropertyIdentifier';
2242
+ type = "AssignmentTargetPropertyIdentifier";
2232
2243
  #internal;
2233
2244
 
2234
2245
  constructor(pos, ast) {
@@ -2264,7 +2275,7 @@ export class AssignmentTargetPropertyIdentifier {
2264
2275
 
2265
2276
  toJSON() {
2266
2277
  return {
2267
- type: 'AssignmentTargetPropertyIdentifier',
2278
+ type: "AssignmentTargetPropertyIdentifier",
2268
2279
  start: this.start,
2269
2280
  end: this.end,
2270
2281
  key: this.key,
@@ -2280,7 +2291,7 @@ export class AssignmentTargetPropertyIdentifier {
2280
2291
  const DebugAssignmentTargetPropertyIdentifier = class AssignmentTargetPropertyIdentifier {};
2281
2292
 
2282
2293
  export class AssignmentTargetPropertyProperty {
2283
- type = 'AssignmentTargetPropertyProperty';
2294
+ type = "AssignmentTargetPropertyProperty";
2284
2295
  #internal;
2285
2296
 
2286
2297
  constructor(pos, ast) {
@@ -2321,7 +2332,7 @@ export class AssignmentTargetPropertyProperty {
2321
2332
 
2322
2333
  toJSON() {
2323
2334
  return {
2324
- type: 'AssignmentTargetPropertyProperty',
2335
+ type: "AssignmentTargetPropertyProperty",
2325
2336
  start: this.start,
2326
2337
  end: this.end,
2327
2338
  key: this.key,
@@ -2338,7 +2349,7 @@ export class AssignmentTargetPropertyProperty {
2338
2349
  const DebugAssignmentTargetPropertyProperty = class AssignmentTargetPropertyProperty {};
2339
2350
 
2340
2351
  export class SequenceExpression {
2341
- type = 'SequenceExpression';
2352
+ type = "SequenceExpression";
2342
2353
  #internal;
2343
2354
 
2344
2355
  constructor(pos, ast) {
@@ -2371,7 +2382,7 @@ export class SequenceExpression {
2371
2382
 
2372
2383
  toJSON() {
2373
2384
  return {
2374
- type: 'SequenceExpression',
2385
+ type: "SequenceExpression",
2375
2386
  start: this.start,
2376
2387
  end: this.end,
2377
2388
  expressions: this.expressions,
@@ -2386,7 +2397,7 @@ export class SequenceExpression {
2386
2397
  const DebugSequenceExpression = class SequenceExpression {};
2387
2398
 
2388
2399
  export class Super {
2389
- type = 'Super';
2400
+ type = "Super";
2390
2401
  #internal;
2391
2402
 
2392
2403
  constructor(pos, ast) {
@@ -2412,7 +2423,7 @@ export class Super {
2412
2423
 
2413
2424
  toJSON() {
2414
2425
  return {
2415
- type: 'Super',
2426
+ type: "Super",
2416
2427
  start: this.start,
2417
2428
  end: this.end,
2418
2429
  };
@@ -2426,7 +2437,7 @@ export class Super {
2426
2437
  const DebugSuper = class Super {};
2427
2438
 
2428
2439
  export class AwaitExpression {
2429
- type = 'AwaitExpression';
2440
+ type = "AwaitExpression";
2430
2441
  #internal;
2431
2442
 
2432
2443
  constructor(pos, ast) {
@@ -2457,7 +2468,7 @@ export class AwaitExpression {
2457
2468
 
2458
2469
  toJSON() {
2459
2470
  return {
2460
- type: 'AwaitExpression',
2471
+ type: "AwaitExpression",
2461
2472
  start: this.start,
2462
2473
  end: this.end,
2463
2474
  argument: this.argument,
@@ -2472,7 +2483,7 @@ export class AwaitExpression {
2472
2483
  const DebugAwaitExpression = class AwaitExpression {};
2473
2484
 
2474
2485
  export class ChainExpression {
2475
- type = 'ChainExpression';
2486
+ type = "ChainExpression";
2476
2487
  #internal;
2477
2488
 
2478
2489
  constructor(pos, ast) {
@@ -2503,7 +2514,7 @@ export class ChainExpression {
2503
2514
 
2504
2515
  toJSON() {
2505
2516
  return {
2506
- type: 'ChainExpression',
2517
+ type: "ChainExpression",
2507
2518
  start: this.start,
2508
2519
  end: this.end,
2509
2520
  expression: this.expression,
@@ -2535,7 +2546,7 @@ function constructChainElement(pos, ast) {
2535
2546
  }
2536
2547
 
2537
2548
  export class ParenthesizedExpression {
2538
- type = 'ParenthesizedExpression';
2549
+ type = "ParenthesizedExpression";
2539
2550
  #internal;
2540
2551
 
2541
2552
  constructor(pos, ast) {
@@ -2566,7 +2577,7 @@ export class ParenthesizedExpression {
2566
2577
 
2567
2578
  toJSON() {
2568
2579
  return {
2569
- type: 'ParenthesizedExpression',
2580
+ type: "ParenthesizedExpression",
2570
2581
  start: this.start,
2571
2582
  end: this.end,
2572
2583
  expression: this.expression,
@@ -2654,7 +2665,7 @@ function constructStatement(pos, ast) {
2654
2665
  }
2655
2666
 
2656
2667
  export class Directive {
2657
- type = 'Directive';
2668
+ type = "Directive";
2658
2669
  #internal;
2659
2670
 
2660
2671
  constructor(pos, ast) {
@@ -2692,7 +2703,7 @@ export class Directive {
2692
2703
 
2693
2704
  toJSON() {
2694
2705
  return {
2695
- type: 'Directive',
2706
+ type: "Directive",
2696
2707
  start: this.start,
2697
2708
  end: this.end,
2698
2709
  expression: this.expression,
@@ -2708,7 +2719,7 @@ export class Directive {
2708
2719
  const DebugDirective = class Directive {};
2709
2720
 
2710
2721
  export class Hashbang {
2711
- type = 'Hashbang';
2722
+ type = "Hashbang";
2712
2723
  #internal;
2713
2724
 
2714
2725
  constructor(pos, ast) {
@@ -2741,7 +2752,7 @@ export class Hashbang {
2741
2752
 
2742
2753
  toJSON() {
2743
2754
  return {
2744
- type: 'Hashbang',
2755
+ type: "Hashbang",
2745
2756
  start: this.start,
2746
2757
  end: this.end,
2747
2758
  value: this.value,
@@ -2756,7 +2767,7 @@ export class Hashbang {
2756
2767
  const DebugHashbang = class Hashbang {};
2757
2768
 
2758
2769
  export class BlockStatement {
2759
- type = 'BlockStatement';
2770
+ type = "BlockStatement";
2760
2771
  #internal;
2761
2772
 
2762
2773
  constructor(pos, ast) {
@@ -2789,7 +2800,7 @@ export class BlockStatement {
2789
2800
 
2790
2801
  toJSON() {
2791
2802
  return {
2792
- type: 'BlockStatement',
2803
+ type: "BlockStatement",
2793
2804
  start: this.start,
2794
2805
  end: this.end,
2795
2806
  body: this.body,
@@ -2829,7 +2840,7 @@ function constructDeclaration(pos, ast) {
2829
2840
  }
2830
2841
 
2831
2842
  export class VariableDeclaration {
2832
- type = 'VariableDeclaration';
2843
+ type = "VariableDeclaration";
2833
2844
  #internal;
2834
2845
 
2835
2846
  constructor(pos, ast) {
@@ -2862,7 +2873,10 @@ export class VariableDeclaration {
2862
2873
  const internal = this.#internal,
2863
2874
  cached = internal.$declarations;
2864
2875
  if (cached !== void 0) return cached;
2865
- return (internal.$declarations = constructVecVariableDeclarator(internal.pos + 8, internal.ast));
2876
+ return (internal.$declarations = constructVecVariableDeclarator(
2877
+ internal.pos + 8,
2878
+ internal.ast,
2879
+ ));
2866
2880
  }
2867
2881
 
2868
2882
  get declare() {
@@ -2872,7 +2886,7 @@ export class VariableDeclaration {
2872
2886
 
2873
2887
  toJSON() {
2874
2888
  return {
2875
- type: 'VariableDeclaration',
2889
+ type: "VariableDeclaration",
2876
2890
  start: this.start,
2877
2891
  end: this.end,
2878
2892
  kind: this.kind,
@@ -2891,22 +2905,22 @@ const DebugVariableDeclaration = class VariableDeclaration {};
2891
2905
  function constructVariableDeclarationKind(pos, ast) {
2892
2906
  switch (ast.buffer[pos]) {
2893
2907
  case 0:
2894
- return 'var';
2908
+ return "var";
2895
2909
  case 1:
2896
- return 'let';
2910
+ return "let";
2897
2911
  case 2:
2898
- return 'const';
2912
+ return "const";
2899
2913
  case 3:
2900
- return 'using';
2914
+ return "using";
2901
2915
  case 4:
2902
- return 'await using';
2916
+ return "await using";
2903
2917
  default:
2904
2918
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for VariableDeclarationKind`);
2905
2919
  }
2906
2920
  }
2907
2921
 
2908
2922
  export class VariableDeclarator {
2909
- type = 'VariableDeclarator';
2923
+ type = "VariableDeclarator";
2910
2924
  #internal;
2911
2925
 
2912
2926
  constructor(pos, ast) {
@@ -2947,7 +2961,7 @@ export class VariableDeclarator {
2947
2961
 
2948
2962
  toJSON() {
2949
2963
  return {
2950
- type: 'VariableDeclarator',
2964
+ type: "VariableDeclarator",
2951
2965
  start: this.start,
2952
2966
  end: this.end,
2953
2967
  id: this.id,
@@ -2964,7 +2978,7 @@ export class VariableDeclarator {
2964
2978
  const DebugVariableDeclarator = class VariableDeclarator {};
2965
2979
 
2966
2980
  export class EmptyStatement {
2967
- type = 'EmptyStatement';
2981
+ type = "EmptyStatement";
2968
2982
  #internal;
2969
2983
 
2970
2984
  constructor(pos, ast) {
@@ -2990,7 +3004,7 @@ export class EmptyStatement {
2990
3004
 
2991
3005
  toJSON() {
2992
3006
  return {
2993
- type: 'EmptyStatement',
3007
+ type: "EmptyStatement",
2994
3008
  start: this.start,
2995
3009
  end: this.end,
2996
3010
  };
@@ -3004,7 +3018,7 @@ export class EmptyStatement {
3004
3018
  const DebugEmptyStatement = class EmptyStatement {};
3005
3019
 
3006
3020
  export class ExpressionStatement {
3007
- type = 'ExpressionStatement';
3021
+ type = "ExpressionStatement";
3008
3022
  #internal;
3009
3023
 
3010
3024
  constructor(pos, ast) {
@@ -3035,7 +3049,7 @@ export class ExpressionStatement {
3035
3049
 
3036
3050
  toJSON() {
3037
3051
  return {
3038
- type: 'ExpressionStatement',
3052
+ type: "ExpressionStatement",
3039
3053
  start: this.start,
3040
3054
  end: this.end,
3041
3055
  expression: this.expression,
@@ -3050,7 +3064,7 @@ export class ExpressionStatement {
3050
3064
  const DebugExpressionStatement = class ExpressionStatement {};
3051
3065
 
3052
3066
  export class IfStatement {
3053
- type = 'IfStatement';
3067
+ type = "IfStatement";
3054
3068
  #internal;
3055
3069
 
3056
3070
  constructor(pos, ast) {
@@ -3091,7 +3105,7 @@ export class IfStatement {
3091
3105
 
3092
3106
  toJSON() {
3093
3107
  return {
3094
- type: 'IfStatement',
3108
+ type: "IfStatement",
3095
3109
  start: this.start,
3096
3110
  end: this.end,
3097
3111
  test: this.test,
@@ -3108,7 +3122,7 @@ export class IfStatement {
3108
3122
  const DebugIfStatement = class IfStatement {};
3109
3123
 
3110
3124
  export class DoWhileStatement {
3111
- type = 'DoWhileStatement';
3125
+ type = "DoWhileStatement";
3112
3126
  #internal;
3113
3127
 
3114
3128
  constructor(pos, ast) {
@@ -3144,7 +3158,7 @@ export class DoWhileStatement {
3144
3158
 
3145
3159
  toJSON() {
3146
3160
  return {
3147
- type: 'DoWhileStatement',
3161
+ type: "DoWhileStatement",
3148
3162
  start: this.start,
3149
3163
  end: this.end,
3150
3164
  body: this.body,
@@ -3160,7 +3174,7 @@ export class DoWhileStatement {
3160
3174
  const DebugDoWhileStatement = class DoWhileStatement {};
3161
3175
 
3162
3176
  export class WhileStatement {
3163
- type = 'WhileStatement';
3177
+ type = "WhileStatement";
3164
3178
  #internal;
3165
3179
 
3166
3180
  constructor(pos, ast) {
@@ -3196,7 +3210,7 @@ export class WhileStatement {
3196
3210
 
3197
3211
  toJSON() {
3198
3212
  return {
3199
- type: 'WhileStatement',
3213
+ type: "WhileStatement",
3200
3214
  start: this.start,
3201
3215
  end: this.end,
3202
3216
  test: this.test,
@@ -3212,7 +3226,7 @@ export class WhileStatement {
3212
3226
  const DebugWhileStatement = class WhileStatement {};
3213
3227
 
3214
3228
  export class ForStatement {
3215
- type = 'ForStatement';
3229
+ type = "ForStatement";
3216
3230
  #internal;
3217
3231
 
3218
3232
  constructor(pos, ast) {
@@ -3258,7 +3272,7 @@ export class ForStatement {
3258
3272
 
3259
3273
  toJSON() {
3260
3274
  return {
3261
- type: 'ForStatement',
3275
+ type: "ForStatement",
3262
3276
  start: this.start,
3263
3277
  end: this.end,
3264
3278
  init: this.init,
@@ -3371,7 +3385,7 @@ function constructForStatementInit(pos, ast) {
3371
3385
  }
3372
3386
 
3373
3387
  export class ForInStatement {
3374
- type = 'ForInStatement';
3388
+ type = "ForInStatement";
3375
3389
  #internal;
3376
3390
 
3377
3391
  constructor(pos, ast) {
@@ -3412,7 +3426,7 @@ export class ForInStatement {
3412
3426
 
3413
3427
  toJSON() {
3414
3428
  return {
3415
- type: 'ForInStatement',
3429
+ type: "ForInStatement",
3416
3430
  start: this.start,
3417
3431
  end: this.end,
3418
3432
  left: this.left,
@@ -3458,7 +3472,7 @@ function constructForStatementLeft(pos, ast) {
3458
3472
  }
3459
3473
 
3460
3474
  export class ForOfStatement {
3461
- type = 'ForOfStatement';
3475
+ type = "ForOfStatement";
3462
3476
  #internal;
3463
3477
 
3464
3478
  constructor(pos, ast) {
@@ -3504,7 +3518,7 @@ export class ForOfStatement {
3504
3518
 
3505
3519
  toJSON() {
3506
3520
  return {
3507
- type: 'ForOfStatement',
3521
+ type: "ForOfStatement",
3508
3522
  start: this.start,
3509
3523
  end: this.end,
3510
3524
  await: this.await,
@@ -3522,7 +3536,7 @@ export class ForOfStatement {
3522
3536
  const DebugForOfStatement = class ForOfStatement {};
3523
3537
 
3524
3538
  export class ContinueStatement {
3525
- type = 'ContinueStatement';
3539
+ type = "ContinueStatement";
3526
3540
  #internal;
3527
3541
 
3528
3542
  constructor(pos, ast) {
@@ -3553,7 +3567,7 @@ export class ContinueStatement {
3553
3567
 
3554
3568
  toJSON() {
3555
3569
  return {
3556
- type: 'ContinueStatement',
3570
+ type: "ContinueStatement",
3557
3571
  start: this.start,
3558
3572
  end: this.end,
3559
3573
  label: this.label,
@@ -3568,7 +3582,7 @@ export class ContinueStatement {
3568
3582
  const DebugContinueStatement = class ContinueStatement {};
3569
3583
 
3570
3584
  export class BreakStatement {
3571
- type = 'BreakStatement';
3585
+ type = "BreakStatement";
3572
3586
  #internal;
3573
3587
 
3574
3588
  constructor(pos, ast) {
@@ -3599,7 +3613,7 @@ export class BreakStatement {
3599
3613
 
3600
3614
  toJSON() {
3601
3615
  return {
3602
- type: 'BreakStatement',
3616
+ type: "BreakStatement",
3603
3617
  start: this.start,
3604
3618
  end: this.end,
3605
3619
  label: this.label,
@@ -3614,7 +3628,7 @@ export class BreakStatement {
3614
3628
  const DebugBreakStatement = class BreakStatement {};
3615
3629
 
3616
3630
  export class ReturnStatement {
3617
- type = 'ReturnStatement';
3631
+ type = "ReturnStatement";
3618
3632
  #internal;
3619
3633
 
3620
3634
  constructor(pos, ast) {
@@ -3645,7 +3659,7 @@ export class ReturnStatement {
3645
3659
 
3646
3660
  toJSON() {
3647
3661
  return {
3648
- type: 'ReturnStatement',
3662
+ type: "ReturnStatement",
3649
3663
  start: this.start,
3650
3664
  end: this.end,
3651
3665
  argument: this.argument,
@@ -3660,7 +3674,7 @@ export class ReturnStatement {
3660
3674
  const DebugReturnStatement = class ReturnStatement {};
3661
3675
 
3662
3676
  export class WithStatement {
3663
- type = 'WithStatement';
3677
+ type = "WithStatement";
3664
3678
  #internal;
3665
3679
 
3666
3680
  constructor(pos, ast) {
@@ -3696,7 +3710,7 @@ export class WithStatement {
3696
3710
 
3697
3711
  toJSON() {
3698
3712
  return {
3699
- type: 'WithStatement',
3713
+ type: "WithStatement",
3700
3714
  start: this.start,
3701
3715
  end: this.end,
3702
3716
  object: this.object,
@@ -3712,7 +3726,7 @@ export class WithStatement {
3712
3726
  const DebugWithStatement = class WithStatement {};
3713
3727
 
3714
3728
  export class SwitchStatement {
3715
- type = 'SwitchStatement';
3729
+ type = "SwitchStatement";
3716
3730
  #internal;
3717
3731
 
3718
3732
  constructor(pos, ast) {
@@ -3750,7 +3764,7 @@ export class SwitchStatement {
3750
3764
 
3751
3765
  toJSON() {
3752
3766
  return {
3753
- type: 'SwitchStatement',
3767
+ type: "SwitchStatement",
3754
3768
  start: this.start,
3755
3769
  end: this.end,
3756
3770
  discriminant: this.discriminant,
@@ -3766,7 +3780,7 @@ export class SwitchStatement {
3766
3780
  const DebugSwitchStatement = class SwitchStatement {};
3767
3781
 
3768
3782
  export class SwitchCase {
3769
- type = 'SwitchCase';
3783
+ type = "SwitchCase";
3770
3784
  #internal;
3771
3785
 
3772
3786
  constructor(pos, ast) {
@@ -3804,7 +3818,7 @@ export class SwitchCase {
3804
3818
 
3805
3819
  toJSON() {
3806
3820
  return {
3807
- type: 'SwitchCase',
3821
+ type: "SwitchCase",
3808
3822
  start: this.start,
3809
3823
  end: this.end,
3810
3824
  test: this.test,
@@ -3820,7 +3834,7 @@ export class SwitchCase {
3820
3834
  const DebugSwitchCase = class SwitchCase {};
3821
3835
 
3822
3836
  export class LabeledStatement {
3823
- type = 'LabeledStatement';
3837
+ type = "LabeledStatement";
3824
3838
  #internal;
3825
3839
 
3826
3840
  constructor(pos, ast) {
@@ -3856,7 +3870,7 @@ export class LabeledStatement {
3856
3870
 
3857
3871
  toJSON() {
3858
3872
  return {
3859
- type: 'LabeledStatement',
3873
+ type: "LabeledStatement",
3860
3874
  start: this.start,
3861
3875
  end: this.end,
3862
3876
  label: this.label,
@@ -3872,7 +3886,7 @@ export class LabeledStatement {
3872
3886
  const DebugLabeledStatement = class LabeledStatement {};
3873
3887
 
3874
3888
  export class ThrowStatement {
3875
- type = 'ThrowStatement';
3889
+ type = "ThrowStatement";
3876
3890
  #internal;
3877
3891
 
3878
3892
  constructor(pos, ast) {
@@ -3903,7 +3917,7 @@ export class ThrowStatement {
3903
3917
 
3904
3918
  toJSON() {
3905
3919
  return {
3906
- type: 'ThrowStatement',
3920
+ type: "ThrowStatement",
3907
3921
  start: this.start,
3908
3922
  end: this.end,
3909
3923
  argument: this.argument,
@@ -3918,7 +3932,7 @@ export class ThrowStatement {
3918
3932
  const DebugThrowStatement = class ThrowStatement {};
3919
3933
 
3920
3934
  export class TryStatement {
3921
- type = 'TryStatement';
3935
+ type = "TryStatement";
3922
3936
  #internal;
3923
3937
 
3924
3938
  constructor(pos, ast) {
@@ -3959,7 +3973,7 @@ export class TryStatement {
3959
3973
 
3960
3974
  toJSON() {
3961
3975
  return {
3962
- type: 'TryStatement',
3976
+ type: "TryStatement",
3963
3977
  start: this.start,
3964
3978
  end: this.end,
3965
3979
  block: this.block,
@@ -3976,7 +3990,7 @@ export class TryStatement {
3976
3990
  const DebugTryStatement = class TryStatement {};
3977
3991
 
3978
3992
  export class CatchClause {
3979
- type = 'CatchClause';
3993
+ type = "CatchClause";
3980
3994
  #internal;
3981
3995
 
3982
3996
  constructor(pos, ast) {
@@ -4012,7 +4026,7 @@ export class CatchClause {
4012
4026
 
4013
4027
  toJSON() {
4014
4028
  return {
4015
- type: 'CatchClause',
4029
+ type: "CatchClause",
4016
4030
  start: this.start,
4017
4031
  end: this.end,
4018
4032
  param: this.param,
@@ -4060,7 +4074,7 @@ export class CatchParameter {
4060
4074
  const DebugCatchParameter = class CatchParameter {};
4061
4075
 
4062
4076
  export class DebuggerStatement {
4063
- type = 'DebuggerStatement';
4077
+ type = "DebuggerStatement";
4064
4078
  #internal;
4065
4079
 
4066
4080
  constructor(pos, ast) {
@@ -4086,7 +4100,7 @@ export class DebuggerStatement {
4086
4100
 
4087
4101
  toJSON() {
4088
4102
  return {
4089
- type: 'DebuggerStatement',
4103
+ type: "DebuggerStatement",
4090
4104
  start: this.start,
4091
4105
  end: this.end,
4092
4106
  };
@@ -4159,7 +4173,7 @@ function constructBindingPatternKind(pos, ast) {
4159
4173
  }
4160
4174
 
4161
4175
  export class AssignmentPattern {
4162
- type = 'AssignmentPattern';
4176
+ type = "AssignmentPattern";
4163
4177
  #internal;
4164
4178
 
4165
4179
  constructor(pos, ast) {
@@ -4195,7 +4209,7 @@ export class AssignmentPattern {
4195
4209
 
4196
4210
  toJSON() {
4197
4211
  return {
4198
- type: 'AssignmentPattern',
4212
+ type: "AssignmentPattern",
4199
4213
  start: this.start,
4200
4214
  end: this.end,
4201
4215
  left: this.left,
@@ -4211,7 +4225,7 @@ export class AssignmentPattern {
4211
4225
  const DebugAssignmentPattern = class AssignmentPattern {};
4212
4226
 
4213
4227
  export class ObjectPattern {
4214
- type = 'ObjectPattern';
4228
+ type = "ObjectPattern";
4215
4229
  #internal;
4216
4230
 
4217
4231
  constructor(pos, ast) {
@@ -4244,7 +4258,7 @@ export class ObjectPattern {
4244
4258
 
4245
4259
  toJSON() {
4246
4260
  return {
4247
- type: 'ObjectPattern',
4261
+ type: "ObjectPattern",
4248
4262
  start: this.start,
4249
4263
  end: this.end,
4250
4264
  properties: this.properties,
@@ -4259,7 +4273,7 @@ export class ObjectPattern {
4259
4273
  const DebugObjectPattern = class ObjectPattern {};
4260
4274
 
4261
4275
  export class BindingProperty {
4262
- type = 'BindingProperty';
4276
+ type = "BindingProperty";
4263
4277
  #internal;
4264
4278
 
4265
4279
  constructor(pos, ast) {
@@ -4305,7 +4319,7 @@ export class BindingProperty {
4305
4319
 
4306
4320
  toJSON() {
4307
4321
  return {
4308
- type: 'BindingProperty',
4322
+ type: "BindingProperty",
4309
4323
  start: this.start,
4310
4324
  end: this.end,
4311
4325
  key: this.key,
@@ -4323,7 +4337,7 @@ export class BindingProperty {
4323
4337
  const DebugBindingProperty = class BindingProperty {};
4324
4338
 
4325
4339
  export class ArrayPattern {
4326
- type = 'ArrayPattern';
4340
+ type = "ArrayPattern";
4327
4341
  #internal;
4328
4342
 
4329
4343
  constructor(pos, ast) {
@@ -4356,7 +4370,7 @@ export class ArrayPattern {
4356
4370
 
4357
4371
  toJSON() {
4358
4372
  return {
4359
- type: 'ArrayPattern',
4373
+ type: "ArrayPattern",
4360
4374
  start: this.start,
4361
4375
  end: this.end,
4362
4376
  elements: this.elements,
@@ -4371,7 +4385,7 @@ export class ArrayPattern {
4371
4385
  const DebugArrayPattern = class ArrayPattern {};
4372
4386
 
4373
4387
  export class BindingRestElement {
4374
- type = 'BindingRestElement';
4388
+ type = "BindingRestElement";
4375
4389
  #internal;
4376
4390
 
4377
4391
  constructor(pos, ast) {
@@ -4402,7 +4416,7 @@ export class BindingRestElement {
4402
4416
 
4403
4417
  toJSON() {
4404
4418
  return {
4405
- type: 'BindingRestElement',
4419
+ type: "BindingRestElement",
4406
4420
  start: this.start,
4407
4421
  end: this.end,
4408
4422
  argument: this.argument,
@@ -4511,20 +4525,20 @@ const DebugFunction = class Function {};
4511
4525
  function constructFunctionType(pos, ast) {
4512
4526
  switch (ast.buffer[pos]) {
4513
4527
  case 0:
4514
- return 'FunctionDeclaration';
4528
+ return "FunctionDeclaration";
4515
4529
  case 1:
4516
- return 'FunctionExpression';
4530
+ return "FunctionExpression";
4517
4531
  case 2:
4518
- return 'TSDeclareFunction';
4532
+ return "TSDeclareFunction";
4519
4533
  case 3:
4520
- return 'TSEmptyBodyFunctionExpression';
4534
+ return "TSEmptyBodyFunctionExpression";
4521
4535
  default:
4522
4536
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for FunctionType`);
4523
4537
  }
4524
4538
  }
4525
4539
 
4526
4540
  export class FormalParameters {
4527
- type = 'FormalParameters';
4541
+ type = "FormalParameters";
4528
4542
  #internal;
4529
4543
 
4530
4544
  constructor(pos, ast) {
@@ -4562,7 +4576,7 @@ export class FormalParameters {
4562
4576
 
4563
4577
  toJSON() {
4564
4578
  return {
4565
- type: 'FormalParameters',
4579
+ type: "FormalParameters",
4566
4580
  start: this.start,
4567
4581
  end: this.end,
4568
4582
  kind: this.kind,
@@ -4620,20 +4634,20 @@ const DebugFormalParameter = class FormalParameter {};
4620
4634
  function constructFormalParameterKind(pos, ast) {
4621
4635
  switch (ast.buffer[pos]) {
4622
4636
  case 0:
4623
- return 'FormalParameter';
4637
+ return "FormalParameter";
4624
4638
  case 1:
4625
- return 'UniqueFormalParameters';
4639
+ return "UniqueFormalParameters";
4626
4640
  case 2:
4627
- return 'ArrowFormalParameters';
4641
+ return "ArrowFormalParameters";
4628
4642
  case 3:
4629
- return 'Signature';
4643
+ return "Signature";
4630
4644
  default:
4631
4645
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for FormalParameterKind`);
4632
4646
  }
4633
4647
  }
4634
4648
 
4635
4649
  export class FunctionBody {
4636
- type = 'FunctionBody';
4650
+ type = "FunctionBody";
4637
4651
  #internal;
4638
4652
 
4639
4653
  constructor(pos, ast) {
@@ -4666,7 +4680,7 @@ export class FunctionBody {
4666
4680
 
4667
4681
  toJSON() {
4668
4682
  return {
4669
- type: 'FunctionBody',
4683
+ type: "FunctionBody",
4670
4684
  start: this.start,
4671
4685
  end: this.end,
4672
4686
  body: this.body,
@@ -4681,7 +4695,7 @@ export class FunctionBody {
4681
4695
  const DebugFunctionBody = class FunctionBody {};
4682
4696
 
4683
4697
  export class ArrowFunctionExpression {
4684
- type = 'ArrowFunctionExpression';
4698
+ type = "ArrowFunctionExpression";
4685
4699
  #internal;
4686
4700
 
4687
4701
  constructor(pos, ast) {
@@ -4737,7 +4751,7 @@ export class ArrowFunctionExpression {
4737
4751
 
4738
4752
  toJSON() {
4739
4753
  return {
4740
- type: 'ArrowFunctionExpression',
4754
+ type: "ArrowFunctionExpression",
4741
4755
  start: this.start,
4742
4756
  end: this.end,
4743
4757
  expression: this.expression,
@@ -4757,7 +4771,7 @@ export class ArrowFunctionExpression {
4757
4771
  const DebugArrowFunctionExpression = class ArrowFunctionExpression {};
4758
4772
 
4759
4773
  export class YieldExpression {
4760
- type = 'YieldExpression';
4774
+ type = "YieldExpression";
4761
4775
  #internal;
4762
4776
 
4763
4777
  constructor(pos, ast) {
@@ -4793,7 +4807,7 @@ export class YieldExpression {
4793
4807
 
4794
4808
  toJSON() {
4795
4809
  return {
4796
- type: 'YieldExpression',
4810
+ type: "YieldExpression",
4797
4811
  start: this.start,
4798
4812
  end: this.end,
4799
4813
  delegate: this.delegate,
@@ -4913,16 +4927,16 @@ const DebugClass = class Class {};
4913
4927
  function constructClassType(pos, ast) {
4914
4928
  switch (ast.buffer[pos]) {
4915
4929
  case 0:
4916
- return 'ClassDeclaration';
4930
+ return "ClassDeclaration";
4917
4931
  case 1:
4918
- return 'ClassExpression';
4932
+ return "ClassExpression";
4919
4933
  default:
4920
4934
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ClassType`);
4921
4935
  }
4922
4936
  }
4923
4937
 
4924
4938
  export class ClassBody {
4925
- type = 'ClassBody';
4939
+ type = "ClassBody";
4926
4940
  #internal;
4927
4941
 
4928
4942
  constructor(pos, ast) {
@@ -4955,7 +4969,7 @@ export class ClassBody {
4955
4969
 
4956
4970
  toJSON() {
4957
4971
  return {
4958
- type: 'ClassBody',
4972
+ type: "ClassBody",
4959
4973
  start: this.start,
4960
4974
  end: this.end,
4961
4975
  body: this.body,
@@ -5089,9 +5103,9 @@ const DebugMethodDefinition = class MethodDefinition {};
5089
5103
  function constructMethodDefinitionType(pos, ast) {
5090
5104
  switch (ast.buffer[pos]) {
5091
5105
  case 0:
5092
- return 'MethodDefinition';
5106
+ return "MethodDefinition";
5093
5107
  case 1:
5094
- return 'TSAbstractMethodDefinition';
5108
+ return "TSAbstractMethodDefinition";
5095
5109
  default:
5096
5110
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for MethodDefinitionType`);
5097
5111
  }
@@ -5218,9 +5232,9 @@ const DebugPropertyDefinition = class PropertyDefinition {};
5218
5232
  function constructPropertyDefinitionType(pos, ast) {
5219
5233
  switch (ast.buffer[pos]) {
5220
5234
  case 0:
5221
- return 'PropertyDefinition';
5235
+ return "PropertyDefinition";
5222
5236
  case 1:
5223
- return 'TSAbstractPropertyDefinition';
5237
+ return "TSAbstractPropertyDefinition";
5224
5238
  default:
5225
5239
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for PropertyDefinitionType`);
5226
5240
  }
@@ -5229,20 +5243,20 @@ function constructPropertyDefinitionType(pos, ast) {
5229
5243
  function constructMethodDefinitionKind(pos, ast) {
5230
5244
  switch (ast.buffer[pos]) {
5231
5245
  case 0:
5232
- return 'constructor';
5246
+ return "constructor";
5233
5247
  case 1:
5234
- return 'method';
5248
+ return "method";
5235
5249
  case 2:
5236
- return 'get';
5250
+ return "get";
5237
5251
  case 3:
5238
- return 'set';
5252
+ return "set";
5239
5253
  default:
5240
5254
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for MethodDefinitionKind`);
5241
5255
  }
5242
5256
  }
5243
5257
 
5244
5258
  export class PrivateIdentifier {
5245
- type = 'PrivateIdentifier';
5259
+ type = "PrivateIdentifier";
5246
5260
  #internal;
5247
5261
 
5248
5262
  constructor(pos, ast) {
@@ -5275,7 +5289,7 @@ export class PrivateIdentifier {
5275
5289
 
5276
5290
  toJSON() {
5277
5291
  return {
5278
- type: 'PrivateIdentifier',
5292
+ type: "PrivateIdentifier",
5279
5293
  start: this.start,
5280
5294
  end: this.end,
5281
5295
  name: this.name,
@@ -5290,7 +5304,7 @@ export class PrivateIdentifier {
5290
5304
  const DebugPrivateIdentifier = class PrivateIdentifier {};
5291
5305
 
5292
5306
  export class StaticBlock {
5293
- type = 'StaticBlock';
5307
+ type = "StaticBlock";
5294
5308
  #internal;
5295
5309
 
5296
5310
  constructor(pos, ast) {
@@ -5323,7 +5337,7 @@ export class StaticBlock {
5323
5337
 
5324
5338
  toJSON() {
5325
5339
  return {
5326
- type: 'StaticBlock',
5340
+ type: "StaticBlock",
5327
5341
  start: this.start,
5328
5342
  end: this.end,
5329
5343
  body: this.body,
@@ -5359,9 +5373,9 @@ function constructModuleDeclaration(pos, ast) {
5359
5373
  function constructAccessorPropertyType(pos, ast) {
5360
5374
  switch (ast.buffer[pos]) {
5361
5375
  case 0:
5362
- return 'AccessorProperty';
5376
+ return "AccessorProperty";
5363
5377
  case 1:
5364
- return 'TSAbstractAccessorProperty';
5378
+ return "TSAbstractAccessorProperty";
5365
5379
  default:
5366
5380
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for AccessorPropertyType`);
5367
5381
  }
@@ -5468,7 +5482,7 @@ export class AccessorProperty {
5468
5482
  const DebugAccessorProperty = class AccessorProperty {};
5469
5483
 
5470
5484
  export class ImportExpression {
5471
- type = 'ImportExpression';
5485
+ type = "ImportExpression";
5472
5486
  #internal;
5473
5487
 
5474
5488
  constructor(pos, ast) {
@@ -5509,7 +5523,7 @@ export class ImportExpression {
5509
5523
 
5510
5524
  toJSON() {
5511
5525
  return {
5512
- type: 'ImportExpression',
5526
+ type: "ImportExpression",
5513
5527
  start: this.start,
5514
5528
  end: this.end,
5515
5529
  source: this.source,
@@ -5526,7 +5540,7 @@ export class ImportExpression {
5526
5540
  const DebugImportExpression = class ImportExpression {};
5527
5541
 
5528
5542
  export class ImportDeclaration {
5529
- type = 'ImportDeclaration';
5543
+ type = "ImportDeclaration";
5530
5544
  #internal;
5531
5545
 
5532
5546
  constructor(pos, ast) {
@@ -5554,7 +5568,10 @@ export class ImportDeclaration {
5554
5568
  const internal = this.#internal,
5555
5569
  cached = internal.$specifiers;
5556
5570
  if (cached !== void 0) return cached;
5557
- return (internal.$specifiers = constructOptionVecImportDeclarationSpecifier(internal.pos + 8, internal.ast));
5571
+ return (internal.$specifiers = constructOptionVecImportDeclarationSpecifier(
5572
+ internal.pos + 8,
5573
+ internal.ast,
5574
+ ));
5558
5575
  }
5559
5576
 
5560
5577
  get source() {
@@ -5579,7 +5596,7 @@ export class ImportDeclaration {
5579
5596
 
5580
5597
  toJSON() {
5581
5598
  return {
5582
- type: 'ImportDeclaration',
5599
+ type: "ImportDeclaration",
5583
5600
  start: this.start,
5584
5601
  end: this.end,
5585
5602
  specifiers: this.specifiers,
@@ -5600,9 +5617,9 @@ const DebugImportDeclaration = class ImportDeclaration {};
5600
5617
  function constructImportPhase(pos, ast) {
5601
5618
  switch (ast.buffer[pos]) {
5602
5619
  case 0:
5603
- return 'source';
5620
+ return "source";
5604
5621
  case 1:
5605
- return 'defer';
5622
+ return "defer";
5606
5623
  default:
5607
5624
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ImportPhase`);
5608
5625
  }
@@ -5622,7 +5639,7 @@ function constructImportDeclarationSpecifier(pos, ast) {
5622
5639
  }
5623
5640
 
5624
5641
  export class ImportSpecifier {
5625
- type = 'ImportSpecifier';
5642
+ type = "ImportSpecifier";
5626
5643
  #internal;
5627
5644
 
5628
5645
  constructor(pos, ast) {
@@ -5663,7 +5680,7 @@ export class ImportSpecifier {
5663
5680
 
5664
5681
  toJSON() {
5665
5682
  return {
5666
- type: 'ImportSpecifier',
5683
+ type: "ImportSpecifier",
5667
5684
  start: this.start,
5668
5685
  end: this.end,
5669
5686
  imported: this.imported,
@@ -5680,7 +5697,7 @@ export class ImportSpecifier {
5680
5697
  const DebugImportSpecifier = class ImportSpecifier {};
5681
5698
 
5682
5699
  export class ImportDefaultSpecifier {
5683
- type = 'ImportDefaultSpecifier';
5700
+ type = "ImportDefaultSpecifier";
5684
5701
  #internal;
5685
5702
 
5686
5703
  constructor(pos, ast) {
@@ -5711,7 +5728,7 @@ export class ImportDefaultSpecifier {
5711
5728
 
5712
5729
  toJSON() {
5713
5730
  return {
5714
- type: 'ImportDefaultSpecifier',
5731
+ type: "ImportDefaultSpecifier",
5715
5732
  start: this.start,
5716
5733
  end: this.end,
5717
5734
  local: this.local,
@@ -5726,7 +5743,7 @@ export class ImportDefaultSpecifier {
5726
5743
  const DebugImportDefaultSpecifier = class ImportDefaultSpecifier {};
5727
5744
 
5728
5745
  export class ImportNamespaceSpecifier {
5729
- type = 'ImportNamespaceSpecifier';
5746
+ type = "ImportNamespaceSpecifier";
5730
5747
  #internal;
5731
5748
 
5732
5749
  constructor(pos, ast) {
@@ -5757,7 +5774,7 @@ export class ImportNamespaceSpecifier {
5757
5774
 
5758
5775
  toJSON() {
5759
5776
  return {
5760
- type: 'ImportNamespaceSpecifier',
5777
+ type: "ImportNamespaceSpecifier",
5761
5778
  start: this.start,
5762
5779
  end: this.end,
5763
5780
  local: this.local,
@@ -5806,7 +5823,7 @@ export class WithClause {
5806
5823
  const DebugWithClause = class WithClause {};
5807
5824
 
5808
5825
  export class ImportAttribute {
5809
- type = 'ImportAttribute';
5826
+ type = "ImportAttribute";
5810
5827
  #internal;
5811
5828
 
5812
5829
  constructor(pos, ast) {
@@ -5842,7 +5859,7 @@ export class ImportAttribute {
5842
5859
 
5843
5860
  toJSON() {
5844
5861
  return {
5845
- type: 'ImportAttribute',
5862
+ type: "ImportAttribute",
5846
5863
  start: this.start,
5847
5864
  end: this.end,
5848
5865
  key: this.key,
@@ -5869,7 +5886,7 @@ function constructImportAttributeKey(pos, ast) {
5869
5886
  }
5870
5887
 
5871
5888
  export class ExportNamedDeclaration {
5872
- type = 'ExportNamedDeclaration';
5889
+ type = "ExportNamedDeclaration";
5873
5890
  #internal;
5874
5891
 
5875
5892
  constructor(pos, ast) {
@@ -5922,7 +5939,7 @@ export class ExportNamedDeclaration {
5922
5939
 
5923
5940
  toJSON() {
5924
5941
  return {
5925
- type: 'ExportNamedDeclaration',
5942
+ type: "ExportNamedDeclaration",
5926
5943
  start: this.start,
5927
5944
  end: this.end,
5928
5945
  declaration: this.declaration,
@@ -5941,7 +5958,7 @@ export class ExportNamedDeclaration {
5941
5958
  const DebugExportNamedDeclaration = class ExportNamedDeclaration {};
5942
5959
 
5943
5960
  export class ExportDefaultDeclaration {
5944
- type = 'ExportDefaultDeclaration';
5961
+ type = "ExportDefaultDeclaration";
5945
5962
  #internal;
5946
5963
 
5947
5964
  constructor(pos, ast) {
@@ -5972,7 +5989,7 @@ export class ExportDefaultDeclaration {
5972
5989
 
5973
5990
  toJSON() {
5974
5991
  return {
5975
- type: 'ExportDefaultDeclaration',
5992
+ type: "ExportDefaultDeclaration",
5976
5993
  start: this.start,
5977
5994
  end: this.end,
5978
5995
  declaration: this.declaration,
@@ -5987,7 +6004,7 @@ export class ExportDefaultDeclaration {
5987
6004
  const DebugExportDefaultDeclaration = class ExportDefaultDeclaration {};
5988
6005
 
5989
6006
  export class ExportAllDeclaration {
5990
- type = 'ExportAllDeclaration';
6007
+ type = "ExportAllDeclaration";
5991
6008
  #internal;
5992
6009
 
5993
6010
  constructor(pos, ast) {
@@ -6033,7 +6050,7 @@ export class ExportAllDeclaration {
6033
6050
 
6034
6051
  toJSON() {
6035
6052
  return {
6036
- type: 'ExportAllDeclaration',
6053
+ type: "ExportAllDeclaration",
6037
6054
  start: this.start,
6038
6055
  end: this.end,
6039
6056
  exported: this.exported,
@@ -6051,7 +6068,7 @@ export class ExportAllDeclaration {
6051
6068
  const DebugExportAllDeclaration = class ExportAllDeclaration {};
6052
6069
 
6053
6070
  export class ExportSpecifier {
6054
- type = 'ExportSpecifier';
6071
+ type = "ExportSpecifier";
6055
6072
  #internal;
6056
6073
 
6057
6074
  constructor(pos, ast) {
@@ -6092,7 +6109,7 @@ export class ExportSpecifier {
6092
6109
 
6093
6110
  toJSON() {
6094
6111
  return {
6095
- type: 'ExportSpecifier',
6112
+ type: "ExportSpecifier",
6096
6113
  start: this.start,
6097
6114
  end: this.end,
6098
6115
  local: this.local,
@@ -6203,7 +6220,9 @@ function constructExportDefaultDeclarationKind(pos, ast) {
6203
6220
  case 66:
6204
6221
  return constructBoxTSInterfaceDeclaration(pos + 8, ast);
6205
6222
  default:
6206
- throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ExportDefaultDeclarationKind`);
6223
+ throw new Error(
6224
+ `Unexpected discriminant ${ast.buffer[pos]} for ExportDefaultDeclarationKind`,
6225
+ );
6207
6226
  }
6208
6227
  }
6209
6228
 
@@ -6221,7 +6240,7 @@ function constructModuleExportName(pos, ast) {
6221
6240
  }
6222
6241
 
6223
6242
  export class V8IntrinsicExpression {
6224
- type = 'V8IntrinsicExpression';
6243
+ type = "V8IntrinsicExpression";
6225
6244
  #internal;
6226
6245
 
6227
6246
  constructor(pos, ast) {
@@ -6259,7 +6278,7 @@ export class V8IntrinsicExpression {
6259
6278
 
6260
6279
  toJSON() {
6261
6280
  return {
6262
- type: 'V8IntrinsicExpression',
6281
+ type: "V8IntrinsicExpression",
6263
6282
  start: this.start,
6264
6283
  end: this.end,
6265
6284
  name: this.name,
@@ -6275,7 +6294,7 @@ export class V8IntrinsicExpression {
6275
6294
  const DebugV8IntrinsicExpression = class V8IntrinsicExpression {};
6276
6295
 
6277
6296
  export class BooleanLiteral {
6278
- type = 'BooleanLiteral';
6297
+ type = "BooleanLiteral";
6279
6298
  #internal;
6280
6299
 
6281
6300
  constructor(pos, ast) {
@@ -6306,7 +6325,7 @@ export class BooleanLiteral {
6306
6325
 
6307
6326
  toJSON() {
6308
6327
  return {
6309
- type: 'BooleanLiteral',
6328
+ type: "BooleanLiteral",
6310
6329
  start: this.start,
6311
6330
  end: this.end,
6312
6331
  value: this.value,
@@ -6321,7 +6340,7 @@ export class BooleanLiteral {
6321
6340
  const DebugBooleanLiteral = class BooleanLiteral {};
6322
6341
 
6323
6342
  export class NullLiteral {
6324
- type = 'NullLiteral';
6343
+ type = "NullLiteral";
6325
6344
  #internal;
6326
6345
 
6327
6346
  constructor(pos, ast) {
@@ -6347,7 +6366,7 @@ export class NullLiteral {
6347
6366
 
6348
6367
  toJSON() {
6349
6368
  return {
6350
- type: 'NullLiteral',
6369
+ type: "NullLiteral",
6351
6370
  start: this.start,
6352
6371
  end: this.end,
6353
6372
  };
@@ -6361,7 +6380,7 @@ export class NullLiteral {
6361
6380
  const DebugNullLiteral = class NullLiteral {};
6362
6381
 
6363
6382
  export class NumericLiteral {
6364
- type = 'NumericLiteral';
6383
+ type = "NumericLiteral";
6365
6384
  #internal;
6366
6385
 
6367
6386
  constructor(pos, ast) {
@@ -6399,7 +6418,7 @@ export class NumericLiteral {
6399
6418
 
6400
6419
  toJSON() {
6401
6420
  return {
6402
- type: 'NumericLiteral',
6421
+ type: "NumericLiteral",
6403
6422
  start: this.start,
6404
6423
  end: this.end,
6405
6424
  value: this.value,
@@ -6415,7 +6434,7 @@ export class NumericLiteral {
6415
6434
  const DebugNumericLiteral = class NumericLiteral {};
6416
6435
 
6417
6436
  export class StringLiteral {
6418
- type = 'StringLiteral';
6437
+ type = "StringLiteral";
6419
6438
  #internal;
6420
6439
 
6421
6440
  constructor(pos, ast) {
@@ -6455,7 +6474,7 @@ export class StringLiteral {
6455
6474
 
6456
6475
  toJSON() {
6457
6476
  return {
6458
- type: 'StringLiteral',
6477
+ type: "StringLiteral",
6459
6478
  start: this.start,
6460
6479
  end: this.end,
6461
6480
  value: this.value,
@@ -6471,7 +6490,7 @@ export class StringLiteral {
6471
6490
  const DebugStringLiteral = class StringLiteral {};
6472
6491
 
6473
6492
  export class BigIntLiteral {
6474
- type = 'BigIntLiteral';
6493
+ type = "BigIntLiteral";
6475
6494
  #internal;
6476
6495
 
6477
6496
  constructor(pos, ast) {
@@ -6511,7 +6530,7 @@ export class BigIntLiteral {
6511
6530
 
6512
6531
  toJSON() {
6513
6532
  return {
6514
- type: 'BigIntLiteral',
6533
+ type: "BigIntLiteral",
6515
6534
  start: this.start,
6516
6535
  end: this.end,
6517
6536
  value: this.value,
@@ -6527,7 +6546,7 @@ export class BigIntLiteral {
6527
6546
  const DebugBigIntLiteral = class BigIntLiteral {};
6528
6547
 
6529
6548
  export class RegExpLiteral {
6530
- type = 'RegExpLiteral';
6549
+ type = "RegExpLiteral";
6531
6550
  #internal;
6532
6551
 
6533
6552
  constructor(pos, ast) {
@@ -6565,7 +6584,7 @@ export class RegExpLiteral {
6565
6584
 
6566
6585
  toJSON() {
6567
6586
  return {
6568
- type: 'RegExpLiteral',
6587
+ type: "RegExpLiteral",
6569
6588
  start: this.start,
6570
6589
  end: this.end,
6571
6590
  regex: this.regex,
@@ -6679,7 +6698,7 @@ export class RegExpFlags {
6679
6698
  const DebugRegExpFlags = class RegExpFlags {};
6680
6699
 
6681
6700
  export class JSXElement {
6682
- type = 'JSXElement';
6701
+ type = "JSXElement";
6683
6702
  #internal;
6684
6703
 
6685
6704
  constructor(pos, ast) {
@@ -6722,7 +6741,7 @@ export class JSXElement {
6722
6741
 
6723
6742
  toJSON() {
6724
6743
  return {
6725
- type: 'JSXElement',
6744
+ type: "JSXElement",
6726
6745
  start: this.start,
6727
6746
  end: this.end,
6728
6747
  openingElement: this.openingElement,
@@ -6739,7 +6758,7 @@ export class JSXElement {
6739
6758
  const DebugJSXElement = class JSXElement {};
6740
6759
 
6741
6760
  export class JSXOpeningElement {
6742
- type = 'JSXOpeningElement';
6761
+ type = "JSXOpeningElement";
6743
6762
  #internal;
6744
6763
 
6745
6764
  constructor(pos, ast) {
@@ -6782,7 +6801,7 @@ export class JSXOpeningElement {
6782
6801
 
6783
6802
  toJSON() {
6784
6803
  return {
6785
- type: 'JSXOpeningElement',
6804
+ type: "JSXOpeningElement",
6786
6805
  start: this.start,
6787
6806
  end: this.end,
6788
6807
  name: this.name,
@@ -6799,7 +6818,7 @@ export class JSXOpeningElement {
6799
6818
  const DebugJSXOpeningElement = class JSXOpeningElement {};
6800
6819
 
6801
6820
  export class JSXClosingElement {
6802
- type = 'JSXClosingElement';
6821
+ type = "JSXClosingElement";
6803
6822
  #internal;
6804
6823
 
6805
6824
  constructor(pos, ast) {
@@ -6830,7 +6849,7 @@ export class JSXClosingElement {
6830
6849
 
6831
6850
  toJSON() {
6832
6851
  return {
6833
- type: 'JSXClosingElement',
6852
+ type: "JSXClosingElement",
6834
6853
  start: this.start,
6835
6854
  end: this.end,
6836
6855
  name: this.name,
@@ -6845,7 +6864,7 @@ export class JSXClosingElement {
6845
6864
  const DebugJSXClosingElement = class JSXClosingElement {};
6846
6865
 
6847
6866
  export class JSXFragment {
6848
- type = 'JSXFragment';
6867
+ type = "JSXFragment";
6849
6868
  #internal;
6850
6869
 
6851
6870
  constructor(pos, ast) {
@@ -6888,7 +6907,7 @@ export class JSXFragment {
6888
6907
 
6889
6908
  toJSON() {
6890
6909
  return {
6891
- type: 'JSXFragment',
6910
+ type: "JSXFragment",
6892
6911
  start: this.start,
6893
6912
  end: this.end,
6894
6913
  openingFragment: this.openingFragment,
@@ -6905,7 +6924,7 @@ export class JSXFragment {
6905
6924
  const DebugJSXFragment = class JSXFragment {};
6906
6925
 
6907
6926
  export class JSXOpeningFragment {
6908
- type = 'JSXOpeningFragment';
6927
+ type = "JSXOpeningFragment";
6909
6928
  #internal;
6910
6929
 
6911
6930
  constructor(pos, ast) {
@@ -6931,7 +6950,7 @@ export class JSXOpeningFragment {
6931
6950
 
6932
6951
  toJSON() {
6933
6952
  return {
6934
- type: 'JSXOpeningFragment',
6953
+ type: "JSXOpeningFragment",
6935
6954
  start: this.start,
6936
6955
  end: this.end,
6937
6956
  };
@@ -6945,7 +6964,7 @@ export class JSXOpeningFragment {
6945
6964
  const DebugJSXOpeningFragment = class JSXOpeningFragment {};
6946
6965
 
6947
6966
  export class JSXClosingFragment {
6948
- type = 'JSXClosingFragment';
6967
+ type = "JSXClosingFragment";
6949
6968
  #internal;
6950
6969
 
6951
6970
  constructor(pos, ast) {
@@ -6971,7 +6990,7 @@ export class JSXClosingFragment {
6971
6990
 
6972
6991
  toJSON() {
6973
6992
  return {
6974
- type: 'JSXClosingFragment',
6993
+ type: "JSXClosingFragment",
6975
6994
  start: this.start,
6976
6995
  end: this.end,
6977
6996
  };
@@ -7002,7 +7021,7 @@ function constructJSXElementName(pos, ast) {
7002
7021
  }
7003
7022
 
7004
7023
  export class JSXNamespacedName {
7005
- type = 'JSXNamespacedName';
7024
+ type = "JSXNamespacedName";
7006
7025
  #internal;
7007
7026
 
7008
7027
  constructor(pos, ast) {
@@ -7038,7 +7057,7 @@ export class JSXNamespacedName {
7038
7057
 
7039
7058
  toJSON() {
7040
7059
  return {
7041
- type: 'JSXNamespacedName',
7060
+ type: "JSXNamespacedName",
7042
7061
  start: this.start,
7043
7062
  end: this.end,
7044
7063
  namespace: this.namespace,
@@ -7054,7 +7073,7 @@ export class JSXNamespacedName {
7054
7073
  const DebugJSXNamespacedName = class JSXNamespacedName {};
7055
7074
 
7056
7075
  export class JSXMemberExpression {
7057
- type = 'JSXMemberExpression';
7076
+ type = "JSXMemberExpression";
7058
7077
  #internal;
7059
7078
 
7060
7079
  constructor(pos, ast) {
@@ -7090,7 +7109,7 @@ export class JSXMemberExpression {
7090
7109
 
7091
7110
  toJSON() {
7092
7111
  return {
7093
- type: 'JSXMemberExpression',
7112
+ type: "JSXMemberExpression",
7094
7113
  start: this.start,
7095
7114
  end: this.end,
7096
7115
  object: this.object,
@@ -7119,7 +7138,7 @@ function constructJSXMemberExpressionObject(pos, ast) {
7119
7138
  }
7120
7139
 
7121
7140
  export class JSXExpressionContainer {
7122
- type = 'JSXExpressionContainer';
7141
+ type = "JSXExpressionContainer";
7123
7142
  #internal;
7124
7143
 
7125
7144
  constructor(pos, ast) {
@@ -7150,7 +7169,7 @@ export class JSXExpressionContainer {
7150
7169
 
7151
7170
  toJSON() {
7152
7171
  return {
7153
- type: 'JSXExpressionContainer',
7172
+ type: "JSXExpressionContainer",
7154
7173
  start: this.start,
7155
7174
  end: this.end,
7156
7175
  expression: this.expression,
@@ -7260,7 +7279,7 @@ function constructJSXExpression(pos, ast) {
7260
7279
  }
7261
7280
 
7262
7281
  export class JSXEmptyExpression {
7263
- type = 'JSXEmptyExpression';
7282
+ type = "JSXEmptyExpression";
7264
7283
  #internal;
7265
7284
 
7266
7285
  constructor(pos, ast) {
@@ -7286,7 +7305,7 @@ export class JSXEmptyExpression {
7286
7305
 
7287
7306
  toJSON() {
7288
7307
  return {
7289
- type: 'JSXEmptyExpression',
7308
+ type: "JSXEmptyExpression",
7290
7309
  start: this.start,
7291
7310
  end: this.end,
7292
7311
  };
@@ -7311,7 +7330,7 @@ function constructJSXAttributeItem(pos, ast) {
7311
7330
  }
7312
7331
 
7313
7332
  export class JSXAttribute {
7314
- type = 'JSXAttribute';
7333
+ type = "JSXAttribute";
7315
7334
  #internal;
7316
7335
 
7317
7336
  constructor(pos, ast) {
@@ -7347,7 +7366,7 @@ export class JSXAttribute {
7347
7366
 
7348
7367
  toJSON() {
7349
7368
  return {
7350
- type: 'JSXAttribute',
7369
+ type: "JSXAttribute",
7351
7370
  start: this.start,
7352
7371
  end: this.end,
7353
7372
  name: this.name,
@@ -7363,7 +7382,7 @@ export class JSXAttribute {
7363
7382
  const DebugJSXAttribute = class JSXAttribute {};
7364
7383
 
7365
7384
  export class JSXSpreadAttribute {
7366
- type = 'JSXSpreadAttribute';
7385
+ type = "JSXSpreadAttribute";
7367
7386
  #internal;
7368
7387
 
7369
7388
  constructor(pos, ast) {
@@ -7394,7 +7413,7 @@ export class JSXSpreadAttribute {
7394
7413
 
7395
7414
  toJSON() {
7396
7415
  return {
7397
- type: 'JSXSpreadAttribute',
7416
+ type: "JSXSpreadAttribute",
7398
7417
  start: this.start,
7399
7418
  end: this.end,
7400
7419
  argument: this.argument,
@@ -7435,7 +7454,7 @@ function constructJSXAttributeValue(pos, ast) {
7435
7454
  }
7436
7455
 
7437
7456
  export class JSXIdentifier {
7438
- type = 'JSXIdentifier';
7457
+ type = "JSXIdentifier";
7439
7458
  #internal;
7440
7459
 
7441
7460
  constructor(pos, ast) {
@@ -7468,7 +7487,7 @@ export class JSXIdentifier {
7468
7487
 
7469
7488
  toJSON() {
7470
7489
  return {
7471
- type: 'JSXIdentifier',
7490
+ type: "JSXIdentifier",
7472
7491
  start: this.start,
7473
7492
  end: this.end,
7474
7493
  name: this.name,
@@ -7500,7 +7519,7 @@ function constructJSXChild(pos, ast) {
7500
7519
  }
7501
7520
 
7502
7521
  export class JSXSpreadChild {
7503
- type = 'JSXSpreadChild';
7522
+ type = "JSXSpreadChild";
7504
7523
  #internal;
7505
7524
 
7506
7525
  constructor(pos, ast) {
@@ -7531,7 +7550,7 @@ export class JSXSpreadChild {
7531
7550
 
7532
7551
  toJSON() {
7533
7552
  return {
7534
- type: 'JSXSpreadChild',
7553
+ type: "JSXSpreadChild",
7535
7554
  start: this.start,
7536
7555
  end: this.end,
7537
7556
  expression: this.expression,
@@ -7546,7 +7565,7 @@ export class JSXSpreadChild {
7546
7565
  const DebugJSXSpreadChild = class JSXSpreadChild {};
7547
7566
 
7548
7567
  export class JSXText {
7549
- type = 'JSXText';
7568
+ type = "JSXText";
7550
7569
  #internal;
7551
7570
 
7552
7571
  constructor(pos, ast) {
@@ -7586,7 +7605,7 @@ export class JSXText {
7586
7605
 
7587
7606
  toJSON() {
7588
7607
  return {
7589
- type: 'JSXText',
7608
+ type: "JSXText",
7590
7609
  start: this.start,
7591
7610
  end: this.end,
7592
7611
  value: this.value,
@@ -7602,7 +7621,7 @@ export class JSXText {
7602
7621
  const DebugJSXText = class JSXText {};
7603
7622
 
7604
7623
  export class TSThisParameter {
7605
- type = 'TSThisParameter';
7624
+ type = "TSThisParameter";
7606
7625
  #internal;
7607
7626
 
7608
7627
  constructor(pos, ast) {
@@ -7633,7 +7652,7 @@ export class TSThisParameter {
7633
7652
 
7634
7653
  toJSON() {
7635
7654
  return {
7636
- type: 'TSThisParameter',
7655
+ type: "TSThisParameter",
7637
7656
  start: this.start,
7638
7657
  end: this.end,
7639
7658
  typeAnnotation: this.typeAnnotation,
@@ -7648,7 +7667,7 @@ export class TSThisParameter {
7648
7667
  const DebugTSThisParameter = class TSThisParameter {};
7649
7668
 
7650
7669
  export class TSEnumDeclaration {
7651
- type = 'TSEnumDeclaration';
7670
+ type = "TSEnumDeclaration";
7652
7671
  #internal;
7653
7672
 
7654
7673
  constructor(pos, ast) {
@@ -7694,7 +7713,7 @@ export class TSEnumDeclaration {
7694
7713
 
7695
7714
  toJSON() {
7696
7715
  return {
7697
- type: 'TSEnumDeclaration',
7716
+ type: "TSEnumDeclaration",
7698
7717
  start: this.start,
7699
7718
  end: this.end,
7700
7719
  id: this.id,
@@ -7712,7 +7731,7 @@ export class TSEnumDeclaration {
7712
7731
  const DebugTSEnumDeclaration = class TSEnumDeclaration {};
7713
7732
 
7714
7733
  export class TSEnumBody {
7715
- type = 'TSEnumBody';
7734
+ type = "TSEnumBody";
7716
7735
  #internal;
7717
7736
 
7718
7737
  constructor(pos, ast) {
@@ -7745,7 +7764,7 @@ export class TSEnumBody {
7745
7764
 
7746
7765
  toJSON() {
7747
7766
  return {
7748
- type: 'TSEnumBody',
7767
+ type: "TSEnumBody",
7749
7768
  start: this.start,
7750
7769
  end: this.end,
7751
7770
  members: this.members,
@@ -7760,7 +7779,7 @@ export class TSEnumBody {
7760
7779
  const DebugTSEnumBody = class TSEnumBody {};
7761
7780
 
7762
7781
  export class TSEnumMember {
7763
- type = 'TSEnumMember';
7782
+ type = "TSEnumMember";
7764
7783
  #internal;
7765
7784
 
7766
7785
  constructor(pos, ast) {
@@ -7796,7 +7815,7 @@ export class TSEnumMember {
7796
7815
 
7797
7816
  toJSON() {
7798
7817
  return {
7799
- type: 'TSEnumMember',
7818
+ type: "TSEnumMember",
7800
7819
  start: this.start,
7801
7820
  end: this.end,
7802
7821
  id: this.id,
@@ -7827,7 +7846,7 @@ function constructTSEnumMemberName(pos, ast) {
7827
7846
  }
7828
7847
 
7829
7848
  export class TSTypeAnnotation {
7830
- type = 'TSTypeAnnotation';
7849
+ type = "TSTypeAnnotation";
7831
7850
  #internal;
7832
7851
 
7833
7852
  constructor(pos, ast) {
@@ -7858,7 +7877,7 @@ export class TSTypeAnnotation {
7858
7877
 
7859
7878
  toJSON() {
7860
7879
  return {
7861
- type: 'TSTypeAnnotation',
7880
+ type: "TSTypeAnnotation",
7862
7881
  start: this.start,
7863
7882
  end: this.end,
7864
7883
  typeAnnotation: this.typeAnnotation,
@@ -7873,7 +7892,7 @@ export class TSTypeAnnotation {
7873
7892
  const DebugTSTypeAnnotation = class TSTypeAnnotation {};
7874
7893
 
7875
7894
  export class TSLiteralType {
7876
- type = 'TSLiteralType';
7895
+ type = "TSLiteralType";
7877
7896
  #internal;
7878
7897
 
7879
7898
  constructor(pos, ast) {
@@ -7904,7 +7923,7 @@ export class TSLiteralType {
7904
7923
 
7905
7924
  toJSON() {
7906
7925
  return {
7907
- type: 'TSLiteralType',
7926
+ type: "TSLiteralType",
7908
7927
  start: this.start,
7909
7928
  end: this.end,
7910
7929
  literal: this.literal,
@@ -8019,7 +8038,7 @@ function constructTSType(pos, ast) {
8019
8038
  }
8020
8039
 
8021
8040
  export class TSConditionalType {
8022
- type = 'TSConditionalType';
8041
+ type = "TSConditionalType";
8023
8042
  #internal;
8024
8043
 
8025
8044
  constructor(pos, ast) {
@@ -8065,7 +8084,7 @@ export class TSConditionalType {
8065
8084
 
8066
8085
  toJSON() {
8067
8086
  return {
8068
- type: 'TSConditionalType',
8087
+ type: "TSConditionalType",
8069
8088
  start: this.start,
8070
8089
  end: this.end,
8071
8090
  checkType: this.checkType,
@@ -8083,7 +8102,7 @@ export class TSConditionalType {
8083
8102
  const DebugTSConditionalType = class TSConditionalType {};
8084
8103
 
8085
8104
  export class TSUnionType {
8086
- type = 'TSUnionType';
8105
+ type = "TSUnionType";
8087
8106
  #internal;
8088
8107
 
8089
8108
  constructor(pos, ast) {
@@ -8116,7 +8135,7 @@ export class TSUnionType {
8116
8135
 
8117
8136
  toJSON() {
8118
8137
  return {
8119
- type: 'TSUnionType',
8138
+ type: "TSUnionType",
8120
8139
  start: this.start,
8121
8140
  end: this.end,
8122
8141
  types: this.types,
@@ -8131,7 +8150,7 @@ export class TSUnionType {
8131
8150
  const DebugTSUnionType = class TSUnionType {};
8132
8151
 
8133
8152
  export class TSIntersectionType {
8134
- type = 'TSIntersectionType';
8153
+ type = "TSIntersectionType";
8135
8154
  #internal;
8136
8155
 
8137
8156
  constructor(pos, ast) {
@@ -8164,7 +8183,7 @@ export class TSIntersectionType {
8164
8183
 
8165
8184
  toJSON() {
8166
8185
  return {
8167
- type: 'TSIntersectionType',
8186
+ type: "TSIntersectionType",
8168
8187
  start: this.start,
8169
8188
  end: this.end,
8170
8189
  types: this.types,
@@ -8179,7 +8198,7 @@ export class TSIntersectionType {
8179
8198
  const DebugTSIntersectionType = class TSIntersectionType {};
8180
8199
 
8181
8200
  export class TSParenthesizedType {
8182
- type = 'TSParenthesizedType';
8201
+ type = "TSParenthesizedType";
8183
8202
  #internal;
8184
8203
 
8185
8204
  constructor(pos, ast) {
@@ -8210,7 +8229,7 @@ export class TSParenthesizedType {
8210
8229
 
8211
8230
  toJSON() {
8212
8231
  return {
8213
- type: 'TSParenthesizedType',
8232
+ type: "TSParenthesizedType",
8214
8233
  start: this.start,
8215
8234
  end: this.end,
8216
8235
  typeAnnotation: this.typeAnnotation,
@@ -8225,7 +8244,7 @@ export class TSParenthesizedType {
8225
8244
  const DebugTSParenthesizedType = class TSParenthesizedType {};
8226
8245
 
8227
8246
  export class TSTypeOperator {
8228
- type = 'TSTypeOperator';
8247
+ type = "TSTypeOperator";
8229
8248
  #internal;
8230
8249
 
8231
8250
  constructor(pos, ast) {
@@ -8261,7 +8280,7 @@ export class TSTypeOperator {
8261
8280
 
8262
8281
  toJSON() {
8263
8282
  return {
8264
- type: 'TSTypeOperator',
8283
+ type: "TSTypeOperator",
8265
8284
  start: this.start,
8266
8285
  end: this.end,
8267
8286
  operator: this.operator,
@@ -8279,18 +8298,18 @@ const DebugTSTypeOperator = class TSTypeOperator {};
8279
8298
  function constructTSTypeOperatorOperator(pos, ast) {
8280
8299
  switch (ast.buffer[pos]) {
8281
8300
  case 0:
8282
- return 'keyof';
8301
+ return "keyof";
8283
8302
  case 1:
8284
- return 'unique';
8303
+ return "unique";
8285
8304
  case 2:
8286
- return 'readonly';
8305
+ return "readonly";
8287
8306
  default:
8288
8307
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for TSTypeOperatorOperator`);
8289
8308
  }
8290
8309
  }
8291
8310
 
8292
8311
  export class TSArrayType {
8293
- type = 'TSArrayType';
8312
+ type = "TSArrayType";
8294
8313
  #internal;
8295
8314
 
8296
8315
  constructor(pos, ast) {
@@ -8321,7 +8340,7 @@ export class TSArrayType {
8321
8340
 
8322
8341
  toJSON() {
8323
8342
  return {
8324
- type: 'TSArrayType',
8343
+ type: "TSArrayType",
8325
8344
  start: this.start,
8326
8345
  end: this.end,
8327
8346
  elementType: this.elementType,
@@ -8336,7 +8355,7 @@ export class TSArrayType {
8336
8355
  const DebugTSArrayType = class TSArrayType {};
8337
8356
 
8338
8357
  export class TSIndexedAccessType {
8339
- type = 'TSIndexedAccessType';
8358
+ type = "TSIndexedAccessType";
8340
8359
  #internal;
8341
8360
 
8342
8361
  constructor(pos, ast) {
@@ -8372,7 +8391,7 @@ export class TSIndexedAccessType {
8372
8391
 
8373
8392
  toJSON() {
8374
8393
  return {
8375
- type: 'TSIndexedAccessType',
8394
+ type: "TSIndexedAccessType",
8376
8395
  start: this.start,
8377
8396
  end: this.end,
8378
8397
  objectType: this.objectType,
@@ -8388,7 +8407,7 @@ export class TSIndexedAccessType {
8388
8407
  const DebugTSIndexedAccessType = class TSIndexedAccessType {};
8389
8408
 
8390
8409
  export class TSTupleType {
8391
- type = 'TSTupleType';
8410
+ type = "TSTupleType";
8392
8411
  #internal;
8393
8412
 
8394
8413
  constructor(pos, ast) {
@@ -8421,7 +8440,7 @@ export class TSTupleType {
8421
8440
 
8422
8441
  toJSON() {
8423
8442
  return {
8424
- type: 'TSTupleType',
8443
+ type: "TSTupleType",
8425
8444
  start: this.start,
8426
8445
  end: this.end,
8427
8446
  elementTypes: this.elementTypes,
@@ -8436,7 +8455,7 @@ export class TSTupleType {
8436
8455
  const DebugTSTupleType = class TSTupleType {};
8437
8456
 
8438
8457
  export class TSNamedTupleMember {
8439
- type = 'TSNamedTupleMember';
8458
+ type = "TSNamedTupleMember";
8440
8459
  #internal;
8441
8460
 
8442
8461
  constructor(pos, ast) {
@@ -8477,7 +8496,7 @@ export class TSNamedTupleMember {
8477
8496
 
8478
8497
  toJSON() {
8479
8498
  return {
8480
- type: 'TSNamedTupleMember',
8499
+ type: "TSNamedTupleMember",
8481
8500
  start: this.start,
8482
8501
  end: this.end,
8483
8502
  label: this.label,
@@ -8494,7 +8513,7 @@ export class TSNamedTupleMember {
8494
8513
  const DebugTSNamedTupleMember = class TSNamedTupleMember {};
8495
8514
 
8496
8515
  export class TSOptionalType {
8497
- type = 'TSOptionalType';
8516
+ type = "TSOptionalType";
8498
8517
  #internal;
8499
8518
 
8500
8519
  constructor(pos, ast) {
@@ -8525,7 +8544,7 @@ export class TSOptionalType {
8525
8544
 
8526
8545
  toJSON() {
8527
8546
  return {
8528
- type: 'TSOptionalType',
8547
+ type: "TSOptionalType",
8529
8548
  start: this.start,
8530
8549
  end: this.end,
8531
8550
  typeAnnotation: this.typeAnnotation,
@@ -8540,7 +8559,7 @@ export class TSOptionalType {
8540
8559
  const DebugTSOptionalType = class TSOptionalType {};
8541
8560
 
8542
8561
  export class TSRestType {
8543
- type = 'TSRestType';
8562
+ type = "TSRestType";
8544
8563
  #internal;
8545
8564
 
8546
8565
  constructor(pos, ast) {
@@ -8571,7 +8590,7 @@ export class TSRestType {
8571
8590
 
8572
8591
  toJSON() {
8573
8592
  return {
8574
- type: 'TSRestType',
8593
+ type: "TSRestType",
8575
8594
  start: this.start,
8576
8595
  end: this.end,
8577
8596
  typeAnnotation: this.typeAnnotation,
@@ -8671,7 +8690,7 @@ function constructTSTupleElement(pos, ast) {
8671
8690
  }
8672
8691
 
8673
8692
  export class TSAnyKeyword {
8674
- type = 'TSAnyKeyword';
8693
+ type = "TSAnyKeyword";
8675
8694
  #internal;
8676
8695
 
8677
8696
  constructor(pos, ast) {
@@ -8697,7 +8716,7 @@ export class TSAnyKeyword {
8697
8716
 
8698
8717
  toJSON() {
8699
8718
  return {
8700
- type: 'TSAnyKeyword',
8719
+ type: "TSAnyKeyword",
8701
8720
  start: this.start,
8702
8721
  end: this.end,
8703
8722
  };
@@ -8711,7 +8730,7 @@ export class TSAnyKeyword {
8711
8730
  const DebugTSAnyKeyword = class TSAnyKeyword {};
8712
8731
 
8713
8732
  export class TSStringKeyword {
8714
- type = 'TSStringKeyword';
8733
+ type = "TSStringKeyword";
8715
8734
  #internal;
8716
8735
 
8717
8736
  constructor(pos, ast) {
@@ -8737,7 +8756,7 @@ export class TSStringKeyword {
8737
8756
 
8738
8757
  toJSON() {
8739
8758
  return {
8740
- type: 'TSStringKeyword',
8759
+ type: "TSStringKeyword",
8741
8760
  start: this.start,
8742
8761
  end: this.end,
8743
8762
  };
@@ -8751,7 +8770,7 @@ export class TSStringKeyword {
8751
8770
  const DebugTSStringKeyword = class TSStringKeyword {};
8752
8771
 
8753
8772
  export class TSBooleanKeyword {
8754
- type = 'TSBooleanKeyword';
8773
+ type = "TSBooleanKeyword";
8755
8774
  #internal;
8756
8775
 
8757
8776
  constructor(pos, ast) {
@@ -8777,7 +8796,7 @@ export class TSBooleanKeyword {
8777
8796
 
8778
8797
  toJSON() {
8779
8798
  return {
8780
- type: 'TSBooleanKeyword',
8799
+ type: "TSBooleanKeyword",
8781
8800
  start: this.start,
8782
8801
  end: this.end,
8783
8802
  };
@@ -8791,7 +8810,7 @@ export class TSBooleanKeyword {
8791
8810
  const DebugTSBooleanKeyword = class TSBooleanKeyword {};
8792
8811
 
8793
8812
  export class TSNumberKeyword {
8794
- type = 'TSNumberKeyword';
8813
+ type = "TSNumberKeyword";
8795
8814
  #internal;
8796
8815
 
8797
8816
  constructor(pos, ast) {
@@ -8817,7 +8836,7 @@ export class TSNumberKeyword {
8817
8836
 
8818
8837
  toJSON() {
8819
8838
  return {
8820
- type: 'TSNumberKeyword',
8839
+ type: "TSNumberKeyword",
8821
8840
  start: this.start,
8822
8841
  end: this.end,
8823
8842
  };
@@ -8831,7 +8850,7 @@ export class TSNumberKeyword {
8831
8850
  const DebugTSNumberKeyword = class TSNumberKeyword {};
8832
8851
 
8833
8852
  export class TSNeverKeyword {
8834
- type = 'TSNeverKeyword';
8853
+ type = "TSNeverKeyword";
8835
8854
  #internal;
8836
8855
 
8837
8856
  constructor(pos, ast) {
@@ -8857,7 +8876,7 @@ export class TSNeverKeyword {
8857
8876
 
8858
8877
  toJSON() {
8859
8878
  return {
8860
- type: 'TSNeverKeyword',
8879
+ type: "TSNeverKeyword",
8861
8880
  start: this.start,
8862
8881
  end: this.end,
8863
8882
  };
@@ -8871,7 +8890,7 @@ export class TSNeverKeyword {
8871
8890
  const DebugTSNeverKeyword = class TSNeverKeyword {};
8872
8891
 
8873
8892
  export class TSIntrinsicKeyword {
8874
- type = 'TSIntrinsicKeyword';
8893
+ type = "TSIntrinsicKeyword";
8875
8894
  #internal;
8876
8895
 
8877
8896
  constructor(pos, ast) {
@@ -8897,7 +8916,7 @@ export class TSIntrinsicKeyword {
8897
8916
 
8898
8917
  toJSON() {
8899
8918
  return {
8900
- type: 'TSIntrinsicKeyword',
8919
+ type: "TSIntrinsicKeyword",
8901
8920
  start: this.start,
8902
8921
  end: this.end,
8903
8922
  };
@@ -8911,7 +8930,7 @@ export class TSIntrinsicKeyword {
8911
8930
  const DebugTSIntrinsicKeyword = class TSIntrinsicKeyword {};
8912
8931
 
8913
8932
  export class TSUnknownKeyword {
8914
- type = 'TSUnknownKeyword';
8933
+ type = "TSUnknownKeyword";
8915
8934
  #internal;
8916
8935
 
8917
8936
  constructor(pos, ast) {
@@ -8937,7 +8956,7 @@ export class TSUnknownKeyword {
8937
8956
 
8938
8957
  toJSON() {
8939
8958
  return {
8940
- type: 'TSUnknownKeyword',
8959
+ type: "TSUnknownKeyword",
8941
8960
  start: this.start,
8942
8961
  end: this.end,
8943
8962
  };
@@ -8951,7 +8970,7 @@ export class TSUnknownKeyword {
8951
8970
  const DebugTSUnknownKeyword = class TSUnknownKeyword {};
8952
8971
 
8953
8972
  export class TSNullKeyword {
8954
- type = 'TSNullKeyword';
8973
+ type = "TSNullKeyword";
8955
8974
  #internal;
8956
8975
 
8957
8976
  constructor(pos, ast) {
@@ -8977,7 +8996,7 @@ export class TSNullKeyword {
8977
8996
 
8978
8997
  toJSON() {
8979
8998
  return {
8980
- type: 'TSNullKeyword',
8999
+ type: "TSNullKeyword",
8981
9000
  start: this.start,
8982
9001
  end: this.end,
8983
9002
  };
@@ -8991,7 +9010,7 @@ export class TSNullKeyword {
8991
9010
  const DebugTSNullKeyword = class TSNullKeyword {};
8992
9011
 
8993
9012
  export class TSUndefinedKeyword {
8994
- type = 'TSUndefinedKeyword';
9013
+ type = "TSUndefinedKeyword";
8995
9014
  #internal;
8996
9015
 
8997
9016
  constructor(pos, ast) {
@@ -9017,7 +9036,7 @@ export class TSUndefinedKeyword {
9017
9036
 
9018
9037
  toJSON() {
9019
9038
  return {
9020
- type: 'TSUndefinedKeyword',
9039
+ type: "TSUndefinedKeyword",
9021
9040
  start: this.start,
9022
9041
  end: this.end,
9023
9042
  };
@@ -9031,7 +9050,7 @@ export class TSUndefinedKeyword {
9031
9050
  const DebugTSUndefinedKeyword = class TSUndefinedKeyword {};
9032
9051
 
9033
9052
  export class TSVoidKeyword {
9034
- type = 'TSVoidKeyword';
9053
+ type = "TSVoidKeyword";
9035
9054
  #internal;
9036
9055
 
9037
9056
  constructor(pos, ast) {
@@ -9057,7 +9076,7 @@ export class TSVoidKeyword {
9057
9076
 
9058
9077
  toJSON() {
9059
9078
  return {
9060
- type: 'TSVoidKeyword',
9079
+ type: "TSVoidKeyword",
9061
9080
  start: this.start,
9062
9081
  end: this.end,
9063
9082
  };
@@ -9071,7 +9090,7 @@ export class TSVoidKeyword {
9071
9090
  const DebugTSVoidKeyword = class TSVoidKeyword {};
9072
9091
 
9073
9092
  export class TSSymbolKeyword {
9074
- type = 'TSSymbolKeyword';
9093
+ type = "TSSymbolKeyword";
9075
9094
  #internal;
9076
9095
 
9077
9096
  constructor(pos, ast) {
@@ -9097,7 +9116,7 @@ export class TSSymbolKeyword {
9097
9116
 
9098
9117
  toJSON() {
9099
9118
  return {
9100
- type: 'TSSymbolKeyword',
9119
+ type: "TSSymbolKeyword",
9101
9120
  start: this.start,
9102
9121
  end: this.end,
9103
9122
  };
@@ -9111,7 +9130,7 @@ export class TSSymbolKeyword {
9111
9130
  const DebugTSSymbolKeyword = class TSSymbolKeyword {};
9112
9131
 
9113
9132
  export class TSThisType {
9114
- type = 'TSThisType';
9133
+ type = "TSThisType";
9115
9134
  #internal;
9116
9135
 
9117
9136
  constructor(pos, ast) {
@@ -9137,7 +9156,7 @@ export class TSThisType {
9137
9156
 
9138
9157
  toJSON() {
9139
9158
  return {
9140
- type: 'TSThisType',
9159
+ type: "TSThisType",
9141
9160
  start: this.start,
9142
9161
  end: this.end,
9143
9162
  };
@@ -9151,7 +9170,7 @@ export class TSThisType {
9151
9170
  const DebugTSThisType = class TSThisType {};
9152
9171
 
9153
9172
  export class TSObjectKeyword {
9154
- type = 'TSObjectKeyword';
9173
+ type = "TSObjectKeyword";
9155
9174
  #internal;
9156
9175
 
9157
9176
  constructor(pos, ast) {
@@ -9177,7 +9196,7 @@ export class TSObjectKeyword {
9177
9196
 
9178
9197
  toJSON() {
9179
9198
  return {
9180
- type: 'TSObjectKeyword',
9199
+ type: "TSObjectKeyword",
9181
9200
  start: this.start,
9182
9201
  end: this.end,
9183
9202
  };
@@ -9191,7 +9210,7 @@ export class TSObjectKeyword {
9191
9210
  const DebugTSObjectKeyword = class TSObjectKeyword {};
9192
9211
 
9193
9212
  export class TSBigIntKeyword {
9194
- type = 'TSBigIntKeyword';
9213
+ type = "TSBigIntKeyword";
9195
9214
  #internal;
9196
9215
 
9197
9216
  constructor(pos, ast) {
@@ -9217,7 +9236,7 @@ export class TSBigIntKeyword {
9217
9236
 
9218
9237
  toJSON() {
9219
9238
  return {
9220
- type: 'TSBigIntKeyword',
9239
+ type: "TSBigIntKeyword",
9221
9240
  start: this.start,
9222
9241
  end: this.end,
9223
9242
  };
@@ -9231,7 +9250,7 @@ export class TSBigIntKeyword {
9231
9250
  const DebugTSBigIntKeyword = class TSBigIntKeyword {};
9232
9251
 
9233
9252
  export class TSTypeReference {
9234
- type = 'TSTypeReference';
9253
+ type = "TSTypeReference";
9235
9254
  #internal;
9236
9255
 
9237
9256
  constructor(pos, ast) {
@@ -9267,7 +9286,7 @@ export class TSTypeReference {
9267
9286
 
9268
9287
  toJSON() {
9269
9288
  return {
9270
- type: 'TSTypeReference',
9289
+ type: "TSTypeReference",
9271
9290
  start: this.start,
9272
9291
  end: this.end,
9273
9292
  typeName: this.typeName,
@@ -9296,7 +9315,7 @@ function constructTSTypeName(pos, ast) {
9296
9315
  }
9297
9316
 
9298
9317
  export class TSQualifiedName {
9299
- type = 'TSQualifiedName';
9318
+ type = "TSQualifiedName";
9300
9319
  #internal;
9301
9320
 
9302
9321
  constructor(pos, ast) {
@@ -9332,7 +9351,7 @@ export class TSQualifiedName {
9332
9351
 
9333
9352
  toJSON() {
9334
9353
  return {
9335
- type: 'TSQualifiedName',
9354
+ type: "TSQualifiedName",
9336
9355
  start: this.start,
9337
9356
  end: this.end,
9338
9357
  left: this.left,
@@ -9348,7 +9367,7 @@ export class TSQualifiedName {
9348
9367
  const DebugTSQualifiedName = class TSQualifiedName {};
9349
9368
 
9350
9369
  export class TSTypeParameterInstantiation {
9351
- type = 'TSTypeParameterInstantiation';
9370
+ type = "TSTypeParameterInstantiation";
9352
9371
  #internal;
9353
9372
 
9354
9373
  constructor(pos, ast) {
@@ -9381,7 +9400,7 @@ export class TSTypeParameterInstantiation {
9381
9400
 
9382
9401
  toJSON() {
9383
9402
  return {
9384
- type: 'TSTypeParameterInstantiation',
9403
+ type: "TSTypeParameterInstantiation",
9385
9404
  start: this.start,
9386
9405
  end: this.end,
9387
9406
  params: this.params,
@@ -9396,7 +9415,7 @@ export class TSTypeParameterInstantiation {
9396
9415
  const DebugTSTypeParameterInstantiation = class TSTypeParameterInstantiation {};
9397
9416
 
9398
9417
  export class TSTypeParameter {
9399
- type = 'TSTypeParameter';
9418
+ type = "TSTypeParameter";
9400
9419
  #internal;
9401
9420
 
9402
9421
  constructor(pos, ast) {
@@ -9452,7 +9471,7 @@ export class TSTypeParameter {
9452
9471
 
9453
9472
  toJSON() {
9454
9473
  return {
9455
- type: 'TSTypeParameter',
9474
+ type: "TSTypeParameter",
9456
9475
  start: this.start,
9457
9476
  end: this.end,
9458
9477
  name: this.name,
@@ -9472,7 +9491,7 @@ export class TSTypeParameter {
9472
9491
  const DebugTSTypeParameter = class TSTypeParameter {};
9473
9492
 
9474
9493
  export class TSTypeParameterDeclaration {
9475
- type = 'TSTypeParameterDeclaration';
9494
+ type = "TSTypeParameterDeclaration";
9476
9495
  #internal;
9477
9496
 
9478
9497
  constructor(pos, ast) {
@@ -9505,7 +9524,7 @@ export class TSTypeParameterDeclaration {
9505
9524
 
9506
9525
  toJSON() {
9507
9526
  return {
9508
- type: 'TSTypeParameterDeclaration',
9527
+ type: "TSTypeParameterDeclaration",
9509
9528
  start: this.start,
9510
9529
  end: this.end,
9511
9530
  params: this.params,
@@ -9520,7 +9539,7 @@ export class TSTypeParameterDeclaration {
9520
9539
  const DebugTSTypeParameterDeclaration = class TSTypeParameterDeclaration {};
9521
9540
 
9522
9541
  export class TSTypeAliasDeclaration {
9523
- type = 'TSTypeAliasDeclaration';
9542
+ type = "TSTypeAliasDeclaration";
9524
9543
  #internal;
9525
9544
 
9526
9545
  constructor(pos, ast) {
@@ -9566,7 +9585,7 @@ export class TSTypeAliasDeclaration {
9566
9585
 
9567
9586
  toJSON() {
9568
9587
  return {
9569
- type: 'TSTypeAliasDeclaration',
9588
+ type: "TSTypeAliasDeclaration",
9570
9589
  start: this.start,
9571
9590
  end: this.end,
9572
9591
  id: this.id,
@@ -9586,18 +9605,18 @@ const DebugTSTypeAliasDeclaration = class TSTypeAliasDeclaration {};
9586
9605
  function constructTSAccessibility(pos, ast) {
9587
9606
  switch (ast.buffer[pos]) {
9588
9607
  case 0:
9589
- return 'private';
9608
+ return "private";
9590
9609
  case 1:
9591
- return 'protected';
9610
+ return "protected";
9592
9611
  case 2:
9593
- return 'public';
9612
+ return "public";
9594
9613
  default:
9595
9614
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for TSAccessibility`);
9596
9615
  }
9597
9616
  }
9598
9617
 
9599
9618
  export class TSClassImplements {
9600
- type = 'TSClassImplements';
9619
+ type = "TSClassImplements";
9601
9620
  #internal;
9602
9621
 
9603
9622
  constructor(pos, ast) {
@@ -9633,7 +9652,7 @@ export class TSClassImplements {
9633
9652
 
9634
9653
  toJSON() {
9635
9654
  return {
9636
- type: 'TSClassImplements',
9655
+ type: "TSClassImplements",
9637
9656
  start: this.start,
9638
9657
  end: this.end,
9639
9658
  expression: this.expression,
@@ -9649,7 +9668,7 @@ export class TSClassImplements {
9649
9668
  const DebugTSClassImplements = class TSClassImplements {};
9650
9669
 
9651
9670
  export class TSInterfaceDeclaration {
9652
- type = 'TSInterfaceDeclaration';
9671
+ type = "TSInterfaceDeclaration";
9653
9672
  #internal;
9654
9673
 
9655
9674
  constructor(pos, ast) {
@@ -9702,7 +9721,7 @@ export class TSInterfaceDeclaration {
9702
9721
 
9703
9722
  toJSON() {
9704
9723
  return {
9705
- type: 'TSInterfaceDeclaration',
9724
+ type: "TSInterfaceDeclaration",
9706
9725
  start: this.start,
9707
9726
  end: this.end,
9708
9727
  id: this.id,
@@ -9721,7 +9740,7 @@ export class TSInterfaceDeclaration {
9721
9740
  const DebugTSInterfaceDeclaration = class TSInterfaceDeclaration {};
9722
9741
 
9723
9742
  export class TSInterfaceBody {
9724
- type = 'TSInterfaceBody';
9743
+ type = "TSInterfaceBody";
9725
9744
  #internal;
9726
9745
 
9727
9746
  constructor(pos, ast) {
@@ -9754,7 +9773,7 @@ export class TSInterfaceBody {
9754
9773
 
9755
9774
  toJSON() {
9756
9775
  return {
9757
- type: 'TSInterfaceBody',
9776
+ type: "TSInterfaceBody",
9758
9777
  start: this.start,
9759
9778
  end: this.end,
9760
9779
  body: this.body,
@@ -9769,7 +9788,7 @@ export class TSInterfaceBody {
9769
9788
  const DebugTSInterfaceBody = class TSInterfaceBody {};
9770
9789
 
9771
9790
  export class TSPropertySignature {
9772
- type = 'TSPropertySignature';
9791
+ type = "TSPropertySignature";
9773
9792
  #internal;
9774
9793
 
9775
9794
  constructor(pos, ast) {
@@ -9820,7 +9839,7 @@ export class TSPropertySignature {
9820
9839
 
9821
9840
  toJSON() {
9822
9841
  return {
9823
- type: 'TSPropertySignature',
9842
+ type: "TSPropertySignature",
9824
9843
  start: this.start,
9825
9844
  end: this.end,
9826
9845
  computed: this.computed,
@@ -9856,7 +9875,7 @@ function constructTSSignature(pos, ast) {
9856
9875
  }
9857
9876
 
9858
9877
  export class TSIndexSignature {
9859
- type = 'TSIndexSignature';
9878
+ type = "TSIndexSignature";
9860
9879
  #internal;
9861
9880
 
9862
9881
  constructor(pos, ast) {
@@ -9884,7 +9903,10 @@ export class TSIndexSignature {
9884
9903
  const internal = this.#internal,
9885
9904
  cached = internal.$parameters;
9886
9905
  if (cached !== void 0) return cached;
9887
- return (internal.$parameters = constructVecTSIndexSignatureName(internal.pos + 8, internal.ast));
9906
+ return (internal.$parameters = constructVecTSIndexSignatureName(
9907
+ internal.pos + 8,
9908
+ internal.ast,
9909
+ ));
9888
9910
  }
9889
9911
 
9890
9912
  get typeAnnotation() {
@@ -9904,7 +9926,7 @@ export class TSIndexSignature {
9904
9926
 
9905
9927
  toJSON() {
9906
9928
  return {
9907
- type: 'TSIndexSignature',
9929
+ type: "TSIndexSignature",
9908
9930
  start: this.start,
9909
9931
  end: this.end,
9910
9932
  parameters: this.parameters,
@@ -9922,7 +9944,7 @@ export class TSIndexSignature {
9922
9944
  const DebugTSIndexSignature = class TSIndexSignature {};
9923
9945
 
9924
9946
  export class TSCallSignatureDeclaration {
9925
- type = 'TSCallSignatureDeclaration';
9947
+ type = "TSCallSignatureDeclaration";
9926
9948
  #internal;
9927
9949
 
9928
9950
  constructor(pos, ast) {
@@ -9963,7 +9985,7 @@ export class TSCallSignatureDeclaration {
9963
9985
 
9964
9986
  toJSON() {
9965
9987
  return {
9966
- type: 'TSCallSignatureDeclaration',
9988
+ type: "TSCallSignatureDeclaration",
9967
9989
  start: this.start,
9968
9990
  end: this.end,
9969
9991
  typeParameters: this.typeParameters,
@@ -9982,18 +10004,18 @@ const DebugTSCallSignatureDeclaration = class TSCallSignatureDeclaration {};
9982
10004
  function constructTSMethodSignatureKind(pos, ast) {
9983
10005
  switch (ast.buffer[pos]) {
9984
10006
  case 0:
9985
- return 'method';
10007
+ return "method";
9986
10008
  case 1:
9987
- return 'get';
10009
+ return "get";
9988
10010
  case 2:
9989
- return 'set';
10011
+ return "set";
9990
10012
  default:
9991
10013
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for TSMethodSignatureKind`);
9992
10014
  }
9993
10015
  }
9994
10016
 
9995
10017
  export class TSMethodSignature {
9996
- type = 'TSMethodSignature';
10018
+ type = "TSMethodSignature";
9997
10019
  #internal;
9998
10020
 
9999
10021
  constructor(pos, ast) {
@@ -10054,7 +10076,7 @@ export class TSMethodSignature {
10054
10076
 
10055
10077
  toJSON() {
10056
10078
  return {
10057
- type: 'TSMethodSignature',
10079
+ type: "TSMethodSignature",
10058
10080
  start: this.start,
10059
10081
  end: this.end,
10060
10082
  key: this.key,
@@ -10075,7 +10097,7 @@ export class TSMethodSignature {
10075
10097
  const DebugTSMethodSignature = class TSMethodSignature {};
10076
10098
 
10077
10099
  export class TSConstructSignatureDeclaration {
10078
- type = 'TSConstructSignatureDeclaration';
10100
+ type = "TSConstructSignatureDeclaration";
10079
10101
  #internal;
10080
10102
 
10081
10103
  constructor(pos, ast) {
@@ -10116,7 +10138,7 @@ export class TSConstructSignatureDeclaration {
10116
10138
 
10117
10139
  toJSON() {
10118
10140
  return {
10119
- type: 'TSConstructSignatureDeclaration',
10141
+ type: "TSConstructSignatureDeclaration",
10120
10142
  start: this.start,
10121
10143
  end: this.end,
10122
10144
  typeParameters: this.typeParameters,
@@ -10133,7 +10155,7 @@ export class TSConstructSignatureDeclaration {
10133
10155
  const DebugTSConstructSignatureDeclaration = class TSConstructSignatureDeclaration {};
10134
10156
 
10135
10157
  export class TSIndexSignatureName {
10136
- type = 'TSIndexSignatureName';
10158
+ type = "TSIndexSignatureName";
10137
10159
  #internal;
10138
10160
 
10139
10161
  constructor(pos, ast) {
@@ -10171,7 +10193,7 @@ export class TSIndexSignatureName {
10171
10193
 
10172
10194
  toJSON() {
10173
10195
  return {
10174
- type: 'TSIndexSignatureName',
10196
+ type: "TSIndexSignatureName",
10175
10197
  start: this.start,
10176
10198
  end: this.end,
10177
10199
  name: this.name,
@@ -10187,7 +10209,7 @@ export class TSIndexSignatureName {
10187
10209
  const DebugTSIndexSignatureName = class TSIndexSignatureName {};
10188
10210
 
10189
10211
  export class TSInterfaceHeritage {
10190
- type = 'TSInterfaceHeritage';
10212
+ type = "TSInterfaceHeritage";
10191
10213
  #internal;
10192
10214
 
10193
10215
  constructor(pos, ast) {
@@ -10223,7 +10245,7 @@ export class TSInterfaceHeritage {
10223
10245
 
10224
10246
  toJSON() {
10225
10247
  return {
10226
- type: 'TSInterfaceHeritage',
10248
+ type: "TSInterfaceHeritage",
10227
10249
  start: this.start,
10228
10250
  end: this.end,
10229
10251
  expression: this.expression,
@@ -10239,7 +10261,7 @@ export class TSInterfaceHeritage {
10239
10261
  const DebugTSInterfaceHeritage = class TSInterfaceHeritage {};
10240
10262
 
10241
10263
  export class TSTypePredicate {
10242
- type = 'TSTypePredicate';
10264
+ type = "TSTypePredicate";
10243
10265
  #internal;
10244
10266
 
10245
10267
  constructor(pos, ast) {
@@ -10280,7 +10302,7 @@ export class TSTypePredicate {
10280
10302
 
10281
10303
  toJSON() {
10282
10304
  return {
10283
- type: 'TSTypePredicate',
10305
+ type: "TSTypePredicate",
10284
10306
  start: this.start,
10285
10307
  end: this.end,
10286
10308
  parameterName: this.parameterName,
@@ -10308,7 +10330,7 @@ function constructTSTypePredicateName(pos, ast) {
10308
10330
  }
10309
10331
 
10310
10332
  export class TSModuleDeclaration {
10311
- type = 'TSModuleDeclaration';
10333
+ type = "TSModuleDeclaration";
10312
10334
  #internal;
10313
10335
 
10314
10336
  constructor(pos, ast) {
@@ -10354,7 +10376,7 @@ export class TSModuleDeclaration {
10354
10376
 
10355
10377
  toJSON() {
10356
10378
  return {
10357
- type: 'TSModuleDeclaration',
10379
+ type: "TSModuleDeclaration",
10358
10380
  start: this.start,
10359
10381
  end: this.end,
10360
10382
  id: this.id,
@@ -10374,9 +10396,9 @@ const DebugTSModuleDeclaration = class TSModuleDeclaration {};
10374
10396
  function constructTSModuleDeclarationKind(pos, ast) {
10375
10397
  switch (ast.buffer[pos]) {
10376
10398
  case 0:
10377
- return 'module';
10399
+ return "module";
10378
10400
  case 1:
10379
- return 'namespace';
10401
+ return "namespace";
10380
10402
  default:
10381
10403
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for TSModuleDeclarationKind`);
10382
10404
  }
@@ -10405,7 +10427,7 @@ function constructTSModuleDeclarationBody(pos, ast) {
10405
10427
  }
10406
10428
 
10407
10429
  export class TSGlobalDeclaration {
10408
- type = 'TSGlobalDeclaration';
10430
+ type = "TSGlobalDeclaration";
10409
10431
  #internal;
10410
10432
 
10411
10433
  constructor(pos, ast) {
@@ -10441,7 +10463,7 @@ export class TSGlobalDeclaration {
10441
10463
 
10442
10464
  toJSON() {
10443
10465
  return {
10444
- type: 'TSGlobalDeclaration',
10466
+ type: "TSGlobalDeclaration",
10445
10467
  start: this.start,
10446
10468
  end: this.end,
10447
10469
  body: this.body,
@@ -10457,7 +10479,7 @@ export class TSGlobalDeclaration {
10457
10479
  const DebugTSGlobalDeclaration = class TSGlobalDeclaration {};
10458
10480
 
10459
10481
  export class TSModuleBlock {
10460
- type = 'TSModuleBlock';
10482
+ type = "TSModuleBlock";
10461
10483
  #internal;
10462
10484
 
10463
10485
  constructor(pos, ast) {
@@ -10490,7 +10512,7 @@ export class TSModuleBlock {
10490
10512
 
10491
10513
  toJSON() {
10492
10514
  return {
10493
- type: 'TSModuleBlock',
10515
+ type: "TSModuleBlock",
10494
10516
  start: this.start,
10495
10517
  end: this.end,
10496
10518
  body: this.body,
@@ -10505,7 +10527,7 @@ export class TSModuleBlock {
10505
10527
  const DebugTSModuleBlock = class TSModuleBlock {};
10506
10528
 
10507
10529
  export class TSTypeLiteral {
10508
- type = 'TSTypeLiteral';
10530
+ type = "TSTypeLiteral";
10509
10531
  #internal;
10510
10532
 
10511
10533
  constructor(pos, ast) {
@@ -10538,7 +10560,7 @@ export class TSTypeLiteral {
10538
10560
 
10539
10561
  toJSON() {
10540
10562
  return {
10541
- type: 'TSTypeLiteral',
10563
+ type: "TSTypeLiteral",
10542
10564
  start: this.start,
10543
10565
  end: this.end,
10544
10566
  members: this.members,
@@ -10553,7 +10575,7 @@ export class TSTypeLiteral {
10553
10575
  const DebugTSTypeLiteral = class TSTypeLiteral {};
10554
10576
 
10555
10577
  export class TSInferType {
10556
- type = 'TSInferType';
10578
+ type = "TSInferType";
10557
10579
  #internal;
10558
10580
 
10559
10581
  constructor(pos, ast) {
@@ -10584,7 +10606,7 @@ export class TSInferType {
10584
10606
 
10585
10607
  toJSON() {
10586
10608
  return {
10587
- type: 'TSInferType',
10609
+ type: "TSInferType",
10588
10610
  start: this.start,
10589
10611
  end: this.end,
10590
10612
  typeParameter: this.typeParameter,
@@ -10599,7 +10621,7 @@ export class TSInferType {
10599
10621
  const DebugTSInferType = class TSInferType {};
10600
10622
 
10601
10623
  export class TSTypeQuery {
10602
- type = 'TSTypeQuery';
10624
+ type = "TSTypeQuery";
10603
10625
  #internal;
10604
10626
 
10605
10627
  constructor(pos, ast) {
@@ -10635,7 +10657,7 @@ export class TSTypeQuery {
10635
10657
 
10636
10658
  toJSON() {
10637
10659
  return {
10638
- type: 'TSTypeQuery',
10660
+ type: "TSTypeQuery",
10639
10661
  start: this.start,
10640
10662
  end: this.end,
10641
10663
  exprName: this.exprName,
@@ -10666,7 +10688,7 @@ function constructTSTypeQueryExprName(pos, ast) {
10666
10688
  }
10667
10689
 
10668
10690
  export class TSImportType {
10669
- type = 'TSImportType';
10691
+ type = "TSImportType";
10670
10692
  #internal;
10671
10693
 
10672
10694
  constructor(pos, ast) {
@@ -10690,32 +10712,32 @@ export class TSImportType {
10690
10712
  return constructU32(internal.pos + 4, internal.ast);
10691
10713
  }
10692
10714
 
10693
- get argument() {
10715
+ get source() {
10694
10716
  const internal = this.#internal;
10695
- return constructTSType(internal.pos + 8, internal.ast);
10717
+ return new StringLiteral(internal.pos + 8, internal.ast);
10696
10718
  }
10697
10719
 
10698
10720
  get options() {
10699
10721
  const internal = this.#internal;
10700
- return constructOptionBoxObjectExpression(internal.pos + 24, internal.ast);
10722
+ return constructOptionBoxObjectExpression(internal.pos + 56, internal.ast);
10701
10723
  }
10702
10724
 
10703
10725
  get qualifier() {
10704
10726
  const internal = this.#internal;
10705
- return constructOptionTSImportTypeQualifier(internal.pos + 32, internal.ast);
10727
+ return constructOptionTSImportTypeQualifier(internal.pos + 64, internal.ast);
10706
10728
  }
10707
10729
 
10708
10730
  get typeArguments() {
10709
10731
  const internal = this.#internal;
10710
- return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 48, internal.ast);
10732
+ return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 80, internal.ast);
10711
10733
  }
10712
10734
 
10713
10735
  toJSON() {
10714
10736
  return {
10715
- type: 'TSImportType',
10737
+ type: "TSImportType",
10716
10738
  start: this.start,
10717
10739
  end: this.end,
10718
- argument: this.argument,
10740
+ source: this.source,
10719
10741
  options: this.options,
10720
10742
  qualifier: this.qualifier,
10721
10743
  typeArguments: this.typeArguments,
@@ -10741,7 +10763,7 @@ function constructTSImportTypeQualifier(pos, ast) {
10741
10763
  }
10742
10764
 
10743
10765
  export class TSImportTypeQualifiedName {
10744
- type = 'TSImportTypeQualifiedName';
10766
+ type = "TSImportTypeQualifiedName";
10745
10767
  #internal;
10746
10768
 
10747
10769
  constructor(pos, ast) {
@@ -10777,7 +10799,7 @@ export class TSImportTypeQualifiedName {
10777
10799
 
10778
10800
  toJSON() {
10779
10801
  return {
10780
- type: 'TSImportTypeQualifiedName',
10802
+ type: "TSImportTypeQualifiedName",
10781
10803
  start: this.start,
10782
10804
  end: this.end,
10783
10805
  left: this.left,
@@ -10793,7 +10815,7 @@ export class TSImportTypeQualifiedName {
10793
10815
  const DebugTSImportTypeQualifiedName = class TSImportTypeQualifiedName {};
10794
10816
 
10795
10817
  export class TSFunctionType {
10796
- type = 'TSFunctionType';
10818
+ type = "TSFunctionType";
10797
10819
  #internal;
10798
10820
 
10799
10821
  constructor(pos, ast) {
@@ -10834,7 +10856,7 @@ export class TSFunctionType {
10834
10856
 
10835
10857
  toJSON() {
10836
10858
  return {
10837
- type: 'TSFunctionType',
10859
+ type: "TSFunctionType",
10838
10860
  start: this.start,
10839
10861
  end: this.end,
10840
10862
  typeParameters: this.typeParameters,
@@ -10851,7 +10873,7 @@ export class TSFunctionType {
10851
10873
  const DebugTSFunctionType = class TSFunctionType {};
10852
10874
 
10853
10875
  export class TSConstructorType {
10854
- type = 'TSConstructorType';
10876
+ type = "TSConstructorType";
10855
10877
  #internal;
10856
10878
 
10857
10879
  constructor(pos, ast) {
@@ -10897,7 +10919,7 @@ export class TSConstructorType {
10897
10919
 
10898
10920
  toJSON() {
10899
10921
  return {
10900
- type: 'TSConstructorType',
10922
+ type: "TSConstructorType",
10901
10923
  start: this.start,
10902
10924
  end: this.end,
10903
10925
  abstract: this.abstract,
@@ -10915,7 +10937,7 @@ export class TSConstructorType {
10915
10937
  const DebugTSConstructorType = class TSConstructorType {};
10916
10938
 
10917
10939
  export class TSMappedType {
10918
- type = 'TSMappedType';
10940
+ type = "TSMappedType";
10919
10941
  #internal;
10920
10942
 
10921
10943
  constructor(pos, ast) {
@@ -10961,7 +10983,7 @@ export class TSMappedType {
10961
10983
 
10962
10984
  toJSON() {
10963
10985
  return {
10964
- type: 'TSMappedType',
10986
+ type: "TSMappedType",
10965
10987
  start: this.start,
10966
10988
  end: this.end,
10967
10989
  nameType: this.nameType,
@@ -10981,18 +11003,20 @@ const DebugTSMappedType = class TSMappedType {};
10981
11003
  function constructTSMappedTypeModifierOperator(pos, ast) {
10982
11004
  switch (ast.buffer[pos]) {
10983
11005
  case 0:
10984
- return 'true';
11006
+ return "true";
10985
11007
  case 1:
10986
- return '+';
11008
+ return "+";
10987
11009
  case 2:
10988
- return '-';
11010
+ return "-";
10989
11011
  default:
10990
- throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for TSMappedTypeModifierOperator`);
11012
+ throw new Error(
11013
+ `Unexpected discriminant ${ast.buffer[pos]} for TSMappedTypeModifierOperator`,
11014
+ );
10991
11015
  }
10992
11016
  }
10993
11017
 
10994
11018
  export class TSTemplateLiteralType {
10995
- type = 'TSTemplateLiteralType';
11019
+ type = "TSTemplateLiteralType";
10996
11020
  #internal;
10997
11021
 
10998
11022
  constructor(pos, ast) {
@@ -11032,7 +11056,7 @@ export class TSTemplateLiteralType {
11032
11056
 
11033
11057
  toJSON() {
11034
11058
  return {
11035
- type: 'TSTemplateLiteralType',
11059
+ type: "TSTemplateLiteralType",
11036
11060
  start: this.start,
11037
11061
  end: this.end,
11038
11062
  quasis: this.quasis,
@@ -11048,7 +11072,7 @@ export class TSTemplateLiteralType {
11048
11072
  const DebugTSTemplateLiteralType = class TSTemplateLiteralType {};
11049
11073
 
11050
11074
  export class TSAsExpression {
11051
- type = 'TSAsExpression';
11075
+ type = "TSAsExpression";
11052
11076
  #internal;
11053
11077
 
11054
11078
  constructor(pos, ast) {
@@ -11084,7 +11108,7 @@ export class TSAsExpression {
11084
11108
 
11085
11109
  toJSON() {
11086
11110
  return {
11087
- type: 'TSAsExpression',
11111
+ type: "TSAsExpression",
11088
11112
  start: this.start,
11089
11113
  end: this.end,
11090
11114
  expression: this.expression,
@@ -11100,7 +11124,7 @@ export class TSAsExpression {
11100
11124
  const DebugTSAsExpression = class TSAsExpression {};
11101
11125
 
11102
11126
  export class TSSatisfiesExpression {
11103
- type = 'TSSatisfiesExpression';
11127
+ type = "TSSatisfiesExpression";
11104
11128
  #internal;
11105
11129
 
11106
11130
  constructor(pos, ast) {
@@ -11136,7 +11160,7 @@ export class TSSatisfiesExpression {
11136
11160
 
11137
11161
  toJSON() {
11138
11162
  return {
11139
- type: 'TSSatisfiesExpression',
11163
+ type: "TSSatisfiesExpression",
11140
11164
  start: this.start,
11141
11165
  end: this.end,
11142
11166
  expression: this.expression,
@@ -11152,7 +11176,7 @@ export class TSSatisfiesExpression {
11152
11176
  const DebugTSSatisfiesExpression = class TSSatisfiesExpression {};
11153
11177
 
11154
11178
  export class TSTypeAssertion {
11155
- type = 'TSTypeAssertion';
11179
+ type = "TSTypeAssertion";
11156
11180
  #internal;
11157
11181
 
11158
11182
  constructor(pos, ast) {
@@ -11188,7 +11212,7 @@ export class TSTypeAssertion {
11188
11212
 
11189
11213
  toJSON() {
11190
11214
  return {
11191
- type: 'TSTypeAssertion',
11215
+ type: "TSTypeAssertion",
11192
11216
  start: this.start,
11193
11217
  end: this.end,
11194
11218
  typeAnnotation: this.typeAnnotation,
@@ -11204,7 +11228,7 @@ export class TSTypeAssertion {
11204
11228
  const DebugTSTypeAssertion = class TSTypeAssertion {};
11205
11229
 
11206
11230
  export class TSImportEqualsDeclaration {
11207
- type = 'TSImportEqualsDeclaration';
11231
+ type = "TSImportEqualsDeclaration";
11208
11232
  #internal;
11209
11233
 
11210
11234
  constructor(pos, ast) {
@@ -11245,7 +11269,7 @@ export class TSImportEqualsDeclaration {
11245
11269
 
11246
11270
  toJSON() {
11247
11271
  return {
11248
- type: 'TSImportEqualsDeclaration',
11272
+ type: "TSImportEqualsDeclaration",
11249
11273
  start: this.start,
11250
11274
  end: this.end,
11251
11275
  id: this.id,
@@ -11277,7 +11301,7 @@ function constructTSModuleReference(pos, ast) {
11277
11301
  }
11278
11302
 
11279
11303
  export class TSExternalModuleReference {
11280
- type = 'TSExternalModuleReference';
11304
+ type = "TSExternalModuleReference";
11281
11305
  #internal;
11282
11306
 
11283
11307
  constructor(pos, ast) {
@@ -11308,7 +11332,7 @@ export class TSExternalModuleReference {
11308
11332
 
11309
11333
  toJSON() {
11310
11334
  return {
11311
- type: 'TSExternalModuleReference',
11335
+ type: "TSExternalModuleReference",
11312
11336
  start: this.start,
11313
11337
  end: this.end,
11314
11338
  expression: this.expression,
@@ -11323,7 +11347,7 @@ export class TSExternalModuleReference {
11323
11347
  const DebugTSExternalModuleReference = class TSExternalModuleReference {};
11324
11348
 
11325
11349
  export class TSNonNullExpression {
11326
- type = 'TSNonNullExpression';
11350
+ type = "TSNonNullExpression";
11327
11351
  #internal;
11328
11352
 
11329
11353
  constructor(pos, ast) {
@@ -11354,7 +11378,7 @@ export class TSNonNullExpression {
11354
11378
 
11355
11379
  toJSON() {
11356
11380
  return {
11357
- type: 'TSNonNullExpression',
11381
+ type: "TSNonNullExpression",
11358
11382
  start: this.start,
11359
11383
  end: this.end,
11360
11384
  expression: this.expression,
@@ -11369,7 +11393,7 @@ export class TSNonNullExpression {
11369
11393
  const DebugTSNonNullExpression = class TSNonNullExpression {};
11370
11394
 
11371
11395
  export class Decorator {
11372
- type = 'Decorator';
11396
+ type = "Decorator";
11373
11397
  #internal;
11374
11398
 
11375
11399
  constructor(pos, ast) {
@@ -11400,7 +11424,7 @@ export class Decorator {
11400
11424
 
11401
11425
  toJSON() {
11402
11426
  return {
11403
- type: 'Decorator',
11427
+ type: "Decorator",
11404
11428
  start: this.start,
11405
11429
  end: this.end,
11406
11430
  expression: this.expression,
@@ -11415,7 +11439,7 @@ export class Decorator {
11415
11439
  const DebugDecorator = class Decorator {};
11416
11440
 
11417
11441
  export class TSExportAssignment {
11418
- type = 'TSExportAssignment';
11442
+ type = "TSExportAssignment";
11419
11443
  #internal;
11420
11444
 
11421
11445
  constructor(pos, ast) {
@@ -11446,7 +11470,7 @@ export class TSExportAssignment {
11446
11470
 
11447
11471
  toJSON() {
11448
11472
  return {
11449
- type: 'TSExportAssignment',
11473
+ type: "TSExportAssignment",
11450
11474
  start: this.start,
11451
11475
  end: this.end,
11452
11476
  expression: this.expression,
@@ -11461,7 +11485,7 @@ export class TSExportAssignment {
11461
11485
  const DebugTSExportAssignment = class TSExportAssignment {};
11462
11486
 
11463
11487
  export class TSNamespaceExportDeclaration {
11464
- type = 'TSNamespaceExportDeclaration';
11488
+ type = "TSNamespaceExportDeclaration";
11465
11489
  #internal;
11466
11490
 
11467
11491
  constructor(pos, ast) {
@@ -11492,7 +11516,7 @@ export class TSNamespaceExportDeclaration {
11492
11516
 
11493
11517
  toJSON() {
11494
11518
  return {
11495
- type: 'TSNamespaceExportDeclaration',
11519
+ type: "TSNamespaceExportDeclaration",
11496
11520
  start: this.start,
11497
11521
  end: this.end,
11498
11522
  id: this.id,
@@ -11507,7 +11531,7 @@ export class TSNamespaceExportDeclaration {
11507
11531
  const DebugTSNamespaceExportDeclaration = class TSNamespaceExportDeclaration {};
11508
11532
 
11509
11533
  export class TSInstantiationExpression {
11510
- type = 'TSInstantiationExpression';
11534
+ type = "TSInstantiationExpression";
11511
11535
  #internal;
11512
11536
 
11513
11537
  constructor(pos, ast) {
@@ -11543,7 +11567,7 @@ export class TSInstantiationExpression {
11543
11567
 
11544
11568
  toJSON() {
11545
11569
  return {
11546
- type: 'TSInstantiationExpression',
11570
+ type: "TSInstantiationExpression",
11547
11571
  start: this.start,
11548
11572
  end: this.end,
11549
11573
  expression: this.expression,
@@ -11561,16 +11585,16 @@ const DebugTSInstantiationExpression = class TSInstantiationExpression {};
11561
11585
  function constructImportOrExportKind(pos, ast) {
11562
11586
  switch (ast.buffer[pos]) {
11563
11587
  case 0:
11564
- return 'value';
11588
+ return "value";
11565
11589
  case 1:
11566
- return 'type';
11590
+ return "type";
11567
11591
  default:
11568
11592
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ImportOrExportKind`);
11569
11593
  }
11570
11594
  }
11571
11595
 
11572
11596
  export class JSDocNullableType {
11573
- type = 'JSDocNullableType';
11597
+ type = "JSDocNullableType";
11574
11598
  #internal;
11575
11599
 
11576
11600
  constructor(pos, ast) {
@@ -11606,7 +11630,7 @@ export class JSDocNullableType {
11606
11630
 
11607
11631
  toJSON() {
11608
11632
  return {
11609
- type: 'JSDocNullableType',
11633
+ type: "JSDocNullableType",
11610
11634
  start: this.start,
11611
11635
  end: this.end,
11612
11636
  typeAnnotation: this.typeAnnotation,
@@ -11622,7 +11646,7 @@ export class JSDocNullableType {
11622
11646
  const DebugJSDocNullableType = class JSDocNullableType {};
11623
11647
 
11624
11648
  export class JSDocNonNullableType {
11625
- type = 'JSDocNonNullableType';
11649
+ type = "JSDocNonNullableType";
11626
11650
  #internal;
11627
11651
 
11628
11652
  constructor(pos, ast) {
@@ -11658,7 +11682,7 @@ export class JSDocNonNullableType {
11658
11682
 
11659
11683
  toJSON() {
11660
11684
  return {
11661
- type: 'JSDocNonNullableType',
11685
+ type: "JSDocNonNullableType",
11662
11686
  start: this.start,
11663
11687
  end: this.end,
11664
11688
  typeAnnotation: this.typeAnnotation,
@@ -11674,7 +11698,7 @@ export class JSDocNonNullableType {
11674
11698
  const DebugJSDocNonNullableType = class JSDocNonNullableType {};
11675
11699
 
11676
11700
  export class JSDocUnknownType {
11677
- type = 'JSDocUnknownType';
11701
+ type = "JSDocUnknownType";
11678
11702
  #internal;
11679
11703
 
11680
11704
  constructor(pos, ast) {
@@ -11700,7 +11724,7 @@ export class JSDocUnknownType {
11700
11724
 
11701
11725
  toJSON() {
11702
11726
  return {
11703
- type: 'JSDocUnknownType',
11727
+ type: "JSDocUnknownType",
11704
11728
  start: this.start,
11705
11729
  end: this.end,
11706
11730
  };
@@ -11716,9 +11740,9 @@ const DebugJSDocUnknownType = class JSDocUnknownType {};
11716
11740
  function constructCommentKind(pos, ast) {
11717
11741
  switch (ast.buffer[pos]) {
11718
11742
  case 0:
11719
- return 'Line';
11743
+ return "Line";
11720
11744
  case 1:
11721
- return 'Block';
11745
+ return "Block";
11722
11746
  default:
11723
11747
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for CommentKind`);
11724
11748
  }
@@ -11863,7 +11887,7 @@ function constructImportImportName(pos, ast) {
11863
11887
  case 0:
11864
11888
  return new NameSpan(pos + 8, ast);
11865
11889
  case 1:
11866
- return 'namespaceObject';
11890
+ return "namespaceObject";
11867
11891
  case 2:
11868
11892
  return new Span(pos + 8, ast);
11869
11893
  default:
@@ -11944,11 +11968,11 @@ function constructExportImportName(pos, ast) {
11944
11968
  case 0:
11945
11969
  return new NameSpan(pos + 8, ast);
11946
11970
  case 1:
11947
- return 'all';
11971
+ return "all";
11948
11972
  case 2:
11949
- return 'allButDefault';
11973
+ return "allButDefault";
11950
11974
  case 3:
11951
- return 'null';
11975
+ return "null";
11952
11976
  default:
11953
11977
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ExportImportName`);
11954
11978
  }
@@ -11961,7 +11985,7 @@ function constructExportExportName(pos, ast) {
11961
11985
  case 1:
11962
11986
  return new Span(pos + 8, ast);
11963
11987
  case 2:
11964
- return 'null';
11988
+ return "null";
11965
11989
  default:
11966
11990
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ExportExportName`);
11967
11991
  }
@@ -11974,7 +11998,7 @@ function constructExportLocalName(pos, ast) {
11974
11998
  case 1:
11975
11999
  return new NameSpan(pos + 8, ast);
11976
12000
  case 2:
11977
- return 'null';
12001
+ return "null";
11978
12002
  default:
11979
12003
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ExportLocalName`);
11980
12004
  }
@@ -12027,37 +12051,37 @@ const DebugDynamicImport = class DynamicImport {};
12027
12051
  function constructAssignmentOperator(pos, ast) {
12028
12052
  switch (ast.buffer[pos]) {
12029
12053
  case 0:
12030
- return '=';
12054
+ return "=";
12031
12055
  case 1:
12032
- return '+=';
12056
+ return "+=";
12033
12057
  case 2:
12034
- return '-=';
12058
+ return "-=";
12035
12059
  case 3:
12036
- return '*=';
12060
+ return "*=";
12037
12061
  case 4:
12038
- return '/=';
12062
+ return "/=";
12039
12063
  case 5:
12040
- return '%=';
12064
+ return "%=";
12041
12065
  case 6:
12042
- return '**=';
12066
+ return "**=";
12043
12067
  case 7:
12044
- return '<<=';
12068
+ return "<<=";
12045
12069
  case 8:
12046
- return '>>=';
12070
+ return ">>=";
12047
12071
  case 9:
12048
- return '>>>=';
12072
+ return ">>>=";
12049
12073
  case 10:
12050
- return '|=';
12074
+ return "|=";
12051
12075
  case 11:
12052
- return '^=';
12076
+ return "^=";
12053
12077
  case 12:
12054
- return '&=';
12078
+ return "&=";
12055
12079
  case 13:
12056
- return '||=';
12080
+ return "||=";
12057
12081
  case 14:
12058
- return '&&=';
12082
+ return "&&=";
12059
12083
  case 15:
12060
- return '??=';
12084
+ return "??=";
12061
12085
  default:
12062
12086
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for AssignmentOperator`);
12063
12087
  }
@@ -12066,49 +12090,49 @@ function constructAssignmentOperator(pos, ast) {
12066
12090
  function constructBinaryOperator(pos, ast) {
12067
12091
  switch (ast.buffer[pos]) {
12068
12092
  case 0:
12069
- return '==';
12093
+ return "==";
12070
12094
  case 1:
12071
- return '!=';
12095
+ return "!=";
12072
12096
  case 2:
12073
- return '===';
12097
+ return "===";
12074
12098
  case 3:
12075
- return '!==';
12099
+ return "!==";
12076
12100
  case 4:
12077
- return '<';
12101
+ return "<";
12078
12102
  case 5:
12079
- return '<=';
12103
+ return "<=";
12080
12104
  case 6:
12081
- return '>';
12105
+ return ">";
12082
12106
  case 7:
12083
- return '>=';
12107
+ return ">=";
12084
12108
  case 8:
12085
- return '+';
12109
+ return "+";
12086
12110
  case 9:
12087
- return '-';
12111
+ return "-";
12088
12112
  case 10:
12089
- return '*';
12113
+ return "*";
12090
12114
  case 11:
12091
- return '/';
12115
+ return "/";
12092
12116
  case 12:
12093
- return '%';
12117
+ return "%";
12094
12118
  case 13:
12095
- return '**';
12119
+ return "**";
12096
12120
  case 14:
12097
- return '<<';
12121
+ return "<<";
12098
12122
  case 15:
12099
- return '>>';
12123
+ return ">>";
12100
12124
  case 16:
12101
- return '>>>';
12125
+ return ">>>";
12102
12126
  case 17:
12103
- return '|';
12127
+ return "|";
12104
12128
  case 18:
12105
- return '^';
12129
+ return "^";
12106
12130
  case 19:
12107
- return '&';
12131
+ return "&";
12108
12132
  case 20:
12109
- return 'in';
12133
+ return "in";
12110
12134
  case 21:
12111
- return 'instanceof';
12135
+ return "instanceof";
12112
12136
  default:
12113
12137
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for BinaryOperator`);
12114
12138
  }
@@ -12117,11 +12141,11 @@ function constructBinaryOperator(pos, ast) {
12117
12141
  function constructLogicalOperator(pos, ast) {
12118
12142
  switch (ast.buffer[pos]) {
12119
12143
  case 0:
12120
- return '||';
12144
+ return "||";
12121
12145
  case 1:
12122
- return '&&';
12146
+ return "&&";
12123
12147
  case 2:
12124
- return '??';
12148
+ return "??";
12125
12149
  default:
12126
12150
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for LogicalOperator`);
12127
12151
  }
@@ -12130,19 +12154,19 @@ function constructLogicalOperator(pos, ast) {
12130
12154
  function constructUnaryOperator(pos, ast) {
12131
12155
  switch (ast.buffer[pos]) {
12132
12156
  case 0:
12133
- return '+';
12157
+ return "+";
12134
12158
  case 1:
12135
- return '-';
12159
+ return "-";
12136
12160
  case 2:
12137
- return '!';
12161
+ return "!";
12138
12162
  case 3:
12139
- return '~';
12163
+ return "~";
12140
12164
  case 4:
12141
- return 'typeof';
12165
+ return "typeof";
12142
12166
  case 5:
12143
- return 'void';
12167
+ return "void";
12144
12168
  case 6:
12145
- return 'delete';
12169
+ return "delete";
12146
12170
  default:
12147
12171
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for UnaryOperator`);
12148
12172
  }
@@ -12151,9 +12175,9 @@ function constructUnaryOperator(pos, ast) {
12151
12175
  function constructUpdateOperator(pos, ast) {
12152
12176
  switch (ast.buffer[pos]) {
12153
12177
  case 0:
12154
- return '++';
12178
+ return "++";
12155
12179
  case 1:
12156
- return '--';
12180
+ return "--";
12157
12181
  default:
12158
12182
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for UpdateOperator`);
12159
12183
  }
@@ -12232,9 +12256,9 @@ const DebugSourceType = class SourceType {};
12232
12256
  function constructModuleKind(pos, ast) {
12233
12257
  switch (ast.buffer[pos]) {
12234
12258
  case 0:
12235
- return 'script';
12259
+ return "script";
12236
12260
  case 1:
12237
- return 'module';
12261
+ return "module";
12238
12262
  default:
12239
12263
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ModuleKind`);
12240
12264
  }
@@ -12305,7 +12329,14 @@ export class Error {
12305
12329
  const cached = nodes.get(pos);
12306
12330
  if (cached !== void 0) return cached;
12307
12331
 
12308
- this.#internal = { pos, ast, $message: void 0, $labels: void 0, $helpMessage: void 0, $codeframe: void 0 };
12332
+ this.#internal = {
12333
+ pos,
12334
+ ast,
12335
+ $message: void 0,
12336
+ $labels: void 0,
12337
+ $helpMessage: void 0,
12338
+ $codeframe: void 0,
12339
+ };
12309
12340
  nodes.set(pos, this);
12310
12341
  }
12311
12342
 
@@ -12362,11 +12393,11 @@ const DebugError = class Error {};
12362
12393
  function constructErrorSeverity(pos, ast) {
12363
12394
  switch (ast.buffer[pos]) {
12364
12395
  case 0:
12365
- return 'Error';
12396
+ return "Error";
12366
12397
  case 1:
12367
- return 'Warning';
12398
+ return "Warning";
12368
12399
  case 2:
12369
- return 'Advice';
12400
+ return "Advice";
12370
12401
  default:
12371
12402
  throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ErrorSeverity`);
12372
12403
  }
@@ -12600,7 +12631,7 @@ function constructStr(pos, ast) {
12600
12631
  { buffer } = ast,
12601
12632
  { uint32 } = buffer,
12602
12633
  len = uint32[pos32 + 2];
12603
- if (len === 0) return '';
12634
+ if (len === 0) return "";
12604
12635
 
12605
12636
  pos = uint32[pos32];
12606
12637
  if (ast.sourceIsAscii && pos < ast.sourceByteLen) return ast.sourceText.substr(pos, len);
@@ -12611,7 +12642,7 @@ function constructStr(pos, ast) {
12611
12642
  if (len > 50) return decodeStr(buffer.subarray(pos, end));
12612
12643
 
12613
12644
  // Shorter strings decode by hand to avoid native call
12614
- let out = '',
12645
+ let out = "",
12615
12646
  c;
12616
12647
  do {
12617
12648
  c = buffer[pos++];
@@ -12637,7 +12668,8 @@ function constructComment(pos, ast) {
12637
12668
  }
12638
12669
 
12639
12670
  function constructOptionHashbang(pos, ast) {
12640
- if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0) return null;
12671
+ if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0)
12672
+ return null;
12641
12673
  return new Hashbang(pos, ast);
12642
12674
  }
12643
12675
 
@@ -12913,7 +12945,13 @@ function constructOptionAssignmentTargetMaybeDefault(pos, ast) {
12913
12945
  function constructVecOptionAssignmentTargetMaybeDefault(pos, ast) {
12914
12946
  const { uint32 } = ast.buffer,
12915
12947
  pos32 = pos >> 2;
12916
- return new NodeArray(uint32[pos32], uint32[pos32 + 2], 16, constructOptionAssignmentTargetMaybeDefault, ast);
12948
+ return new NodeArray(
12949
+ uint32[pos32],
12950
+ uint32[pos32 + 2],
12951
+ 16,
12952
+ constructOptionAssignmentTargetMaybeDefault,
12953
+ ast,
12954
+ );
12917
12955
  }
12918
12956
 
12919
12957
  function constructBoxAssignmentTargetRest(pos, ast) {
@@ -12928,7 +12966,13 @@ function constructOptionBoxAssignmentTargetRest(pos, ast) {
12928
12966
  function constructVecAssignmentTargetProperty(pos, ast) {
12929
12967
  const { uint32 } = ast.buffer,
12930
12968
  pos32 = pos >> 2;
12931
- return new NodeArray(uint32[pos32], uint32[pos32 + 2], 16, constructAssignmentTargetProperty, ast);
12969
+ return new NodeArray(
12970
+ uint32[pos32],
12971
+ uint32[pos32 + 2],
12972
+ 16,
12973
+ constructAssignmentTargetProperty,
12974
+ ast,
12975
+ );
12932
12976
  }
12933
12977
 
12934
12978
  function constructBoxAssignmentTargetWithDefault(pos, ast) {
@@ -13069,7 +13113,8 @@ function constructOptionForStatementInit(pos, ast) {
13069
13113
  }
13070
13114
 
13071
13115
  function constructOptionLabelIdentifier(pos, ast) {
13072
- if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0) return null;
13116
+ if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0)
13117
+ return null;
13073
13118
  return new LabelIdentifier(pos, ast);
13074
13119
  }
13075
13120
 
@@ -13158,7 +13203,8 @@ function constructVecOptionBindingPattern(pos, ast) {
13158
13203
  }
13159
13204
 
13160
13205
  function constructOptionBindingIdentifier(pos, ast) {
13161
- if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0) return null;
13206
+ if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0)
13207
+ return null;
13162
13208
  return new BindingIdentifier(pos, ast);
13163
13209
  }
13164
13210
 
@@ -13290,7 +13336,13 @@ function constructOptionImportPhase(pos, ast) {
13290
13336
  function constructVecImportDeclarationSpecifier(pos, ast) {
13291
13337
  const { uint32 } = ast.buffer,
13292
13338
  pos32 = pos >> 2;
13293
- return new NodeArray(uint32[pos32], uint32[pos32 + 2], 16, constructImportDeclarationSpecifier, ast);
13339
+ return new NodeArray(
13340
+ uint32[pos32],
13341
+ uint32[pos32 + 2],
13342
+ 16,
13343
+ constructImportDeclarationSpecifier,
13344
+ ast,
13345
+ );
13294
13346
  }
13295
13347
 
13296
13348
  function constructOptionVecImportDeclarationSpecifier(pos, ast) {
@@ -13706,7 +13758,8 @@ function constructU64(pos, ast) {
13706
13758
  }
13707
13759
 
13708
13760
  function constructOptionNameSpan(pos, ast) {
13709
- if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0) return null;
13761
+ if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0)
13762
+ return null;
13710
13763
  return new NameSpan(pos, ast);
13711
13764
  }
13712
13765