oxc-parser 0.112.0 → 0.114.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 +22 -22
- package/src-js/bindings.js +52 -52
- package/src-js/generated/deserialize/js.js +109 -105
- package/src-js/generated/deserialize/js_range.js +111 -105
- package/src-js/generated/deserialize/ts.js +140 -136
- package/src-js/generated/deserialize/ts_range.js +142 -136
- package/src-js/generated/lazy/constructors.js +152 -116
- package/src-js/generated/lazy/walk.js +28 -28
|
@@ -36,7 +36,7 @@ export class Program {
|
|
|
36
36
|
|
|
37
37
|
get sourceType() {
|
|
38
38
|
const internal = this.#internal;
|
|
39
|
-
return new SourceType(internal.pos +
|
|
39
|
+
return new SourceType(internal.pos + 136, internal.ast);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
get hashbang() {
|
|
@@ -48,7 +48,7 @@ export class Program {
|
|
|
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 + 104, internal.ast));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
toJSON() {
|
|
@@ -668,7 +668,7 @@ 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 + 44, internal.ast);
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
get key() {
|
|
@@ -683,17 +683,17 @@ export class ObjectProperty {
|
|
|
683
683
|
|
|
684
684
|
get method() {
|
|
685
685
|
const internal = this.#internal;
|
|
686
|
-
return constructBool(internal.pos +
|
|
686
|
+
return constructBool(internal.pos + 45, 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 + 46, 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 + 47, internal.ast);
|
|
697
697
|
}
|
|
698
698
|
|
|
699
699
|
toJSON() {
|
|
@@ -973,7 +973,7 @@ export class TemplateElement {
|
|
|
973
973
|
|
|
974
974
|
get tail() {
|
|
975
975
|
const internal = this.#internal;
|
|
976
|
-
return constructBool(internal.pos +
|
|
976
|
+
return constructBool(internal.pos + 44, internal.ast);
|
|
977
977
|
}
|
|
978
978
|
|
|
979
979
|
toJSON() {
|
|
@@ -1085,7 +1085,7 @@ export class ComputedMemberExpression {
|
|
|
1085
1085
|
|
|
1086
1086
|
get optional() {
|
|
1087
1087
|
const internal = this.#internal;
|
|
1088
|
-
return constructBool(internal.pos +
|
|
1088
|
+
return constructBool(internal.pos + 44, internal.ast);
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
toJSON() {
|
|
@@ -1143,7 +1143,7 @@ export class StaticMemberExpression {
|
|
|
1143
1143
|
|
|
1144
1144
|
get optional() {
|
|
1145
1145
|
const internal = this.#internal;
|
|
1146
|
-
return constructBool(internal.pos +
|
|
1146
|
+
return constructBool(internal.pos + 60, internal.ast);
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
1149
|
toJSON() {
|
|
@@ -1201,7 +1201,7 @@ export class PrivateFieldExpression {
|
|
|
1201
1201
|
|
|
1202
1202
|
get optional() {
|
|
1203
1203
|
const internal = this.#internal;
|
|
1204
|
-
return constructBool(internal.pos +
|
|
1204
|
+
return constructBool(internal.pos + 60, internal.ast);
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
1207
|
toJSON() {
|
|
@@ -1266,7 +1266,7 @@ export class CallExpression {
|
|
|
1266
1266
|
|
|
1267
1267
|
get optional() {
|
|
1268
1268
|
const internal = this.#internal;
|
|
1269
|
-
return constructBool(internal.pos +
|
|
1269
|
+
return constructBool(internal.pos + 60, internal.ast);
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
1272
|
toJSON() {
|
|
@@ -1380,7 +1380,7 @@ export class MetaProperty {
|
|
|
1380
1380
|
|
|
1381
1381
|
get property() {
|
|
1382
1382
|
const internal = this.#internal;
|
|
1383
|
-
return new IdentifierName(internal.pos +
|
|
1383
|
+
return new IdentifierName(internal.pos + 40, internal.ast);
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
toJSON() {
|
|
@@ -1568,12 +1568,12 @@ 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 + 28, 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 + 29, internal.ast);
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
1579
|
get argument() {
|
|
@@ -1626,7 +1626,7 @@ 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 + 28, internal.ast);
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
1632
|
get argument() {
|
|
@@ -1683,7 +1683,7 @@ export class BinaryExpression {
|
|
|
1683
1683
|
|
|
1684
1684
|
get operator() {
|
|
1685
1685
|
const internal = this.#internal;
|
|
1686
|
-
return constructBinaryOperator(internal.pos +
|
|
1686
|
+
return constructBinaryOperator(internal.pos + 44, internal.ast);
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
get right() {
|
|
@@ -1741,7 +1741,7 @@ export class PrivateInExpression {
|
|
|
1741
1741
|
|
|
1742
1742
|
get right() {
|
|
1743
1743
|
const internal = this.#internal;
|
|
1744
|
-
return constructExpression(internal.pos +
|
|
1744
|
+
return constructExpression(internal.pos + 40, internal.ast);
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
toJSON() {
|
|
@@ -1793,7 +1793,7 @@ export class LogicalExpression {
|
|
|
1793
1793
|
|
|
1794
1794
|
get operator() {
|
|
1795
1795
|
const internal = this.#internal;
|
|
1796
|
-
return constructLogicalOperator(internal.pos +
|
|
1796
|
+
return constructLogicalOperator(internal.pos + 44, internal.ast);
|
|
1797
1797
|
}
|
|
1798
1798
|
|
|
1799
1799
|
get right() {
|
|
@@ -1904,7 +1904,7 @@ 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 + 44, internal.ast);
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
1910
|
get left() {
|
|
@@ -2327,7 +2327,7 @@ export class AssignmentTargetPropertyProperty {
|
|
|
2327
2327
|
|
|
2328
2328
|
get computed() {
|
|
2329
2329
|
const internal = this.#internal;
|
|
2330
|
-
return constructBool(internal.pos +
|
|
2330
|
+
return constructBool(internal.pos + 44, internal.ast);
|
|
2331
2331
|
}
|
|
2332
2332
|
|
|
2333
2333
|
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 + 36, internal.ast);
|
|
2870
2870
|
}
|
|
2871
2871
|
|
|
2872
2872
|
get declarations() {
|
|
@@ -2881,7 +2881,7 @@ export class VariableDeclaration {
|
|
|
2881
2881
|
|
|
2882
2882
|
get declare() {
|
|
2883
2883
|
const internal = this.#internal;
|
|
2884
|
-
return constructBool(internal.pos +
|
|
2884
|
+
return constructBool(internal.pos + 37, internal.ast);
|
|
2885
2885
|
}
|
|
2886
2886
|
|
|
2887
2887
|
toJSON() {
|
|
@@ -2956,7 +2956,7 @@ export class VariableDeclarator {
|
|
|
2956
2956
|
|
|
2957
2957
|
get definite() {
|
|
2958
2958
|
const internal = this.#internal;
|
|
2959
|
-
return constructBool(internal.pos +
|
|
2959
|
+
return constructBool(internal.pos + 53, internal.ast);
|
|
2960
2960
|
}
|
|
2961
2961
|
|
|
2962
2962
|
toJSON() {
|
|
@@ -3498,7 +3498,7 @@ export class ForOfStatement {
|
|
|
3498
3498
|
|
|
3499
3499
|
get await() {
|
|
3500
3500
|
const internal = this.#internal;
|
|
3501
|
-
return constructBool(internal.pos +
|
|
3501
|
+
return constructBool(internal.pos + 64, internal.ast);
|
|
3502
3502
|
}
|
|
3503
3503
|
|
|
3504
3504
|
get left() {
|
|
@@ -3865,7 +3865,7 @@ export class LabeledStatement {
|
|
|
3865
3865
|
|
|
3866
3866
|
get body() {
|
|
3867
3867
|
const internal = this.#internal;
|
|
3868
|
-
return constructStatement(internal.pos +
|
|
3868
|
+
return constructStatement(internal.pos + 40, internal.ast);
|
|
3869
3869
|
}
|
|
3870
3870
|
|
|
3871
3871
|
toJSON() {
|
|
@@ -4021,7 +4021,7 @@ export class CatchClause {
|
|
|
4021
4021
|
|
|
4022
4022
|
get body() {
|
|
4023
4023
|
const internal = this.#internal;
|
|
4024
|
-
return constructBoxBlockStatement(internal.pos +
|
|
4024
|
+
return constructBoxBlockStatement(internal.pos + 48, internal.ast);
|
|
4025
4025
|
}
|
|
4026
4026
|
|
|
4027
4027
|
toJSON() {
|
|
@@ -4055,6 +4055,16 @@ export class CatchParameter {
|
|
|
4055
4055
|
nodes.set(pos, this);
|
|
4056
4056
|
}
|
|
4057
4057
|
|
|
4058
|
+
get start() {
|
|
4059
|
+
const internal = this.#internal;
|
|
4060
|
+
return constructU32(internal.pos, internal.ast);
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
get end() {
|
|
4064
|
+
const internal = this.#internal;
|
|
4065
|
+
return constructU32(internal.pos + 4, internal.ast);
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4058
4068
|
get pattern() {
|
|
4059
4069
|
const internal = this.#internal;
|
|
4060
4070
|
return constructBindingPattern(internal.pos + 8, internal.ast);
|
|
@@ -4062,6 +4072,8 @@ export class CatchParameter {
|
|
|
4062
4072
|
|
|
4063
4073
|
toJSON() {
|
|
4064
4074
|
return {
|
|
4075
|
+
start: this.start,
|
|
4076
|
+
end: this.end,
|
|
4065
4077
|
pattern: this.pattern,
|
|
4066
4078
|
};
|
|
4067
4079
|
}
|
|
@@ -4265,12 +4277,12 @@ export class BindingProperty {
|
|
|
4265
4277
|
|
|
4266
4278
|
get shorthand() {
|
|
4267
4279
|
const internal = this.#internal;
|
|
4268
|
-
return constructBool(internal.pos +
|
|
4280
|
+
return constructBool(internal.pos + 44, internal.ast);
|
|
4269
4281
|
}
|
|
4270
4282
|
|
|
4271
4283
|
get computed() {
|
|
4272
4284
|
const internal = this.#internal;
|
|
4273
|
-
return constructBool(internal.pos +
|
|
4285
|
+
return constructBool(internal.pos + 45, internal.ast);
|
|
4274
4286
|
}
|
|
4275
4287
|
|
|
4276
4288
|
toJSON() {
|
|
@@ -4412,7 +4424,7 @@ export class Function {
|
|
|
4412
4424
|
|
|
4413
4425
|
get type() {
|
|
4414
4426
|
const internal = this.#internal;
|
|
4415
|
-
return constructFunctionType(internal.pos +
|
|
4427
|
+
return constructFunctionType(internal.pos + 88, internal.ast);
|
|
4416
4428
|
}
|
|
4417
4429
|
|
|
4418
4430
|
get id() {
|
|
@@ -4422,17 +4434,17 @@ export class Function {
|
|
|
4422
4434
|
|
|
4423
4435
|
get generator() {
|
|
4424
4436
|
const internal = this.#internal;
|
|
4425
|
-
return constructBool(internal.pos +
|
|
4437
|
+
return constructBool(internal.pos + 89, internal.ast);
|
|
4426
4438
|
}
|
|
4427
4439
|
|
|
4428
4440
|
get async() {
|
|
4429
4441
|
const internal = this.#internal;
|
|
4430
|
-
return constructBool(internal.pos +
|
|
4442
|
+
return constructBool(internal.pos + 90, internal.ast);
|
|
4431
4443
|
}
|
|
4432
4444
|
|
|
4433
4445
|
get declare() {
|
|
4434
4446
|
const internal = this.#internal;
|
|
4435
|
-
return constructBool(internal.pos +
|
|
4447
|
+
return constructBool(internal.pos + 91, internal.ast);
|
|
4436
4448
|
}
|
|
4437
4449
|
|
|
4438
4450
|
get typeParameters() {
|
|
@@ -4520,7 +4532,7 @@ export class FormalParameters {
|
|
|
4520
4532
|
|
|
4521
4533
|
get kind() {
|
|
4522
4534
|
const internal = this.#internal;
|
|
4523
|
-
return constructFormalParameterKind(internal.pos +
|
|
4535
|
+
return constructFormalParameterKind(internal.pos + 44, internal.ast);
|
|
4524
4536
|
}
|
|
4525
4537
|
|
|
4526
4538
|
get items() {
|
|
@@ -4561,6 +4573,16 @@ export class FormalParameter {
|
|
|
4561
4573
|
nodes.set(pos, this);
|
|
4562
4574
|
}
|
|
4563
4575
|
|
|
4576
|
+
get start() {
|
|
4577
|
+
const internal = this.#internal;
|
|
4578
|
+
return constructU32(internal.pos, internal.ast);
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4581
|
+
get end() {
|
|
4582
|
+
const internal = this.#internal;
|
|
4583
|
+
return constructU32(internal.pos + 4, internal.ast);
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4564
4586
|
get decorators() {
|
|
4565
4587
|
const internal = this.#internal,
|
|
4566
4588
|
cached = internal.$decorators;
|
|
@@ -4585,11 +4607,13 @@ export class FormalParameter {
|
|
|
4585
4607
|
|
|
4586
4608
|
get optional() {
|
|
4587
4609
|
const internal = this.#internal;
|
|
4588
|
-
return constructBool(internal.pos +
|
|
4610
|
+
return constructBool(internal.pos + 68, internal.ast);
|
|
4589
4611
|
}
|
|
4590
4612
|
|
|
4591
4613
|
toJSON() {
|
|
4592
4614
|
return {
|
|
4615
|
+
start: this.start,
|
|
4616
|
+
end: this.end,
|
|
4593
4617
|
decorators: this.decorators,
|
|
4594
4618
|
pattern: this.pattern,
|
|
4595
4619
|
typeAnnotation: this.typeAnnotation,
|
|
@@ -4695,12 +4719,12 @@ export class ArrowFunctionExpression {
|
|
|
4695
4719
|
|
|
4696
4720
|
get expression() {
|
|
4697
4721
|
const internal = this.#internal;
|
|
4698
|
-
return constructBool(internal.pos +
|
|
4722
|
+
return constructBool(internal.pos + 48, internal.ast);
|
|
4699
4723
|
}
|
|
4700
4724
|
|
|
4701
4725
|
get async() {
|
|
4702
4726
|
const internal = this.#internal;
|
|
4703
|
-
return constructBool(internal.pos +
|
|
4727
|
+
return constructBool(internal.pos + 49, internal.ast);
|
|
4704
4728
|
}
|
|
4705
4729
|
|
|
4706
4730
|
get typeParameters() {
|
|
@@ -4771,7 +4795,7 @@ export class YieldExpression {
|
|
|
4771
4795
|
|
|
4772
4796
|
get delegate() {
|
|
4773
4797
|
const internal = this.#internal;
|
|
4774
|
-
return constructBool(internal.pos +
|
|
4798
|
+
return constructBool(internal.pos + 28, internal.ast);
|
|
4775
4799
|
}
|
|
4776
4800
|
|
|
4777
4801
|
get argument() {
|
|
@@ -4822,7 +4846,7 @@ export class Class {
|
|
|
4822
4846
|
|
|
4823
4847
|
get type() {
|
|
4824
4848
|
const internal = this.#internal;
|
|
4825
|
-
return constructClassType(internal.pos +
|
|
4849
|
+
return constructClassType(internal.pos + 136, internal.ast);
|
|
4826
4850
|
}
|
|
4827
4851
|
|
|
4828
4852
|
get decorators() {
|
|
@@ -4866,12 +4890,12 @@ export class Class {
|
|
|
4866
4890
|
|
|
4867
4891
|
get abstract() {
|
|
4868
4892
|
const internal = this.#internal;
|
|
4869
|
-
return constructBool(internal.pos +
|
|
4893
|
+
return constructBool(internal.pos + 137, internal.ast);
|
|
4870
4894
|
}
|
|
4871
4895
|
|
|
4872
4896
|
get declare() {
|
|
4873
4897
|
const internal = this.#internal;
|
|
4874
|
-
return constructBool(internal.pos +
|
|
4898
|
+
return constructBool(internal.pos + 138, internal.ast);
|
|
4875
4899
|
}
|
|
4876
4900
|
|
|
4877
4901
|
toJSON() {
|
|
@@ -5000,7 +5024,7 @@ export class MethodDefinition {
|
|
|
5000
5024
|
|
|
5001
5025
|
get type() {
|
|
5002
5026
|
const internal = this.#internal;
|
|
5003
|
-
return constructMethodDefinitionType(internal.pos +
|
|
5027
|
+
return constructMethodDefinitionType(internal.pos + 60, internal.ast);
|
|
5004
5028
|
}
|
|
5005
5029
|
|
|
5006
5030
|
get decorators() {
|
|
@@ -5022,32 +5046,32 @@ export class MethodDefinition {
|
|
|
5022
5046
|
|
|
5023
5047
|
get kind() {
|
|
5024
5048
|
const internal = this.#internal;
|
|
5025
|
-
return constructMethodDefinitionKind(internal.pos +
|
|
5049
|
+
return constructMethodDefinitionKind(internal.pos + 61, internal.ast);
|
|
5026
5050
|
}
|
|
5027
5051
|
|
|
5028
5052
|
get computed() {
|
|
5029
5053
|
const internal = this.#internal;
|
|
5030
|
-
return constructBool(internal.pos +
|
|
5054
|
+
return constructBool(internal.pos + 62, internal.ast);
|
|
5031
5055
|
}
|
|
5032
5056
|
|
|
5033
5057
|
get static() {
|
|
5034
5058
|
const internal = this.#internal;
|
|
5035
|
-
return constructBool(internal.pos +
|
|
5059
|
+
return constructBool(internal.pos + 63, internal.ast);
|
|
5036
5060
|
}
|
|
5037
5061
|
|
|
5038
5062
|
get override() {
|
|
5039
5063
|
const internal = this.#internal;
|
|
5040
|
-
return constructBool(internal.pos +
|
|
5064
|
+
return constructBool(internal.pos + 64, internal.ast);
|
|
5041
5065
|
}
|
|
5042
5066
|
|
|
5043
5067
|
get optional() {
|
|
5044
5068
|
const internal = this.#internal;
|
|
5045
|
-
return constructBool(internal.pos +
|
|
5069
|
+
return constructBool(internal.pos + 65, internal.ast);
|
|
5046
5070
|
}
|
|
5047
5071
|
|
|
5048
5072
|
get accessibility() {
|
|
5049
5073
|
const internal = this.#internal;
|
|
5050
|
-
return constructOptionTSAccessibility(internal.pos +
|
|
5074
|
+
return constructOptionTSAccessibility(internal.pos + 66, internal.ast);
|
|
5051
5075
|
}
|
|
5052
5076
|
|
|
5053
5077
|
toJSON() {
|
|
@@ -5111,7 +5135,7 @@ export class PropertyDefinition {
|
|
|
5111
5135
|
|
|
5112
5136
|
get type() {
|
|
5113
5137
|
const internal = this.#internal;
|
|
5114
|
-
return constructPropertyDefinitionType(internal.pos +
|
|
5138
|
+
return constructPropertyDefinitionType(internal.pos + 76, internal.ast);
|
|
5115
5139
|
}
|
|
5116
5140
|
|
|
5117
5141
|
get decorators() {
|
|
@@ -5138,42 +5162,42 @@ export class PropertyDefinition {
|
|
|
5138
5162
|
|
|
5139
5163
|
get computed() {
|
|
5140
5164
|
const internal = this.#internal;
|
|
5141
|
-
return constructBool(internal.pos +
|
|
5165
|
+
return constructBool(internal.pos + 77, internal.ast);
|
|
5142
5166
|
}
|
|
5143
5167
|
|
|
5144
5168
|
get static() {
|
|
5145
5169
|
const internal = this.#internal;
|
|
5146
|
-
return constructBool(internal.pos +
|
|
5170
|
+
return constructBool(internal.pos + 78, internal.ast);
|
|
5147
5171
|
}
|
|
5148
5172
|
|
|
5149
5173
|
get declare() {
|
|
5150
5174
|
const internal = this.#internal;
|
|
5151
|
-
return constructBool(internal.pos +
|
|
5175
|
+
return constructBool(internal.pos + 79, internal.ast);
|
|
5152
5176
|
}
|
|
5153
5177
|
|
|
5154
5178
|
get override() {
|
|
5155
5179
|
const internal = this.#internal;
|
|
5156
|
-
return constructBool(internal.pos +
|
|
5180
|
+
return constructBool(internal.pos + 80, internal.ast);
|
|
5157
5181
|
}
|
|
5158
5182
|
|
|
5159
5183
|
get optional() {
|
|
5160
5184
|
const internal = this.#internal;
|
|
5161
|
-
return constructBool(internal.pos +
|
|
5185
|
+
return constructBool(internal.pos + 81, internal.ast);
|
|
5162
5186
|
}
|
|
5163
5187
|
|
|
5164
5188
|
get definite() {
|
|
5165
5189
|
const internal = this.#internal;
|
|
5166
|
-
return constructBool(internal.pos +
|
|
5190
|
+
return constructBool(internal.pos + 82, internal.ast);
|
|
5167
5191
|
}
|
|
5168
5192
|
|
|
5169
5193
|
get readonly() {
|
|
5170
5194
|
const internal = this.#internal;
|
|
5171
|
-
return constructBool(internal.pos +
|
|
5195
|
+
return constructBool(internal.pos + 83, internal.ast);
|
|
5172
5196
|
}
|
|
5173
5197
|
|
|
5174
5198
|
get accessibility() {
|
|
5175
5199
|
const internal = this.#internal;
|
|
5176
|
-
return constructOptionTSAccessibility(internal.pos +
|
|
5200
|
+
return constructOptionTSAccessibility(internal.pos + 84, internal.ast);
|
|
5177
5201
|
}
|
|
5178
5202
|
|
|
5179
5203
|
toJSON() {
|
|
@@ -5381,7 +5405,7 @@ export class AccessorProperty {
|
|
|
5381
5405
|
|
|
5382
5406
|
get type() {
|
|
5383
5407
|
const internal = this.#internal;
|
|
5384
|
-
return constructAccessorPropertyType(internal.pos +
|
|
5408
|
+
return constructAccessorPropertyType(internal.pos + 76, internal.ast);
|
|
5385
5409
|
}
|
|
5386
5410
|
|
|
5387
5411
|
get decorators() {
|
|
@@ -5408,27 +5432,27 @@ export class AccessorProperty {
|
|
|
5408
5432
|
|
|
5409
5433
|
get computed() {
|
|
5410
5434
|
const internal = this.#internal;
|
|
5411
|
-
return constructBool(internal.pos +
|
|
5435
|
+
return constructBool(internal.pos + 77, internal.ast);
|
|
5412
5436
|
}
|
|
5413
5437
|
|
|
5414
5438
|
get static() {
|
|
5415
5439
|
const internal = this.#internal;
|
|
5416
|
-
return constructBool(internal.pos +
|
|
5440
|
+
return constructBool(internal.pos + 78, internal.ast);
|
|
5417
5441
|
}
|
|
5418
5442
|
|
|
5419
5443
|
get override() {
|
|
5420
5444
|
const internal = this.#internal;
|
|
5421
|
-
return constructBool(internal.pos +
|
|
5445
|
+
return constructBool(internal.pos + 79, internal.ast);
|
|
5422
5446
|
}
|
|
5423
5447
|
|
|
5424
5448
|
get definite() {
|
|
5425
5449
|
const internal = this.#internal;
|
|
5426
|
-
return constructBool(internal.pos +
|
|
5450
|
+
return constructBool(internal.pos + 80, internal.ast);
|
|
5427
5451
|
}
|
|
5428
5452
|
|
|
5429
5453
|
get accessibility() {
|
|
5430
5454
|
const internal = this.#internal;
|
|
5431
|
-
return constructOptionTSAccessibility(internal.pos +
|
|
5455
|
+
return constructOptionTSAccessibility(internal.pos + 81, internal.ast);
|
|
5432
5456
|
}
|
|
5433
5457
|
|
|
5434
5458
|
toJSON() {
|
|
@@ -5492,7 +5516,7 @@ export class ImportExpression {
|
|
|
5492
5516
|
|
|
5493
5517
|
get phase() {
|
|
5494
5518
|
const internal = this.#internal;
|
|
5495
|
-
return constructOptionImportPhase(internal.pos +
|
|
5519
|
+
return constructOptionImportPhase(internal.pos + 44, internal.ast);
|
|
5496
5520
|
}
|
|
5497
5521
|
|
|
5498
5522
|
toJSON() {
|
|
@@ -5555,7 +5579,7 @@ export class ImportDeclaration {
|
|
|
5555
5579
|
|
|
5556
5580
|
get phase() {
|
|
5557
5581
|
const internal = this.#internal;
|
|
5558
|
-
return constructOptionImportPhase(internal.pos +
|
|
5582
|
+
return constructOptionImportPhase(internal.pos + 92, internal.ast);
|
|
5559
5583
|
}
|
|
5560
5584
|
|
|
5561
5585
|
get attributes() {
|
|
@@ -5565,7 +5589,7 @@ export class ImportDeclaration {
|
|
|
5565
5589
|
|
|
5566
5590
|
get importKind() {
|
|
5567
5591
|
const internal = this.#internal;
|
|
5568
|
-
return constructImportOrExportKind(internal.pos +
|
|
5592
|
+
return constructImportOrExportKind(internal.pos + 93, internal.ast);
|
|
5569
5593
|
}
|
|
5570
5594
|
|
|
5571
5595
|
toJSON() {
|
|
@@ -5649,7 +5673,7 @@ export class ImportSpecifier {
|
|
|
5649
5673
|
|
|
5650
5674
|
get importKind() {
|
|
5651
5675
|
const internal = this.#internal;
|
|
5652
|
-
return constructImportOrExportKind(internal.pos +
|
|
5676
|
+
return constructImportOrExportKind(internal.pos + 100, internal.ast);
|
|
5653
5677
|
}
|
|
5654
5678
|
|
|
5655
5679
|
toJSON() {
|
|
@@ -5776,6 +5800,16 @@ export class WithClause {
|
|
|
5776
5800
|
nodes.set(pos, this);
|
|
5777
5801
|
}
|
|
5778
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
|
+
|
|
5779
5813
|
get attributes() {
|
|
5780
5814
|
const internal = this.#internal,
|
|
5781
5815
|
cached = internal.$attributes;
|
|
@@ -5785,6 +5819,8 @@ export class WithClause {
|
|
|
5785
5819
|
|
|
5786
5820
|
toJSON() {
|
|
5787
5821
|
return {
|
|
5822
|
+
start: this.start,
|
|
5823
|
+
end: this.end,
|
|
5788
5824
|
attributes: this.attributes,
|
|
5789
5825
|
};
|
|
5790
5826
|
}
|
|
@@ -5903,7 +5939,7 @@ export class ExportNamedDeclaration {
|
|
|
5903
5939
|
|
|
5904
5940
|
get exportKind() {
|
|
5905
5941
|
const internal = this.#internal;
|
|
5906
|
-
return constructImportOrExportKind(internal.pos +
|
|
5942
|
+
return constructImportOrExportKind(internal.pos + 108, internal.ast);
|
|
5907
5943
|
}
|
|
5908
5944
|
|
|
5909
5945
|
get attributes() {
|
|
@@ -6019,7 +6055,7 @@ export class ExportAllDeclaration {
|
|
|
6019
6055
|
|
|
6020
6056
|
get exportKind() {
|
|
6021
6057
|
const internal = this.#internal;
|
|
6022
|
-
return constructImportOrExportKind(internal.pos +
|
|
6058
|
+
return constructImportOrExportKind(internal.pos + 124, internal.ast);
|
|
6023
6059
|
}
|
|
6024
6060
|
|
|
6025
6061
|
toJSON() {
|
|
@@ -6078,7 +6114,7 @@ export class ExportSpecifier {
|
|
|
6078
6114
|
|
|
6079
6115
|
get exportKind() {
|
|
6080
6116
|
const internal = this.#internal;
|
|
6081
|
-
return constructImportOrExportKind(internal.pos +
|
|
6117
|
+
return constructImportOrExportKind(internal.pos + 124, internal.ast);
|
|
6082
6118
|
}
|
|
6083
6119
|
|
|
6084
6120
|
toJSON() {
|
|
@@ -6247,7 +6283,7 @@ export class V8IntrinsicExpression {
|
|
|
6247
6283
|
const internal = this.#internal,
|
|
6248
6284
|
cached = internal.$arguments;
|
|
6249
6285
|
if (cached !== void 0) return cached;
|
|
6250
|
-
return (internal.$arguments = constructVecArgument(internal.pos +
|
|
6286
|
+
return (internal.$arguments = constructVecArgument(internal.pos + 40, internal.ast));
|
|
6251
6287
|
}
|
|
6252
6288
|
|
|
6253
6289
|
toJSON() {
|
|
@@ -6294,7 +6330,7 @@ export class BooleanLiteral {
|
|
|
6294
6330
|
|
|
6295
6331
|
get value() {
|
|
6296
6332
|
const internal = this.#internal;
|
|
6297
|
-
return constructBool(internal.pos +
|
|
6333
|
+
return constructBool(internal.pos + 12, internal.ast);
|
|
6298
6334
|
}
|
|
6299
6335
|
|
|
6300
6336
|
toJSON() {
|
|
@@ -6871,12 +6907,12 @@ export class JSXFragment {
|
|
|
6871
6907
|
const internal = this.#internal,
|
|
6872
6908
|
cached = internal.$children;
|
|
6873
6909
|
if (cached !== void 0) return cached;
|
|
6874
|
-
return (internal.$children = constructVecJSXChild(internal.pos +
|
|
6910
|
+
return (internal.$children = constructVecJSXChild(internal.pos + 24, internal.ast));
|
|
6875
6911
|
}
|
|
6876
6912
|
|
|
6877
6913
|
get closingFragment() {
|
|
6878
6914
|
const internal = this.#internal;
|
|
6879
|
-
return new JSXClosingFragment(internal.pos +
|
|
6915
|
+
return new JSXClosingFragment(internal.pos + 48, internal.ast);
|
|
6880
6916
|
}
|
|
6881
6917
|
|
|
6882
6918
|
toJSON() {
|
|
@@ -7026,7 +7062,7 @@ export class JSXNamespacedName {
|
|
|
7026
7062
|
|
|
7027
7063
|
get name() {
|
|
7028
7064
|
const internal = this.#internal;
|
|
7029
|
-
return new JSXIdentifier(internal.pos +
|
|
7065
|
+
return new JSXIdentifier(internal.pos + 40, internal.ast);
|
|
7030
7066
|
}
|
|
7031
7067
|
|
|
7032
7068
|
toJSON() {
|
|
@@ -7677,12 +7713,12 @@ export class TSEnumDeclaration {
|
|
|
7677
7713
|
|
|
7678
7714
|
get const() {
|
|
7679
7715
|
const internal = this.#internal;
|
|
7680
|
-
return constructBool(internal.pos +
|
|
7716
|
+
return constructBool(internal.pos + 84, internal.ast);
|
|
7681
7717
|
}
|
|
7682
7718
|
|
|
7683
7719
|
get declare() {
|
|
7684
7720
|
const internal = this.#internal;
|
|
7685
|
-
return constructBool(internal.pos +
|
|
7721
|
+
return constructBool(internal.pos + 85, internal.ast);
|
|
7686
7722
|
}
|
|
7687
7723
|
|
|
7688
7724
|
toJSON() {
|
|
@@ -8244,7 +8280,7 @@ export class TSTypeOperator {
|
|
|
8244
8280
|
|
|
8245
8281
|
get operator() {
|
|
8246
8282
|
const internal = this.#internal;
|
|
8247
|
-
return constructTSTypeOperatorOperator(internal.pos +
|
|
8283
|
+
return constructTSTypeOperatorOperator(internal.pos + 28, internal.ast);
|
|
8248
8284
|
}
|
|
8249
8285
|
|
|
8250
8286
|
get typeAnnotation() {
|
|
@@ -8460,12 +8496,12 @@ export class TSNamedTupleMember {
|
|
|
8460
8496
|
|
|
8461
8497
|
get elementType() {
|
|
8462
8498
|
const internal = this.#internal;
|
|
8463
|
-
return constructTSTupleElement(internal.pos +
|
|
8499
|
+
return constructTSTupleElement(internal.pos + 40, internal.ast);
|
|
8464
8500
|
}
|
|
8465
8501
|
|
|
8466
8502
|
get optional() {
|
|
8467
8503
|
const internal = this.#internal;
|
|
8468
|
-
return constructBool(internal.pos +
|
|
8504
|
+
return constructBool(internal.pos + 60, internal.ast);
|
|
8469
8505
|
}
|
|
8470
8506
|
|
|
8471
8507
|
toJSON() {
|
|
@@ -9430,17 +9466,17 @@ export class TSTypeParameter {
|
|
|
9430
9466
|
|
|
9431
9467
|
get in() {
|
|
9432
9468
|
const internal = this.#internal;
|
|
9433
|
-
return constructBool(internal.pos +
|
|
9469
|
+
return constructBool(internal.pos + 76, internal.ast);
|
|
9434
9470
|
}
|
|
9435
9471
|
|
|
9436
9472
|
get out() {
|
|
9437
9473
|
const internal = this.#internal;
|
|
9438
|
-
return constructBool(internal.pos +
|
|
9474
|
+
return constructBool(internal.pos + 77, internal.ast);
|
|
9439
9475
|
}
|
|
9440
9476
|
|
|
9441
9477
|
get const() {
|
|
9442
9478
|
const internal = this.#internal;
|
|
9443
|
-
return constructBool(internal.pos +
|
|
9479
|
+
return constructBool(internal.pos + 78, internal.ast);
|
|
9444
9480
|
}
|
|
9445
9481
|
|
|
9446
9482
|
toJSON() {
|
|
@@ -9554,7 +9590,7 @@ export class TSTypeAliasDeclaration {
|
|
|
9554
9590
|
|
|
9555
9591
|
get declare() {
|
|
9556
9592
|
const internal = this.#internal;
|
|
9557
|
-
return constructBool(internal.pos +
|
|
9593
|
+
return constructBool(internal.pos + 72, internal.ast);
|
|
9558
9594
|
}
|
|
9559
9595
|
|
|
9560
9596
|
toJSON() {
|
|
@@ -9690,7 +9726,7 @@ export class TSInterfaceDeclaration {
|
|
|
9690
9726
|
|
|
9691
9727
|
get declare() {
|
|
9692
9728
|
const internal = this.#internal;
|
|
9693
|
-
return constructBool(internal.pos +
|
|
9729
|
+
return constructBool(internal.pos + 88, internal.ast);
|
|
9694
9730
|
}
|
|
9695
9731
|
|
|
9696
9732
|
toJSON() {
|
|
@@ -9788,17 +9824,17 @@ export class TSPropertySignature {
|
|
|
9788
9824
|
|
|
9789
9825
|
get computed() {
|
|
9790
9826
|
const internal = this.#internal;
|
|
9791
|
-
return constructBool(internal.pos +
|
|
9827
|
+
return constructBool(internal.pos + 36, internal.ast);
|
|
9792
9828
|
}
|
|
9793
9829
|
|
|
9794
9830
|
get optional() {
|
|
9795
9831
|
const internal = this.#internal;
|
|
9796
|
-
return constructBool(internal.pos +
|
|
9832
|
+
return constructBool(internal.pos + 37, internal.ast);
|
|
9797
9833
|
}
|
|
9798
9834
|
|
|
9799
9835
|
get readonly() {
|
|
9800
9836
|
const internal = this.#internal;
|
|
9801
|
-
return constructBool(internal.pos +
|
|
9837
|
+
return constructBool(internal.pos + 38, internal.ast);
|
|
9802
9838
|
}
|
|
9803
9839
|
|
|
9804
9840
|
get key() {
|
|
@@ -9890,12 +9926,12 @@ export class TSIndexSignature {
|
|
|
9890
9926
|
|
|
9891
9927
|
get readonly() {
|
|
9892
9928
|
const internal = this.#internal;
|
|
9893
|
-
return constructBool(internal.pos +
|
|
9929
|
+
return constructBool(internal.pos + 44, internal.ast);
|
|
9894
9930
|
}
|
|
9895
9931
|
|
|
9896
9932
|
get static() {
|
|
9897
9933
|
const internal = this.#internal;
|
|
9898
|
-
return constructBool(internal.pos +
|
|
9934
|
+
return constructBool(internal.pos + 45, internal.ast);
|
|
9899
9935
|
}
|
|
9900
9936
|
|
|
9901
9937
|
toJSON() {
|
|
@@ -10020,17 +10056,17 @@ export class TSMethodSignature {
|
|
|
10020
10056
|
|
|
10021
10057
|
get computed() {
|
|
10022
10058
|
const internal = this.#internal;
|
|
10023
|
-
return constructBool(internal.pos +
|
|
10059
|
+
return constructBool(internal.pos + 64, internal.ast);
|
|
10024
10060
|
}
|
|
10025
10061
|
|
|
10026
10062
|
get optional() {
|
|
10027
10063
|
const internal = this.#internal;
|
|
10028
|
-
return constructBool(internal.pos +
|
|
10064
|
+
return constructBool(internal.pos + 65, internal.ast);
|
|
10029
10065
|
}
|
|
10030
10066
|
|
|
10031
10067
|
get kind() {
|
|
10032
10068
|
const internal = this.#internal;
|
|
10033
|
-
return constructTSMethodSignatureKind(internal.pos +
|
|
10069
|
+
return constructTSMethodSignatureKind(internal.pos + 66, internal.ast);
|
|
10034
10070
|
}
|
|
10035
10071
|
|
|
10036
10072
|
get typeParameters() {
|
|
@@ -10266,12 +10302,12 @@ export class TSTypePredicate {
|
|
|
10266
10302
|
|
|
10267
10303
|
get asserts() {
|
|
10268
10304
|
const internal = this.#internal;
|
|
10269
|
-
return constructBool(internal.pos +
|
|
10305
|
+
return constructBool(internal.pos + 44, internal.ast);
|
|
10270
10306
|
}
|
|
10271
10307
|
|
|
10272
10308
|
get typeAnnotation() {
|
|
10273
10309
|
const internal = this.#internal;
|
|
10274
|
-
return constructOptionBoxTSTypeAnnotation(internal.pos +
|
|
10310
|
+
return constructOptionBoxTSTypeAnnotation(internal.pos + 32, internal.ast);
|
|
10275
10311
|
}
|
|
10276
10312
|
|
|
10277
10313
|
toJSON() {
|
|
@@ -10340,12 +10376,12 @@ export class TSModuleDeclaration {
|
|
|
10340
10376
|
|
|
10341
10377
|
get kind() {
|
|
10342
10378
|
const internal = this.#internal;
|
|
10343
|
-
return constructTSModuleDeclarationKind(internal.pos +
|
|
10379
|
+
return constructTSModuleDeclarationKind(internal.pos + 88, internal.ast);
|
|
10344
10380
|
}
|
|
10345
10381
|
|
|
10346
10382
|
get declare() {
|
|
10347
10383
|
const internal = this.#internal;
|
|
10348
|
-
return constructBool(internal.pos +
|
|
10384
|
+
return constructBool(internal.pos + 89, internal.ast);
|
|
10349
10385
|
}
|
|
10350
10386
|
|
|
10351
10387
|
toJSON() {
|
|
@@ -10432,7 +10468,7 @@ export class TSGlobalDeclaration {
|
|
|
10432
10468
|
|
|
10433
10469
|
get declare() {
|
|
10434
10470
|
const internal = this.#internal;
|
|
10435
|
-
return constructBool(internal.pos +
|
|
10471
|
+
return constructBool(internal.pos + 88, internal.ast);
|
|
10436
10472
|
}
|
|
10437
10473
|
|
|
10438
10474
|
toJSON() {
|
|
@@ -10873,7 +10909,7 @@ export class TSConstructorType {
|
|
|
10873
10909
|
|
|
10874
10910
|
get abstract() {
|
|
10875
10911
|
const internal = this.#internal;
|
|
10876
|
-
return constructBool(internal.pos +
|
|
10912
|
+
return constructBool(internal.pos + 40, internal.ast);
|
|
10877
10913
|
}
|
|
10878
10914
|
|
|
10879
10915
|
get typeParameters() {
|
|
@@ -10957,12 +10993,12 @@ export class TSMappedType {
|
|
|
10957
10993
|
|
|
10958
10994
|
get optional() {
|
|
10959
10995
|
const internal = this.#internal;
|
|
10960
|
-
return constructOptionTSMappedTypeModifierOperator(internal.pos +
|
|
10996
|
+
return constructOptionTSMappedTypeModifierOperator(internal.pos + 96, internal.ast);
|
|
10961
10997
|
}
|
|
10962
10998
|
|
|
10963
10999
|
get readonly() {
|
|
10964
11000
|
const internal = this.#internal;
|
|
10965
|
-
return constructOptionTSMappedTypeModifierOperator(internal.pos +
|
|
11001
|
+
return constructOptionTSMappedTypeModifierOperator(internal.pos + 97, internal.ast);
|
|
10966
11002
|
}
|
|
10967
11003
|
|
|
10968
11004
|
toJSON() {
|
|
@@ -11250,7 +11286,7 @@ export class TSImportEqualsDeclaration {
|
|
|
11250
11286
|
|
|
11251
11287
|
get importKind() {
|
|
11252
11288
|
const internal = this.#internal;
|
|
11253
|
-
return constructImportOrExportKind(internal.pos +
|
|
11289
|
+
return constructImportOrExportKind(internal.pos + 60, internal.ast);
|
|
11254
11290
|
}
|
|
11255
11291
|
|
|
11256
11292
|
toJSON() {
|
|
@@ -11609,7 +11645,7 @@ export class JSDocNullableType {
|
|
|
11609
11645
|
|
|
11610
11646
|
get postfix() {
|
|
11611
11647
|
const internal = this.#internal;
|
|
11612
|
-
return constructBool(internal.pos +
|
|
11648
|
+
return constructBool(internal.pos + 28, internal.ast);
|
|
11613
11649
|
}
|
|
11614
11650
|
|
|
11615
11651
|
toJSON() {
|
|
@@ -11661,7 +11697,7 @@ export class JSDocNonNullableType {
|
|
|
11661
11697
|
|
|
11662
11698
|
get postfix() {
|
|
11663
11699
|
const internal = this.#internal;
|
|
11664
|
-
return constructBool(internal.pos +
|
|
11700
|
+
return constructBool(internal.pos + 28, internal.ast);
|
|
11665
11701
|
}
|
|
11666
11702
|
|
|
11667
11703
|
toJSON() {
|
|
@@ -12276,19 +12312,19 @@ export class RawTransferData {
|
|
|
12276
12312
|
const internal = this.#internal,
|
|
12277
12313
|
cached = internal.$comments;
|
|
12278
12314
|
if (cached !== void 0) return cached;
|
|
12279
|
-
return (internal.$comments = constructVecComment(internal.pos +
|
|
12315
|
+
return (internal.$comments = constructVecComment(internal.pos + 144, internal.ast));
|
|
12280
12316
|
}
|
|
12281
12317
|
|
|
12282
12318
|
get module() {
|
|
12283
12319
|
const internal = this.#internal;
|
|
12284
|
-
return new EcmaScriptModule(internal.pos +
|
|
12320
|
+
return new EcmaScriptModule(internal.pos + 168, internal.ast);
|
|
12285
12321
|
}
|
|
12286
12322
|
|
|
12287
12323
|
get errors() {
|
|
12288
12324
|
const internal = this.#internal,
|
|
12289
12325
|
cached = internal.$errors;
|
|
12290
12326
|
if (cached !== void 0) return cached;
|
|
12291
|
-
return (internal.$errors = constructVecError(internal.pos +
|
|
12327
|
+
return (internal.$errors = constructVecError(internal.pos + 272, internal.ast));
|
|
12292
12328
|
}
|
|
12293
12329
|
|
|
12294
12330
|
toJSON() {
|
|
@@ -12664,7 +12700,7 @@ function constructOptionHashbang(pos, ast) {
|
|
|
12664
12700
|
function constructVecDirective(pos, ast) {
|
|
12665
12701
|
const { uint32 } = ast.buffer,
|
|
12666
12702
|
pos32 = pos >> 2;
|
|
12667
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
12703
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 80, constructDirective, ast);
|
|
12668
12704
|
}
|
|
12669
12705
|
|
|
12670
12706
|
function constructDirective(pos, ast) {
|
|
@@ -12840,7 +12876,7 @@ function constructBoxV8IntrinsicExpression(pos, ast) {
|
|
|
12840
12876
|
function constructVecArrayExpressionElement(pos, ast) {
|
|
12841
12877
|
const { uint32 } = ast.buffer,
|
|
12842
12878
|
pos32 = pos >> 2;
|
|
12843
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
12879
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 24, constructArrayExpressionElement, ast);
|
|
12844
12880
|
}
|
|
12845
12881
|
|
|
12846
12882
|
function constructBoxSpreadElement(pos, ast) {
|
|
@@ -13118,7 +13154,7 @@ function constructOptionLabelIdentifier(pos, ast) {
|
|
|
13118
13154
|
function constructVecSwitchCase(pos, ast) {
|
|
13119
13155
|
const { uint32 } = ast.buffer,
|
|
13120
13156
|
pos32 = pos >> 2;
|
|
13121
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
13157
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 56, constructSwitchCase, ast);
|
|
13122
13158
|
}
|
|
13123
13159
|
|
|
13124
13160
|
function constructSwitchCase(pos, ast) {
|
|
@@ -13240,7 +13276,7 @@ function constructFormalParameter(pos, ast) {
|
|
|
13240
13276
|
function constructVecDecorator(pos, ast) {
|
|
13241
13277
|
const { uint32 } = ast.buffer,
|
|
13242
13278
|
pos32 = pos >> 2;
|
|
13243
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
13279
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 32, constructDecorator, ast);
|
|
13244
13280
|
}
|
|
13245
13281
|
|
|
13246
13282
|
function constructDecorator(pos, ast) {
|
|
@@ -13264,7 +13300,7 @@ function constructOptionTSAccessibility(pos, ast) {
|
|
|
13264
13300
|
function constructVecTSClassImplements(pos, ast) {
|
|
13265
13301
|
const { uint32 } = ast.buffer,
|
|
13266
13302
|
pos32 = pos >> 2;
|
|
13267
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
13303
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 40, constructTSClassImplements, ast);
|
|
13268
13304
|
}
|
|
13269
13305
|
|
|
13270
13306
|
function constructTSClassImplements(pos, ast) {
|
|
@@ -13371,7 +13407,7 @@ function constructBoxImportNamespaceSpecifier(pos, ast) {
|
|
|
13371
13407
|
function constructVecImportAttribute(pos, ast) {
|
|
13372
13408
|
const { uint32 } = ast.buffer,
|
|
13373
13409
|
pos32 = pos >> 2;
|
|
13374
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
13410
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 120, constructImportAttribute, ast);
|
|
13375
13411
|
}
|
|
13376
13412
|
|
|
13377
13413
|
function constructImportAttribute(pos, ast) {
|
|
@@ -13394,7 +13430,7 @@ function constructExportSpecifier(pos, ast) {
|
|
|
13394
13430
|
}
|
|
13395
13431
|
|
|
13396
13432
|
function constructOptionStringLiteral(pos, ast) {
|
|
13397
|
-
if (ast.buffer[pos +
|
|
13433
|
+
if (ast.buffer[pos + 44] === 2) return null;
|
|
13398
13434
|
return new StringLiteral(pos, ast);
|
|
13399
13435
|
}
|
|
13400
13436
|
|
|
@@ -13472,7 +13508,7 @@ function constructBoxJSXSpreadChild(pos, ast) {
|
|
|
13472
13508
|
function constructVecTSEnumMember(pos, ast) {
|
|
13473
13509
|
const { uint32 } = ast.buffer,
|
|
13474
13510
|
pos32 = pos >> 2;
|
|
13475
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
13511
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 48, constructTSEnumMember, ast);
|
|
13476
13512
|
}
|
|
13477
13513
|
|
|
13478
13514
|
function constructTSEnumMember(pos, ast) {
|
|
@@ -13669,7 +13705,7 @@ function constructTSTypeParameter(pos, ast) {
|
|
|
13669
13705
|
function constructVecTSInterfaceHeritage(pos, ast) {
|
|
13670
13706
|
const { uint32 } = ast.buffer,
|
|
13671
13707
|
pos32 = pos >> 2;
|
|
13672
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
13708
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 40, constructTSInterfaceHeritage, ast);
|
|
13673
13709
|
}
|
|
13674
13710
|
|
|
13675
13711
|
function constructTSInterfaceHeritage(pos, ast) {
|
|
@@ -13705,7 +13741,7 @@ function constructBoxTSMethodSignature(pos, ast) {
|
|
|
13705
13741
|
function constructVecTSIndexSignatureName(pos, ast) {
|
|
13706
13742
|
const { uint32 } = ast.buffer,
|
|
13707
13743
|
pos32 = pos >> 2;
|
|
13708
|
-
return new NodeArray(uint32[pos32], uint32[pos32 + 2],
|
|
13744
|
+
return new NodeArray(uint32[pos32], uint32[pos32 + 2], 40, constructTSIndexSignatureName, ast);
|
|
13709
13745
|
}
|
|
13710
13746
|
|
|
13711
13747
|
function constructTSIndexSignatureName(pos, ast) {
|