oxc-parser 0.121.0 → 0.124.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.
- package/package.json +27 -27
- package/src-js/bindings.js +52 -52
- package/src-js/generated/constants.js +12 -4
- package/src-js/generated/deserialize/js.js +543 -501
- package/src-js/generated/deserialize/js_range.js +549 -515
- package/src-js/generated/deserialize/ts.js +599 -556
- package/src-js/generated/deserialize/ts_range.js +597 -565
- package/src-js/generated/lazy/constructors.js +462 -474
- package/src-js/generated/lazy/walk.js +285 -285
|
@@ -41,14 +41,14 @@ export class Program {
|
|
|
41
41
|
|
|
42
42
|
get hashbang() {
|
|
43
43
|
const internal = this.#internal;
|
|
44
|
-
return constructOptionHashbang(internal.pos +
|
|
44
|
+
return constructOptionHashbang(internal.pos + 56, internal.ast);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
get body() {
|
|
48
48
|
const internal = this.#internal,
|
|
49
49
|
cached = internal.$body;
|
|
50
50
|
if (cached !== void 0) return cached;
|
|
51
|
-
return (internal.$body = constructVecStatement(internal.pos +
|
|
51
|
+
return (internal.$body = constructVecStatement(internal.pos + 112, internal.ast));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
toJSON() {
|
|
@@ -191,7 +191,7 @@ export class IdentifierName {
|
|
|
191
191
|
const internal = this.#internal,
|
|
192
192
|
cached = internal.$name;
|
|
193
193
|
if (cached !== void 0) return cached;
|
|
194
|
-
return (internal.$name = constructStr(internal.pos +
|
|
194
|
+
return (internal.$name = constructStr(internal.pos + 16, internal.ast));
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
toJSON() {
|
|
@@ -239,7 +239,7 @@ export class IdentifierReference {
|
|
|
239
239
|
const internal = this.#internal,
|
|
240
240
|
cached = internal.$name;
|
|
241
241
|
if (cached !== void 0) return cached;
|
|
242
|
-
return (internal.$name = constructStr(internal.pos +
|
|
242
|
+
return (internal.$name = constructStr(internal.pos + 16, internal.ast));
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
toJSON() {
|
|
@@ -287,7 +287,7 @@ export class BindingIdentifier {
|
|
|
287
287
|
const internal = this.#internal,
|
|
288
288
|
cached = internal.$name;
|
|
289
289
|
if (cached !== void 0) return cached;
|
|
290
|
-
return (internal.$name = constructStr(internal.pos +
|
|
290
|
+
return (internal.$name = constructStr(internal.pos + 16, internal.ast));
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
toJSON() {
|
|
@@ -335,7 +335,7 @@ export class LabelIdentifier {
|
|
|
335
335
|
const internal = this.#internal,
|
|
336
336
|
cached = internal.$name;
|
|
337
337
|
if (cached !== void 0) return cached;
|
|
338
|
-
return (internal.$name = constructStr(internal.pos +
|
|
338
|
+
return (internal.$name = constructStr(internal.pos + 16, internal.ast));
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
toJSON() {
|
|
@@ -424,7 +424,7 @@ export class ArrayExpression {
|
|
|
424
424
|
cached = internal.$elements;
|
|
425
425
|
if (cached !== void 0) return cached;
|
|
426
426
|
return (internal.$elements = constructVecArrayExpressionElement(
|
|
427
|
-
internal.pos +
|
|
427
|
+
internal.pos + 16,
|
|
428
428
|
internal.ast,
|
|
429
429
|
));
|
|
430
430
|
}
|
|
@@ -611,7 +611,7 @@ export class ObjectExpression {
|
|
|
611
611
|
const internal = this.#internal,
|
|
612
612
|
cached = internal.$properties;
|
|
613
613
|
if (cached !== void 0) return cached;
|
|
614
|
-
return (internal.$properties = constructVecObjectPropertyKind(internal.pos +
|
|
614
|
+
return (internal.$properties = constructVecObjectPropertyKind(internal.pos + 16, internal.ast));
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
toJSON() {
|
|
@@ -668,32 +668,32 @@ export class ObjectProperty {
|
|
|
668
668
|
|
|
669
669
|
get kind() {
|
|
670
670
|
const internal = this.#internal;
|
|
671
|
-
return constructPropertyKind(internal.pos +
|
|
671
|
+
return constructPropertyKind(internal.pos + 12, internal.ast);
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
get key() {
|
|
675
675
|
const internal = this.#internal;
|
|
676
|
-
return constructPropertyKey(internal.pos +
|
|
676
|
+
return constructPropertyKey(internal.pos + 16, internal.ast);
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
get value() {
|
|
680
680
|
const internal = this.#internal;
|
|
681
|
-
return constructExpression(internal.pos +
|
|
681
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
get method() {
|
|
685
685
|
const internal = this.#internal;
|
|
686
|
-
return constructBool(internal.pos +
|
|
686
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
get shorthand() {
|
|
690
690
|
const internal = this.#internal;
|
|
691
|
-
return constructBool(internal.pos +
|
|
691
|
+
return constructBool(internal.pos + 14, internal.ast);
|
|
692
692
|
}
|
|
693
693
|
|
|
694
694
|
get computed() {
|
|
695
695
|
const internal = this.#internal;
|
|
696
|
-
return constructBool(internal.pos +
|
|
696
|
+
return constructBool(internal.pos + 15, internal.ast);
|
|
697
697
|
}
|
|
698
698
|
|
|
699
699
|
toJSON() {
|
|
@@ -856,14 +856,14 @@ export class TemplateLiteral {
|
|
|
856
856
|
const internal = this.#internal,
|
|
857
857
|
cached = internal.$quasis;
|
|
858
858
|
if (cached !== void 0) return cached;
|
|
859
|
-
return (internal.$quasis = constructVecTemplateElement(internal.pos +
|
|
859
|
+
return (internal.$quasis = constructVecTemplateElement(internal.pos + 16, internal.ast));
|
|
860
860
|
}
|
|
861
861
|
|
|
862
862
|
get expressions() {
|
|
863
863
|
const internal = this.#internal,
|
|
864
864
|
cached = internal.$expressions;
|
|
865
865
|
if (cached !== void 0) return cached;
|
|
866
|
-
return (internal.$expressions = constructVecExpression(internal.pos +
|
|
866
|
+
return (internal.$expressions = constructVecExpression(internal.pos + 40, internal.ast));
|
|
867
867
|
}
|
|
868
868
|
|
|
869
869
|
toJSON() {
|
|
@@ -910,17 +910,17 @@ export class TaggedTemplateExpression {
|
|
|
910
910
|
|
|
911
911
|
get tag() {
|
|
912
912
|
const internal = this.#internal;
|
|
913
|
-
return constructExpression(internal.pos +
|
|
913
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
914
914
|
}
|
|
915
915
|
|
|
916
916
|
get typeArguments() {
|
|
917
917
|
const internal = this.#internal;
|
|
918
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
918
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
919
919
|
}
|
|
920
920
|
|
|
921
921
|
get quasi() {
|
|
922
922
|
const internal = this.#internal;
|
|
923
|
-
return new TemplateLiteral(internal.pos +
|
|
923
|
+
return new TemplateLiteral(internal.pos + 40, internal.ast);
|
|
924
924
|
}
|
|
925
925
|
|
|
926
926
|
toJSON() {
|
|
@@ -968,12 +968,12 @@ export class TemplateElement {
|
|
|
968
968
|
|
|
969
969
|
get value() {
|
|
970
970
|
const internal = this.#internal;
|
|
971
|
-
return new TemplateElementValue(internal.pos +
|
|
971
|
+
return new TemplateElementValue(internal.pos + 16, internal.ast);
|
|
972
972
|
}
|
|
973
973
|
|
|
974
974
|
get tail() {
|
|
975
975
|
const internal = this.#internal;
|
|
976
|
-
return constructBool(internal.pos +
|
|
976
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
977
977
|
}
|
|
978
978
|
|
|
979
979
|
toJSON() {
|
|
@@ -1075,17 +1075,17 @@ export class ComputedMemberExpression {
|
|
|
1075
1075
|
|
|
1076
1076
|
get object() {
|
|
1077
1077
|
const internal = this.#internal;
|
|
1078
|
-
return constructExpression(internal.pos +
|
|
1078
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
1081
|
get property() {
|
|
1082
1082
|
const internal = this.#internal;
|
|
1083
|
-
return constructExpression(internal.pos +
|
|
1083
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
1086
|
get optional() {
|
|
1087
1087
|
const internal = this.#internal;
|
|
1088
|
-
return constructBool(internal.pos +
|
|
1088
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
toJSON() {
|
|
@@ -1133,17 +1133,17 @@ export class StaticMemberExpression {
|
|
|
1133
1133
|
|
|
1134
1134
|
get object() {
|
|
1135
1135
|
const internal = this.#internal;
|
|
1136
|
-
return constructExpression(internal.pos +
|
|
1136
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
1139
|
get property() {
|
|
1140
1140
|
const internal = this.#internal;
|
|
1141
|
-
return new IdentifierName(internal.pos +
|
|
1141
|
+
return new IdentifierName(internal.pos + 32, internal.ast);
|
|
1142
1142
|
}
|
|
1143
1143
|
|
|
1144
1144
|
get optional() {
|
|
1145
1145
|
const internal = this.#internal;
|
|
1146
|
-
return constructBool(internal.pos +
|
|
1146
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
1149
|
toJSON() {
|
|
@@ -1191,17 +1191,17 @@ export class PrivateFieldExpression {
|
|
|
1191
1191
|
|
|
1192
1192
|
get object() {
|
|
1193
1193
|
const internal = this.#internal;
|
|
1194
|
-
return constructExpression(internal.pos +
|
|
1194
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
get property() {
|
|
1198
1198
|
const internal = this.#internal;
|
|
1199
|
-
return new PrivateIdentifier(internal.pos +
|
|
1199
|
+
return new PrivateIdentifier(internal.pos + 32, internal.ast);
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
1202
|
get optional() {
|
|
1203
1203
|
const internal = this.#internal;
|
|
1204
|
-
return constructBool(internal.pos +
|
|
1204
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
1207
|
toJSON() {
|
|
@@ -1249,24 +1249,24 @@ export class CallExpression {
|
|
|
1249
1249
|
|
|
1250
1250
|
get callee() {
|
|
1251
1251
|
const internal = this.#internal;
|
|
1252
|
-
return constructExpression(internal.pos +
|
|
1252
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
1255
|
get typeArguments() {
|
|
1256
1256
|
const internal = this.#internal;
|
|
1257
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
1257
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
1260
|
get arguments() {
|
|
1261
1261
|
const internal = this.#internal,
|
|
1262
1262
|
cached = internal.$arguments;
|
|
1263
1263
|
if (cached !== void 0) return cached;
|
|
1264
|
-
return (internal.$arguments = constructVecArgument(internal.pos +
|
|
1264
|
+
return (internal.$arguments = constructVecArgument(internal.pos + 40, internal.ast));
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
1267
|
get optional() {
|
|
1268
1268
|
const internal = this.#internal;
|
|
1269
|
-
return constructBool(internal.pos +
|
|
1269
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
1272
|
toJSON() {
|
|
@@ -1315,19 +1315,19 @@ export class NewExpression {
|
|
|
1315
1315
|
|
|
1316
1316
|
get callee() {
|
|
1317
1317
|
const internal = this.#internal;
|
|
1318
|
-
return constructExpression(internal.pos +
|
|
1318
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
1321
|
get typeArguments() {
|
|
1322
1322
|
const internal = this.#internal;
|
|
1323
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
1323
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
1326
|
get arguments() {
|
|
1327
1327
|
const internal = this.#internal,
|
|
1328
1328
|
cached = internal.$arguments;
|
|
1329
1329
|
if (cached !== void 0) return cached;
|
|
1330
|
-
return (internal.$arguments = constructVecArgument(internal.pos +
|
|
1330
|
+
return (internal.$arguments = constructVecArgument(internal.pos + 40, internal.ast));
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
1333
|
toJSON() {
|
|
@@ -1375,12 +1375,12 @@ export class MetaProperty {
|
|
|
1375
1375
|
|
|
1376
1376
|
get meta() {
|
|
1377
1377
|
const internal = this.#internal;
|
|
1378
|
-
return new IdentifierName(internal.pos +
|
|
1378
|
+
return new IdentifierName(internal.pos + 16, internal.ast);
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
1381
|
get property() {
|
|
1382
1382
|
const internal = this.#internal;
|
|
1383
|
-
return new IdentifierName(internal.pos +
|
|
1383
|
+
return new IdentifierName(internal.pos + 48, internal.ast);
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
toJSON() {
|
|
@@ -1427,7 +1427,7 @@ export class SpreadElement {
|
|
|
1427
1427
|
|
|
1428
1428
|
get argument() {
|
|
1429
1429
|
const internal = this.#internal;
|
|
1430
|
-
return constructExpression(internal.pos +
|
|
1430
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
toJSON() {
|
|
@@ -1568,17 +1568,17 @@ export class UpdateExpression {
|
|
|
1568
1568
|
|
|
1569
1569
|
get operator() {
|
|
1570
1570
|
const internal = this.#internal;
|
|
1571
|
-
return constructUpdateOperator(internal.pos +
|
|
1571
|
+
return constructUpdateOperator(internal.pos + 12, internal.ast);
|
|
1572
1572
|
}
|
|
1573
1573
|
|
|
1574
1574
|
get prefix() {
|
|
1575
1575
|
const internal = this.#internal;
|
|
1576
|
-
return constructBool(internal.pos +
|
|
1576
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
1579
|
get argument() {
|
|
1580
1580
|
const internal = this.#internal;
|
|
1581
|
-
return constructSimpleAssignmentTarget(internal.pos +
|
|
1581
|
+
return constructSimpleAssignmentTarget(internal.pos + 16, internal.ast);
|
|
1582
1582
|
}
|
|
1583
1583
|
|
|
1584
1584
|
toJSON() {
|
|
@@ -1626,12 +1626,12 @@ export class UnaryExpression {
|
|
|
1626
1626
|
|
|
1627
1627
|
get operator() {
|
|
1628
1628
|
const internal = this.#internal;
|
|
1629
|
-
return constructUnaryOperator(internal.pos +
|
|
1629
|
+
return constructUnaryOperator(internal.pos + 12, internal.ast);
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
1632
|
get argument() {
|
|
1633
1633
|
const internal = this.#internal;
|
|
1634
|
-
return constructExpression(internal.pos +
|
|
1634
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
1637
|
toJSON() {
|
|
@@ -1678,17 +1678,17 @@ export class BinaryExpression {
|
|
|
1678
1678
|
|
|
1679
1679
|
get left() {
|
|
1680
1680
|
const internal = this.#internal;
|
|
1681
|
-
return constructExpression(internal.pos +
|
|
1681
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1682
1682
|
}
|
|
1683
1683
|
|
|
1684
1684
|
get operator() {
|
|
1685
1685
|
const internal = this.#internal;
|
|
1686
|
-
return constructBinaryOperator(internal.pos +
|
|
1686
|
+
return constructBinaryOperator(internal.pos + 12, internal.ast);
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
get right() {
|
|
1690
1690
|
const internal = this.#internal;
|
|
1691
|
-
return constructExpression(internal.pos +
|
|
1691
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
1694
|
toJSON() {
|
|
@@ -1736,12 +1736,12 @@ export class PrivateInExpression {
|
|
|
1736
1736
|
|
|
1737
1737
|
get left() {
|
|
1738
1738
|
const internal = this.#internal;
|
|
1739
|
-
return new PrivateIdentifier(internal.pos +
|
|
1739
|
+
return new PrivateIdentifier(internal.pos + 16, internal.ast);
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
1742
1742
|
get right() {
|
|
1743
1743
|
const internal = this.#internal;
|
|
1744
|
-
return constructExpression(internal.pos +
|
|
1744
|
+
return constructExpression(internal.pos + 48, internal.ast);
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
toJSON() {
|
|
@@ -1788,17 +1788,17 @@ export class LogicalExpression {
|
|
|
1788
1788
|
|
|
1789
1789
|
get left() {
|
|
1790
1790
|
const internal = this.#internal;
|
|
1791
|
-
return constructExpression(internal.pos +
|
|
1791
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1792
1792
|
}
|
|
1793
1793
|
|
|
1794
1794
|
get operator() {
|
|
1795
1795
|
const internal = this.#internal;
|
|
1796
|
-
return constructLogicalOperator(internal.pos +
|
|
1796
|
+
return constructLogicalOperator(internal.pos + 12, internal.ast);
|
|
1797
1797
|
}
|
|
1798
1798
|
|
|
1799
1799
|
get right() {
|
|
1800
1800
|
const internal = this.#internal;
|
|
1801
|
-
return constructExpression(internal.pos +
|
|
1801
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
1802
1802
|
}
|
|
1803
1803
|
|
|
1804
1804
|
toJSON() {
|
|
@@ -1846,17 +1846,17 @@ export class ConditionalExpression {
|
|
|
1846
1846
|
|
|
1847
1847
|
get test() {
|
|
1848
1848
|
const internal = this.#internal;
|
|
1849
|
-
return constructExpression(internal.pos +
|
|
1849
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
1852
|
get consequent() {
|
|
1853
1853
|
const internal = this.#internal;
|
|
1854
|
-
return constructExpression(internal.pos +
|
|
1854
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
1855
1855
|
}
|
|
1856
1856
|
|
|
1857
1857
|
get alternate() {
|
|
1858
1858
|
const internal = this.#internal;
|
|
1859
|
-
return constructExpression(internal.pos +
|
|
1859
|
+
return constructExpression(internal.pos + 48, internal.ast);
|
|
1860
1860
|
}
|
|
1861
1861
|
|
|
1862
1862
|
toJSON() {
|
|
@@ -1904,17 +1904,17 @@ export class AssignmentExpression {
|
|
|
1904
1904
|
|
|
1905
1905
|
get operator() {
|
|
1906
1906
|
const internal = this.#internal;
|
|
1907
|
-
return constructAssignmentOperator(internal.pos +
|
|
1907
|
+
return constructAssignmentOperator(internal.pos + 12, internal.ast);
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
1910
|
get left() {
|
|
1911
1911
|
const internal = this.#internal;
|
|
1912
|
-
return constructAssignmentTarget(internal.pos +
|
|
1912
|
+
return constructAssignmentTarget(internal.pos + 16, internal.ast);
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
1915
|
get right() {
|
|
1916
1916
|
const internal = this.#internal;
|
|
1917
|
-
return constructExpression(internal.pos +
|
|
1917
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
1918
1918
|
}
|
|
1919
1919
|
|
|
1920
1920
|
toJSON() {
|
|
@@ -2026,7 +2026,7 @@ export class ArrayAssignmentTarget {
|
|
|
2026
2026
|
cached = internal.$elements;
|
|
2027
2027
|
if (cached !== void 0) return cached;
|
|
2028
2028
|
return (internal.$elements = constructVecOptionAssignmentTargetMaybeDefault(
|
|
2029
|
-
internal.pos +
|
|
2029
|
+
internal.pos + 16,
|
|
2030
2030
|
internal.ast,
|
|
2031
2031
|
));
|
|
2032
2032
|
}
|
|
@@ -2077,7 +2077,7 @@ export class ObjectAssignmentTarget {
|
|
|
2077
2077
|
cached = internal.$properties;
|
|
2078
2078
|
if (cached !== void 0) return cached;
|
|
2079
2079
|
return (internal.$properties = constructVecAssignmentTargetProperty(
|
|
2080
|
-
internal.pos +
|
|
2080
|
+
internal.pos + 16,
|
|
2081
2081
|
internal.ast,
|
|
2082
2082
|
));
|
|
2083
2083
|
}
|
|
@@ -2125,7 +2125,7 @@ export class AssignmentTargetRest {
|
|
|
2125
2125
|
|
|
2126
2126
|
get argument() {
|
|
2127
2127
|
const internal = this.#internal;
|
|
2128
|
-
return constructAssignmentTarget(internal.pos +
|
|
2128
|
+
return constructAssignmentTarget(internal.pos + 16, internal.ast);
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
2131
|
toJSON() {
|
|
@@ -2202,12 +2202,12 @@ export class AssignmentTargetWithDefault {
|
|
|
2202
2202
|
|
|
2203
2203
|
get left() {
|
|
2204
2204
|
const internal = this.#internal;
|
|
2205
|
-
return constructAssignmentTarget(internal.pos +
|
|
2205
|
+
return constructAssignmentTarget(internal.pos + 16, internal.ast);
|
|
2206
2206
|
}
|
|
2207
2207
|
|
|
2208
2208
|
get right() {
|
|
2209
2209
|
const internal = this.#internal;
|
|
2210
|
-
return constructExpression(internal.pos +
|
|
2210
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
2211
2211
|
}
|
|
2212
2212
|
|
|
2213
2213
|
toJSON() {
|
|
@@ -2265,12 +2265,12 @@ export class AssignmentTargetPropertyIdentifier {
|
|
|
2265
2265
|
|
|
2266
2266
|
get key() {
|
|
2267
2267
|
const internal = this.#internal;
|
|
2268
|
-
return new IdentifierReference(internal.pos +
|
|
2268
|
+
return new IdentifierReference(internal.pos + 16, internal.ast);
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
2271
2271
|
get value() {
|
|
2272
2272
|
const internal = this.#internal;
|
|
2273
|
-
return constructOptionExpression(internal.pos +
|
|
2273
|
+
return constructOptionExpression(internal.pos + 48, internal.ast);
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
2276
|
toJSON() {
|
|
@@ -2317,17 +2317,17 @@ export class AssignmentTargetPropertyProperty {
|
|
|
2317
2317
|
|
|
2318
2318
|
get key() {
|
|
2319
2319
|
const internal = this.#internal;
|
|
2320
|
-
return constructPropertyKey(internal.pos +
|
|
2320
|
+
return constructPropertyKey(internal.pos + 16, internal.ast);
|
|
2321
2321
|
}
|
|
2322
2322
|
|
|
2323
2323
|
get value() {
|
|
2324
2324
|
const internal = this.#internal;
|
|
2325
|
-
return constructAssignmentTargetMaybeDefault(internal.pos +
|
|
2325
|
+
return constructAssignmentTargetMaybeDefault(internal.pos + 32, internal.ast);
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
2328
|
get computed() {
|
|
2329
2329
|
const internal = this.#internal;
|
|
2330
|
-
return constructBool(internal.pos +
|
|
2330
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
2331
2331
|
}
|
|
2332
2332
|
|
|
2333
2333
|
toJSON() {
|
|
@@ -2377,7 +2377,7 @@ export class SequenceExpression {
|
|
|
2377
2377
|
const internal = this.#internal,
|
|
2378
2378
|
cached = internal.$expressions;
|
|
2379
2379
|
if (cached !== void 0) return cached;
|
|
2380
|
-
return (internal.$expressions = constructVecExpression(internal.pos +
|
|
2380
|
+
return (internal.$expressions = constructVecExpression(internal.pos + 16, internal.ast));
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
2383
|
toJSON() {
|
|
@@ -2463,7 +2463,7 @@ export class AwaitExpression {
|
|
|
2463
2463
|
|
|
2464
2464
|
get argument() {
|
|
2465
2465
|
const internal = this.#internal;
|
|
2466
|
-
return constructExpression(internal.pos +
|
|
2466
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
2467
2467
|
}
|
|
2468
2468
|
|
|
2469
2469
|
toJSON() {
|
|
@@ -2509,7 +2509,7 @@ export class ChainExpression {
|
|
|
2509
2509
|
|
|
2510
2510
|
get expression() {
|
|
2511
2511
|
const internal = this.#internal;
|
|
2512
|
-
return constructChainElement(internal.pos +
|
|
2512
|
+
return constructChainElement(internal.pos + 16, internal.ast);
|
|
2513
2513
|
}
|
|
2514
2514
|
|
|
2515
2515
|
toJSON() {
|
|
@@ -2572,7 +2572,7 @@ export class ParenthesizedExpression {
|
|
|
2572
2572
|
|
|
2573
2573
|
get expression() {
|
|
2574
2574
|
const internal = this.#internal;
|
|
2575
|
-
return constructExpression(internal.pos +
|
|
2575
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
2576
2576
|
}
|
|
2577
2577
|
|
|
2578
2578
|
toJSON() {
|
|
@@ -2691,14 +2691,14 @@ export class Directive {
|
|
|
2691
2691
|
|
|
2692
2692
|
get expression() {
|
|
2693
2693
|
const internal = this.#internal;
|
|
2694
|
-
return new StringLiteral(internal.pos +
|
|
2694
|
+
return new StringLiteral(internal.pos + 16, internal.ast);
|
|
2695
2695
|
}
|
|
2696
2696
|
|
|
2697
2697
|
get directive() {
|
|
2698
2698
|
const internal = this.#internal,
|
|
2699
2699
|
cached = internal.$directive;
|
|
2700
2700
|
if (cached !== void 0) return cached;
|
|
2701
|
-
return (internal.$directive = constructStr(internal.pos +
|
|
2701
|
+
return (internal.$directive = constructStr(internal.pos + 64, internal.ast));
|
|
2702
2702
|
}
|
|
2703
2703
|
|
|
2704
2704
|
toJSON() {
|
|
@@ -2747,7 +2747,7 @@ export class Hashbang {
|
|
|
2747
2747
|
const internal = this.#internal,
|
|
2748
2748
|
cached = internal.$value;
|
|
2749
2749
|
if (cached !== void 0) return cached;
|
|
2750
|
-
return (internal.$value = constructStr(internal.pos +
|
|
2750
|
+
return (internal.$value = constructStr(internal.pos + 16, internal.ast));
|
|
2751
2751
|
}
|
|
2752
2752
|
|
|
2753
2753
|
toJSON() {
|
|
@@ -2795,7 +2795,7 @@ export class BlockStatement {
|
|
|
2795
2795
|
const internal = this.#internal,
|
|
2796
2796
|
cached = internal.$body;
|
|
2797
2797
|
if (cached !== void 0) return cached;
|
|
2798
|
-
return (internal.$body = constructVecStatement(internal.pos +
|
|
2798
|
+
return (internal.$body = constructVecStatement(internal.pos + 16, internal.ast));
|
|
2799
2799
|
}
|
|
2800
2800
|
|
|
2801
2801
|
toJSON() {
|
|
@@ -2866,7 +2866,7 @@ export class VariableDeclaration {
|
|
|
2866
2866
|
|
|
2867
2867
|
get kind() {
|
|
2868
2868
|
const internal = this.#internal;
|
|
2869
|
-
return constructVariableDeclarationKind(internal.pos +
|
|
2869
|
+
return constructVariableDeclarationKind(internal.pos + 12, internal.ast);
|
|
2870
2870
|
}
|
|
2871
2871
|
|
|
2872
2872
|
get declarations() {
|
|
@@ -2874,14 +2874,14 @@ export class VariableDeclaration {
|
|
|
2874
2874
|
cached = internal.$declarations;
|
|
2875
2875
|
if (cached !== void 0) return cached;
|
|
2876
2876
|
return (internal.$declarations = constructVecVariableDeclarator(
|
|
2877
|
-
internal.pos +
|
|
2877
|
+
internal.pos + 16,
|
|
2878
2878
|
internal.ast,
|
|
2879
2879
|
));
|
|
2880
2880
|
}
|
|
2881
2881
|
|
|
2882
2882
|
get declare() {
|
|
2883
2883
|
const internal = this.#internal;
|
|
2884
|
-
return constructBool(internal.pos +
|
|
2884
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
2887
|
toJSON() {
|
|
@@ -2946,17 +2946,17 @@ export class VariableDeclarator {
|
|
|
2946
2946
|
|
|
2947
2947
|
get id() {
|
|
2948
2948
|
const internal = this.#internal;
|
|
2949
|
-
return constructBindingPattern(internal.pos +
|
|
2949
|
+
return constructBindingPattern(internal.pos + 16, internal.ast);
|
|
2950
2950
|
}
|
|
2951
2951
|
|
|
2952
2952
|
get init() {
|
|
2953
2953
|
const internal = this.#internal;
|
|
2954
|
-
return constructOptionExpression(internal.pos +
|
|
2954
|
+
return constructOptionExpression(internal.pos + 40, internal.ast);
|
|
2955
2955
|
}
|
|
2956
2956
|
|
|
2957
2957
|
get definite() {
|
|
2958
2958
|
const internal = this.#internal;
|
|
2959
|
-
return constructBool(internal.pos +
|
|
2959
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
2960
2960
|
}
|
|
2961
2961
|
|
|
2962
2962
|
toJSON() {
|
|
@@ -3044,7 +3044,7 @@ export class ExpressionStatement {
|
|
|
3044
3044
|
|
|
3045
3045
|
get expression() {
|
|
3046
3046
|
const internal = this.#internal;
|
|
3047
|
-
return constructExpression(internal.pos +
|
|
3047
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
3048
3048
|
}
|
|
3049
3049
|
|
|
3050
3050
|
toJSON() {
|
|
@@ -3090,17 +3090,17 @@ export class IfStatement {
|
|
|
3090
3090
|
|
|
3091
3091
|
get test() {
|
|
3092
3092
|
const internal = this.#internal;
|
|
3093
|
-
return constructExpression(internal.pos +
|
|
3093
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
3094
3094
|
}
|
|
3095
3095
|
|
|
3096
3096
|
get consequent() {
|
|
3097
3097
|
const internal = this.#internal;
|
|
3098
|
-
return constructStatement(internal.pos +
|
|
3098
|
+
return constructStatement(internal.pos + 32, internal.ast);
|
|
3099
3099
|
}
|
|
3100
3100
|
|
|
3101
3101
|
get alternate() {
|
|
3102
3102
|
const internal = this.#internal;
|
|
3103
|
-
return constructOptionStatement(internal.pos +
|
|
3103
|
+
return constructOptionStatement(internal.pos + 48, internal.ast);
|
|
3104
3104
|
}
|
|
3105
3105
|
|
|
3106
3106
|
toJSON() {
|
|
@@ -3148,12 +3148,12 @@ export class DoWhileStatement {
|
|
|
3148
3148
|
|
|
3149
3149
|
get body() {
|
|
3150
3150
|
const internal = this.#internal;
|
|
3151
|
-
return constructStatement(internal.pos +
|
|
3151
|
+
return constructStatement(internal.pos + 16, internal.ast);
|
|
3152
3152
|
}
|
|
3153
3153
|
|
|
3154
3154
|
get test() {
|
|
3155
3155
|
const internal = this.#internal;
|
|
3156
|
-
return constructExpression(internal.pos +
|
|
3156
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
3157
3157
|
}
|
|
3158
3158
|
|
|
3159
3159
|
toJSON() {
|
|
@@ -3200,12 +3200,12 @@ export class WhileStatement {
|
|
|
3200
3200
|
|
|
3201
3201
|
get test() {
|
|
3202
3202
|
const internal = this.#internal;
|
|
3203
|
-
return constructExpression(internal.pos +
|
|
3203
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
3204
3204
|
}
|
|
3205
3205
|
|
|
3206
3206
|
get body() {
|
|
3207
3207
|
const internal = this.#internal;
|
|
3208
|
-
return constructStatement(internal.pos +
|
|
3208
|
+
return constructStatement(internal.pos + 32, internal.ast);
|
|
3209
3209
|
}
|
|
3210
3210
|
|
|
3211
3211
|
toJSON() {
|
|
@@ -3252,22 +3252,22 @@ export class ForStatement {
|
|
|
3252
3252
|
|
|
3253
3253
|
get init() {
|
|
3254
3254
|
const internal = this.#internal;
|
|
3255
|
-
return constructOptionForStatementInit(internal.pos +
|
|
3255
|
+
return constructOptionForStatementInit(internal.pos + 16, internal.ast);
|
|
3256
3256
|
}
|
|
3257
3257
|
|
|
3258
3258
|
get test() {
|
|
3259
3259
|
const internal = this.#internal;
|
|
3260
|
-
return constructOptionExpression(internal.pos +
|
|
3260
|
+
return constructOptionExpression(internal.pos + 32, internal.ast);
|
|
3261
3261
|
}
|
|
3262
3262
|
|
|
3263
3263
|
get update() {
|
|
3264
3264
|
const internal = this.#internal;
|
|
3265
|
-
return constructOptionExpression(internal.pos +
|
|
3265
|
+
return constructOptionExpression(internal.pos + 48, internal.ast);
|
|
3266
3266
|
}
|
|
3267
3267
|
|
|
3268
3268
|
get body() {
|
|
3269
3269
|
const internal = this.#internal;
|
|
3270
|
-
return constructStatement(internal.pos +
|
|
3270
|
+
return constructStatement(internal.pos + 64, internal.ast);
|
|
3271
3271
|
}
|
|
3272
3272
|
|
|
3273
3273
|
toJSON() {
|
|
@@ -3411,17 +3411,17 @@ export class ForInStatement {
|
|
|
3411
3411
|
|
|
3412
3412
|
get left() {
|
|
3413
3413
|
const internal = this.#internal;
|
|
3414
|
-
return constructForStatementLeft(internal.pos +
|
|
3414
|
+
return constructForStatementLeft(internal.pos + 16, internal.ast);
|
|
3415
3415
|
}
|
|
3416
3416
|
|
|
3417
3417
|
get right() {
|
|
3418
3418
|
const internal = this.#internal;
|
|
3419
|
-
return constructExpression(internal.pos +
|
|
3419
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
3420
3420
|
}
|
|
3421
3421
|
|
|
3422
3422
|
get body() {
|
|
3423
3423
|
const internal = this.#internal;
|
|
3424
|
-
return constructStatement(internal.pos +
|
|
3424
|
+
return constructStatement(internal.pos + 48, internal.ast);
|
|
3425
3425
|
}
|
|
3426
3426
|
|
|
3427
3427
|
toJSON() {
|
|
@@ -3503,17 +3503,17 @@ export class ForOfStatement {
|
|
|
3503
3503
|
|
|
3504
3504
|
get left() {
|
|
3505
3505
|
const internal = this.#internal;
|
|
3506
|
-
return constructForStatementLeft(internal.pos +
|
|
3506
|
+
return constructForStatementLeft(internal.pos + 16, internal.ast);
|
|
3507
3507
|
}
|
|
3508
3508
|
|
|
3509
3509
|
get right() {
|
|
3510
3510
|
const internal = this.#internal;
|
|
3511
|
-
return constructExpression(internal.pos +
|
|
3511
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
3512
3512
|
}
|
|
3513
3513
|
|
|
3514
3514
|
get body() {
|
|
3515
3515
|
const internal = this.#internal;
|
|
3516
|
-
return constructStatement(internal.pos +
|
|
3516
|
+
return constructStatement(internal.pos + 48, internal.ast);
|
|
3517
3517
|
}
|
|
3518
3518
|
|
|
3519
3519
|
toJSON() {
|
|
@@ -3562,7 +3562,7 @@ export class ContinueStatement {
|
|
|
3562
3562
|
|
|
3563
3563
|
get label() {
|
|
3564
3564
|
const internal = this.#internal;
|
|
3565
|
-
return constructOptionLabelIdentifier(internal.pos +
|
|
3565
|
+
return constructOptionLabelIdentifier(internal.pos + 16, internal.ast);
|
|
3566
3566
|
}
|
|
3567
3567
|
|
|
3568
3568
|
toJSON() {
|
|
@@ -3608,7 +3608,7 @@ export class BreakStatement {
|
|
|
3608
3608
|
|
|
3609
3609
|
get label() {
|
|
3610
3610
|
const internal = this.#internal;
|
|
3611
|
-
return constructOptionLabelIdentifier(internal.pos +
|
|
3611
|
+
return constructOptionLabelIdentifier(internal.pos + 16, internal.ast);
|
|
3612
3612
|
}
|
|
3613
3613
|
|
|
3614
3614
|
toJSON() {
|
|
@@ -3654,7 +3654,7 @@ export class ReturnStatement {
|
|
|
3654
3654
|
|
|
3655
3655
|
get argument() {
|
|
3656
3656
|
const internal = this.#internal;
|
|
3657
|
-
return constructOptionExpression(internal.pos +
|
|
3657
|
+
return constructOptionExpression(internal.pos + 16, internal.ast);
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
3660
3660
|
toJSON() {
|
|
@@ -3700,12 +3700,12 @@ export class WithStatement {
|
|
|
3700
3700
|
|
|
3701
3701
|
get object() {
|
|
3702
3702
|
const internal = this.#internal;
|
|
3703
|
-
return constructExpression(internal.pos +
|
|
3703
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
3704
3704
|
}
|
|
3705
3705
|
|
|
3706
3706
|
get body() {
|
|
3707
3707
|
const internal = this.#internal;
|
|
3708
|
-
return constructStatement(internal.pos +
|
|
3708
|
+
return constructStatement(internal.pos + 32, internal.ast);
|
|
3709
3709
|
}
|
|
3710
3710
|
|
|
3711
3711
|
toJSON() {
|
|
@@ -3752,14 +3752,14 @@ export class SwitchStatement {
|
|
|
3752
3752
|
|
|
3753
3753
|
get discriminant() {
|
|
3754
3754
|
const internal = this.#internal;
|
|
3755
|
-
return constructExpression(internal.pos +
|
|
3755
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
3756
3756
|
}
|
|
3757
3757
|
|
|
3758
3758
|
get cases() {
|
|
3759
3759
|
const internal = this.#internal,
|
|
3760
3760
|
cached = internal.$cases;
|
|
3761
3761
|
if (cached !== void 0) return cached;
|
|
3762
|
-
return (internal.$cases = constructVecSwitchCase(internal.pos +
|
|
3762
|
+
return (internal.$cases = constructVecSwitchCase(internal.pos + 32, internal.ast));
|
|
3763
3763
|
}
|
|
3764
3764
|
|
|
3765
3765
|
toJSON() {
|
|
@@ -3806,14 +3806,14 @@ export class SwitchCase {
|
|
|
3806
3806
|
|
|
3807
3807
|
get test() {
|
|
3808
3808
|
const internal = this.#internal;
|
|
3809
|
-
return constructOptionExpression(internal.pos +
|
|
3809
|
+
return constructOptionExpression(internal.pos + 16, internal.ast);
|
|
3810
3810
|
}
|
|
3811
3811
|
|
|
3812
3812
|
get consequent() {
|
|
3813
3813
|
const internal = this.#internal,
|
|
3814
3814
|
cached = internal.$consequent;
|
|
3815
3815
|
if (cached !== void 0) return cached;
|
|
3816
|
-
return (internal.$consequent = constructVecStatement(internal.pos +
|
|
3816
|
+
return (internal.$consequent = constructVecStatement(internal.pos + 32, internal.ast));
|
|
3817
3817
|
}
|
|
3818
3818
|
|
|
3819
3819
|
toJSON() {
|
|
@@ -3860,12 +3860,12 @@ export class LabeledStatement {
|
|
|
3860
3860
|
|
|
3861
3861
|
get label() {
|
|
3862
3862
|
const internal = this.#internal;
|
|
3863
|
-
return new LabelIdentifier(internal.pos +
|
|
3863
|
+
return new LabelIdentifier(internal.pos + 16, internal.ast);
|
|
3864
3864
|
}
|
|
3865
3865
|
|
|
3866
3866
|
get body() {
|
|
3867
3867
|
const internal = this.#internal;
|
|
3868
|
-
return constructStatement(internal.pos +
|
|
3868
|
+
return constructStatement(internal.pos + 48, internal.ast);
|
|
3869
3869
|
}
|
|
3870
3870
|
|
|
3871
3871
|
toJSON() {
|
|
@@ -3912,7 +3912,7 @@ export class ThrowStatement {
|
|
|
3912
3912
|
|
|
3913
3913
|
get argument() {
|
|
3914
3914
|
const internal = this.#internal;
|
|
3915
|
-
return constructExpression(internal.pos +
|
|
3915
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
3916
3916
|
}
|
|
3917
3917
|
|
|
3918
3918
|
toJSON() {
|
|
@@ -3958,17 +3958,17 @@ export class TryStatement {
|
|
|
3958
3958
|
|
|
3959
3959
|
get block() {
|
|
3960
3960
|
const internal = this.#internal;
|
|
3961
|
-
return constructBoxBlockStatement(internal.pos +
|
|
3961
|
+
return constructBoxBlockStatement(internal.pos + 16, internal.ast);
|
|
3962
3962
|
}
|
|
3963
3963
|
|
|
3964
3964
|
get handler() {
|
|
3965
3965
|
const internal = this.#internal;
|
|
3966
|
-
return constructOptionBoxCatchClause(internal.pos +
|
|
3966
|
+
return constructOptionBoxCatchClause(internal.pos + 24, internal.ast);
|
|
3967
3967
|
}
|
|
3968
3968
|
|
|
3969
3969
|
get finalizer() {
|
|
3970
3970
|
const internal = this.#internal;
|
|
3971
|
-
return constructOptionBoxBlockStatement(internal.pos +
|
|
3971
|
+
return constructOptionBoxBlockStatement(internal.pos + 32, internal.ast);
|
|
3972
3972
|
}
|
|
3973
3973
|
|
|
3974
3974
|
toJSON() {
|
|
@@ -4016,12 +4016,12 @@ export class CatchClause {
|
|
|
4016
4016
|
|
|
4017
4017
|
get param() {
|
|
4018
4018
|
const internal = this.#internal;
|
|
4019
|
-
return constructOptionCatchParameter(internal.pos +
|
|
4019
|
+
return constructOptionCatchParameter(internal.pos + 16, internal.ast);
|
|
4020
4020
|
}
|
|
4021
4021
|
|
|
4022
4022
|
get body() {
|
|
4023
4023
|
const internal = this.#internal;
|
|
4024
|
-
return constructBoxBlockStatement(internal.pos +
|
|
4024
|
+
return constructBoxBlockStatement(internal.pos + 56, internal.ast);
|
|
4025
4025
|
}
|
|
4026
4026
|
|
|
4027
4027
|
toJSON() {
|
|
@@ -4067,7 +4067,7 @@ export class CatchParameter {
|
|
|
4067
4067
|
|
|
4068
4068
|
get pattern() {
|
|
4069
4069
|
const internal = this.#internal;
|
|
4070
|
-
return constructBindingPattern(internal.pos +
|
|
4070
|
+
return constructBindingPattern(internal.pos + 16, internal.ast);
|
|
4071
4071
|
}
|
|
4072
4072
|
|
|
4073
4073
|
toJSON() {
|
|
@@ -4167,12 +4167,12 @@ export class AssignmentPattern {
|
|
|
4167
4167
|
|
|
4168
4168
|
get left() {
|
|
4169
4169
|
const internal = this.#internal;
|
|
4170
|
-
return constructBindingPattern(internal.pos +
|
|
4170
|
+
return constructBindingPattern(internal.pos + 16, internal.ast);
|
|
4171
4171
|
}
|
|
4172
4172
|
|
|
4173
4173
|
get right() {
|
|
4174
4174
|
const internal = this.#internal;
|
|
4175
|
-
return constructExpression(internal.pos +
|
|
4175
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
4176
4176
|
}
|
|
4177
4177
|
|
|
4178
4178
|
toJSON() {
|
|
@@ -4221,7 +4221,7 @@ export class ObjectPattern {
|
|
|
4221
4221
|
const internal = this.#internal,
|
|
4222
4222
|
cached = internal.$properties;
|
|
4223
4223
|
if (cached !== void 0) return cached;
|
|
4224
|
-
return (internal.$properties = constructVecBindingProperty(internal.pos +
|
|
4224
|
+
return (internal.$properties = constructVecBindingProperty(internal.pos + 16, internal.ast));
|
|
4225
4225
|
}
|
|
4226
4226
|
|
|
4227
4227
|
toJSON() {
|
|
@@ -4267,22 +4267,22 @@ export class BindingProperty {
|
|
|
4267
4267
|
|
|
4268
4268
|
get key() {
|
|
4269
4269
|
const internal = this.#internal;
|
|
4270
|
-
return constructPropertyKey(internal.pos +
|
|
4270
|
+
return constructPropertyKey(internal.pos + 16, internal.ast);
|
|
4271
4271
|
}
|
|
4272
4272
|
|
|
4273
4273
|
get value() {
|
|
4274
4274
|
const internal = this.#internal;
|
|
4275
|
-
return constructBindingPattern(internal.pos +
|
|
4275
|
+
return constructBindingPattern(internal.pos + 32, internal.ast);
|
|
4276
4276
|
}
|
|
4277
4277
|
|
|
4278
4278
|
get shorthand() {
|
|
4279
4279
|
const internal = this.#internal;
|
|
4280
|
-
return constructBool(internal.pos +
|
|
4280
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
4281
4281
|
}
|
|
4282
4282
|
|
|
4283
4283
|
get computed() {
|
|
4284
4284
|
const internal = this.#internal;
|
|
4285
|
-
return constructBool(internal.pos +
|
|
4285
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
4286
4286
|
}
|
|
4287
4287
|
|
|
4288
4288
|
toJSON() {
|
|
@@ -4333,7 +4333,7 @@ export class ArrayPattern {
|
|
|
4333
4333
|
const internal = this.#internal,
|
|
4334
4334
|
cached = internal.$elements;
|
|
4335
4335
|
if (cached !== void 0) return cached;
|
|
4336
|
-
return (internal.$elements = constructVecOptionBindingPattern(internal.pos +
|
|
4336
|
+
return (internal.$elements = constructVecOptionBindingPattern(internal.pos + 16, internal.ast));
|
|
4337
4337
|
}
|
|
4338
4338
|
|
|
4339
4339
|
toJSON() {
|
|
@@ -4379,7 +4379,7 @@ export class BindingRestElement {
|
|
|
4379
4379
|
|
|
4380
4380
|
get argument() {
|
|
4381
4381
|
const internal = this.#internal;
|
|
4382
|
-
return constructBindingPattern(internal.pos +
|
|
4382
|
+
return constructBindingPattern(internal.pos + 16, internal.ast);
|
|
4383
4383
|
}
|
|
4384
4384
|
|
|
4385
4385
|
toJSON() {
|
|
@@ -4429,7 +4429,7 @@ export class Function {
|
|
|
4429
4429
|
|
|
4430
4430
|
get id() {
|
|
4431
4431
|
const internal = this.#internal;
|
|
4432
|
-
return constructOptionBindingIdentifier(internal.pos +
|
|
4432
|
+
return constructOptionBindingIdentifier(internal.pos + 16, internal.ast);
|
|
4433
4433
|
}
|
|
4434
4434
|
|
|
4435
4435
|
get generator() {
|
|
@@ -4449,22 +4449,22 @@ export class Function {
|
|
|
4449
4449
|
|
|
4450
4450
|
get typeParameters() {
|
|
4451
4451
|
const internal = this.#internal;
|
|
4452
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
4452
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 48, internal.ast);
|
|
4453
4453
|
}
|
|
4454
4454
|
|
|
4455
4455
|
get params() {
|
|
4456
4456
|
const internal = this.#internal;
|
|
4457
|
-
return constructBoxFormalParameters(internal.pos +
|
|
4457
|
+
return constructBoxFormalParameters(internal.pos + 64, internal.ast);
|
|
4458
4458
|
}
|
|
4459
4459
|
|
|
4460
4460
|
get returnType() {
|
|
4461
4461
|
const internal = this.#internal;
|
|
4462
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
4462
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 72, internal.ast);
|
|
4463
4463
|
}
|
|
4464
4464
|
|
|
4465
4465
|
get body() {
|
|
4466
4466
|
const internal = this.#internal;
|
|
4467
|
-
return constructOptionBoxFunctionBody(internal.pos +
|
|
4467
|
+
return constructOptionBoxFunctionBody(internal.pos + 80, internal.ast);
|
|
4468
4468
|
}
|
|
4469
4469
|
|
|
4470
4470
|
toJSON() {
|
|
@@ -4532,14 +4532,14 @@ export class FormalParameters {
|
|
|
4532
4532
|
|
|
4533
4533
|
get kind() {
|
|
4534
4534
|
const internal = this.#internal;
|
|
4535
|
-
return constructFormalParameterKind(internal.pos +
|
|
4535
|
+
return constructFormalParameterKind(internal.pos + 12, internal.ast);
|
|
4536
4536
|
}
|
|
4537
4537
|
|
|
4538
4538
|
get items() {
|
|
4539
4539
|
const internal = this.#internal,
|
|
4540
4540
|
cached = internal.$items;
|
|
4541
4541
|
if (cached !== void 0) return cached;
|
|
4542
|
-
return (internal.$items = constructVecFormalParameter(internal.pos +
|
|
4542
|
+
return (internal.$items = constructVecFormalParameter(internal.pos + 16, internal.ast));
|
|
4543
4543
|
}
|
|
4544
4544
|
|
|
4545
4545
|
toJSON() {
|
|
@@ -4587,27 +4587,27 @@ export class FormalParameter {
|
|
|
4587
4587
|
const internal = this.#internal,
|
|
4588
4588
|
cached = internal.$decorators;
|
|
4589
4589
|
if (cached !== void 0) return cached;
|
|
4590
|
-
return (internal.$decorators = constructVecDecorator(internal.pos +
|
|
4590
|
+
return (internal.$decorators = constructVecDecorator(internal.pos + 16, internal.ast));
|
|
4591
4591
|
}
|
|
4592
4592
|
|
|
4593
4593
|
get pattern() {
|
|
4594
4594
|
const internal = this.#internal;
|
|
4595
|
-
return constructBindingPattern(internal.pos +
|
|
4595
|
+
return constructBindingPattern(internal.pos + 40, internal.ast);
|
|
4596
4596
|
}
|
|
4597
4597
|
|
|
4598
4598
|
get typeAnnotation() {
|
|
4599
4599
|
const internal = this.#internal;
|
|
4600
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
4600
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 56, internal.ast);
|
|
4601
4601
|
}
|
|
4602
4602
|
|
|
4603
4603
|
get initializer() {
|
|
4604
4604
|
const internal = this.#internal;
|
|
4605
|
-
return constructOptionBoxExpression(internal.pos +
|
|
4605
|
+
return constructOptionBoxExpression(internal.pos + 64, internal.ast);
|
|
4606
4606
|
}
|
|
4607
4607
|
|
|
4608
4608
|
get optional() {
|
|
4609
4609
|
const internal = this.#internal;
|
|
4610
|
-
return constructBool(internal.pos +
|
|
4610
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
4611
4611
|
}
|
|
4612
4612
|
|
|
4613
4613
|
toJSON() {
|
|
@@ -4673,7 +4673,7 @@ export class FunctionBody {
|
|
|
4673
4673
|
const internal = this.#internal,
|
|
4674
4674
|
cached = internal.$body;
|
|
4675
4675
|
if (cached !== void 0) return cached;
|
|
4676
|
-
return (internal.$body = constructVecStatement(internal.pos +
|
|
4676
|
+
return (internal.$body = constructVecStatement(internal.pos + 40, internal.ast));
|
|
4677
4677
|
}
|
|
4678
4678
|
|
|
4679
4679
|
toJSON() {
|
|
@@ -4729,22 +4729,22 @@ export class ArrowFunctionExpression {
|
|
|
4729
4729
|
|
|
4730
4730
|
get typeParameters() {
|
|
4731
4731
|
const internal = this.#internal;
|
|
4732
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
4732
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 16, internal.ast);
|
|
4733
4733
|
}
|
|
4734
4734
|
|
|
4735
4735
|
get params() {
|
|
4736
4736
|
const internal = this.#internal;
|
|
4737
|
-
return constructBoxFormalParameters(internal.pos +
|
|
4737
|
+
return constructBoxFormalParameters(internal.pos + 24, internal.ast);
|
|
4738
4738
|
}
|
|
4739
4739
|
|
|
4740
4740
|
get returnType() {
|
|
4741
4741
|
const internal = this.#internal;
|
|
4742
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
4742
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 32, internal.ast);
|
|
4743
4743
|
}
|
|
4744
4744
|
|
|
4745
4745
|
get body() {
|
|
4746
4746
|
const internal = this.#internal;
|
|
4747
|
-
return constructBoxFunctionBody(internal.pos +
|
|
4747
|
+
return constructBoxFunctionBody(internal.pos + 40, internal.ast);
|
|
4748
4748
|
}
|
|
4749
4749
|
|
|
4750
4750
|
toJSON() {
|
|
@@ -4795,12 +4795,12 @@ export class YieldExpression {
|
|
|
4795
4795
|
|
|
4796
4796
|
get delegate() {
|
|
4797
4797
|
const internal = this.#internal;
|
|
4798
|
-
return constructBool(internal.pos +
|
|
4798
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
4799
4799
|
}
|
|
4800
4800
|
|
|
4801
4801
|
get argument() {
|
|
4802
4802
|
const internal = this.#internal;
|
|
4803
|
-
return constructOptionExpression(internal.pos +
|
|
4803
|
+
return constructOptionExpression(internal.pos + 16, internal.ast);
|
|
4804
4804
|
}
|
|
4805
4805
|
|
|
4806
4806
|
toJSON() {
|
|
@@ -4853,39 +4853,39 @@ export class Class {
|
|
|
4853
4853
|
const internal = this.#internal,
|
|
4854
4854
|
cached = internal.$decorators;
|
|
4855
4855
|
if (cached !== void 0) return cached;
|
|
4856
|
-
return (internal.$decorators = constructVecDecorator(internal.pos +
|
|
4856
|
+
return (internal.$decorators = constructVecDecorator(internal.pos + 16, internal.ast));
|
|
4857
4857
|
}
|
|
4858
4858
|
|
|
4859
4859
|
get id() {
|
|
4860
4860
|
const internal = this.#internal;
|
|
4861
|
-
return constructOptionBindingIdentifier(internal.pos +
|
|
4861
|
+
return constructOptionBindingIdentifier(internal.pos + 40, internal.ast);
|
|
4862
4862
|
}
|
|
4863
4863
|
|
|
4864
4864
|
get typeParameters() {
|
|
4865
4865
|
const internal = this.#internal;
|
|
4866
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
4866
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 72, internal.ast);
|
|
4867
4867
|
}
|
|
4868
4868
|
|
|
4869
4869
|
get superClass() {
|
|
4870
4870
|
const internal = this.#internal;
|
|
4871
|
-
return constructOptionExpression(internal.pos +
|
|
4871
|
+
return constructOptionExpression(internal.pos + 80, internal.ast);
|
|
4872
4872
|
}
|
|
4873
4873
|
|
|
4874
4874
|
get superTypeArguments() {
|
|
4875
4875
|
const internal = this.#internal;
|
|
4876
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
4876
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 96, internal.ast);
|
|
4877
4877
|
}
|
|
4878
4878
|
|
|
4879
4879
|
get implements() {
|
|
4880
4880
|
const internal = this.#internal,
|
|
4881
4881
|
cached = internal.$implements;
|
|
4882
4882
|
if (cached !== void 0) return cached;
|
|
4883
|
-
return (internal.$implements = constructVecTSClassImplements(internal.pos +
|
|
4883
|
+
return (internal.$implements = constructVecTSClassImplements(internal.pos + 104, internal.ast));
|
|
4884
4884
|
}
|
|
4885
4885
|
|
|
4886
4886
|
get body() {
|
|
4887
4887
|
const internal = this.#internal;
|
|
4888
|
-
return constructBoxClassBody(internal.pos +
|
|
4888
|
+
return constructBoxClassBody(internal.pos + 128, internal.ast);
|
|
4889
4889
|
}
|
|
4890
4890
|
|
|
4891
4891
|
get abstract() {
|
|
@@ -4962,7 +4962,7 @@ export class ClassBody {
|
|
|
4962
4962
|
const internal = this.#internal,
|
|
4963
4963
|
cached = internal.$body;
|
|
4964
4964
|
if (cached !== void 0) return cached;
|
|
4965
|
-
return (internal.$body = constructVecClassElement(internal.pos +
|
|
4965
|
+
return (internal.$body = constructVecClassElement(internal.pos + 16, internal.ast));
|
|
4966
4966
|
}
|
|
4967
4967
|
|
|
4968
4968
|
toJSON() {
|
|
@@ -5024,39 +5024,39 @@ export class MethodDefinition {
|
|
|
5024
5024
|
|
|
5025
5025
|
get type() {
|
|
5026
5026
|
const internal = this.#internal;
|
|
5027
|
-
return constructMethodDefinitionType(internal.pos +
|
|
5027
|
+
return constructMethodDefinitionType(internal.pos + 12, internal.ast);
|
|
5028
5028
|
}
|
|
5029
5029
|
|
|
5030
5030
|
get decorators() {
|
|
5031
5031
|
const internal = this.#internal,
|
|
5032
5032
|
cached = internal.$decorators;
|
|
5033
5033
|
if (cached !== void 0) return cached;
|
|
5034
|
-
return (internal.$decorators = constructVecDecorator(internal.pos +
|
|
5034
|
+
return (internal.$decorators = constructVecDecorator(internal.pos + 16, internal.ast));
|
|
5035
5035
|
}
|
|
5036
5036
|
|
|
5037
5037
|
get key() {
|
|
5038
5038
|
const internal = this.#internal;
|
|
5039
|
-
return constructPropertyKey(internal.pos +
|
|
5039
|
+
return constructPropertyKey(internal.pos + 40, internal.ast);
|
|
5040
5040
|
}
|
|
5041
5041
|
|
|
5042
5042
|
get value() {
|
|
5043
5043
|
const internal = this.#internal;
|
|
5044
|
-
return constructBoxFunction(internal.pos +
|
|
5044
|
+
return constructBoxFunction(internal.pos + 56, internal.ast);
|
|
5045
5045
|
}
|
|
5046
5046
|
|
|
5047
5047
|
get kind() {
|
|
5048
5048
|
const internal = this.#internal;
|
|
5049
|
-
return constructMethodDefinitionKind(internal.pos +
|
|
5049
|
+
return constructMethodDefinitionKind(internal.pos + 13, internal.ast);
|
|
5050
5050
|
}
|
|
5051
5051
|
|
|
5052
5052
|
get computed() {
|
|
5053
5053
|
const internal = this.#internal;
|
|
5054
|
-
return constructBool(internal.pos +
|
|
5054
|
+
return constructBool(internal.pos + 14, internal.ast);
|
|
5055
5055
|
}
|
|
5056
5056
|
|
|
5057
5057
|
get static() {
|
|
5058
5058
|
const internal = this.#internal;
|
|
5059
|
-
return constructBool(internal.pos +
|
|
5059
|
+
return constructBool(internal.pos + 15, internal.ast);
|
|
5060
5060
|
}
|
|
5061
5061
|
|
|
5062
5062
|
get override() {
|
|
@@ -5135,44 +5135,44 @@ export class PropertyDefinition {
|
|
|
5135
5135
|
|
|
5136
5136
|
get type() {
|
|
5137
5137
|
const internal = this.#internal;
|
|
5138
|
-
return constructPropertyDefinitionType(internal.pos +
|
|
5138
|
+
return constructPropertyDefinitionType(internal.pos + 12, internal.ast);
|
|
5139
5139
|
}
|
|
5140
5140
|
|
|
5141
5141
|
get decorators() {
|
|
5142
5142
|
const internal = this.#internal,
|
|
5143
5143
|
cached = internal.$decorators;
|
|
5144
5144
|
if (cached !== void 0) return cached;
|
|
5145
|
-
return (internal.$decorators = constructVecDecorator(internal.pos +
|
|
5145
|
+
return (internal.$decorators = constructVecDecorator(internal.pos + 16, internal.ast));
|
|
5146
5146
|
}
|
|
5147
5147
|
|
|
5148
5148
|
get key() {
|
|
5149
5149
|
const internal = this.#internal;
|
|
5150
|
-
return constructPropertyKey(internal.pos +
|
|
5150
|
+
return constructPropertyKey(internal.pos + 40, internal.ast);
|
|
5151
5151
|
}
|
|
5152
5152
|
|
|
5153
5153
|
get typeAnnotation() {
|
|
5154
5154
|
const internal = this.#internal;
|
|
5155
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
5155
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 56, internal.ast);
|
|
5156
5156
|
}
|
|
5157
5157
|
|
|
5158
5158
|
get value() {
|
|
5159
5159
|
const internal = this.#internal;
|
|
5160
|
-
return constructOptionExpression(internal.pos +
|
|
5160
|
+
return constructOptionExpression(internal.pos + 64, internal.ast);
|
|
5161
5161
|
}
|
|
5162
5162
|
|
|
5163
5163
|
get computed() {
|
|
5164
5164
|
const internal = this.#internal;
|
|
5165
|
-
return constructBool(internal.pos +
|
|
5165
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
5166
5166
|
}
|
|
5167
5167
|
|
|
5168
5168
|
get static() {
|
|
5169
5169
|
const internal = this.#internal;
|
|
5170
|
-
return constructBool(internal.pos +
|
|
5170
|
+
return constructBool(internal.pos + 14, internal.ast);
|
|
5171
5171
|
}
|
|
5172
5172
|
|
|
5173
5173
|
get declare() {
|
|
5174
5174
|
const internal = this.#internal;
|
|
5175
|
-
return constructBool(internal.pos +
|
|
5175
|
+
return constructBool(internal.pos + 15, internal.ast);
|
|
5176
5176
|
}
|
|
5177
5177
|
|
|
5178
5178
|
get override() {
|
|
@@ -5282,7 +5282,7 @@ export class PrivateIdentifier {
|
|
|
5282
5282
|
const internal = this.#internal,
|
|
5283
5283
|
cached = internal.$name;
|
|
5284
5284
|
if (cached !== void 0) return cached;
|
|
5285
|
-
return (internal.$name = constructStr(internal.pos +
|
|
5285
|
+
return (internal.$name = constructStr(internal.pos + 16, internal.ast));
|
|
5286
5286
|
}
|
|
5287
5287
|
|
|
5288
5288
|
toJSON() {
|
|
@@ -5330,7 +5330,7 @@ export class StaticBlock {
|
|
|
5330
5330
|
const internal = this.#internal,
|
|
5331
5331
|
cached = internal.$body;
|
|
5332
5332
|
if (cached !== void 0) return cached;
|
|
5333
|
-
return (internal.$body = constructVecStatement(internal.pos +
|
|
5333
|
+
return (internal.$body = constructVecStatement(internal.pos + 16, internal.ast));
|
|
5334
5334
|
}
|
|
5335
5335
|
|
|
5336
5336
|
toJSON() {
|
|
@@ -5405,44 +5405,44 @@ export class AccessorProperty {
|
|
|
5405
5405
|
|
|
5406
5406
|
get type() {
|
|
5407
5407
|
const internal = this.#internal;
|
|
5408
|
-
return constructAccessorPropertyType(internal.pos +
|
|
5408
|
+
return constructAccessorPropertyType(internal.pos + 12, internal.ast);
|
|
5409
5409
|
}
|
|
5410
5410
|
|
|
5411
5411
|
get decorators() {
|
|
5412
5412
|
const internal = this.#internal,
|
|
5413
5413
|
cached = internal.$decorators;
|
|
5414
5414
|
if (cached !== void 0) return cached;
|
|
5415
|
-
return (internal.$decorators = constructVecDecorator(internal.pos +
|
|
5415
|
+
return (internal.$decorators = constructVecDecorator(internal.pos + 16, internal.ast));
|
|
5416
5416
|
}
|
|
5417
5417
|
|
|
5418
5418
|
get key() {
|
|
5419
5419
|
const internal = this.#internal;
|
|
5420
|
-
return constructPropertyKey(internal.pos +
|
|
5420
|
+
return constructPropertyKey(internal.pos + 40, internal.ast);
|
|
5421
5421
|
}
|
|
5422
5422
|
|
|
5423
5423
|
get typeAnnotation() {
|
|
5424
5424
|
const internal = this.#internal;
|
|
5425
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
5425
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 56, internal.ast);
|
|
5426
5426
|
}
|
|
5427
5427
|
|
|
5428
5428
|
get value() {
|
|
5429
5429
|
const internal = this.#internal;
|
|
5430
|
-
return constructOptionExpression(internal.pos +
|
|
5430
|
+
return constructOptionExpression(internal.pos + 64, internal.ast);
|
|
5431
5431
|
}
|
|
5432
5432
|
|
|
5433
5433
|
get computed() {
|
|
5434
5434
|
const internal = this.#internal;
|
|
5435
|
-
return constructBool(internal.pos +
|
|
5435
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
5436
5436
|
}
|
|
5437
5437
|
|
|
5438
5438
|
get static() {
|
|
5439
5439
|
const internal = this.#internal;
|
|
5440
|
-
return constructBool(internal.pos +
|
|
5440
|
+
return constructBool(internal.pos + 14, internal.ast);
|
|
5441
5441
|
}
|
|
5442
5442
|
|
|
5443
5443
|
get override() {
|
|
5444
5444
|
const internal = this.#internal;
|
|
5445
|
-
return constructBool(internal.pos +
|
|
5445
|
+
return constructBool(internal.pos + 15, internal.ast);
|
|
5446
5446
|
}
|
|
5447
5447
|
|
|
5448
5448
|
get definite() {
|
|
@@ -5506,17 +5506,17 @@ export class ImportExpression {
|
|
|
5506
5506
|
|
|
5507
5507
|
get source() {
|
|
5508
5508
|
const internal = this.#internal;
|
|
5509
|
-
return constructExpression(internal.pos +
|
|
5509
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
5510
5510
|
}
|
|
5511
5511
|
|
|
5512
5512
|
get options() {
|
|
5513
5513
|
const internal = this.#internal;
|
|
5514
|
-
return constructOptionExpression(internal.pos +
|
|
5514
|
+
return constructOptionExpression(internal.pos + 32, internal.ast);
|
|
5515
5515
|
}
|
|
5516
5516
|
|
|
5517
5517
|
get phase() {
|
|
5518
5518
|
const internal = this.#internal;
|
|
5519
|
-
return constructOptionImportPhase(internal.pos +
|
|
5519
|
+
return constructOptionImportPhase(internal.pos + 12, internal.ast);
|
|
5520
5520
|
}
|
|
5521
5521
|
|
|
5522
5522
|
toJSON() {
|
|
@@ -5567,29 +5567,29 @@ export class ImportDeclaration {
|
|
|
5567
5567
|
cached = internal.$specifiers;
|
|
5568
5568
|
if (cached !== void 0) return cached;
|
|
5569
5569
|
return (internal.$specifiers = constructOptionVecImportDeclarationSpecifier(
|
|
5570
|
-
internal.pos +
|
|
5570
|
+
internal.pos + 16,
|
|
5571
5571
|
internal.ast,
|
|
5572
5572
|
));
|
|
5573
5573
|
}
|
|
5574
5574
|
|
|
5575
5575
|
get source() {
|
|
5576
5576
|
const internal = this.#internal;
|
|
5577
|
-
return new StringLiteral(internal.pos +
|
|
5577
|
+
return new StringLiteral(internal.pos + 40, internal.ast);
|
|
5578
5578
|
}
|
|
5579
5579
|
|
|
5580
5580
|
get phase() {
|
|
5581
5581
|
const internal = this.#internal;
|
|
5582
|
-
return constructOptionImportPhase(internal.pos +
|
|
5582
|
+
return constructOptionImportPhase(internal.pos + 12, internal.ast);
|
|
5583
5583
|
}
|
|
5584
5584
|
|
|
5585
5585
|
get attributes() {
|
|
5586
5586
|
const internal = this.#internal;
|
|
5587
|
-
return constructOptionBoxWithClause(internal.pos +
|
|
5587
|
+
return constructOptionBoxWithClause(internal.pos + 88, internal.ast);
|
|
5588
5588
|
}
|
|
5589
5589
|
|
|
5590
5590
|
get importKind() {
|
|
5591
5591
|
const internal = this.#internal;
|
|
5592
|
-
return constructImportOrExportKind(internal.pos +
|
|
5592
|
+
return constructImportOrExportKind(internal.pos + 13, internal.ast);
|
|
5593
5593
|
}
|
|
5594
5594
|
|
|
5595
5595
|
toJSON() {
|
|
@@ -5663,17 +5663,17 @@ export class ImportSpecifier {
|
|
|
5663
5663
|
|
|
5664
5664
|
get imported() {
|
|
5665
5665
|
const internal = this.#internal;
|
|
5666
|
-
return constructModuleExportName(internal.pos +
|
|
5666
|
+
return constructModuleExportName(internal.pos + 16, internal.ast);
|
|
5667
5667
|
}
|
|
5668
5668
|
|
|
5669
5669
|
get local() {
|
|
5670
5670
|
const internal = this.#internal;
|
|
5671
|
-
return new BindingIdentifier(internal.pos +
|
|
5671
|
+
return new BindingIdentifier(internal.pos + 72, internal.ast);
|
|
5672
5672
|
}
|
|
5673
5673
|
|
|
5674
5674
|
get importKind() {
|
|
5675
5675
|
const internal = this.#internal;
|
|
5676
|
-
return constructImportOrExportKind(internal.pos +
|
|
5676
|
+
return constructImportOrExportKind(internal.pos + 12, internal.ast);
|
|
5677
5677
|
}
|
|
5678
5678
|
|
|
5679
5679
|
toJSON() {
|
|
@@ -5721,7 +5721,7 @@ export class ImportDefaultSpecifier {
|
|
|
5721
5721
|
|
|
5722
5722
|
get local() {
|
|
5723
5723
|
const internal = this.#internal;
|
|
5724
|
-
return new BindingIdentifier(internal.pos +
|
|
5724
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
5725
5725
|
}
|
|
5726
5726
|
|
|
5727
5727
|
toJSON() {
|
|
@@ -5767,7 +5767,7 @@ export class ImportNamespaceSpecifier {
|
|
|
5767
5767
|
|
|
5768
5768
|
get local() {
|
|
5769
5769
|
const internal = this.#internal;
|
|
5770
|
-
return new BindingIdentifier(internal.pos +
|
|
5770
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
5771
5771
|
}
|
|
5772
5772
|
|
|
5773
5773
|
toJSON() {
|
|
@@ -5800,27 +5800,15 @@ export class WithClause {
|
|
|
5800
5800
|
nodes.set(pos, this);
|
|
5801
5801
|
}
|
|
5802
5802
|
|
|
5803
|
-
get start() {
|
|
5804
|
-
const internal = this.#internal;
|
|
5805
|
-
return constructU32(internal.pos, internal.ast);
|
|
5806
|
-
}
|
|
5807
|
-
|
|
5808
|
-
get end() {
|
|
5809
|
-
const internal = this.#internal;
|
|
5810
|
-
return constructU32(internal.pos + 4, internal.ast);
|
|
5811
|
-
}
|
|
5812
|
-
|
|
5813
5803
|
get attributes() {
|
|
5814
5804
|
const internal = this.#internal,
|
|
5815
5805
|
cached = internal.$attributes;
|
|
5816
5806
|
if (cached !== void 0) return cached;
|
|
5817
|
-
return (internal.$attributes = constructVecImportAttribute(internal.pos +
|
|
5807
|
+
return (internal.$attributes = constructVecImportAttribute(internal.pos + 16, internal.ast));
|
|
5818
5808
|
}
|
|
5819
5809
|
|
|
5820
5810
|
toJSON() {
|
|
5821
5811
|
return {
|
|
5822
|
-
start: this.start,
|
|
5823
|
-
end: this.end,
|
|
5824
5812
|
attributes: this.attributes,
|
|
5825
5813
|
};
|
|
5826
5814
|
}
|
|
@@ -5859,12 +5847,12 @@ export class ImportAttribute {
|
|
|
5859
5847
|
|
|
5860
5848
|
get key() {
|
|
5861
5849
|
const internal = this.#internal;
|
|
5862
|
-
return constructImportAttributeKey(internal.pos +
|
|
5850
|
+
return constructImportAttributeKey(internal.pos + 16, internal.ast);
|
|
5863
5851
|
}
|
|
5864
5852
|
|
|
5865
5853
|
get value() {
|
|
5866
5854
|
const internal = this.#internal;
|
|
5867
|
-
return new StringLiteral(internal.pos +
|
|
5855
|
+
return new StringLiteral(internal.pos + 72, internal.ast);
|
|
5868
5856
|
}
|
|
5869
5857
|
|
|
5870
5858
|
toJSON() {
|
|
@@ -5922,29 +5910,29 @@ export class ExportNamedDeclaration {
|
|
|
5922
5910
|
|
|
5923
5911
|
get declaration() {
|
|
5924
5912
|
const internal = this.#internal;
|
|
5925
|
-
return constructOptionDeclaration(internal.pos +
|
|
5913
|
+
return constructOptionDeclaration(internal.pos + 16, internal.ast);
|
|
5926
5914
|
}
|
|
5927
5915
|
|
|
5928
5916
|
get specifiers() {
|
|
5929
5917
|
const internal = this.#internal,
|
|
5930
5918
|
cached = internal.$specifiers;
|
|
5931
5919
|
if (cached !== void 0) return cached;
|
|
5932
|
-
return (internal.$specifiers = constructVecExportSpecifier(internal.pos +
|
|
5920
|
+
return (internal.$specifiers = constructVecExportSpecifier(internal.pos + 32, internal.ast));
|
|
5933
5921
|
}
|
|
5934
5922
|
|
|
5935
5923
|
get source() {
|
|
5936
5924
|
const internal = this.#internal;
|
|
5937
|
-
return constructOptionStringLiteral(internal.pos +
|
|
5925
|
+
return constructOptionStringLiteral(internal.pos + 56, internal.ast);
|
|
5938
5926
|
}
|
|
5939
5927
|
|
|
5940
5928
|
get exportKind() {
|
|
5941
5929
|
const internal = this.#internal;
|
|
5942
|
-
return constructImportOrExportKind(internal.pos +
|
|
5930
|
+
return constructImportOrExportKind(internal.pos + 12, internal.ast);
|
|
5943
5931
|
}
|
|
5944
5932
|
|
|
5945
5933
|
get attributes() {
|
|
5946
5934
|
const internal = this.#internal;
|
|
5947
|
-
return constructOptionBoxWithClause(internal.pos +
|
|
5935
|
+
return constructOptionBoxWithClause(internal.pos + 104, internal.ast);
|
|
5948
5936
|
}
|
|
5949
5937
|
|
|
5950
5938
|
toJSON() {
|
|
@@ -5994,7 +5982,7 @@ export class ExportDefaultDeclaration {
|
|
|
5994
5982
|
|
|
5995
5983
|
get declaration() {
|
|
5996
5984
|
const internal = this.#internal;
|
|
5997
|
-
return constructExportDefaultDeclarationKind(internal.pos +
|
|
5985
|
+
return constructExportDefaultDeclarationKind(internal.pos + 16, internal.ast);
|
|
5998
5986
|
}
|
|
5999
5987
|
|
|
6000
5988
|
toJSON() {
|
|
@@ -6040,22 +6028,22 @@ export class ExportAllDeclaration {
|
|
|
6040
6028
|
|
|
6041
6029
|
get exported() {
|
|
6042
6030
|
const internal = this.#internal;
|
|
6043
|
-
return constructOptionModuleExportName(internal.pos +
|
|
6031
|
+
return constructOptionModuleExportName(internal.pos + 16, internal.ast);
|
|
6044
6032
|
}
|
|
6045
6033
|
|
|
6046
6034
|
get source() {
|
|
6047
6035
|
const internal = this.#internal;
|
|
6048
|
-
return new StringLiteral(internal.pos +
|
|
6036
|
+
return new StringLiteral(internal.pos + 72, internal.ast);
|
|
6049
6037
|
}
|
|
6050
6038
|
|
|
6051
6039
|
get attributes() {
|
|
6052
6040
|
const internal = this.#internal;
|
|
6053
|
-
return constructOptionBoxWithClause(internal.pos +
|
|
6041
|
+
return constructOptionBoxWithClause(internal.pos + 120, internal.ast);
|
|
6054
6042
|
}
|
|
6055
6043
|
|
|
6056
6044
|
get exportKind() {
|
|
6057
6045
|
const internal = this.#internal;
|
|
6058
|
-
return constructImportOrExportKind(internal.pos +
|
|
6046
|
+
return constructImportOrExportKind(internal.pos + 12, internal.ast);
|
|
6059
6047
|
}
|
|
6060
6048
|
|
|
6061
6049
|
toJSON() {
|
|
@@ -6104,17 +6092,17 @@ export class ExportSpecifier {
|
|
|
6104
6092
|
|
|
6105
6093
|
get local() {
|
|
6106
6094
|
const internal = this.#internal;
|
|
6107
|
-
return constructModuleExportName(internal.pos +
|
|
6095
|
+
return constructModuleExportName(internal.pos + 16, internal.ast);
|
|
6108
6096
|
}
|
|
6109
6097
|
|
|
6110
6098
|
get exported() {
|
|
6111
6099
|
const internal = this.#internal;
|
|
6112
|
-
return constructModuleExportName(internal.pos +
|
|
6100
|
+
return constructModuleExportName(internal.pos + 72, internal.ast);
|
|
6113
6101
|
}
|
|
6114
6102
|
|
|
6115
6103
|
get exportKind() {
|
|
6116
6104
|
const internal = this.#internal;
|
|
6117
|
-
return constructImportOrExportKind(internal.pos +
|
|
6105
|
+
return constructImportOrExportKind(internal.pos + 12, internal.ast);
|
|
6118
6106
|
}
|
|
6119
6107
|
|
|
6120
6108
|
toJSON() {
|
|
@@ -6276,14 +6264,14 @@ export class V8IntrinsicExpression {
|
|
|
6276
6264
|
|
|
6277
6265
|
get name() {
|
|
6278
6266
|
const internal = this.#internal;
|
|
6279
|
-
return new IdentifierName(internal.pos +
|
|
6267
|
+
return new IdentifierName(internal.pos + 16, internal.ast);
|
|
6280
6268
|
}
|
|
6281
6269
|
|
|
6282
6270
|
get arguments() {
|
|
6283
6271
|
const internal = this.#internal,
|
|
6284
6272
|
cached = internal.$arguments;
|
|
6285
6273
|
if (cached !== void 0) return cached;
|
|
6286
|
-
return (internal.$arguments = constructVecArgument(internal.pos +
|
|
6274
|
+
return (internal.$arguments = constructVecArgument(internal.pos + 48, internal.ast));
|
|
6287
6275
|
}
|
|
6288
6276
|
|
|
6289
6277
|
toJSON() {
|
|
@@ -6416,7 +6404,7 @@ export class NumericLiteral {
|
|
|
6416
6404
|
|
|
6417
6405
|
get value() {
|
|
6418
6406
|
const internal = this.#internal;
|
|
6419
|
-
return constructF64(internal.pos +
|
|
6407
|
+
return constructF64(internal.pos + 32, internal.ast);
|
|
6420
6408
|
}
|
|
6421
6409
|
|
|
6422
6410
|
get raw() {
|
|
@@ -6472,14 +6460,14 @@ export class StringLiteral {
|
|
|
6472
6460
|
const internal = this.#internal,
|
|
6473
6461
|
cached = internal.$value;
|
|
6474
6462
|
if (cached !== void 0) return cached;
|
|
6475
|
-
return (internal.$value = constructStr(internal.pos +
|
|
6463
|
+
return (internal.$value = constructStr(internal.pos + 16, internal.ast));
|
|
6476
6464
|
}
|
|
6477
6465
|
|
|
6478
6466
|
get raw() {
|
|
6479
6467
|
const internal = this.#internal,
|
|
6480
6468
|
cached = internal.$raw;
|
|
6481
6469
|
if (cached !== void 0) return cached;
|
|
6482
|
-
return (internal.$raw = constructOptionStr(internal.pos +
|
|
6470
|
+
return (internal.$raw = constructOptionStr(internal.pos + 32, internal.ast));
|
|
6483
6471
|
}
|
|
6484
6472
|
|
|
6485
6473
|
toJSON() {
|
|
@@ -6528,14 +6516,14 @@ export class BigIntLiteral {
|
|
|
6528
6516
|
const internal = this.#internal,
|
|
6529
6517
|
cached = internal.$value;
|
|
6530
6518
|
if (cached !== void 0) return cached;
|
|
6531
|
-
return (internal.$value = constructStr(internal.pos +
|
|
6519
|
+
return (internal.$value = constructStr(internal.pos + 16, internal.ast));
|
|
6532
6520
|
}
|
|
6533
6521
|
|
|
6534
6522
|
get raw() {
|
|
6535
6523
|
const internal = this.#internal,
|
|
6536
6524
|
cached = internal.$raw;
|
|
6537
6525
|
if (cached !== void 0) return cached;
|
|
6538
|
-
return (internal.$raw = constructOptionStr(internal.pos +
|
|
6526
|
+
return (internal.$raw = constructOptionStr(internal.pos + 32, internal.ast));
|
|
6539
6527
|
}
|
|
6540
6528
|
|
|
6541
6529
|
toJSON() {
|
|
@@ -6582,14 +6570,14 @@ export class RegExpLiteral {
|
|
|
6582
6570
|
|
|
6583
6571
|
get regex() {
|
|
6584
6572
|
const internal = this.#internal;
|
|
6585
|
-
return new RegExp(internal.pos +
|
|
6573
|
+
return new RegExp(internal.pos + 16, internal.ast);
|
|
6586
6574
|
}
|
|
6587
6575
|
|
|
6588
6576
|
get raw() {
|
|
6589
6577
|
const internal = this.#internal,
|
|
6590
6578
|
cached = internal.$raw;
|
|
6591
6579
|
if (cached !== void 0) return cached;
|
|
6592
|
-
return (internal.$raw = constructOptionStr(internal.pos +
|
|
6580
|
+
return (internal.$raw = constructOptionStr(internal.pos + 48, internal.ast));
|
|
6593
6581
|
}
|
|
6594
6582
|
|
|
6595
6583
|
toJSON() {
|
|
@@ -6734,19 +6722,19 @@ export class JSXElement {
|
|
|
6734
6722
|
|
|
6735
6723
|
get openingElement() {
|
|
6736
6724
|
const internal = this.#internal;
|
|
6737
|
-
return constructBoxJSXOpeningElement(internal.pos +
|
|
6725
|
+
return constructBoxJSXOpeningElement(internal.pos + 16, internal.ast);
|
|
6738
6726
|
}
|
|
6739
6727
|
|
|
6740
6728
|
get children() {
|
|
6741
6729
|
const internal = this.#internal,
|
|
6742
6730
|
cached = internal.$children;
|
|
6743
6731
|
if (cached !== void 0) return cached;
|
|
6744
|
-
return (internal.$children = constructVecJSXChild(internal.pos +
|
|
6732
|
+
return (internal.$children = constructVecJSXChild(internal.pos + 24, internal.ast));
|
|
6745
6733
|
}
|
|
6746
6734
|
|
|
6747
6735
|
get closingElement() {
|
|
6748
6736
|
const internal = this.#internal;
|
|
6749
|
-
return constructOptionBoxJSXClosingElement(internal.pos +
|
|
6737
|
+
return constructOptionBoxJSXClosingElement(internal.pos + 48, internal.ast);
|
|
6750
6738
|
}
|
|
6751
6739
|
|
|
6752
6740
|
toJSON() {
|
|
@@ -6794,19 +6782,19 @@ export class JSXOpeningElement {
|
|
|
6794
6782
|
|
|
6795
6783
|
get name() {
|
|
6796
6784
|
const internal = this.#internal;
|
|
6797
|
-
return constructJSXElementName(internal.pos +
|
|
6785
|
+
return constructJSXElementName(internal.pos + 16, internal.ast);
|
|
6798
6786
|
}
|
|
6799
6787
|
|
|
6800
6788
|
get typeArguments() {
|
|
6801
6789
|
const internal = this.#internal;
|
|
6802
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
6790
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
6803
6791
|
}
|
|
6804
6792
|
|
|
6805
6793
|
get attributes() {
|
|
6806
6794
|
const internal = this.#internal,
|
|
6807
6795
|
cached = internal.$attributes;
|
|
6808
6796
|
if (cached !== void 0) return cached;
|
|
6809
|
-
return (internal.$attributes = constructVecJSXAttributeItem(internal.pos +
|
|
6797
|
+
return (internal.$attributes = constructVecJSXAttributeItem(internal.pos + 40, internal.ast));
|
|
6810
6798
|
}
|
|
6811
6799
|
|
|
6812
6800
|
toJSON() {
|
|
@@ -6854,7 +6842,7 @@ export class JSXClosingElement {
|
|
|
6854
6842
|
|
|
6855
6843
|
get name() {
|
|
6856
6844
|
const internal = this.#internal;
|
|
6857
|
-
return constructJSXElementName(internal.pos +
|
|
6845
|
+
return constructJSXElementName(internal.pos + 16, internal.ast);
|
|
6858
6846
|
}
|
|
6859
6847
|
|
|
6860
6848
|
toJSON() {
|
|
@@ -6900,19 +6888,19 @@ export class JSXFragment {
|
|
|
6900
6888
|
|
|
6901
6889
|
get openingFragment() {
|
|
6902
6890
|
const internal = this.#internal;
|
|
6903
|
-
return new JSXOpeningFragment(internal.pos +
|
|
6891
|
+
return new JSXOpeningFragment(internal.pos + 16, internal.ast);
|
|
6904
6892
|
}
|
|
6905
6893
|
|
|
6906
6894
|
get children() {
|
|
6907
6895
|
const internal = this.#internal,
|
|
6908
6896
|
cached = internal.$children;
|
|
6909
6897
|
if (cached !== void 0) return cached;
|
|
6910
|
-
return (internal.$children = constructVecJSXChild(internal.pos +
|
|
6898
|
+
return (internal.$children = constructVecJSXChild(internal.pos + 32, internal.ast));
|
|
6911
6899
|
}
|
|
6912
6900
|
|
|
6913
6901
|
get closingFragment() {
|
|
6914
6902
|
const internal = this.#internal;
|
|
6915
|
-
return new JSXClosingFragment(internal.pos +
|
|
6903
|
+
return new JSXClosingFragment(internal.pos + 56, internal.ast);
|
|
6916
6904
|
}
|
|
6917
6905
|
|
|
6918
6906
|
toJSON() {
|
|
@@ -7057,12 +7045,12 @@ export class JSXNamespacedName {
|
|
|
7057
7045
|
|
|
7058
7046
|
get namespace() {
|
|
7059
7047
|
const internal = this.#internal;
|
|
7060
|
-
return new JSXIdentifier(internal.pos +
|
|
7048
|
+
return new JSXIdentifier(internal.pos + 16, internal.ast);
|
|
7061
7049
|
}
|
|
7062
7050
|
|
|
7063
7051
|
get name() {
|
|
7064
7052
|
const internal = this.#internal;
|
|
7065
|
-
return new JSXIdentifier(internal.pos +
|
|
7053
|
+
return new JSXIdentifier(internal.pos + 48, internal.ast);
|
|
7066
7054
|
}
|
|
7067
7055
|
|
|
7068
7056
|
toJSON() {
|
|
@@ -7109,12 +7097,12 @@ export class JSXMemberExpression {
|
|
|
7109
7097
|
|
|
7110
7098
|
get object() {
|
|
7111
7099
|
const internal = this.#internal;
|
|
7112
|
-
return constructJSXMemberExpressionObject(internal.pos +
|
|
7100
|
+
return constructJSXMemberExpressionObject(internal.pos + 16, internal.ast);
|
|
7113
7101
|
}
|
|
7114
7102
|
|
|
7115
7103
|
get property() {
|
|
7116
7104
|
const internal = this.#internal;
|
|
7117
|
-
return new JSXIdentifier(internal.pos +
|
|
7105
|
+
return new JSXIdentifier(internal.pos + 32, internal.ast);
|
|
7118
7106
|
}
|
|
7119
7107
|
|
|
7120
7108
|
toJSON() {
|
|
@@ -7174,7 +7162,7 @@ export class JSXExpressionContainer {
|
|
|
7174
7162
|
|
|
7175
7163
|
get expression() {
|
|
7176
7164
|
const internal = this.#internal;
|
|
7177
|
-
return constructJSXExpression(internal.pos +
|
|
7165
|
+
return constructJSXExpression(internal.pos + 16, internal.ast);
|
|
7178
7166
|
}
|
|
7179
7167
|
|
|
7180
7168
|
toJSON() {
|
|
@@ -7366,12 +7354,12 @@ export class JSXAttribute {
|
|
|
7366
7354
|
|
|
7367
7355
|
get name() {
|
|
7368
7356
|
const internal = this.#internal;
|
|
7369
|
-
return constructJSXAttributeName(internal.pos +
|
|
7357
|
+
return constructJSXAttributeName(internal.pos + 16, internal.ast);
|
|
7370
7358
|
}
|
|
7371
7359
|
|
|
7372
7360
|
get value() {
|
|
7373
7361
|
const internal = this.#internal;
|
|
7374
|
-
return constructOptionJSXAttributeValue(internal.pos +
|
|
7362
|
+
return constructOptionJSXAttributeValue(internal.pos + 32, internal.ast);
|
|
7375
7363
|
}
|
|
7376
7364
|
|
|
7377
7365
|
toJSON() {
|
|
@@ -7418,7 +7406,7 @@ export class JSXSpreadAttribute {
|
|
|
7418
7406
|
|
|
7419
7407
|
get argument() {
|
|
7420
7408
|
const internal = this.#internal;
|
|
7421
|
-
return constructExpression(internal.pos +
|
|
7409
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
7422
7410
|
}
|
|
7423
7411
|
|
|
7424
7412
|
toJSON() {
|
|
@@ -7492,7 +7480,7 @@ export class JSXIdentifier {
|
|
|
7492
7480
|
const internal = this.#internal,
|
|
7493
7481
|
cached = internal.$name;
|
|
7494
7482
|
if (cached !== void 0) return cached;
|
|
7495
|
-
return (internal.$name = constructStr(internal.pos +
|
|
7483
|
+
return (internal.$name = constructStr(internal.pos + 16, internal.ast));
|
|
7496
7484
|
}
|
|
7497
7485
|
|
|
7498
7486
|
toJSON() {
|
|
@@ -7555,7 +7543,7 @@ export class JSXSpreadChild {
|
|
|
7555
7543
|
|
|
7556
7544
|
get expression() {
|
|
7557
7545
|
const internal = this.#internal;
|
|
7558
|
-
return constructExpression(internal.pos +
|
|
7546
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
7559
7547
|
}
|
|
7560
7548
|
|
|
7561
7549
|
toJSON() {
|
|
@@ -7603,14 +7591,14 @@ export class JSXText {
|
|
|
7603
7591
|
const internal = this.#internal,
|
|
7604
7592
|
cached = internal.$value;
|
|
7605
7593
|
if (cached !== void 0) return cached;
|
|
7606
|
-
return (internal.$value = constructStr(internal.pos +
|
|
7594
|
+
return (internal.$value = constructStr(internal.pos + 16, internal.ast));
|
|
7607
7595
|
}
|
|
7608
7596
|
|
|
7609
7597
|
get raw() {
|
|
7610
7598
|
const internal = this.#internal,
|
|
7611
7599
|
cached = internal.$raw;
|
|
7612
7600
|
if (cached !== void 0) return cached;
|
|
7613
|
-
return (internal.$raw = constructOptionStr(internal.pos +
|
|
7601
|
+
return (internal.$raw = constructOptionStr(internal.pos + 32, internal.ast));
|
|
7614
7602
|
}
|
|
7615
7603
|
|
|
7616
7604
|
toJSON() {
|
|
@@ -7657,7 +7645,7 @@ export class TSThisParameter {
|
|
|
7657
7645
|
|
|
7658
7646
|
get typeAnnotation() {
|
|
7659
7647
|
const internal = this.#internal;
|
|
7660
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
7648
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 24, internal.ast);
|
|
7661
7649
|
}
|
|
7662
7650
|
|
|
7663
7651
|
toJSON() {
|
|
@@ -7703,22 +7691,22 @@ export class TSEnumDeclaration {
|
|
|
7703
7691
|
|
|
7704
7692
|
get id() {
|
|
7705
7693
|
const internal = this.#internal;
|
|
7706
|
-
return new BindingIdentifier(internal.pos +
|
|
7694
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
7707
7695
|
}
|
|
7708
7696
|
|
|
7709
7697
|
get body() {
|
|
7710
7698
|
const internal = this.#internal;
|
|
7711
|
-
return new TSEnumBody(internal.pos +
|
|
7699
|
+
return new TSEnumBody(internal.pos + 48, internal.ast);
|
|
7712
7700
|
}
|
|
7713
7701
|
|
|
7714
7702
|
get const() {
|
|
7715
7703
|
const internal = this.#internal;
|
|
7716
|
-
return constructBool(internal.pos +
|
|
7704
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
7717
7705
|
}
|
|
7718
7706
|
|
|
7719
7707
|
get declare() {
|
|
7720
7708
|
const internal = this.#internal;
|
|
7721
|
-
return constructBool(internal.pos +
|
|
7709
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
7722
7710
|
}
|
|
7723
7711
|
|
|
7724
7712
|
toJSON() {
|
|
@@ -7769,7 +7757,7 @@ export class TSEnumBody {
|
|
|
7769
7757
|
const internal = this.#internal,
|
|
7770
7758
|
cached = internal.$members;
|
|
7771
7759
|
if (cached !== void 0) return cached;
|
|
7772
|
-
return (internal.$members = constructVecTSEnumMember(internal.pos +
|
|
7760
|
+
return (internal.$members = constructVecTSEnumMember(internal.pos + 16, internal.ast));
|
|
7773
7761
|
}
|
|
7774
7762
|
|
|
7775
7763
|
toJSON() {
|
|
@@ -7815,12 +7803,12 @@ export class TSEnumMember {
|
|
|
7815
7803
|
|
|
7816
7804
|
get id() {
|
|
7817
7805
|
const internal = this.#internal;
|
|
7818
|
-
return constructTSEnumMemberName(internal.pos +
|
|
7806
|
+
return constructTSEnumMemberName(internal.pos + 16, internal.ast);
|
|
7819
7807
|
}
|
|
7820
7808
|
|
|
7821
7809
|
get initializer() {
|
|
7822
7810
|
const internal = this.#internal;
|
|
7823
|
-
return constructOptionExpression(internal.pos +
|
|
7811
|
+
return constructOptionExpression(internal.pos + 32, internal.ast);
|
|
7824
7812
|
}
|
|
7825
7813
|
|
|
7826
7814
|
toJSON() {
|
|
@@ -7882,7 +7870,7 @@ export class TSTypeAnnotation {
|
|
|
7882
7870
|
|
|
7883
7871
|
get typeAnnotation() {
|
|
7884
7872
|
const internal = this.#internal;
|
|
7885
|
-
return constructTSType(internal.pos +
|
|
7873
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
7886
7874
|
}
|
|
7887
7875
|
|
|
7888
7876
|
toJSON() {
|
|
@@ -7928,7 +7916,7 @@ export class TSLiteralType {
|
|
|
7928
7916
|
|
|
7929
7917
|
get literal() {
|
|
7930
7918
|
const internal = this.#internal;
|
|
7931
|
-
return constructTSLiteral(internal.pos +
|
|
7919
|
+
return constructTSLiteral(internal.pos + 16, internal.ast);
|
|
7932
7920
|
}
|
|
7933
7921
|
|
|
7934
7922
|
toJSON() {
|
|
@@ -8074,22 +8062,22 @@ export class TSConditionalType {
|
|
|
8074
8062
|
|
|
8075
8063
|
get checkType() {
|
|
8076
8064
|
const internal = this.#internal;
|
|
8077
|
-
return constructTSType(internal.pos +
|
|
8065
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
8078
8066
|
}
|
|
8079
8067
|
|
|
8080
8068
|
get extendsType() {
|
|
8081
8069
|
const internal = this.#internal;
|
|
8082
|
-
return constructTSType(internal.pos +
|
|
8070
|
+
return constructTSType(internal.pos + 32, internal.ast);
|
|
8083
8071
|
}
|
|
8084
8072
|
|
|
8085
8073
|
get trueType() {
|
|
8086
8074
|
const internal = this.#internal;
|
|
8087
|
-
return constructTSType(internal.pos +
|
|
8075
|
+
return constructTSType(internal.pos + 48, internal.ast);
|
|
8088
8076
|
}
|
|
8089
8077
|
|
|
8090
8078
|
get falseType() {
|
|
8091
8079
|
const internal = this.#internal;
|
|
8092
|
-
return constructTSType(internal.pos +
|
|
8080
|
+
return constructTSType(internal.pos + 64, internal.ast);
|
|
8093
8081
|
}
|
|
8094
8082
|
|
|
8095
8083
|
toJSON() {
|
|
@@ -8140,7 +8128,7 @@ export class TSUnionType {
|
|
|
8140
8128
|
const internal = this.#internal,
|
|
8141
8129
|
cached = internal.$types;
|
|
8142
8130
|
if (cached !== void 0) return cached;
|
|
8143
|
-
return (internal.$types = constructVecTSType(internal.pos +
|
|
8131
|
+
return (internal.$types = constructVecTSType(internal.pos + 16, internal.ast));
|
|
8144
8132
|
}
|
|
8145
8133
|
|
|
8146
8134
|
toJSON() {
|
|
@@ -8188,7 +8176,7 @@ export class TSIntersectionType {
|
|
|
8188
8176
|
const internal = this.#internal,
|
|
8189
8177
|
cached = internal.$types;
|
|
8190
8178
|
if (cached !== void 0) return cached;
|
|
8191
|
-
return (internal.$types = constructVecTSType(internal.pos +
|
|
8179
|
+
return (internal.$types = constructVecTSType(internal.pos + 16, internal.ast));
|
|
8192
8180
|
}
|
|
8193
8181
|
|
|
8194
8182
|
toJSON() {
|
|
@@ -8234,7 +8222,7 @@ export class TSParenthesizedType {
|
|
|
8234
8222
|
|
|
8235
8223
|
get typeAnnotation() {
|
|
8236
8224
|
const internal = this.#internal;
|
|
8237
|
-
return constructTSType(internal.pos +
|
|
8225
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
8238
8226
|
}
|
|
8239
8227
|
|
|
8240
8228
|
toJSON() {
|
|
@@ -8280,12 +8268,12 @@ export class TSTypeOperator {
|
|
|
8280
8268
|
|
|
8281
8269
|
get operator() {
|
|
8282
8270
|
const internal = this.#internal;
|
|
8283
|
-
return constructTSTypeOperatorOperator(internal.pos +
|
|
8271
|
+
return constructTSTypeOperatorOperator(internal.pos + 12, internal.ast);
|
|
8284
8272
|
}
|
|
8285
8273
|
|
|
8286
8274
|
get typeAnnotation() {
|
|
8287
8275
|
const internal = this.#internal;
|
|
8288
|
-
return constructTSType(internal.pos +
|
|
8276
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
8289
8277
|
}
|
|
8290
8278
|
|
|
8291
8279
|
toJSON() {
|
|
@@ -8345,7 +8333,7 @@ export class TSArrayType {
|
|
|
8345
8333
|
|
|
8346
8334
|
get elementType() {
|
|
8347
8335
|
const internal = this.#internal;
|
|
8348
|
-
return constructTSType(internal.pos +
|
|
8336
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
8349
8337
|
}
|
|
8350
8338
|
|
|
8351
8339
|
toJSON() {
|
|
@@ -8391,12 +8379,12 @@ export class TSIndexedAccessType {
|
|
|
8391
8379
|
|
|
8392
8380
|
get objectType() {
|
|
8393
8381
|
const internal = this.#internal;
|
|
8394
|
-
return constructTSType(internal.pos +
|
|
8382
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
8395
8383
|
}
|
|
8396
8384
|
|
|
8397
8385
|
get indexType() {
|
|
8398
8386
|
const internal = this.#internal;
|
|
8399
|
-
return constructTSType(internal.pos +
|
|
8387
|
+
return constructTSType(internal.pos + 32, internal.ast);
|
|
8400
8388
|
}
|
|
8401
8389
|
|
|
8402
8390
|
toJSON() {
|
|
@@ -8445,7 +8433,7 @@ export class TSTupleType {
|
|
|
8445
8433
|
const internal = this.#internal,
|
|
8446
8434
|
cached = internal.$elementTypes;
|
|
8447
8435
|
if (cached !== void 0) return cached;
|
|
8448
|
-
return (internal.$elementTypes = constructVecTSTupleElement(internal.pos +
|
|
8436
|
+
return (internal.$elementTypes = constructVecTSTupleElement(internal.pos + 16, internal.ast));
|
|
8449
8437
|
}
|
|
8450
8438
|
|
|
8451
8439
|
toJSON() {
|
|
@@ -8491,17 +8479,17 @@ export class TSNamedTupleMember {
|
|
|
8491
8479
|
|
|
8492
8480
|
get label() {
|
|
8493
8481
|
const internal = this.#internal;
|
|
8494
|
-
return new IdentifierName(internal.pos +
|
|
8482
|
+
return new IdentifierName(internal.pos + 16, internal.ast);
|
|
8495
8483
|
}
|
|
8496
8484
|
|
|
8497
8485
|
get elementType() {
|
|
8498
8486
|
const internal = this.#internal;
|
|
8499
|
-
return constructTSTupleElement(internal.pos +
|
|
8487
|
+
return constructTSTupleElement(internal.pos + 48, internal.ast);
|
|
8500
8488
|
}
|
|
8501
8489
|
|
|
8502
8490
|
get optional() {
|
|
8503
8491
|
const internal = this.#internal;
|
|
8504
|
-
return constructBool(internal.pos +
|
|
8492
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
8505
8493
|
}
|
|
8506
8494
|
|
|
8507
8495
|
toJSON() {
|
|
@@ -8549,7 +8537,7 @@ export class TSOptionalType {
|
|
|
8549
8537
|
|
|
8550
8538
|
get typeAnnotation() {
|
|
8551
8539
|
const internal = this.#internal;
|
|
8552
|
-
return constructTSType(internal.pos +
|
|
8540
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
8553
8541
|
}
|
|
8554
8542
|
|
|
8555
8543
|
toJSON() {
|
|
@@ -8595,7 +8583,7 @@ export class TSRestType {
|
|
|
8595
8583
|
|
|
8596
8584
|
get typeAnnotation() {
|
|
8597
8585
|
const internal = this.#internal;
|
|
8598
|
-
return constructTSType(internal.pos +
|
|
8586
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
8599
8587
|
}
|
|
8600
8588
|
|
|
8601
8589
|
toJSON() {
|
|
@@ -9286,12 +9274,12 @@ export class TSTypeReference {
|
|
|
9286
9274
|
|
|
9287
9275
|
get typeName() {
|
|
9288
9276
|
const internal = this.#internal;
|
|
9289
|
-
return constructTSTypeName(internal.pos +
|
|
9277
|
+
return constructTSTypeName(internal.pos + 16, internal.ast);
|
|
9290
9278
|
}
|
|
9291
9279
|
|
|
9292
9280
|
get typeArguments() {
|
|
9293
9281
|
const internal = this.#internal;
|
|
9294
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
9282
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
9295
9283
|
}
|
|
9296
9284
|
|
|
9297
9285
|
toJSON() {
|
|
@@ -9351,12 +9339,12 @@ export class TSQualifiedName {
|
|
|
9351
9339
|
|
|
9352
9340
|
get left() {
|
|
9353
9341
|
const internal = this.#internal;
|
|
9354
|
-
return constructTSTypeName(internal.pos +
|
|
9342
|
+
return constructTSTypeName(internal.pos + 16, internal.ast);
|
|
9355
9343
|
}
|
|
9356
9344
|
|
|
9357
9345
|
get right() {
|
|
9358
9346
|
const internal = this.#internal;
|
|
9359
|
-
return new IdentifierName(internal.pos +
|
|
9347
|
+
return new IdentifierName(internal.pos + 32, internal.ast);
|
|
9360
9348
|
}
|
|
9361
9349
|
|
|
9362
9350
|
toJSON() {
|
|
@@ -9405,7 +9393,7 @@ export class TSTypeParameterInstantiation {
|
|
|
9405
9393
|
const internal = this.#internal,
|
|
9406
9394
|
cached = internal.$params;
|
|
9407
9395
|
if (cached !== void 0) return cached;
|
|
9408
|
-
return (internal.$params = constructVecTSType(internal.pos +
|
|
9396
|
+
return (internal.$params = constructVecTSType(internal.pos + 16, internal.ast));
|
|
9409
9397
|
}
|
|
9410
9398
|
|
|
9411
9399
|
toJSON() {
|
|
@@ -9451,32 +9439,32 @@ export class TSTypeParameter {
|
|
|
9451
9439
|
|
|
9452
9440
|
get name() {
|
|
9453
9441
|
const internal = this.#internal;
|
|
9454
|
-
return new BindingIdentifier(internal.pos +
|
|
9442
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
9455
9443
|
}
|
|
9456
9444
|
|
|
9457
9445
|
get constraint() {
|
|
9458
9446
|
const internal = this.#internal;
|
|
9459
|
-
return constructOptionTSType(internal.pos +
|
|
9447
|
+
return constructOptionTSType(internal.pos + 48, internal.ast);
|
|
9460
9448
|
}
|
|
9461
9449
|
|
|
9462
9450
|
get default() {
|
|
9463
9451
|
const internal = this.#internal;
|
|
9464
|
-
return constructOptionTSType(internal.pos +
|
|
9452
|
+
return constructOptionTSType(internal.pos + 64, internal.ast);
|
|
9465
9453
|
}
|
|
9466
9454
|
|
|
9467
9455
|
get in() {
|
|
9468
9456
|
const internal = this.#internal;
|
|
9469
|
-
return constructBool(internal.pos +
|
|
9457
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
9470
9458
|
}
|
|
9471
9459
|
|
|
9472
9460
|
get out() {
|
|
9473
9461
|
const internal = this.#internal;
|
|
9474
|
-
return constructBool(internal.pos +
|
|
9462
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
9475
9463
|
}
|
|
9476
9464
|
|
|
9477
9465
|
get const() {
|
|
9478
9466
|
const internal = this.#internal;
|
|
9479
|
-
return constructBool(internal.pos +
|
|
9467
|
+
return constructBool(internal.pos + 14, internal.ast);
|
|
9480
9468
|
}
|
|
9481
9469
|
|
|
9482
9470
|
toJSON() {
|
|
@@ -9529,7 +9517,7 @@ export class TSTypeParameterDeclaration {
|
|
|
9529
9517
|
const internal = this.#internal,
|
|
9530
9518
|
cached = internal.$params;
|
|
9531
9519
|
if (cached !== void 0) return cached;
|
|
9532
|
-
return (internal.$params = constructVecTSTypeParameter(internal.pos +
|
|
9520
|
+
return (internal.$params = constructVecTSTypeParameter(internal.pos + 16, internal.ast));
|
|
9533
9521
|
}
|
|
9534
9522
|
|
|
9535
9523
|
toJSON() {
|
|
@@ -9575,17 +9563,17 @@ export class TSTypeAliasDeclaration {
|
|
|
9575
9563
|
|
|
9576
9564
|
get id() {
|
|
9577
9565
|
const internal = this.#internal;
|
|
9578
|
-
return new BindingIdentifier(internal.pos +
|
|
9566
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
9579
9567
|
}
|
|
9580
9568
|
|
|
9581
9569
|
get typeParameters() {
|
|
9582
9570
|
const internal = this.#internal;
|
|
9583
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
9571
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 48, internal.ast);
|
|
9584
9572
|
}
|
|
9585
9573
|
|
|
9586
9574
|
get typeAnnotation() {
|
|
9587
9575
|
const internal = this.#internal;
|
|
9588
|
-
return constructTSType(internal.pos +
|
|
9576
|
+
return constructTSType(internal.pos + 56, internal.ast);
|
|
9589
9577
|
}
|
|
9590
9578
|
|
|
9591
9579
|
get declare() {
|
|
@@ -9652,12 +9640,12 @@ export class TSClassImplements {
|
|
|
9652
9640
|
|
|
9653
9641
|
get expression() {
|
|
9654
9642
|
const internal = this.#internal;
|
|
9655
|
-
return constructTSTypeName(internal.pos +
|
|
9643
|
+
return constructTSTypeName(internal.pos + 16, internal.ast);
|
|
9656
9644
|
}
|
|
9657
9645
|
|
|
9658
9646
|
get typeArguments() {
|
|
9659
9647
|
const internal = this.#internal;
|
|
9660
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
9648
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
9661
9649
|
}
|
|
9662
9650
|
|
|
9663
9651
|
toJSON() {
|
|
@@ -9704,24 +9692,24 @@ export class TSInterfaceDeclaration {
|
|
|
9704
9692
|
|
|
9705
9693
|
get id() {
|
|
9706
9694
|
const internal = this.#internal;
|
|
9707
|
-
return new BindingIdentifier(internal.pos +
|
|
9695
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
9708
9696
|
}
|
|
9709
9697
|
|
|
9710
9698
|
get typeParameters() {
|
|
9711
9699
|
const internal = this.#internal;
|
|
9712
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
9700
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 48, internal.ast);
|
|
9713
9701
|
}
|
|
9714
9702
|
|
|
9715
9703
|
get extends() {
|
|
9716
9704
|
const internal = this.#internal,
|
|
9717
9705
|
cached = internal.$extends;
|
|
9718
9706
|
if (cached !== void 0) return cached;
|
|
9719
|
-
return (internal.$extends = constructVecTSInterfaceHeritage(internal.pos +
|
|
9707
|
+
return (internal.$extends = constructVecTSInterfaceHeritage(internal.pos + 56, internal.ast));
|
|
9720
9708
|
}
|
|
9721
9709
|
|
|
9722
9710
|
get body() {
|
|
9723
9711
|
const internal = this.#internal;
|
|
9724
|
-
return constructBoxTSInterfaceBody(internal.pos +
|
|
9712
|
+
return constructBoxTSInterfaceBody(internal.pos + 80, internal.ast);
|
|
9725
9713
|
}
|
|
9726
9714
|
|
|
9727
9715
|
get declare() {
|
|
@@ -9778,7 +9766,7 @@ export class TSInterfaceBody {
|
|
|
9778
9766
|
const internal = this.#internal,
|
|
9779
9767
|
cached = internal.$body;
|
|
9780
9768
|
if (cached !== void 0) return cached;
|
|
9781
|
-
return (internal.$body = constructVecTSSignature(internal.pos +
|
|
9769
|
+
return (internal.$body = constructVecTSSignature(internal.pos + 16, internal.ast));
|
|
9782
9770
|
}
|
|
9783
9771
|
|
|
9784
9772
|
toJSON() {
|
|
@@ -9824,27 +9812,27 @@ export class TSPropertySignature {
|
|
|
9824
9812
|
|
|
9825
9813
|
get computed() {
|
|
9826
9814
|
const internal = this.#internal;
|
|
9827
|
-
return constructBool(internal.pos +
|
|
9815
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
9828
9816
|
}
|
|
9829
9817
|
|
|
9830
9818
|
get optional() {
|
|
9831
9819
|
const internal = this.#internal;
|
|
9832
|
-
return constructBool(internal.pos +
|
|
9820
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
9833
9821
|
}
|
|
9834
9822
|
|
|
9835
9823
|
get readonly() {
|
|
9836
9824
|
const internal = this.#internal;
|
|
9837
|
-
return constructBool(internal.pos +
|
|
9825
|
+
return constructBool(internal.pos + 14, internal.ast);
|
|
9838
9826
|
}
|
|
9839
9827
|
|
|
9840
9828
|
get key() {
|
|
9841
9829
|
const internal = this.#internal;
|
|
9842
|
-
return constructPropertyKey(internal.pos +
|
|
9830
|
+
return constructPropertyKey(internal.pos + 16, internal.ast);
|
|
9843
9831
|
}
|
|
9844
9832
|
|
|
9845
9833
|
get typeAnnotation() {
|
|
9846
9834
|
const internal = this.#internal;
|
|
9847
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
9835
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 32, internal.ast);
|
|
9848
9836
|
}
|
|
9849
9837
|
|
|
9850
9838
|
toJSON() {
|
|
@@ -9914,24 +9902,24 @@ export class TSIndexSignature {
|
|
|
9914
9902
|
cached = internal.$parameters;
|
|
9915
9903
|
if (cached !== void 0) return cached;
|
|
9916
9904
|
return (internal.$parameters = constructVecTSIndexSignatureName(
|
|
9917
|
-
internal.pos +
|
|
9905
|
+
internal.pos + 16,
|
|
9918
9906
|
internal.ast,
|
|
9919
9907
|
));
|
|
9920
9908
|
}
|
|
9921
9909
|
|
|
9922
9910
|
get typeAnnotation() {
|
|
9923
9911
|
const internal = this.#internal;
|
|
9924
|
-
return constructBoxTSTypeAnnotation(internal.pos +
|
|
9912
|
+
return constructBoxTSTypeAnnotation(internal.pos + 40, internal.ast);
|
|
9925
9913
|
}
|
|
9926
9914
|
|
|
9927
9915
|
get readonly() {
|
|
9928
9916
|
const internal = this.#internal;
|
|
9929
|
-
return constructBool(internal.pos +
|
|
9917
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
9930
9918
|
}
|
|
9931
9919
|
|
|
9932
9920
|
get static() {
|
|
9933
9921
|
const internal = this.#internal;
|
|
9934
|
-
return constructBool(internal.pos +
|
|
9922
|
+
return constructBool(internal.pos + 13, internal.ast);
|
|
9935
9923
|
}
|
|
9936
9924
|
|
|
9937
9925
|
toJSON() {
|
|
@@ -9980,17 +9968,17 @@ export class TSCallSignatureDeclaration {
|
|
|
9980
9968
|
|
|
9981
9969
|
get typeParameters() {
|
|
9982
9970
|
const internal = this.#internal;
|
|
9983
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
9971
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 16, internal.ast);
|
|
9984
9972
|
}
|
|
9985
9973
|
|
|
9986
9974
|
get params() {
|
|
9987
9975
|
const internal = this.#internal;
|
|
9988
|
-
return constructBoxFormalParameters(internal.pos +
|
|
9976
|
+
return constructBoxFormalParameters(internal.pos + 32, internal.ast);
|
|
9989
9977
|
}
|
|
9990
9978
|
|
|
9991
9979
|
get returnType() {
|
|
9992
9980
|
const internal = this.#internal;
|
|
9993
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
9981
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 40, internal.ast);
|
|
9994
9982
|
}
|
|
9995
9983
|
|
|
9996
9984
|
toJSON() {
|
|
@@ -10051,7 +10039,7 @@ export class TSMethodSignature {
|
|
|
10051
10039
|
|
|
10052
10040
|
get key() {
|
|
10053
10041
|
const internal = this.#internal;
|
|
10054
|
-
return constructPropertyKey(internal.pos +
|
|
10042
|
+
return constructPropertyKey(internal.pos + 16, internal.ast);
|
|
10055
10043
|
}
|
|
10056
10044
|
|
|
10057
10045
|
get computed() {
|
|
@@ -10071,17 +10059,17 @@ export class TSMethodSignature {
|
|
|
10071
10059
|
|
|
10072
10060
|
get typeParameters() {
|
|
10073
10061
|
const internal = this.#internal;
|
|
10074
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
10062
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 32, internal.ast);
|
|
10075
10063
|
}
|
|
10076
10064
|
|
|
10077
10065
|
get params() {
|
|
10078
10066
|
const internal = this.#internal;
|
|
10079
|
-
return constructBoxFormalParameters(internal.pos +
|
|
10067
|
+
return constructBoxFormalParameters(internal.pos + 48, internal.ast);
|
|
10080
10068
|
}
|
|
10081
10069
|
|
|
10082
10070
|
get returnType() {
|
|
10083
10071
|
const internal = this.#internal;
|
|
10084
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
10072
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 56, internal.ast);
|
|
10085
10073
|
}
|
|
10086
10074
|
|
|
10087
10075
|
toJSON() {
|
|
@@ -10133,17 +10121,17 @@ export class TSConstructSignatureDeclaration {
|
|
|
10133
10121
|
|
|
10134
10122
|
get typeParameters() {
|
|
10135
10123
|
const internal = this.#internal;
|
|
10136
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
10124
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 16, internal.ast);
|
|
10137
10125
|
}
|
|
10138
10126
|
|
|
10139
10127
|
get params() {
|
|
10140
10128
|
const internal = this.#internal;
|
|
10141
|
-
return constructBoxFormalParameters(internal.pos +
|
|
10129
|
+
return constructBoxFormalParameters(internal.pos + 24, internal.ast);
|
|
10142
10130
|
}
|
|
10143
10131
|
|
|
10144
10132
|
get returnType() {
|
|
10145
10133
|
const internal = this.#internal;
|
|
10146
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
10134
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 32, internal.ast);
|
|
10147
10135
|
}
|
|
10148
10136
|
|
|
10149
10137
|
toJSON() {
|
|
@@ -10193,12 +10181,12 @@ export class TSIndexSignatureName {
|
|
|
10193
10181
|
const internal = this.#internal,
|
|
10194
10182
|
cached = internal.$name;
|
|
10195
10183
|
if (cached !== void 0) return cached;
|
|
10196
|
-
return (internal.$name = constructStr(internal.pos +
|
|
10184
|
+
return (internal.$name = constructStr(internal.pos + 16, internal.ast));
|
|
10197
10185
|
}
|
|
10198
10186
|
|
|
10199
10187
|
get typeAnnotation() {
|
|
10200
10188
|
const internal = this.#internal;
|
|
10201
|
-
return constructBoxTSTypeAnnotation(internal.pos +
|
|
10189
|
+
return constructBoxTSTypeAnnotation(internal.pos + 32, internal.ast);
|
|
10202
10190
|
}
|
|
10203
10191
|
|
|
10204
10192
|
toJSON() {
|
|
@@ -10245,12 +10233,12 @@ export class TSInterfaceHeritage {
|
|
|
10245
10233
|
|
|
10246
10234
|
get expression() {
|
|
10247
10235
|
const internal = this.#internal;
|
|
10248
|
-
return constructExpression(internal.pos +
|
|
10236
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
10249
10237
|
}
|
|
10250
10238
|
|
|
10251
10239
|
get typeArguments() {
|
|
10252
10240
|
const internal = this.#internal;
|
|
10253
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
10241
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
10254
10242
|
}
|
|
10255
10243
|
|
|
10256
10244
|
toJSON() {
|
|
@@ -10297,17 +10285,17 @@ export class TSTypePredicate {
|
|
|
10297
10285
|
|
|
10298
10286
|
get parameterName() {
|
|
10299
10287
|
const internal = this.#internal;
|
|
10300
|
-
return constructTSTypePredicateName(internal.pos +
|
|
10288
|
+
return constructTSTypePredicateName(internal.pos + 16, internal.ast);
|
|
10301
10289
|
}
|
|
10302
10290
|
|
|
10303
10291
|
get asserts() {
|
|
10304
10292
|
const internal = this.#internal;
|
|
10305
|
-
return constructBool(internal.pos +
|
|
10293
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
10306
10294
|
}
|
|
10307
10295
|
|
|
10308
10296
|
get typeAnnotation() {
|
|
10309
10297
|
const internal = this.#internal;
|
|
10310
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
10298
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 40, internal.ast);
|
|
10311
10299
|
}
|
|
10312
10300
|
|
|
10313
10301
|
toJSON() {
|
|
@@ -10366,12 +10354,12 @@ export class TSModuleDeclaration {
|
|
|
10366
10354
|
|
|
10367
10355
|
get id() {
|
|
10368
10356
|
const internal = this.#internal;
|
|
10369
|
-
return constructTSModuleDeclarationName(internal.pos +
|
|
10357
|
+
return constructTSModuleDeclarationName(internal.pos + 16, internal.ast);
|
|
10370
10358
|
}
|
|
10371
10359
|
|
|
10372
10360
|
get body() {
|
|
10373
10361
|
const internal = this.#internal;
|
|
10374
|
-
return constructOptionTSModuleDeclarationBody(internal.pos +
|
|
10362
|
+
return constructOptionTSModuleDeclarationBody(internal.pos + 72, internal.ast);
|
|
10375
10363
|
}
|
|
10376
10364
|
|
|
10377
10365
|
get kind() {
|
|
@@ -10463,7 +10451,7 @@ export class TSGlobalDeclaration {
|
|
|
10463
10451
|
|
|
10464
10452
|
get body() {
|
|
10465
10453
|
const internal = this.#internal;
|
|
10466
|
-
return new TSModuleBlock(internal.pos +
|
|
10454
|
+
return new TSModuleBlock(internal.pos + 24, internal.ast);
|
|
10467
10455
|
}
|
|
10468
10456
|
|
|
10469
10457
|
get declare() {
|
|
@@ -10517,7 +10505,7 @@ export class TSModuleBlock {
|
|
|
10517
10505
|
const internal = this.#internal,
|
|
10518
10506
|
cached = internal.$body;
|
|
10519
10507
|
if (cached !== void 0) return cached;
|
|
10520
|
-
return (internal.$body = constructVecStatement(internal.pos +
|
|
10508
|
+
return (internal.$body = constructVecStatement(internal.pos + 40, internal.ast));
|
|
10521
10509
|
}
|
|
10522
10510
|
|
|
10523
10511
|
toJSON() {
|
|
@@ -10565,7 +10553,7 @@ export class TSTypeLiteral {
|
|
|
10565
10553
|
const internal = this.#internal,
|
|
10566
10554
|
cached = internal.$members;
|
|
10567
10555
|
if (cached !== void 0) return cached;
|
|
10568
|
-
return (internal.$members = constructVecTSSignature(internal.pos +
|
|
10556
|
+
return (internal.$members = constructVecTSSignature(internal.pos + 16, internal.ast));
|
|
10569
10557
|
}
|
|
10570
10558
|
|
|
10571
10559
|
toJSON() {
|
|
@@ -10611,7 +10599,7 @@ export class TSInferType {
|
|
|
10611
10599
|
|
|
10612
10600
|
get typeParameter() {
|
|
10613
10601
|
const internal = this.#internal;
|
|
10614
|
-
return constructBoxTSTypeParameter(internal.pos +
|
|
10602
|
+
return constructBoxTSTypeParameter(internal.pos + 16, internal.ast);
|
|
10615
10603
|
}
|
|
10616
10604
|
|
|
10617
10605
|
toJSON() {
|
|
@@ -10657,12 +10645,12 @@ export class TSTypeQuery {
|
|
|
10657
10645
|
|
|
10658
10646
|
get exprName() {
|
|
10659
10647
|
const internal = this.#internal;
|
|
10660
|
-
return constructTSTypeQueryExprName(internal.pos +
|
|
10648
|
+
return constructTSTypeQueryExprName(internal.pos + 16, internal.ast);
|
|
10661
10649
|
}
|
|
10662
10650
|
|
|
10663
10651
|
get typeArguments() {
|
|
10664
10652
|
const internal = this.#internal;
|
|
10665
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
10653
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
10666
10654
|
}
|
|
10667
10655
|
|
|
10668
10656
|
toJSON() {
|
|
@@ -10724,22 +10712,22 @@ export class TSImportType {
|
|
|
10724
10712
|
|
|
10725
10713
|
get source() {
|
|
10726
10714
|
const internal = this.#internal;
|
|
10727
|
-
return new StringLiteral(internal.pos +
|
|
10715
|
+
return new StringLiteral(internal.pos + 16, internal.ast);
|
|
10728
10716
|
}
|
|
10729
10717
|
|
|
10730
10718
|
get options() {
|
|
10731
10719
|
const internal = this.#internal;
|
|
10732
|
-
return constructOptionBoxObjectExpression(internal.pos +
|
|
10720
|
+
return constructOptionBoxObjectExpression(internal.pos + 64, internal.ast);
|
|
10733
10721
|
}
|
|
10734
10722
|
|
|
10735
10723
|
get qualifier() {
|
|
10736
10724
|
const internal = this.#internal;
|
|
10737
|
-
return constructOptionTSImportTypeQualifier(internal.pos +
|
|
10725
|
+
return constructOptionTSImportTypeQualifier(internal.pos + 72, internal.ast);
|
|
10738
10726
|
}
|
|
10739
10727
|
|
|
10740
10728
|
get typeArguments() {
|
|
10741
10729
|
const internal = this.#internal;
|
|
10742
|
-
return constructOptionBoxTSTypeParameterInstantiation(internal.pos +
|
|
10730
|
+
return constructOptionBoxTSTypeParameterInstantiation(internal.pos + 88, internal.ast);
|
|
10743
10731
|
}
|
|
10744
10732
|
|
|
10745
10733
|
toJSON() {
|
|
@@ -10799,12 +10787,12 @@ export class TSImportTypeQualifiedName {
|
|
|
10799
10787
|
|
|
10800
10788
|
get left() {
|
|
10801
10789
|
const internal = this.#internal;
|
|
10802
|
-
return constructTSImportTypeQualifier(internal.pos +
|
|
10790
|
+
return constructTSImportTypeQualifier(internal.pos + 16, internal.ast);
|
|
10803
10791
|
}
|
|
10804
10792
|
|
|
10805
10793
|
get right() {
|
|
10806
10794
|
const internal = this.#internal;
|
|
10807
|
-
return new IdentifierName(internal.pos +
|
|
10795
|
+
return new IdentifierName(internal.pos + 32, internal.ast);
|
|
10808
10796
|
}
|
|
10809
10797
|
|
|
10810
10798
|
toJSON() {
|
|
@@ -10851,17 +10839,17 @@ export class TSFunctionType {
|
|
|
10851
10839
|
|
|
10852
10840
|
get typeParameters() {
|
|
10853
10841
|
const internal = this.#internal;
|
|
10854
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
10842
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 16, internal.ast);
|
|
10855
10843
|
}
|
|
10856
10844
|
|
|
10857
10845
|
get params() {
|
|
10858
10846
|
const internal = this.#internal;
|
|
10859
|
-
return constructBoxFormalParameters(internal.pos +
|
|
10847
|
+
return constructBoxFormalParameters(internal.pos + 32, internal.ast);
|
|
10860
10848
|
}
|
|
10861
10849
|
|
|
10862
10850
|
get returnType() {
|
|
10863
10851
|
const internal = this.#internal;
|
|
10864
|
-
return constructBoxTSTypeAnnotation(internal.pos +
|
|
10852
|
+
return constructBoxTSTypeAnnotation(internal.pos + 40, internal.ast);
|
|
10865
10853
|
}
|
|
10866
10854
|
|
|
10867
10855
|
toJSON() {
|
|
@@ -10914,17 +10902,17 @@ export class TSConstructorType {
|
|
|
10914
10902
|
|
|
10915
10903
|
get typeParameters() {
|
|
10916
10904
|
const internal = this.#internal;
|
|
10917
|
-
return constructOptionBoxTSTypeParameterDeclaration(internal.pos +
|
|
10905
|
+
return constructOptionBoxTSTypeParameterDeclaration(internal.pos + 16, internal.ast);
|
|
10918
10906
|
}
|
|
10919
10907
|
|
|
10920
10908
|
get params() {
|
|
10921
10909
|
const internal = this.#internal;
|
|
10922
|
-
return constructBoxFormalParameters(internal.pos +
|
|
10910
|
+
return constructBoxFormalParameters(internal.pos + 24, internal.ast);
|
|
10923
10911
|
}
|
|
10924
10912
|
|
|
10925
10913
|
get returnType() {
|
|
10926
10914
|
const internal = this.#internal;
|
|
10927
|
-
return constructBoxTSTypeAnnotation(internal.pos +
|
|
10915
|
+
return constructBoxTSTypeAnnotation(internal.pos + 32, internal.ast);
|
|
10928
10916
|
}
|
|
10929
10917
|
|
|
10930
10918
|
toJSON() {
|
|
@@ -10973,22 +10961,22 @@ export class TSMappedType {
|
|
|
10973
10961
|
|
|
10974
10962
|
get key() {
|
|
10975
10963
|
const internal = this.#internal;
|
|
10976
|
-
return new BindingIdentifier(internal.pos +
|
|
10964
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
10977
10965
|
}
|
|
10978
10966
|
|
|
10979
10967
|
get constraint() {
|
|
10980
10968
|
const internal = this.#internal;
|
|
10981
|
-
return constructTSType(internal.pos +
|
|
10969
|
+
return constructTSType(internal.pos + 48, internal.ast);
|
|
10982
10970
|
}
|
|
10983
10971
|
|
|
10984
10972
|
get nameType() {
|
|
10985
10973
|
const internal = this.#internal;
|
|
10986
|
-
return constructOptionTSType(internal.pos +
|
|
10974
|
+
return constructOptionTSType(internal.pos + 64, internal.ast);
|
|
10987
10975
|
}
|
|
10988
10976
|
|
|
10989
10977
|
get typeAnnotation() {
|
|
10990
10978
|
const internal = this.#internal;
|
|
10991
|
-
return constructOptionTSType(internal.pos +
|
|
10979
|
+
return constructOptionTSType(internal.pos + 80, internal.ast);
|
|
10992
10980
|
}
|
|
10993
10981
|
|
|
10994
10982
|
get optional() {
|
|
@@ -11066,14 +11054,14 @@ export class TSTemplateLiteralType {
|
|
|
11066
11054
|
const internal = this.#internal,
|
|
11067
11055
|
cached = internal.$quasis;
|
|
11068
11056
|
if (cached !== void 0) return cached;
|
|
11069
|
-
return (internal.$quasis = constructVecTemplateElement(internal.pos +
|
|
11057
|
+
return (internal.$quasis = constructVecTemplateElement(internal.pos + 16, internal.ast));
|
|
11070
11058
|
}
|
|
11071
11059
|
|
|
11072
11060
|
get types() {
|
|
11073
11061
|
const internal = this.#internal,
|
|
11074
11062
|
cached = internal.$types;
|
|
11075
11063
|
if (cached !== void 0) return cached;
|
|
11076
|
-
return (internal.$types = constructVecTSType(internal.pos +
|
|
11064
|
+
return (internal.$types = constructVecTSType(internal.pos + 40, internal.ast));
|
|
11077
11065
|
}
|
|
11078
11066
|
|
|
11079
11067
|
toJSON() {
|
|
@@ -11120,12 +11108,12 @@ export class TSAsExpression {
|
|
|
11120
11108
|
|
|
11121
11109
|
get expression() {
|
|
11122
11110
|
const internal = this.#internal;
|
|
11123
|
-
return constructExpression(internal.pos +
|
|
11111
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
11124
11112
|
}
|
|
11125
11113
|
|
|
11126
11114
|
get typeAnnotation() {
|
|
11127
11115
|
const internal = this.#internal;
|
|
11128
|
-
return constructTSType(internal.pos +
|
|
11116
|
+
return constructTSType(internal.pos + 32, internal.ast);
|
|
11129
11117
|
}
|
|
11130
11118
|
|
|
11131
11119
|
toJSON() {
|
|
@@ -11172,12 +11160,12 @@ export class TSSatisfiesExpression {
|
|
|
11172
11160
|
|
|
11173
11161
|
get expression() {
|
|
11174
11162
|
const internal = this.#internal;
|
|
11175
|
-
return constructExpression(internal.pos +
|
|
11163
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
11176
11164
|
}
|
|
11177
11165
|
|
|
11178
11166
|
get typeAnnotation() {
|
|
11179
11167
|
const internal = this.#internal;
|
|
11180
|
-
return constructTSType(internal.pos +
|
|
11168
|
+
return constructTSType(internal.pos + 32, internal.ast);
|
|
11181
11169
|
}
|
|
11182
11170
|
|
|
11183
11171
|
toJSON() {
|
|
@@ -11224,12 +11212,12 @@ export class TSTypeAssertion {
|
|
|
11224
11212
|
|
|
11225
11213
|
get typeAnnotation() {
|
|
11226
11214
|
const internal = this.#internal;
|
|
11227
|
-
return constructTSType(internal.pos +
|
|
11215
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
11228
11216
|
}
|
|
11229
11217
|
|
|
11230
11218
|
get expression() {
|
|
11231
11219
|
const internal = this.#internal;
|
|
11232
|
-
return constructExpression(internal.pos +
|
|
11220
|
+
return constructExpression(internal.pos + 32, internal.ast);
|
|
11233
11221
|
}
|
|
11234
11222
|
|
|
11235
11223
|
toJSON() {
|
|
@@ -11276,17 +11264,17 @@ export class TSImportEqualsDeclaration {
|
|
|
11276
11264
|
|
|
11277
11265
|
get id() {
|
|
11278
11266
|
const internal = this.#internal;
|
|
11279
|
-
return new BindingIdentifier(internal.pos +
|
|
11267
|
+
return new BindingIdentifier(internal.pos + 16, internal.ast);
|
|
11280
11268
|
}
|
|
11281
11269
|
|
|
11282
11270
|
get moduleReference() {
|
|
11283
11271
|
const internal = this.#internal;
|
|
11284
|
-
return constructTSModuleReference(internal.pos +
|
|
11272
|
+
return constructTSModuleReference(internal.pos + 48, internal.ast);
|
|
11285
11273
|
}
|
|
11286
11274
|
|
|
11287
11275
|
get importKind() {
|
|
11288
11276
|
const internal = this.#internal;
|
|
11289
|
-
return constructImportOrExportKind(internal.pos +
|
|
11277
|
+
return constructImportOrExportKind(internal.pos + 12, internal.ast);
|
|
11290
11278
|
}
|
|
11291
11279
|
|
|
11292
11280
|
toJSON() {
|
|
@@ -11347,7 +11335,7 @@ export class TSExternalModuleReference {
|
|
|
11347
11335
|
|
|
11348
11336
|
get expression() {
|
|
11349
11337
|
const internal = this.#internal;
|
|
11350
|
-
return new StringLiteral(internal.pos +
|
|
11338
|
+
return new StringLiteral(internal.pos + 16, internal.ast);
|
|
11351
11339
|
}
|
|
11352
11340
|
|
|
11353
11341
|
toJSON() {
|
|
@@ -11393,7 +11381,7 @@ export class TSNonNullExpression {
|
|
|
11393
11381
|
|
|
11394
11382
|
get expression() {
|
|
11395
11383
|
const internal = this.#internal;
|
|
11396
|
-
return constructExpression(internal.pos +
|
|
11384
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
11397
11385
|
}
|
|
11398
11386
|
|
|
11399
11387
|
toJSON() {
|
|
@@ -11439,7 +11427,7 @@ export class Decorator {
|
|
|
11439
11427
|
|
|
11440
11428
|
get expression() {
|
|
11441
11429
|
const internal = this.#internal;
|
|
11442
|
-
return constructExpression(internal.pos +
|
|
11430
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
11443
11431
|
}
|
|
11444
11432
|
|
|
11445
11433
|
toJSON() {
|
|
@@ -11485,7 +11473,7 @@ export class TSExportAssignment {
|
|
|
11485
11473
|
|
|
11486
11474
|
get expression() {
|
|
11487
11475
|
const internal = this.#internal;
|
|
11488
|
-
return constructExpression(internal.pos +
|
|
11476
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
11489
11477
|
}
|
|
11490
11478
|
|
|
11491
11479
|
toJSON() {
|
|
@@ -11531,7 +11519,7 @@ export class TSNamespaceExportDeclaration {
|
|
|
11531
11519
|
|
|
11532
11520
|
get id() {
|
|
11533
11521
|
const internal = this.#internal;
|
|
11534
|
-
return new IdentifierName(internal.pos +
|
|
11522
|
+
return new IdentifierName(internal.pos + 16, internal.ast);
|
|
11535
11523
|
}
|
|
11536
11524
|
|
|
11537
11525
|
toJSON() {
|
|
@@ -11577,12 +11565,12 @@ export class TSInstantiationExpression {
|
|
|
11577
11565
|
|
|
11578
11566
|
get expression() {
|
|
11579
11567
|
const internal = this.#internal;
|
|
11580
|
-
return constructExpression(internal.pos +
|
|
11568
|
+
return constructExpression(internal.pos + 16, internal.ast);
|
|
11581
11569
|
}
|
|
11582
11570
|
|
|
11583
11571
|
get typeArguments() {
|
|
11584
11572
|
const internal = this.#internal;
|
|
11585
|
-
return constructBoxTSTypeParameterInstantiation(internal.pos +
|
|
11573
|
+
return constructBoxTSTypeParameterInstantiation(internal.pos + 32, internal.ast);
|
|
11586
11574
|
}
|
|
11587
11575
|
|
|
11588
11576
|
toJSON() {
|
|
@@ -11640,12 +11628,12 @@ export class JSDocNullableType {
|
|
|
11640
11628
|
|
|
11641
11629
|
get typeAnnotation() {
|
|
11642
11630
|
const internal = this.#internal;
|
|
11643
|
-
return constructTSType(internal.pos +
|
|
11631
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
11644
11632
|
}
|
|
11645
11633
|
|
|
11646
11634
|
get postfix() {
|
|
11647
11635
|
const internal = this.#internal;
|
|
11648
|
-
return constructBool(internal.pos +
|
|
11636
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
11649
11637
|
}
|
|
11650
11638
|
|
|
11651
11639
|
toJSON() {
|
|
@@ -11692,12 +11680,12 @@ export class JSDocNonNullableType {
|
|
|
11692
11680
|
|
|
11693
11681
|
get typeAnnotation() {
|
|
11694
11682
|
const internal = this.#internal;
|
|
11695
|
-
return constructTSType(internal.pos +
|
|
11683
|
+
return constructTSType(internal.pos + 16, internal.ast);
|
|
11696
11684
|
}
|
|
11697
11685
|
|
|
11698
11686
|
get postfix() {
|
|
11699
11687
|
const internal = this.#internal;
|
|
11700
|
-
return constructBool(internal.pos +
|
|
11688
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
11701
11689
|
}
|
|
11702
11690
|
|
|
11703
11691
|
toJSON() {
|
|
@@ -11814,6 +11802,89 @@ export class Comment {
|
|
|
11814
11802
|
|
|
11815
11803
|
const DebugComment = class Comment {};
|
|
11816
11804
|
|
|
11805
|
+
export class SourceType {
|
|
11806
|
+
#internal;
|
|
11807
|
+
|
|
11808
|
+
constructor(pos, ast) {
|
|
11809
|
+
if (ast?.token !== TOKEN) constructorError();
|
|
11810
|
+
|
|
11811
|
+
const { nodes } = ast;
|
|
11812
|
+
const cached = nodes.get(pos);
|
|
11813
|
+
if (cached !== void 0) return cached;
|
|
11814
|
+
|
|
11815
|
+
this.#internal = { pos, ast };
|
|
11816
|
+
nodes.set(pos, this);
|
|
11817
|
+
}
|
|
11818
|
+
|
|
11819
|
+
get sourceType() {
|
|
11820
|
+
const internal = this.#internal;
|
|
11821
|
+
return constructModuleKind(internal.pos + 1, internal.ast);
|
|
11822
|
+
}
|
|
11823
|
+
|
|
11824
|
+
toJSON() {
|
|
11825
|
+
return {
|
|
11826
|
+
sourceType: this.sourceType,
|
|
11827
|
+
};
|
|
11828
|
+
}
|
|
11829
|
+
|
|
11830
|
+
[inspectSymbol]() {
|
|
11831
|
+
return Object.setPrototypeOf(this.toJSON(), DebugSourceType.prototype);
|
|
11832
|
+
}
|
|
11833
|
+
}
|
|
11834
|
+
|
|
11835
|
+
const DebugSourceType = class SourceType {};
|
|
11836
|
+
|
|
11837
|
+
function constructModuleKind(pos, ast) {
|
|
11838
|
+
switch (ast.buffer[pos]) {
|
|
11839
|
+
case 0:
|
|
11840
|
+
return "script";
|
|
11841
|
+
case 1:
|
|
11842
|
+
return "module";
|
|
11843
|
+
case 3:
|
|
11844
|
+
return "commonjs";
|
|
11845
|
+
default:
|
|
11846
|
+
throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ModuleKind`);
|
|
11847
|
+
}
|
|
11848
|
+
}
|
|
11849
|
+
|
|
11850
|
+
export class Span {
|
|
11851
|
+
#internal;
|
|
11852
|
+
|
|
11853
|
+
constructor(pos, ast) {
|
|
11854
|
+
if (ast?.token !== TOKEN) constructorError();
|
|
11855
|
+
|
|
11856
|
+
const { nodes } = ast;
|
|
11857
|
+
const cached = nodes.get(pos);
|
|
11858
|
+
if (cached !== void 0) return cached;
|
|
11859
|
+
|
|
11860
|
+
this.#internal = { pos, ast };
|
|
11861
|
+
nodes.set(pos, this);
|
|
11862
|
+
}
|
|
11863
|
+
|
|
11864
|
+
get start() {
|
|
11865
|
+
const internal = this.#internal;
|
|
11866
|
+
return constructU32(internal.pos, internal.ast);
|
|
11867
|
+
}
|
|
11868
|
+
|
|
11869
|
+
get end() {
|
|
11870
|
+
const internal = this.#internal;
|
|
11871
|
+
return constructU32(internal.pos + 4, internal.ast);
|
|
11872
|
+
}
|
|
11873
|
+
|
|
11874
|
+
toJSON() {
|
|
11875
|
+
return {
|
|
11876
|
+
start: this.start,
|
|
11877
|
+
end: this.end,
|
|
11878
|
+
};
|
|
11879
|
+
}
|
|
11880
|
+
|
|
11881
|
+
[inspectSymbol]() {
|
|
11882
|
+
return Object.setPrototypeOf(this.toJSON(), DebugSpan.prototype);
|
|
11883
|
+
}
|
|
11884
|
+
}
|
|
11885
|
+
|
|
11886
|
+
const DebugSpan = class Span {};
|
|
11887
|
+
|
|
11817
11888
|
export class NameSpan {
|
|
11818
11889
|
#internal;
|
|
11819
11890
|
|
|
@@ -12205,89 +12276,6 @@ function constructUpdateOperator(pos, ast) {
|
|
|
12205
12276
|
}
|
|
12206
12277
|
}
|
|
12207
12278
|
|
|
12208
|
-
export class Span {
|
|
12209
|
-
#internal;
|
|
12210
|
-
|
|
12211
|
-
constructor(pos, ast) {
|
|
12212
|
-
if (ast?.token !== TOKEN) constructorError();
|
|
12213
|
-
|
|
12214
|
-
const { nodes } = ast;
|
|
12215
|
-
const cached = nodes.get(pos);
|
|
12216
|
-
if (cached !== void 0) return cached;
|
|
12217
|
-
|
|
12218
|
-
this.#internal = { pos, ast };
|
|
12219
|
-
nodes.set(pos, this);
|
|
12220
|
-
}
|
|
12221
|
-
|
|
12222
|
-
get start() {
|
|
12223
|
-
const internal = this.#internal;
|
|
12224
|
-
return constructU32(internal.pos, internal.ast);
|
|
12225
|
-
}
|
|
12226
|
-
|
|
12227
|
-
get end() {
|
|
12228
|
-
const internal = this.#internal;
|
|
12229
|
-
return constructU32(internal.pos + 4, internal.ast);
|
|
12230
|
-
}
|
|
12231
|
-
|
|
12232
|
-
toJSON() {
|
|
12233
|
-
return {
|
|
12234
|
-
start: this.start,
|
|
12235
|
-
end: this.end,
|
|
12236
|
-
};
|
|
12237
|
-
}
|
|
12238
|
-
|
|
12239
|
-
[inspectSymbol]() {
|
|
12240
|
-
return Object.setPrototypeOf(this.toJSON(), DebugSpan.prototype);
|
|
12241
|
-
}
|
|
12242
|
-
}
|
|
12243
|
-
|
|
12244
|
-
const DebugSpan = class Span {};
|
|
12245
|
-
|
|
12246
|
-
export class SourceType {
|
|
12247
|
-
#internal;
|
|
12248
|
-
|
|
12249
|
-
constructor(pos, ast) {
|
|
12250
|
-
if (ast?.token !== TOKEN) constructorError();
|
|
12251
|
-
|
|
12252
|
-
const { nodes } = ast;
|
|
12253
|
-
const cached = nodes.get(pos);
|
|
12254
|
-
if (cached !== void 0) return cached;
|
|
12255
|
-
|
|
12256
|
-
this.#internal = { pos, ast };
|
|
12257
|
-
nodes.set(pos, this);
|
|
12258
|
-
}
|
|
12259
|
-
|
|
12260
|
-
get sourceType() {
|
|
12261
|
-
const internal = this.#internal;
|
|
12262
|
-
return constructModuleKind(internal.pos + 1, internal.ast);
|
|
12263
|
-
}
|
|
12264
|
-
|
|
12265
|
-
toJSON() {
|
|
12266
|
-
return {
|
|
12267
|
-
sourceType: this.sourceType,
|
|
12268
|
-
};
|
|
12269
|
-
}
|
|
12270
|
-
|
|
12271
|
-
[inspectSymbol]() {
|
|
12272
|
-
return Object.setPrototypeOf(this.toJSON(), DebugSourceType.prototype);
|
|
12273
|
-
}
|
|
12274
|
-
}
|
|
12275
|
-
|
|
12276
|
-
const DebugSourceType = class SourceType {};
|
|
12277
|
-
|
|
12278
|
-
function constructModuleKind(pos, ast) {
|
|
12279
|
-
switch (ast.buffer[pos]) {
|
|
12280
|
-
case 0:
|
|
12281
|
-
return "script";
|
|
12282
|
-
case 1:
|
|
12283
|
-
return "module";
|
|
12284
|
-
case 3:
|
|
12285
|
-
return "commonjs";
|
|
12286
|
-
default:
|
|
12287
|
-
throw new Error(`Unexpected discriminant ${ast.buffer[pos]} for ModuleKind`);
|
|
12288
|
-
}
|
|
12289
|
-
}
|
|
12290
|
-
|
|
12291
12279
|
export class RawTransferData {
|
|
12292
12280
|
#internal;
|
|
12293
12281
|
|
|
@@ -12642,14 +12630,6 @@ export class StaticExport {
|
|
|
12642
12630
|
|
|
12643
12631
|
const DebugStaticExport = class StaticExport {};
|
|
12644
12632
|
|
|
12645
|
-
function constructU32(pos, ast) {
|
|
12646
|
-
return ast.buffer.uint32[pos >> 2];
|
|
12647
|
-
}
|
|
12648
|
-
|
|
12649
|
-
function constructU8(pos, ast) {
|
|
12650
|
-
return ast.buffer[pos];
|
|
12651
|
-
}
|
|
12652
|
-
|
|
12653
12633
|
function constructStr(pos, ast) {
|
|
12654
12634
|
const pos32 = pos >> 2,
|
|
12655
12635
|
{ buffer } = ast,
|
|
@@ -12692,7 +12672,7 @@ function constructComment(pos, ast) {
|
|
|
12692
12672
|
}
|
|
12693
12673
|
|
|
12694
12674
|
function constructOptionHashbang(pos, ast) {
|
|
12695
|
-
if (ast.buffer.uint32[(pos +
|
|
12675
|
+
if (ast.buffer.uint32[(pos + 16) >> 2] === 0 && ast.buffer.uint32[(pos + 20) >> 2] === 0)
|
|
12696
12676
|
return null;
|
|
12697
12677
|
return new Hashbang(pos, ast);
|
|
12698
12678
|
}
|
|
@@ -13146,7 +13126,7 @@ function constructOptionForStatementInit(pos, ast) {
|
|
|
13146
13126
|
}
|
|
13147
13127
|
|
|
13148
13128
|
function constructOptionLabelIdentifier(pos, ast) {
|
|
13149
|
-
if (ast.buffer.uint32[(pos +
|
|
13129
|
+
if (ast.buffer.uint32[(pos + 16) >> 2] === 0 && ast.buffer.uint32[(pos + 20) >> 2] === 0)
|
|
13150
13130
|
return null;
|
|
13151
13131
|
return new LabelIdentifier(pos, ast);
|
|
13152
13132
|
}
|
|
@@ -13176,7 +13156,7 @@ function constructOptionBoxBlockStatement(pos, ast) {
|
|
|
13176
13156
|
}
|
|
13177
13157
|
|
|
13178
13158
|
function constructOptionCatchParameter(pos, ast) {
|
|
13179
|
-
if (ast.buffer[pos +
|
|
13159
|
+
if (ast.buffer[pos + 16] === 4) return null;
|
|
13180
13160
|
return new CatchParameter(pos, ast);
|
|
13181
13161
|
}
|
|
13182
13162
|
|
|
@@ -13227,7 +13207,7 @@ function constructVecOptionBindingPattern(pos, ast) {
|
|
|
13227
13207
|
}
|
|
13228
13208
|
|
|
13229
13209
|
function constructOptionBindingIdentifier(pos, ast) {
|
|
13230
|
-
if (ast.buffer.uint32[(pos +
|
|
13210
|
+
if (ast.buffer.uint32[(pos + 16) >> 2] === 0 && ast.buffer.uint32[(pos + 20) >> 2] === 0)
|
|
13231
13211
|
return null;
|
|
13232
13212
|
return new BindingIdentifier(pos, ast);
|
|
13233
13213
|
}
|
|
@@ -13430,7 +13410,7 @@ function constructExportSpecifier(pos, ast) {
|
|
|
13430
13410
|
}
|
|
13431
13411
|
|
|
13432
13412
|
function constructOptionStringLiteral(pos, ast) {
|
|
13433
|
-
if (ast.buffer[pos +
|
|
13413
|
+
if (ast.buffer[pos + 12] === 2) return null;
|
|
13434
13414
|
return new StringLiteral(pos, ast);
|
|
13435
13415
|
}
|
|
13436
13416
|
|
|
@@ -13443,6 +13423,10 @@ function constructF64(pos, ast) {
|
|
|
13443
13423
|
return ast.buffer.float64[pos >> 3];
|
|
13444
13424
|
}
|
|
13445
13425
|
|
|
13426
|
+
function constructU8(pos, ast) {
|
|
13427
|
+
return ast.buffer[pos];
|
|
13428
|
+
}
|
|
13429
|
+
|
|
13446
13430
|
function constructBoxJSXOpeningElement(pos, ast) {
|
|
13447
13431
|
return new JSXOpeningElement(ast.buffer.uint32[pos >> 2], ast);
|
|
13448
13432
|
}
|
|
@@ -13784,10 +13768,8 @@ function constructBoxTSExternalModuleReference(pos, ast) {
|
|
|
13784
13768
|
return new TSExternalModuleReference(ast.buffer.uint32[pos >> 2], ast);
|
|
13785
13769
|
}
|
|
13786
13770
|
|
|
13787
|
-
function
|
|
13788
|
-
|
|
13789
|
-
return null;
|
|
13790
|
-
return new NameSpan(pos, ast);
|
|
13771
|
+
function constructU32(pos, ast) {
|
|
13772
|
+
return ast.buffer.uint32[pos >> 2];
|
|
13791
13773
|
}
|
|
13792
13774
|
|
|
13793
13775
|
function constructU64(pos, ast) {
|
|
@@ -13801,6 +13783,12 @@ function constructOptionU64(pos, ast) {
|
|
|
13801
13783
|
return constructU64(pos + 8, ast);
|
|
13802
13784
|
}
|
|
13803
13785
|
|
|
13786
|
+
function constructOptionNameSpan(pos, ast) {
|
|
13787
|
+
if (ast.buffer.uint32[(pos + 8) >> 2] === 0 && ast.buffer.uint32[(pos + 12) >> 2] === 0)
|
|
13788
|
+
return null;
|
|
13789
|
+
return new NameSpan(pos, ast);
|
|
13790
|
+
}
|
|
13791
|
+
|
|
13804
13792
|
function constructVecError(pos, ast) {
|
|
13805
13793
|
const { uint32 } = ast.buffer,
|
|
13806
13794
|
pos32 = pos >> 2;
|