oxc-parser 0.124.0 → 0.125.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 +3 -3
- package/src-js/generated/deserialize/js.js +711 -745
- package/src-js/generated/deserialize/js_range.js +717 -752
- package/src-js/generated/deserialize/ts.js +750 -817
- package/src-js/generated/deserialize/ts_range.js +777 -848
- package/src-js/generated/lazy/constructors.js +661 -667
- package/src-js/generated/lazy/walk.js +261 -261
- package/src-js/raw-transfer/common.js +1 -1
- package/src-js/raw-transfer/eager.js +21 -16
- package/src-js/raw-transfer/lazy.js +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer.rs`.
|
|
3
3
|
|
|
4
4
|
let uint8,
|
|
5
|
-
|
|
5
|
+
int32,
|
|
6
6
|
float64,
|
|
7
7
|
sourceText,
|
|
8
8
|
sourceTextLatin,
|
|
@@ -21,7 +21,7 @@ export function deserialize(buffer, sourceText, sourceByteLen) {
|
|
|
21
21
|
|
|
22
22
|
function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
|
|
23
23
|
uint8 = buffer;
|
|
24
|
-
|
|
24
|
+
int32 = buffer.int32;
|
|
25
25
|
float64 = buffer.float64;
|
|
26
26
|
sourceText = sourceTextInput;
|
|
27
27
|
if (sourceText.length === sourceByteLen) {
|
|
@@ -33,19 +33,19 @@ function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
|
|
|
33
33
|
firstNonAsciiPos = i;
|
|
34
34
|
sourceTextLatin = latin1Slice.call(uint8, 0, sourceByteLen);
|
|
35
35
|
}
|
|
36
|
-
let data = deserialize(
|
|
36
|
+
let data = deserialize(int32[536870900]);
|
|
37
37
|
resetBuffer();
|
|
38
38
|
return data;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export function resetBuffer() {
|
|
42
42
|
// Clear buffer and source text strings to allow them to be garbage collected
|
|
43
|
-
uint8 =
|
|
43
|
+
uint8 = int32 = float64 = sourceText = sourceTextLatin = void 0;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
function deserializeProgram(pos) {
|
|
47
|
-
let start =
|
|
48
|
-
end =
|
|
47
|
+
let start = deserializeI32(pos),
|
|
48
|
+
end = deserializeI32(pos + 4),
|
|
49
49
|
program = {
|
|
50
50
|
type: "Program",
|
|
51
51
|
body: null,
|
|
@@ -156,8 +156,8 @@ function deserializeIdentifierName(pos) {
|
|
|
156
156
|
return {
|
|
157
157
|
type: "Identifier",
|
|
158
158
|
name: deserializeStr(pos + 16),
|
|
159
|
-
start:
|
|
160
|
-
end:
|
|
159
|
+
start: deserializeI32(pos),
|
|
160
|
+
end: deserializeI32(pos + 4),
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -165,8 +165,8 @@ function deserializeIdentifierReference(pos) {
|
|
|
165
165
|
return {
|
|
166
166
|
type: "Identifier",
|
|
167
167
|
name: deserializeStr(pos + 16),
|
|
168
|
-
start:
|
|
169
|
-
end:
|
|
168
|
+
start: deserializeI32(pos),
|
|
169
|
+
end: deserializeI32(pos + 4),
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -174,8 +174,8 @@ function deserializeBindingIdentifier(pos) {
|
|
|
174
174
|
return {
|
|
175
175
|
type: "Identifier",
|
|
176
176
|
name: deserializeStr(pos + 16),
|
|
177
|
-
start:
|
|
178
|
-
end:
|
|
177
|
+
start: deserializeI32(pos),
|
|
178
|
+
end: deserializeI32(pos + 4),
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -183,16 +183,16 @@ function deserializeLabelIdentifier(pos) {
|
|
|
183
183
|
return {
|
|
184
184
|
type: "Identifier",
|
|
185
185
|
name: deserializeStr(pos + 16),
|
|
186
|
-
start:
|
|
187
|
-
end:
|
|
186
|
+
start: deserializeI32(pos),
|
|
187
|
+
end: deserializeI32(pos + 4),
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
function deserializeThisExpression(pos) {
|
|
192
192
|
return {
|
|
193
193
|
type: "ThisExpression",
|
|
194
|
-
start:
|
|
195
|
-
end:
|
|
194
|
+
start: deserializeI32(pos),
|
|
195
|
+
end: deserializeI32(pos + 4),
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
|
|
@@ -200,8 +200,8 @@ function deserializeArrayExpression(pos) {
|
|
|
200
200
|
let node = {
|
|
201
201
|
type: "ArrayExpression",
|
|
202
202
|
elements: null,
|
|
203
|
-
start:
|
|
204
|
-
end:
|
|
203
|
+
start: deserializeI32(pos),
|
|
204
|
+
end: deserializeI32(pos + 4),
|
|
205
205
|
};
|
|
206
206
|
node.elements = deserializeVecArrayExpressionElement(pos + 16);
|
|
207
207
|
return node;
|
|
@@ -312,8 +312,8 @@ function deserializeObjectExpression(pos) {
|
|
|
312
312
|
let node = {
|
|
313
313
|
type: "ObjectExpression",
|
|
314
314
|
properties: null,
|
|
315
|
-
start:
|
|
316
|
-
end:
|
|
315
|
+
start: deserializeI32(pos),
|
|
316
|
+
end: deserializeI32(pos + 4),
|
|
317
317
|
};
|
|
318
318
|
node.properties = deserializeVecObjectPropertyKind(pos + 16);
|
|
319
319
|
return node;
|
|
@@ -339,8 +339,8 @@ function deserializeObjectProperty(pos) {
|
|
|
339
339
|
method: deserializeBool(pos + 13),
|
|
340
340
|
shorthand: deserializeBool(pos + 14),
|
|
341
341
|
computed: deserializeBool(pos + 15),
|
|
342
|
-
start:
|
|
343
|
-
end:
|
|
342
|
+
start: deserializeI32(pos),
|
|
343
|
+
end: deserializeI32(pos + 4),
|
|
344
344
|
};
|
|
345
345
|
node.key = deserializePropertyKey(pos + 16);
|
|
346
346
|
node.value = deserializeExpression(pos + 32);
|
|
@@ -462,8 +462,8 @@ function deserializeTemplateLiteral(pos) {
|
|
|
462
462
|
type: "TemplateLiteral",
|
|
463
463
|
quasis: null,
|
|
464
464
|
expressions: null,
|
|
465
|
-
start:
|
|
466
|
-
end:
|
|
465
|
+
start: deserializeI32(pos),
|
|
466
|
+
end: deserializeI32(pos + 4),
|
|
467
467
|
};
|
|
468
468
|
node.quasis = deserializeVecTemplateElement(pos + 16);
|
|
469
469
|
node.expressions = deserializeVecExpression(pos + 40);
|
|
@@ -475,8 +475,8 @@ function deserializeTaggedTemplateExpression(pos) {
|
|
|
475
475
|
type: "TaggedTemplateExpression",
|
|
476
476
|
tag: null,
|
|
477
477
|
quasi: null,
|
|
478
|
-
start:
|
|
479
|
-
end:
|
|
478
|
+
start: deserializeI32(pos),
|
|
479
|
+
end: deserializeI32(pos + 4),
|
|
480
480
|
};
|
|
481
481
|
node.tag = deserializeExpression(pos + 16);
|
|
482
482
|
node.quasi = deserializeTemplateLiteral(pos + 40);
|
|
@@ -485,8 +485,8 @@ function deserializeTaggedTemplateExpression(pos) {
|
|
|
485
485
|
|
|
486
486
|
function deserializeTemplateElement(pos) {
|
|
487
487
|
let tail = deserializeBool(pos + 12),
|
|
488
|
-
start =
|
|
489
|
-
end =
|
|
488
|
+
start = deserializeI32(pos),
|
|
489
|
+
end = deserializeI32(pos + 4),
|
|
490
490
|
value = deserializeTemplateElementValue(pos + 16);
|
|
491
491
|
value.cooked !== null &&
|
|
492
492
|
deserializeBool(pos + 13) &&
|
|
@@ -515,13 +515,12 @@ function deserializeComputedMemberExpression(pos) {
|
|
|
515
515
|
object: null,
|
|
516
516
|
property: null,
|
|
517
517
|
optional: deserializeBool(pos + 12),
|
|
518
|
-
computed:
|
|
519
|
-
start:
|
|
520
|
-
end:
|
|
518
|
+
computed: true,
|
|
519
|
+
start: deserializeI32(pos),
|
|
520
|
+
end: deserializeI32(pos + 4),
|
|
521
521
|
};
|
|
522
522
|
node.object = deserializeExpression(pos + 16);
|
|
523
523
|
node.property = deserializeExpression(pos + 32);
|
|
524
|
-
node.computed = true;
|
|
525
524
|
return node;
|
|
526
525
|
}
|
|
527
526
|
|
|
@@ -531,13 +530,12 @@ function deserializeStaticMemberExpression(pos) {
|
|
|
531
530
|
object: null,
|
|
532
531
|
property: null,
|
|
533
532
|
optional: deserializeBool(pos + 12),
|
|
534
|
-
computed:
|
|
535
|
-
start:
|
|
536
|
-
end:
|
|
533
|
+
computed: false,
|
|
534
|
+
start: deserializeI32(pos),
|
|
535
|
+
end: deserializeI32(pos + 4),
|
|
537
536
|
};
|
|
538
537
|
node.object = deserializeExpression(pos + 16);
|
|
539
538
|
node.property = deserializeIdentifierName(pos + 32);
|
|
540
|
-
node.computed = false;
|
|
541
539
|
return node;
|
|
542
540
|
}
|
|
543
541
|
|
|
@@ -547,13 +545,12 @@ function deserializePrivateFieldExpression(pos) {
|
|
|
547
545
|
object: null,
|
|
548
546
|
property: null,
|
|
549
547
|
optional: deserializeBool(pos + 12),
|
|
550
|
-
computed:
|
|
551
|
-
start:
|
|
552
|
-
end:
|
|
548
|
+
computed: false,
|
|
549
|
+
start: deserializeI32(pos),
|
|
550
|
+
end: deserializeI32(pos + 4),
|
|
553
551
|
};
|
|
554
552
|
node.object = deserializeExpression(pos + 16);
|
|
555
553
|
node.property = deserializePrivateIdentifier(pos + 32);
|
|
556
|
-
node.computed = false;
|
|
557
554
|
return node;
|
|
558
555
|
}
|
|
559
556
|
|
|
@@ -563,8 +560,8 @@ function deserializeCallExpression(pos) {
|
|
|
563
560
|
callee: null,
|
|
564
561
|
arguments: null,
|
|
565
562
|
optional: deserializeBool(pos + 12),
|
|
566
|
-
start:
|
|
567
|
-
end:
|
|
563
|
+
start: deserializeI32(pos),
|
|
564
|
+
end: deserializeI32(pos + 4),
|
|
568
565
|
};
|
|
569
566
|
node.callee = deserializeExpression(pos + 16);
|
|
570
567
|
node.arguments = deserializeVecArgument(pos + 40);
|
|
@@ -576,8 +573,8 @@ function deserializeNewExpression(pos) {
|
|
|
576
573
|
type: "NewExpression",
|
|
577
574
|
callee: null,
|
|
578
575
|
arguments: null,
|
|
579
|
-
start:
|
|
580
|
-
end:
|
|
576
|
+
start: deserializeI32(pos),
|
|
577
|
+
end: deserializeI32(pos + 4),
|
|
581
578
|
};
|
|
582
579
|
node.callee = deserializeExpression(pos + 16);
|
|
583
580
|
node.arguments = deserializeVecArgument(pos + 40);
|
|
@@ -589,8 +586,8 @@ function deserializeMetaProperty(pos) {
|
|
|
589
586
|
type: "MetaProperty",
|
|
590
587
|
meta: null,
|
|
591
588
|
property: null,
|
|
592
|
-
start:
|
|
593
|
-
end:
|
|
589
|
+
start: deserializeI32(pos),
|
|
590
|
+
end: deserializeI32(pos + 4),
|
|
594
591
|
};
|
|
595
592
|
node.meta = deserializeIdentifierName(pos + 16);
|
|
596
593
|
node.property = deserializeIdentifierName(pos + 48);
|
|
@@ -601,8 +598,8 @@ function deserializeSpreadElement(pos) {
|
|
|
601
598
|
let node = {
|
|
602
599
|
type: "SpreadElement",
|
|
603
600
|
argument: null,
|
|
604
|
-
start:
|
|
605
|
-
end:
|
|
601
|
+
start: deserializeI32(pos),
|
|
602
|
+
end: deserializeI32(pos + 4),
|
|
606
603
|
};
|
|
607
604
|
node.argument = deserializeExpression(pos + 16);
|
|
608
605
|
return node;
|
|
@@ -709,8 +706,8 @@ function deserializeUpdateExpression(pos) {
|
|
|
709
706
|
operator: deserializeUpdateOperator(pos + 12),
|
|
710
707
|
prefix: deserializeBool(pos + 13),
|
|
711
708
|
argument: null,
|
|
712
|
-
start:
|
|
713
|
-
end:
|
|
709
|
+
start: deserializeI32(pos),
|
|
710
|
+
end: deserializeI32(pos + 4),
|
|
714
711
|
};
|
|
715
712
|
node.argument = deserializeSimpleAssignmentTarget(pos + 16);
|
|
716
713
|
return node;
|
|
@@ -721,12 +718,11 @@ function deserializeUnaryExpression(pos) {
|
|
|
721
718
|
type: "UnaryExpression",
|
|
722
719
|
operator: deserializeUnaryOperator(pos + 12),
|
|
723
720
|
argument: null,
|
|
724
|
-
prefix:
|
|
725
|
-
start:
|
|
726
|
-
end:
|
|
721
|
+
prefix: true,
|
|
722
|
+
start: deserializeI32(pos),
|
|
723
|
+
end: deserializeI32(pos + 4),
|
|
727
724
|
};
|
|
728
725
|
node.argument = deserializeExpression(pos + 16);
|
|
729
|
-
node.prefix = true;
|
|
730
726
|
return node;
|
|
731
727
|
}
|
|
732
728
|
|
|
@@ -736,8 +732,8 @@ function deserializeBinaryExpression(pos) {
|
|
|
736
732
|
left: null,
|
|
737
733
|
operator: deserializeBinaryOperator(pos + 12),
|
|
738
734
|
right: null,
|
|
739
|
-
start:
|
|
740
|
-
end:
|
|
735
|
+
start: deserializeI32(pos),
|
|
736
|
+
end: deserializeI32(pos + 4),
|
|
741
737
|
};
|
|
742
738
|
node.left = deserializeExpression(pos + 16);
|
|
743
739
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -748,13 +744,12 @@ function deserializePrivateInExpression(pos) {
|
|
|
748
744
|
let node = {
|
|
749
745
|
type: "BinaryExpression",
|
|
750
746
|
left: null,
|
|
751
|
-
operator:
|
|
747
|
+
operator: "in",
|
|
752
748
|
right: null,
|
|
753
|
-
start:
|
|
754
|
-
end:
|
|
749
|
+
start: deserializeI32(pos),
|
|
750
|
+
end: deserializeI32(pos + 4),
|
|
755
751
|
};
|
|
756
752
|
node.left = deserializePrivateIdentifier(pos + 16);
|
|
757
|
-
node.operator = "in";
|
|
758
753
|
node.right = deserializeExpression(pos + 48);
|
|
759
754
|
return node;
|
|
760
755
|
}
|
|
@@ -765,8 +760,8 @@ function deserializeLogicalExpression(pos) {
|
|
|
765
760
|
left: null,
|
|
766
761
|
operator: deserializeLogicalOperator(pos + 12),
|
|
767
762
|
right: null,
|
|
768
|
-
start:
|
|
769
|
-
end:
|
|
763
|
+
start: deserializeI32(pos),
|
|
764
|
+
end: deserializeI32(pos + 4),
|
|
770
765
|
};
|
|
771
766
|
node.left = deserializeExpression(pos + 16);
|
|
772
767
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -779,8 +774,8 @@ function deserializeConditionalExpression(pos) {
|
|
|
779
774
|
test: null,
|
|
780
775
|
consequent: null,
|
|
781
776
|
alternate: null,
|
|
782
|
-
start:
|
|
783
|
-
end:
|
|
777
|
+
start: deserializeI32(pos),
|
|
778
|
+
end: deserializeI32(pos + 4),
|
|
784
779
|
};
|
|
785
780
|
node.test = deserializeExpression(pos + 16);
|
|
786
781
|
node.consequent = deserializeExpression(pos + 32);
|
|
@@ -794,8 +789,8 @@ function deserializeAssignmentExpression(pos) {
|
|
|
794
789
|
operator: deserializeAssignmentOperator(pos + 12),
|
|
795
790
|
left: null,
|
|
796
791
|
right: null,
|
|
797
|
-
start:
|
|
798
|
-
end:
|
|
792
|
+
start: deserializeI32(pos),
|
|
793
|
+
end: deserializeI32(pos + 4),
|
|
799
794
|
};
|
|
800
795
|
node.left = deserializeAssignmentTarget(pos + 16);
|
|
801
796
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -856,8 +851,8 @@ function deserializeArrayAssignmentTarget(pos) {
|
|
|
856
851
|
let node = {
|
|
857
852
|
type: "ArrayPattern",
|
|
858
853
|
elements: null,
|
|
859
|
-
start:
|
|
860
|
-
end:
|
|
854
|
+
start: deserializeI32(pos),
|
|
855
|
+
end: deserializeI32(pos + 4),
|
|
861
856
|
},
|
|
862
857
|
elements = deserializeVecOptionAssignmentTargetMaybeDefault(pos + 16),
|
|
863
858
|
rest = deserializeOptionBoxAssignmentTargetRest(pos + 40);
|
|
@@ -870,8 +865,8 @@ function deserializeObjectAssignmentTarget(pos) {
|
|
|
870
865
|
let node = {
|
|
871
866
|
type: "ObjectPattern",
|
|
872
867
|
properties: null,
|
|
873
|
-
start:
|
|
874
|
-
end:
|
|
868
|
+
start: deserializeI32(pos),
|
|
869
|
+
end: deserializeI32(pos + 4),
|
|
875
870
|
},
|
|
876
871
|
properties = deserializeVecAssignmentTargetProperty(pos + 16),
|
|
877
872
|
rest = deserializeOptionBoxAssignmentTargetRest(pos + 40);
|
|
@@ -884,8 +879,8 @@ function deserializeAssignmentTargetRest(pos) {
|
|
|
884
879
|
let node = {
|
|
885
880
|
type: "RestElement",
|
|
886
881
|
argument: null,
|
|
887
|
-
start:
|
|
888
|
-
end:
|
|
882
|
+
start: deserializeI32(pos),
|
|
883
|
+
end: deserializeI32(pos + 4),
|
|
889
884
|
};
|
|
890
885
|
node.argument = deserializeAssignmentTarget(pos + 16);
|
|
891
886
|
return node;
|
|
@@ -925,8 +920,8 @@ function deserializeAssignmentTargetWithDefault(pos) {
|
|
|
925
920
|
type: "AssignmentPattern",
|
|
926
921
|
left: null,
|
|
927
922
|
right: null,
|
|
928
|
-
start:
|
|
929
|
-
end:
|
|
923
|
+
start: deserializeI32(pos),
|
|
924
|
+
end: deserializeI32(pos + 4),
|
|
930
925
|
};
|
|
931
926
|
node.left = deserializeAssignmentTarget(pos + 16);
|
|
932
927
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -945,16 +940,16 @@ function deserializeAssignmentTargetProperty(pos) {
|
|
|
945
940
|
}
|
|
946
941
|
|
|
947
942
|
function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
948
|
-
let start =
|
|
949
|
-
end =
|
|
943
|
+
let start = deserializeI32(pos),
|
|
944
|
+
end = deserializeI32(pos + 4),
|
|
950
945
|
node = {
|
|
951
946
|
type: "Property",
|
|
952
|
-
kind:
|
|
947
|
+
kind: "init",
|
|
953
948
|
key: null,
|
|
954
949
|
value: null,
|
|
955
|
-
method:
|
|
956
|
-
shorthand:
|
|
957
|
-
computed:
|
|
950
|
+
method: false,
|
|
951
|
+
shorthand: true,
|
|
952
|
+
computed: false,
|
|
958
953
|
start,
|
|
959
954
|
end,
|
|
960
955
|
},
|
|
@@ -974,32 +969,25 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
974
969
|
start,
|
|
975
970
|
end,
|
|
976
971
|
});
|
|
977
|
-
node.kind = "init";
|
|
978
972
|
node.key = key;
|
|
979
973
|
node.value = value;
|
|
980
|
-
node.method = false;
|
|
981
|
-
node.shorthand = true;
|
|
982
|
-
node.computed = false;
|
|
983
974
|
return node;
|
|
984
975
|
}
|
|
985
976
|
|
|
986
977
|
function deserializeAssignmentTargetPropertyProperty(pos) {
|
|
987
978
|
let node = {
|
|
988
979
|
type: "Property",
|
|
989
|
-
kind:
|
|
980
|
+
kind: "init",
|
|
990
981
|
key: null,
|
|
991
982
|
value: null,
|
|
992
|
-
method:
|
|
993
|
-
shorthand:
|
|
983
|
+
method: false,
|
|
984
|
+
shorthand: false,
|
|
994
985
|
computed: deserializeBool(pos + 12),
|
|
995
|
-
start:
|
|
996
|
-
end:
|
|
986
|
+
start: deserializeI32(pos),
|
|
987
|
+
end: deserializeI32(pos + 4),
|
|
997
988
|
};
|
|
998
|
-
node.kind = "init";
|
|
999
989
|
node.key = deserializePropertyKey(pos + 16);
|
|
1000
990
|
node.value = deserializeAssignmentTargetMaybeDefault(pos + 32);
|
|
1001
|
-
node.method = false;
|
|
1002
|
-
node.shorthand = false;
|
|
1003
991
|
return node;
|
|
1004
992
|
}
|
|
1005
993
|
|
|
@@ -1007,8 +995,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1007
995
|
let node = {
|
|
1008
996
|
type: "SequenceExpression",
|
|
1009
997
|
expressions: null,
|
|
1010
|
-
start:
|
|
1011
|
-
end:
|
|
998
|
+
start: deserializeI32(pos),
|
|
999
|
+
end: deserializeI32(pos + 4),
|
|
1012
1000
|
};
|
|
1013
1001
|
node.expressions = deserializeVecExpression(pos + 16);
|
|
1014
1002
|
return node;
|
|
@@ -1017,8 +1005,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1017
1005
|
function deserializeSuper(pos) {
|
|
1018
1006
|
return {
|
|
1019
1007
|
type: "Super",
|
|
1020
|
-
start:
|
|
1021
|
-
end:
|
|
1008
|
+
start: deserializeI32(pos),
|
|
1009
|
+
end: deserializeI32(pos + 4),
|
|
1022
1010
|
};
|
|
1023
1011
|
}
|
|
1024
1012
|
|
|
@@ -1026,8 +1014,8 @@ function deserializeAwaitExpression(pos) {
|
|
|
1026
1014
|
let node = {
|
|
1027
1015
|
type: "AwaitExpression",
|
|
1028
1016
|
argument: null,
|
|
1029
|
-
start:
|
|
1030
|
-
end:
|
|
1017
|
+
start: deserializeI32(pos),
|
|
1018
|
+
end: deserializeI32(pos + 4),
|
|
1031
1019
|
};
|
|
1032
1020
|
node.argument = deserializeExpression(pos + 16);
|
|
1033
1021
|
return node;
|
|
@@ -1037,8 +1025,8 @@ function deserializeChainExpression(pos) {
|
|
|
1037
1025
|
let node = {
|
|
1038
1026
|
type: "ChainExpression",
|
|
1039
1027
|
expression: null,
|
|
1040
|
-
start:
|
|
1041
|
-
end:
|
|
1028
|
+
start: deserializeI32(pos),
|
|
1029
|
+
end: deserializeI32(pos + 4),
|
|
1042
1030
|
};
|
|
1043
1031
|
node.expression = deserializeChainElement(pos + 16);
|
|
1044
1032
|
return node;
|
|
@@ -1066,8 +1054,8 @@ function deserializeParenthesizedExpression(pos) {
|
|
|
1066
1054
|
node = {
|
|
1067
1055
|
type: "ParenthesizedExpression",
|
|
1068
1056
|
expression: null,
|
|
1069
|
-
start:
|
|
1070
|
-
end:
|
|
1057
|
+
start: deserializeI32(pos),
|
|
1058
|
+
end: deserializeI32(pos + 4),
|
|
1071
1059
|
};
|
|
1072
1060
|
node.expression = deserializeExpression(pos + 16);
|
|
1073
1061
|
return node;
|
|
@@ -1151,8 +1139,8 @@ function deserializeDirective(pos) {
|
|
|
1151
1139
|
type: "ExpressionStatement",
|
|
1152
1140
|
expression: null,
|
|
1153
1141
|
directive: deserializeStr(pos + 64),
|
|
1154
|
-
start:
|
|
1155
|
-
end:
|
|
1142
|
+
start: deserializeI32(pos),
|
|
1143
|
+
end: deserializeI32(pos + 4),
|
|
1156
1144
|
};
|
|
1157
1145
|
node.expression = deserializeStringLiteral(pos + 16);
|
|
1158
1146
|
return node;
|
|
@@ -1162,8 +1150,8 @@ function deserializeHashbang(pos) {
|
|
|
1162
1150
|
return {
|
|
1163
1151
|
type: "Hashbang",
|
|
1164
1152
|
value: deserializeStr(pos + 16),
|
|
1165
|
-
start:
|
|
1166
|
-
end:
|
|
1153
|
+
start: deserializeI32(pos),
|
|
1154
|
+
end: deserializeI32(pos + 4),
|
|
1167
1155
|
};
|
|
1168
1156
|
}
|
|
1169
1157
|
|
|
@@ -1171,8 +1159,8 @@ function deserializeBlockStatement(pos) {
|
|
|
1171
1159
|
let node = {
|
|
1172
1160
|
type: "BlockStatement",
|
|
1173
1161
|
body: null,
|
|
1174
|
-
start:
|
|
1175
|
-
end:
|
|
1162
|
+
start: deserializeI32(pos),
|
|
1163
|
+
end: deserializeI32(pos + 4),
|
|
1176
1164
|
};
|
|
1177
1165
|
node.body = deserializeVecStatement(pos + 16);
|
|
1178
1166
|
return node;
|
|
@@ -1208,8 +1196,8 @@ function deserializeVariableDeclaration(pos) {
|
|
|
1208
1196
|
type: "VariableDeclaration",
|
|
1209
1197
|
kind: deserializeVariableDeclarationKind(pos + 12),
|
|
1210
1198
|
declarations: null,
|
|
1211
|
-
start:
|
|
1212
|
-
end:
|
|
1199
|
+
start: deserializeI32(pos),
|
|
1200
|
+
end: deserializeI32(pos + 4),
|
|
1213
1201
|
};
|
|
1214
1202
|
node.declarations = deserializeVecVariableDeclarator(pos + 16);
|
|
1215
1203
|
return node;
|
|
@@ -1237,8 +1225,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1237
1225
|
type: "VariableDeclarator",
|
|
1238
1226
|
id: null,
|
|
1239
1227
|
init: null,
|
|
1240
|
-
start:
|
|
1241
|
-
end:
|
|
1228
|
+
start: deserializeI32(pos),
|
|
1229
|
+
end: deserializeI32(pos + 4),
|
|
1242
1230
|
};
|
|
1243
1231
|
node.id = deserializeBindingPattern(pos + 16);
|
|
1244
1232
|
node.init = deserializeOptionExpression(pos + 40);
|
|
@@ -1248,8 +1236,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1248
1236
|
function deserializeEmptyStatement(pos) {
|
|
1249
1237
|
return {
|
|
1250
1238
|
type: "EmptyStatement",
|
|
1251
|
-
start:
|
|
1252
|
-
end:
|
|
1239
|
+
start: deserializeI32(pos),
|
|
1240
|
+
end: deserializeI32(pos + 4),
|
|
1253
1241
|
};
|
|
1254
1242
|
}
|
|
1255
1243
|
|
|
@@ -1257,8 +1245,8 @@ function deserializeExpressionStatement(pos) {
|
|
|
1257
1245
|
let node = {
|
|
1258
1246
|
type: "ExpressionStatement",
|
|
1259
1247
|
expression: null,
|
|
1260
|
-
start:
|
|
1261
|
-
end:
|
|
1248
|
+
start: deserializeI32(pos),
|
|
1249
|
+
end: deserializeI32(pos + 4),
|
|
1262
1250
|
};
|
|
1263
1251
|
node.expression = deserializeExpression(pos + 16);
|
|
1264
1252
|
return node;
|
|
@@ -1270,8 +1258,8 @@ function deserializeIfStatement(pos) {
|
|
|
1270
1258
|
test: null,
|
|
1271
1259
|
consequent: null,
|
|
1272
1260
|
alternate: null,
|
|
1273
|
-
start:
|
|
1274
|
-
end:
|
|
1261
|
+
start: deserializeI32(pos),
|
|
1262
|
+
end: deserializeI32(pos + 4),
|
|
1275
1263
|
};
|
|
1276
1264
|
node.test = deserializeExpression(pos + 16);
|
|
1277
1265
|
node.consequent = deserializeStatement(pos + 32);
|
|
@@ -1284,8 +1272,8 @@ function deserializeDoWhileStatement(pos) {
|
|
|
1284
1272
|
type: "DoWhileStatement",
|
|
1285
1273
|
body: null,
|
|
1286
1274
|
test: null,
|
|
1287
|
-
start:
|
|
1288
|
-
end:
|
|
1275
|
+
start: deserializeI32(pos),
|
|
1276
|
+
end: deserializeI32(pos + 4),
|
|
1289
1277
|
};
|
|
1290
1278
|
node.body = deserializeStatement(pos + 16);
|
|
1291
1279
|
node.test = deserializeExpression(pos + 32);
|
|
@@ -1297,8 +1285,8 @@ function deserializeWhileStatement(pos) {
|
|
|
1297
1285
|
type: "WhileStatement",
|
|
1298
1286
|
test: null,
|
|
1299
1287
|
body: null,
|
|
1300
|
-
start:
|
|
1301
|
-
end:
|
|
1288
|
+
start: deserializeI32(pos),
|
|
1289
|
+
end: deserializeI32(pos + 4),
|
|
1302
1290
|
};
|
|
1303
1291
|
node.test = deserializeExpression(pos + 16);
|
|
1304
1292
|
node.body = deserializeStatement(pos + 32);
|
|
@@ -1312,8 +1300,8 @@ function deserializeForStatement(pos) {
|
|
|
1312
1300
|
test: null,
|
|
1313
1301
|
update: null,
|
|
1314
1302
|
body: null,
|
|
1315
|
-
start:
|
|
1316
|
-
end:
|
|
1303
|
+
start: deserializeI32(pos),
|
|
1304
|
+
end: deserializeI32(pos + 4),
|
|
1317
1305
|
};
|
|
1318
1306
|
node.init = deserializeOptionForStatementInit(pos + 16);
|
|
1319
1307
|
node.test = deserializeOptionExpression(pos + 32);
|
|
@@ -1423,8 +1411,8 @@ function deserializeForInStatement(pos) {
|
|
|
1423
1411
|
left: null,
|
|
1424
1412
|
right: null,
|
|
1425
1413
|
body: null,
|
|
1426
|
-
start:
|
|
1427
|
-
end:
|
|
1414
|
+
start: deserializeI32(pos),
|
|
1415
|
+
end: deserializeI32(pos + 4),
|
|
1428
1416
|
};
|
|
1429
1417
|
node.left = deserializeForStatementLeft(pos + 16);
|
|
1430
1418
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -1468,8 +1456,8 @@ function deserializeForOfStatement(pos) {
|
|
|
1468
1456
|
left: null,
|
|
1469
1457
|
right: null,
|
|
1470
1458
|
body: null,
|
|
1471
|
-
start:
|
|
1472
|
-
end:
|
|
1459
|
+
start: deserializeI32(pos),
|
|
1460
|
+
end: deserializeI32(pos + 4),
|
|
1473
1461
|
};
|
|
1474
1462
|
node.left = deserializeForStatementLeft(pos + 16);
|
|
1475
1463
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -1481,8 +1469,8 @@ function deserializeContinueStatement(pos) {
|
|
|
1481
1469
|
let node = {
|
|
1482
1470
|
type: "ContinueStatement",
|
|
1483
1471
|
label: null,
|
|
1484
|
-
start:
|
|
1485
|
-
end:
|
|
1472
|
+
start: deserializeI32(pos),
|
|
1473
|
+
end: deserializeI32(pos + 4),
|
|
1486
1474
|
};
|
|
1487
1475
|
node.label = deserializeOptionLabelIdentifier(pos + 16);
|
|
1488
1476
|
return node;
|
|
@@ -1492,8 +1480,8 @@ function deserializeBreakStatement(pos) {
|
|
|
1492
1480
|
let node = {
|
|
1493
1481
|
type: "BreakStatement",
|
|
1494
1482
|
label: null,
|
|
1495
|
-
start:
|
|
1496
|
-
end:
|
|
1483
|
+
start: deserializeI32(pos),
|
|
1484
|
+
end: deserializeI32(pos + 4),
|
|
1497
1485
|
};
|
|
1498
1486
|
node.label = deserializeOptionLabelIdentifier(pos + 16);
|
|
1499
1487
|
return node;
|
|
@@ -1503,8 +1491,8 @@ function deserializeReturnStatement(pos) {
|
|
|
1503
1491
|
let node = {
|
|
1504
1492
|
type: "ReturnStatement",
|
|
1505
1493
|
argument: null,
|
|
1506
|
-
start:
|
|
1507
|
-
end:
|
|
1494
|
+
start: deserializeI32(pos),
|
|
1495
|
+
end: deserializeI32(pos + 4),
|
|
1508
1496
|
};
|
|
1509
1497
|
node.argument = deserializeOptionExpression(pos + 16);
|
|
1510
1498
|
return node;
|
|
@@ -1515,8 +1503,8 @@ function deserializeWithStatement(pos) {
|
|
|
1515
1503
|
type: "WithStatement",
|
|
1516
1504
|
object: null,
|
|
1517
1505
|
body: null,
|
|
1518
|
-
start:
|
|
1519
|
-
end:
|
|
1506
|
+
start: deserializeI32(pos),
|
|
1507
|
+
end: deserializeI32(pos + 4),
|
|
1520
1508
|
};
|
|
1521
1509
|
node.object = deserializeExpression(pos + 16);
|
|
1522
1510
|
node.body = deserializeStatement(pos + 32);
|
|
@@ -1528,8 +1516,8 @@ function deserializeSwitchStatement(pos) {
|
|
|
1528
1516
|
type: "SwitchStatement",
|
|
1529
1517
|
discriminant: null,
|
|
1530
1518
|
cases: null,
|
|
1531
|
-
start:
|
|
1532
|
-
end:
|
|
1519
|
+
start: deserializeI32(pos),
|
|
1520
|
+
end: deserializeI32(pos + 4),
|
|
1533
1521
|
};
|
|
1534
1522
|
node.discriminant = deserializeExpression(pos + 16);
|
|
1535
1523
|
node.cases = deserializeVecSwitchCase(pos + 32);
|
|
@@ -1541,8 +1529,8 @@ function deserializeSwitchCase(pos) {
|
|
|
1541
1529
|
type: "SwitchCase",
|
|
1542
1530
|
test: null,
|
|
1543
1531
|
consequent: null,
|
|
1544
|
-
start:
|
|
1545
|
-
end:
|
|
1532
|
+
start: deserializeI32(pos),
|
|
1533
|
+
end: deserializeI32(pos + 4),
|
|
1546
1534
|
};
|
|
1547
1535
|
node.test = deserializeOptionExpression(pos + 16);
|
|
1548
1536
|
node.consequent = deserializeVecStatement(pos + 32);
|
|
@@ -1554,8 +1542,8 @@ function deserializeLabeledStatement(pos) {
|
|
|
1554
1542
|
type: "LabeledStatement",
|
|
1555
1543
|
label: null,
|
|
1556
1544
|
body: null,
|
|
1557
|
-
start:
|
|
1558
|
-
end:
|
|
1545
|
+
start: deserializeI32(pos),
|
|
1546
|
+
end: deserializeI32(pos + 4),
|
|
1559
1547
|
};
|
|
1560
1548
|
node.label = deserializeLabelIdentifier(pos + 16);
|
|
1561
1549
|
node.body = deserializeStatement(pos + 48);
|
|
@@ -1566,8 +1554,8 @@ function deserializeThrowStatement(pos) {
|
|
|
1566
1554
|
let node = {
|
|
1567
1555
|
type: "ThrowStatement",
|
|
1568
1556
|
argument: null,
|
|
1569
|
-
start:
|
|
1570
|
-
end:
|
|
1557
|
+
start: deserializeI32(pos),
|
|
1558
|
+
end: deserializeI32(pos + 4),
|
|
1571
1559
|
};
|
|
1572
1560
|
node.argument = deserializeExpression(pos + 16);
|
|
1573
1561
|
return node;
|
|
@@ -1579,8 +1567,8 @@ function deserializeTryStatement(pos) {
|
|
|
1579
1567
|
block: null,
|
|
1580
1568
|
handler: null,
|
|
1581
1569
|
finalizer: null,
|
|
1582
|
-
start:
|
|
1583
|
-
end:
|
|
1570
|
+
start: deserializeI32(pos),
|
|
1571
|
+
end: deserializeI32(pos + 4),
|
|
1584
1572
|
};
|
|
1585
1573
|
node.block = deserializeBoxBlockStatement(pos + 16);
|
|
1586
1574
|
node.handler = deserializeOptionBoxCatchClause(pos + 24);
|
|
@@ -1593,8 +1581,8 @@ function deserializeCatchClause(pos) {
|
|
|
1593
1581
|
type: "CatchClause",
|
|
1594
1582
|
param: null,
|
|
1595
1583
|
body: null,
|
|
1596
|
-
start:
|
|
1597
|
-
end:
|
|
1584
|
+
start: deserializeI32(pos),
|
|
1585
|
+
end: deserializeI32(pos + 4),
|
|
1598
1586
|
};
|
|
1599
1587
|
node.param = deserializeOptionCatchParameter(pos + 16);
|
|
1600
1588
|
node.body = deserializeBoxBlockStatement(pos + 56);
|
|
@@ -1608,8 +1596,8 @@ function deserializeCatchParameter(pos) {
|
|
|
1608
1596
|
function deserializeDebuggerStatement(pos) {
|
|
1609
1597
|
return {
|
|
1610
1598
|
type: "DebuggerStatement",
|
|
1611
|
-
start:
|
|
1612
|
-
end:
|
|
1599
|
+
start: deserializeI32(pos),
|
|
1600
|
+
end: deserializeI32(pos + 4),
|
|
1613
1601
|
};
|
|
1614
1602
|
}
|
|
1615
1603
|
|
|
@@ -1633,8 +1621,8 @@ function deserializeAssignmentPattern(pos) {
|
|
|
1633
1621
|
type: "AssignmentPattern",
|
|
1634
1622
|
left: null,
|
|
1635
1623
|
right: null,
|
|
1636
|
-
start:
|
|
1637
|
-
end:
|
|
1624
|
+
start: deserializeI32(pos),
|
|
1625
|
+
end: deserializeI32(pos + 4),
|
|
1638
1626
|
};
|
|
1639
1627
|
node.left = deserializeBindingPattern(pos + 16);
|
|
1640
1628
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -1645,8 +1633,8 @@ function deserializeObjectPattern(pos) {
|
|
|
1645
1633
|
let node = {
|
|
1646
1634
|
type: "ObjectPattern",
|
|
1647
1635
|
properties: null,
|
|
1648
|
-
start:
|
|
1649
|
-
end:
|
|
1636
|
+
start: deserializeI32(pos),
|
|
1637
|
+
end: deserializeI32(pos + 4),
|
|
1650
1638
|
},
|
|
1651
1639
|
properties = deserializeVecBindingProperty(pos + 16),
|
|
1652
1640
|
rest = deserializeOptionBoxBindingRestElement(pos + 40);
|
|
@@ -1658,19 +1646,17 @@ function deserializeObjectPattern(pos) {
|
|
|
1658
1646
|
function deserializeBindingProperty(pos) {
|
|
1659
1647
|
let node = {
|
|
1660
1648
|
type: "Property",
|
|
1661
|
-
kind:
|
|
1649
|
+
kind: "init",
|
|
1662
1650
|
key: null,
|
|
1663
1651
|
value: null,
|
|
1664
|
-
method:
|
|
1652
|
+
method: false,
|
|
1665
1653
|
shorthand: deserializeBool(pos + 12),
|
|
1666
1654
|
computed: deserializeBool(pos + 13),
|
|
1667
|
-
start:
|
|
1668
|
-
end:
|
|
1655
|
+
start: deserializeI32(pos),
|
|
1656
|
+
end: deserializeI32(pos + 4),
|
|
1669
1657
|
};
|
|
1670
|
-
node.kind = "init";
|
|
1671
1658
|
node.key = deserializePropertyKey(pos + 16);
|
|
1672
1659
|
node.value = deserializeBindingPattern(pos + 32);
|
|
1673
|
-
node.method = false;
|
|
1674
1660
|
return node;
|
|
1675
1661
|
}
|
|
1676
1662
|
|
|
@@ -1678,8 +1664,8 @@ function deserializeArrayPattern(pos) {
|
|
|
1678
1664
|
let node = {
|
|
1679
1665
|
type: "ArrayPattern",
|
|
1680
1666
|
elements: null,
|
|
1681
|
-
start:
|
|
1682
|
-
end:
|
|
1667
|
+
start: deserializeI32(pos),
|
|
1668
|
+
end: deserializeI32(pos + 4),
|
|
1683
1669
|
},
|
|
1684
1670
|
elements = deserializeVecOptionBindingPattern(pos + 16),
|
|
1685
1671
|
rest = deserializeOptionBoxBindingRestElement(pos + 40);
|
|
@@ -1692,8 +1678,8 @@ function deserializeBindingRestElement(pos) {
|
|
|
1692
1678
|
let node = {
|
|
1693
1679
|
type: "RestElement",
|
|
1694
1680
|
argument: null,
|
|
1695
|
-
start:
|
|
1696
|
-
end:
|
|
1681
|
+
start: deserializeI32(pos),
|
|
1682
|
+
end: deserializeI32(pos + 4),
|
|
1697
1683
|
};
|
|
1698
1684
|
node.argument = deserializeBindingPattern(pos + 16);
|
|
1699
1685
|
return node;
|
|
@@ -1707,15 +1693,14 @@ function deserializeFunction(pos) {
|
|
|
1707
1693
|
async: deserializeBool(pos + 90),
|
|
1708
1694
|
params: null,
|
|
1709
1695
|
body: null,
|
|
1710
|
-
expression:
|
|
1711
|
-
start:
|
|
1712
|
-
end:
|
|
1696
|
+
expression: false,
|
|
1697
|
+
start: deserializeI32(pos),
|
|
1698
|
+
end: deserializeI32(pos + 4),
|
|
1713
1699
|
},
|
|
1714
1700
|
params = deserializeBoxFormalParameters(pos + 64);
|
|
1715
1701
|
node.id = deserializeOptionBindingIdentifier(pos + 16);
|
|
1716
1702
|
node.params = params;
|
|
1717
1703
|
node.body = deserializeOptionBoxFunctionBody(pos + 80);
|
|
1718
|
-
node.expression = false;
|
|
1719
1704
|
return node;
|
|
1720
1705
|
}
|
|
1721
1706
|
|
|
@@ -1735,14 +1720,15 @@ function deserializeFunctionType(pos) {
|
|
|
1735
1720
|
}
|
|
1736
1721
|
|
|
1737
1722
|
function deserializeFormalParameters(pos) {
|
|
1738
|
-
let params = deserializeVecFormalParameter(pos + 16)
|
|
1739
|
-
|
|
1740
|
-
|
|
1723
|
+
let params = deserializeVecFormalParameter(pos + 16),
|
|
1724
|
+
restFieldPos32 = (pos >> 2) + 10;
|
|
1725
|
+
if (int32[restFieldPos32] !== 0 && int32[restFieldPos32 + 1] !== 0) {
|
|
1726
|
+
pos = int32[restFieldPos32];
|
|
1741
1727
|
let rest = {
|
|
1742
1728
|
type: "RestElement",
|
|
1743
1729
|
argument: null,
|
|
1744
|
-
start:
|
|
1745
|
-
end:
|
|
1730
|
+
start: deserializeI32(pos + 40),
|
|
1731
|
+
end: deserializeI32(pos + 44),
|
|
1746
1732
|
};
|
|
1747
1733
|
rest.argument = deserializeBindingPattern(pos + 56);
|
|
1748
1734
|
params.push(rest);
|
|
@@ -1751,14 +1737,15 @@ function deserializeFormalParameters(pos) {
|
|
|
1751
1737
|
}
|
|
1752
1738
|
|
|
1753
1739
|
function deserializeFormalParameter(pos) {
|
|
1754
|
-
let param
|
|
1755
|
-
|
|
1740
|
+
let param,
|
|
1741
|
+
initializerFieldPos32 = (pos >> 2) + 16;
|
|
1742
|
+
if (int32[initializerFieldPos32] !== 0 && int32[initializerFieldPos32 + 1] !== 0) {
|
|
1756
1743
|
param = {
|
|
1757
1744
|
type: "AssignmentPattern",
|
|
1758
1745
|
left: null,
|
|
1759
1746
|
right: null,
|
|
1760
|
-
start:
|
|
1761
|
-
end:
|
|
1747
|
+
start: deserializeI32(pos),
|
|
1748
|
+
end: deserializeI32(pos + 4),
|
|
1762
1749
|
};
|
|
1763
1750
|
param.left = deserializeBindingPattern(pos + 40);
|
|
1764
1751
|
param.right = deserializeOptionBoxExpression(pos + 64);
|
|
@@ -1770,8 +1757,8 @@ function deserializeFunctionBody(pos) {
|
|
|
1770
1757
|
let node = {
|
|
1771
1758
|
type: "BlockStatement",
|
|
1772
1759
|
body: null,
|
|
1773
|
-
start:
|
|
1774
|
-
end:
|
|
1760
|
+
start: deserializeI32(pos),
|
|
1761
|
+
end: deserializeI32(pos + 4),
|
|
1775
1762
|
},
|
|
1776
1763
|
body = deserializeVecDirective(pos + 16);
|
|
1777
1764
|
body.push(...deserializeVecStatement(pos + 40));
|
|
@@ -1788,15 +1775,14 @@ function deserializeArrowFunctionExpression(pos) {
|
|
|
1788
1775
|
params: null,
|
|
1789
1776
|
body: null,
|
|
1790
1777
|
id: null,
|
|
1791
|
-
generator:
|
|
1792
|
-
start:
|
|
1793
|
-
end:
|
|
1778
|
+
generator: false,
|
|
1779
|
+
start: deserializeI32(pos),
|
|
1780
|
+
end: deserializeI32(pos + 4),
|
|
1794
1781
|
},
|
|
1795
1782
|
body = deserializeBoxFunctionBody(pos + 40);
|
|
1796
1783
|
expression === true && (body = body.body[0].expression);
|
|
1797
1784
|
node.params = deserializeBoxFormalParameters(pos + 24);
|
|
1798
1785
|
node.body = body;
|
|
1799
|
-
node.generator = false;
|
|
1800
1786
|
return node;
|
|
1801
1787
|
}
|
|
1802
1788
|
|
|
@@ -1805,8 +1791,8 @@ function deserializeYieldExpression(pos) {
|
|
|
1805
1791
|
type: "YieldExpression",
|
|
1806
1792
|
delegate: deserializeBool(pos + 12),
|
|
1807
1793
|
argument: null,
|
|
1808
|
-
start:
|
|
1809
|
-
end:
|
|
1794
|
+
start: deserializeI32(pos),
|
|
1795
|
+
end: deserializeI32(pos + 4),
|
|
1810
1796
|
};
|
|
1811
1797
|
node.argument = deserializeOptionExpression(pos + 16);
|
|
1812
1798
|
return node;
|
|
@@ -1819,8 +1805,8 @@ function deserializeClass(pos) {
|
|
|
1819
1805
|
id: null,
|
|
1820
1806
|
superClass: null,
|
|
1821
1807
|
body: null,
|
|
1822
|
-
start:
|
|
1823
|
-
end:
|
|
1808
|
+
start: deserializeI32(pos),
|
|
1809
|
+
end: deserializeI32(pos + 4),
|
|
1824
1810
|
};
|
|
1825
1811
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
1826
1812
|
node.id = deserializeOptionBindingIdentifier(pos + 40);
|
|
@@ -1844,8 +1830,8 @@ function deserializeClassBody(pos) {
|
|
|
1844
1830
|
let node = {
|
|
1845
1831
|
type: "ClassBody",
|
|
1846
1832
|
body: null,
|
|
1847
|
-
start:
|
|
1848
|
-
end:
|
|
1833
|
+
start: deserializeI32(pos),
|
|
1834
|
+
end: deserializeI32(pos + 4),
|
|
1849
1835
|
};
|
|
1850
1836
|
node.body = deserializeVecClassElement(pos + 16);
|
|
1851
1837
|
return node;
|
|
@@ -1877,8 +1863,8 @@ function deserializeMethodDefinition(pos) {
|
|
|
1877
1863
|
kind: deserializeMethodDefinitionKind(pos + 13),
|
|
1878
1864
|
computed: deserializeBool(pos + 14),
|
|
1879
1865
|
static: deserializeBool(pos + 15),
|
|
1880
|
-
start:
|
|
1881
|
-
end:
|
|
1866
|
+
start: deserializeI32(pos),
|
|
1867
|
+
end: deserializeI32(pos + 4),
|
|
1882
1868
|
};
|
|
1883
1869
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
1884
1870
|
node.key = deserializePropertyKey(pos + 40);
|
|
@@ -1905,8 +1891,8 @@ function deserializePropertyDefinition(pos) {
|
|
|
1905
1891
|
value: null,
|
|
1906
1892
|
computed: deserializeBool(pos + 13),
|
|
1907
1893
|
static: deserializeBool(pos + 14),
|
|
1908
|
-
start:
|
|
1909
|
-
end:
|
|
1894
|
+
start: deserializeI32(pos),
|
|
1895
|
+
end: deserializeI32(pos + 4),
|
|
1910
1896
|
};
|
|
1911
1897
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
1912
1898
|
node.key = deserializePropertyKey(pos + 40);
|
|
@@ -1944,8 +1930,8 @@ function deserializePrivateIdentifier(pos) {
|
|
|
1944
1930
|
return {
|
|
1945
1931
|
type: "PrivateIdentifier",
|
|
1946
1932
|
name: deserializeStr(pos + 16),
|
|
1947
|
-
start:
|
|
1948
|
-
end:
|
|
1933
|
+
start: deserializeI32(pos),
|
|
1934
|
+
end: deserializeI32(pos + 4),
|
|
1949
1935
|
};
|
|
1950
1936
|
}
|
|
1951
1937
|
|
|
@@ -1953,8 +1939,8 @@ function deserializeStaticBlock(pos) {
|
|
|
1953
1939
|
let node = {
|
|
1954
1940
|
type: "StaticBlock",
|
|
1955
1941
|
body: null,
|
|
1956
|
-
start:
|
|
1957
|
-
end:
|
|
1942
|
+
start: deserializeI32(pos),
|
|
1943
|
+
end: deserializeI32(pos + 4),
|
|
1958
1944
|
};
|
|
1959
1945
|
node.body = deserializeVecStatement(pos + 16);
|
|
1960
1946
|
return node;
|
|
@@ -1979,8 +1965,8 @@ function deserializeAccessorProperty(pos) {
|
|
|
1979
1965
|
value: null,
|
|
1980
1966
|
computed: deserializeBool(pos + 13),
|
|
1981
1967
|
static: deserializeBool(pos + 14),
|
|
1982
|
-
start:
|
|
1983
|
-
end:
|
|
1968
|
+
start: deserializeI32(pos),
|
|
1969
|
+
end: deserializeI32(pos + 4),
|
|
1984
1970
|
};
|
|
1985
1971
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
1986
1972
|
node.key = deserializePropertyKey(pos + 40);
|
|
@@ -1994,8 +1980,8 @@ function deserializeImportExpression(pos) {
|
|
|
1994
1980
|
source: null,
|
|
1995
1981
|
options: null,
|
|
1996
1982
|
phase: deserializeOptionImportPhase(pos + 12),
|
|
1997
|
-
start:
|
|
1998
|
-
end:
|
|
1983
|
+
start: deserializeI32(pos),
|
|
1984
|
+
end: deserializeI32(pos + 4),
|
|
1999
1985
|
};
|
|
2000
1986
|
node.source = deserializeExpression(pos + 16);
|
|
2001
1987
|
node.options = deserializeOptionExpression(pos + 32);
|
|
@@ -2009,8 +1995,8 @@ function deserializeImportDeclaration(pos) {
|
|
|
2009
1995
|
source: null,
|
|
2010
1996
|
phase: deserializeOptionImportPhase(pos + 12),
|
|
2011
1997
|
attributes: null,
|
|
2012
|
-
start:
|
|
2013
|
-
end:
|
|
1998
|
+
start: deserializeI32(pos),
|
|
1999
|
+
end: deserializeI32(pos + 4),
|
|
2014
2000
|
},
|
|
2015
2001
|
specifiers = deserializeOptionVecImportDeclarationSpecifier(pos + 16);
|
|
2016
2002
|
specifiers === null && (specifiers = []);
|
|
@@ -2050,8 +2036,8 @@ function deserializeImportSpecifier(pos) {
|
|
|
2050
2036
|
type: "ImportSpecifier",
|
|
2051
2037
|
imported: null,
|
|
2052
2038
|
local: null,
|
|
2053
|
-
start:
|
|
2054
|
-
end:
|
|
2039
|
+
start: deserializeI32(pos),
|
|
2040
|
+
end: deserializeI32(pos + 4),
|
|
2055
2041
|
};
|
|
2056
2042
|
node.imported = deserializeModuleExportName(pos + 16);
|
|
2057
2043
|
node.local = deserializeBindingIdentifier(pos + 72);
|
|
@@ -2062,8 +2048,8 @@ function deserializeImportDefaultSpecifier(pos) {
|
|
|
2062
2048
|
let node = {
|
|
2063
2049
|
type: "ImportDefaultSpecifier",
|
|
2064
2050
|
local: null,
|
|
2065
|
-
start:
|
|
2066
|
-
end:
|
|
2051
|
+
start: deserializeI32(pos),
|
|
2052
|
+
end: deserializeI32(pos + 4),
|
|
2067
2053
|
};
|
|
2068
2054
|
node.local = deserializeBindingIdentifier(pos + 16);
|
|
2069
2055
|
return node;
|
|
@@ -2073,8 +2059,8 @@ function deserializeImportNamespaceSpecifier(pos) {
|
|
|
2073
2059
|
let node = {
|
|
2074
2060
|
type: "ImportNamespaceSpecifier",
|
|
2075
2061
|
local: null,
|
|
2076
|
-
start:
|
|
2077
|
-
end:
|
|
2062
|
+
start: deserializeI32(pos),
|
|
2063
|
+
end: deserializeI32(pos + 4),
|
|
2078
2064
|
};
|
|
2079
2065
|
node.local = deserializeBindingIdentifier(pos + 16);
|
|
2080
2066
|
return node;
|
|
@@ -2089,8 +2075,8 @@ function deserializeImportAttribute(pos) {
|
|
|
2089
2075
|
type: "ImportAttribute",
|
|
2090
2076
|
key: null,
|
|
2091
2077
|
value: null,
|
|
2092
|
-
start:
|
|
2093
|
-
end:
|
|
2078
|
+
start: deserializeI32(pos),
|
|
2079
|
+
end: deserializeI32(pos + 4),
|
|
2094
2080
|
};
|
|
2095
2081
|
node.key = deserializeImportAttributeKey(pos + 16);
|
|
2096
2082
|
node.value = deserializeStringLiteral(pos + 72);
|
|
@@ -2115,8 +2101,8 @@ function deserializeExportNamedDeclaration(pos) {
|
|
|
2115
2101
|
specifiers: null,
|
|
2116
2102
|
source: null,
|
|
2117
2103
|
attributes: null,
|
|
2118
|
-
start:
|
|
2119
|
-
end:
|
|
2104
|
+
start: deserializeI32(pos),
|
|
2105
|
+
end: deserializeI32(pos + 4),
|
|
2120
2106
|
},
|
|
2121
2107
|
withClause = deserializeOptionBoxWithClause(pos + 104);
|
|
2122
2108
|
node.declaration = deserializeOptionDeclaration(pos + 16);
|
|
@@ -2130,8 +2116,8 @@ function deserializeExportDefaultDeclaration(pos) {
|
|
|
2130
2116
|
let node = {
|
|
2131
2117
|
type: "ExportDefaultDeclaration",
|
|
2132
2118
|
declaration: null,
|
|
2133
|
-
start:
|
|
2134
|
-
end:
|
|
2119
|
+
start: deserializeI32(pos),
|
|
2120
|
+
end: deserializeI32(pos + 4),
|
|
2135
2121
|
};
|
|
2136
2122
|
node.declaration = deserializeExportDefaultDeclarationKind(pos + 16);
|
|
2137
2123
|
return node;
|
|
@@ -2143,8 +2129,8 @@ function deserializeExportAllDeclaration(pos) {
|
|
|
2143
2129
|
exported: null,
|
|
2144
2130
|
source: null,
|
|
2145
2131
|
attributes: null,
|
|
2146
|
-
start:
|
|
2147
|
-
end:
|
|
2132
|
+
start: deserializeI32(pos),
|
|
2133
|
+
end: deserializeI32(pos + 4),
|
|
2148
2134
|
},
|
|
2149
2135
|
withClause = deserializeOptionBoxWithClause(pos + 120);
|
|
2150
2136
|
node.exported = deserializeOptionModuleExportName(pos + 16);
|
|
@@ -2158,8 +2144,8 @@ function deserializeExportSpecifier(pos) {
|
|
|
2158
2144
|
type: "ExportSpecifier",
|
|
2159
2145
|
local: null,
|
|
2160
2146
|
exported: null,
|
|
2161
|
-
start:
|
|
2162
|
-
end:
|
|
2147
|
+
start: deserializeI32(pos),
|
|
2148
|
+
end: deserializeI32(pos + 4),
|
|
2163
2149
|
};
|
|
2164
2150
|
node.local = deserializeModuleExportName(pos + 16);
|
|
2165
2151
|
node.exported = deserializeModuleExportName(pos + 72);
|
|
@@ -2283,8 +2269,8 @@ function deserializeV8IntrinsicExpression(pos) {
|
|
|
2283
2269
|
type: "V8IntrinsicExpression",
|
|
2284
2270
|
name: null,
|
|
2285
2271
|
arguments: null,
|
|
2286
|
-
start:
|
|
2287
|
-
end:
|
|
2272
|
+
start: deserializeI32(pos),
|
|
2273
|
+
end: deserializeI32(pos + 4),
|
|
2288
2274
|
};
|
|
2289
2275
|
node.name = deserializeIdentifierName(pos + 16);
|
|
2290
2276
|
node.arguments = deserializeVecArgument(pos + 48);
|
|
@@ -2293,8 +2279,8 @@ function deserializeV8IntrinsicExpression(pos) {
|
|
|
2293
2279
|
|
|
2294
2280
|
function deserializeBooleanLiteral(pos) {
|
|
2295
2281
|
let value = deserializeBool(pos + 12),
|
|
2296
|
-
start =
|
|
2297
|
-
end =
|
|
2282
|
+
start = deserializeI32(pos),
|
|
2283
|
+
end = deserializeI32(pos + 4),
|
|
2298
2284
|
node = {
|
|
2299
2285
|
type: "Literal",
|
|
2300
2286
|
value,
|
|
@@ -2307,27 +2293,25 @@ function deserializeBooleanLiteral(pos) {
|
|
|
2307
2293
|
}
|
|
2308
2294
|
|
|
2309
2295
|
function deserializeNullLiteral(pos) {
|
|
2310
|
-
let start =
|
|
2311
|
-
end =
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
node.raw = start === 0 && end === 0 ? null : "null";
|
|
2320
|
-
return node;
|
|
2296
|
+
let start = deserializeI32(pos),
|
|
2297
|
+
end = deserializeI32(pos + 4);
|
|
2298
|
+
return {
|
|
2299
|
+
type: "Literal",
|
|
2300
|
+
value: null,
|
|
2301
|
+
raw: start === 0 && end === 0 ? null : "null",
|
|
2302
|
+
start,
|
|
2303
|
+
end,
|
|
2304
|
+
};
|
|
2321
2305
|
}
|
|
2322
2306
|
|
|
2323
2307
|
function deserializeNumericLiteral(pos) {
|
|
2324
|
-
let start =
|
|
2325
|
-
end =
|
|
2308
|
+
let start = deserializeI32(pos),
|
|
2309
|
+
end = deserializeI32(pos + 4);
|
|
2326
2310
|
return {
|
|
2327
2311
|
type: "Literal",
|
|
2328
2312
|
value: deserializeF64(pos + 32),
|
|
2329
2313
|
raw:
|
|
2330
|
-
|
|
2314
|
+
int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
2331
2315
|
? null
|
|
2332
2316
|
: sourceText.slice(start, end),
|
|
2333
2317
|
start,
|
|
@@ -2336,13 +2320,13 @@ function deserializeNumericLiteral(pos) {
|
|
|
2336
2320
|
}
|
|
2337
2321
|
|
|
2338
2322
|
function deserializeStringLiteral(pos) {
|
|
2339
|
-
let start =
|
|
2340
|
-
end =
|
|
2323
|
+
let start = deserializeI32(pos),
|
|
2324
|
+
end = deserializeI32(pos + 4),
|
|
2341
2325
|
node = {
|
|
2342
2326
|
type: "Literal",
|
|
2343
2327
|
value: null,
|
|
2344
2328
|
raw:
|
|
2345
|
-
|
|
2329
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
2346
2330
|
? null
|
|
2347
2331
|
: sourceText.slice(start, end),
|
|
2348
2332
|
start,
|
|
@@ -2356,33 +2340,30 @@ function deserializeStringLiteral(pos) {
|
|
|
2356
2340
|
}
|
|
2357
2341
|
|
|
2358
2342
|
function deserializeBigIntLiteral(pos) {
|
|
2359
|
-
let start =
|
|
2360
|
-
end =
|
|
2361
|
-
node = {
|
|
2362
|
-
type: "Literal",
|
|
2363
|
-
value: null,
|
|
2364
|
-
raw:
|
|
2365
|
-
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
2366
|
-
? null
|
|
2367
|
-
: sourceText.slice(start, end),
|
|
2368
|
-
bigint: null,
|
|
2369
|
-
start,
|
|
2370
|
-
end,
|
|
2371
|
-
},
|
|
2343
|
+
let start = deserializeI32(pos),
|
|
2344
|
+
end = deserializeI32(pos + 4),
|
|
2372
2345
|
bigint = deserializeStr(pos + 16);
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2346
|
+
return {
|
|
2347
|
+
type: "Literal",
|
|
2348
|
+
value: BigInt(bigint),
|
|
2349
|
+
raw:
|
|
2350
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
2351
|
+
? null
|
|
2352
|
+
: sourceText.slice(start, end),
|
|
2353
|
+
bigint,
|
|
2354
|
+
start,
|
|
2355
|
+
end,
|
|
2356
|
+
};
|
|
2376
2357
|
}
|
|
2377
2358
|
|
|
2378
2359
|
function deserializeRegExpLiteral(pos) {
|
|
2379
|
-
let start =
|
|
2380
|
-
end =
|
|
2360
|
+
let start = deserializeI32(pos),
|
|
2361
|
+
end = deserializeI32(pos + 4),
|
|
2381
2362
|
node = {
|
|
2382
2363
|
type: "Literal",
|
|
2383
2364
|
value: null,
|
|
2384
2365
|
raw:
|
|
2385
|
-
|
|
2366
|
+
int32[(pos >> 2) + 12] === 0 && int32[(pos >> 2) + 13] === 0
|
|
2386
2367
|
? null
|
|
2387
2368
|
: sourceText.slice(start, end),
|
|
2388
2369
|
regex: null,
|
|
@@ -2427,8 +2408,8 @@ function deserializeJSXElement(pos) {
|
|
|
2427
2408
|
openingElement: null,
|
|
2428
2409
|
children: null,
|
|
2429
2410
|
closingElement: null,
|
|
2430
|
-
start:
|
|
2431
|
-
end:
|
|
2411
|
+
start: deserializeI32(pos),
|
|
2412
|
+
end: deserializeI32(pos + 4),
|
|
2432
2413
|
},
|
|
2433
2414
|
closingElement = deserializeOptionBoxJSXClosingElement(pos + 48),
|
|
2434
2415
|
openingElement = deserializeBoxJSXOpeningElement(pos + 16);
|
|
@@ -2444,13 +2425,12 @@ function deserializeJSXOpeningElement(pos) {
|
|
|
2444
2425
|
type: "JSXOpeningElement",
|
|
2445
2426
|
name: null,
|
|
2446
2427
|
attributes: null,
|
|
2447
|
-
selfClosing:
|
|
2448
|
-
start:
|
|
2449
|
-
end:
|
|
2428
|
+
selfClosing: false,
|
|
2429
|
+
start: deserializeI32(pos),
|
|
2430
|
+
end: deserializeI32(pos + 4),
|
|
2450
2431
|
};
|
|
2451
2432
|
node.name = deserializeJSXElementName(pos + 16);
|
|
2452
2433
|
node.attributes = deserializeVecJSXAttributeItem(pos + 40);
|
|
2453
|
-
node.selfClosing = false;
|
|
2454
2434
|
return node;
|
|
2455
2435
|
}
|
|
2456
2436
|
|
|
@@ -2458,8 +2438,8 @@ function deserializeJSXClosingElement(pos) {
|
|
|
2458
2438
|
let node = {
|
|
2459
2439
|
type: "JSXClosingElement",
|
|
2460
2440
|
name: null,
|
|
2461
|
-
start:
|
|
2462
|
-
end:
|
|
2441
|
+
start: deserializeI32(pos),
|
|
2442
|
+
end: deserializeI32(pos + 4),
|
|
2463
2443
|
};
|
|
2464
2444
|
node.name = deserializeJSXElementName(pos + 16);
|
|
2465
2445
|
return node;
|
|
@@ -2471,8 +2451,8 @@ function deserializeJSXFragment(pos) {
|
|
|
2471
2451
|
openingFragment: null,
|
|
2472
2452
|
children: null,
|
|
2473
2453
|
closingFragment: null,
|
|
2474
|
-
start:
|
|
2475
|
-
end:
|
|
2454
|
+
start: deserializeI32(pos),
|
|
2455
|
+
end: deserializeI32(pos + 4),
|
|
2476
2456
|
};
|
|
2477
2457
|
node.openingFragment = deserializeJSXOpeningFragment(pos + 16);
|
|
2478
2458
|
node.children = deserializeVecJSXChild(pos + 32);
|
|
@@ -2481,23 +2461,20 @@ function deserializeJSXFragment(pos) {
|
|
|
2481
2461
|
}
|
|
2482
2462
|
|
|
2483
2463
|
function deserializeJSXOpeningFragment(pos) {
|
|
2484
|
-
|
|
2464
|
+
return {
|
|
2485
2465
|
type: "JSXOpeningFragment",
|
|
2486
|
-
attributes:
|
|
2487
|
-
selfClosing:
|
|
2488
|
-
start:
|
|
2489
|
-
end:
|
|
2466
|
+
attributes: [],
|
|
2467
|
+
selfClosing: false,
|
|
2468
|
+
start: deserializeI32(pos),
|
|
2469
|
+
end: deserializeI32(pos + 4),
|
|
2490
2470
|
};
|
|
2491
|
-
node.attributes = [];
|
|
2492
|
-
node.selfClosing = false;
|
|
2493
|
-
return node;
|
|
2494
2471
|
}
|
|
2495
2472
|
|
|
2496
2473
|
function deserializeJSXClosingFragment(pos) {
|
|
2497
2474
|
return {
|
|
2498
2475
|
type: "JSXClosingFragment",
|
|
2499
|
-
start:
|
|
2500
|
-
end:
|
|
2476
|
+
start: deserializeI32(pos),
|
|
2477
|
+
end: deserializeI32(pos + 4),
|
|
2501
2478
|
};
|
|
2502
2479
|
}
|
|
2503
2480
|
|
|
@@ -2535,8 +2512,8 @@ function deserializeJSXNamespacedName(pos) {
|
|
|
2535
2512
|
type: "JSXNamespacedName",
|
|
2536
2513
|
namespace: null,
|
|
2537
2514
|
name: null,
|
|
2538
|
-
start:
|
|
2539
|
-
end:
|
|
2515
|
+
start: deserializeI32(pos),
|
|
2516
|
+
end: deserializeI32(pos + 4),
|
|
2540
2517
|
};
|
|
2541
2518
|
node.namespace = deserializeJSXIdentifier(pos + 16);
|
|
2542
2519
|
node.name = deserializeJSXIdentifier(pos + 48);
|
|
@@ -2548,8 +2525,8 @@ function deserializeJSXMemberExpression(pos) {
|
|
|
2548
2525
|
type: "JSXMemberExpression",
|
|
2549
2526
|
object: null,
|
|
2550
2527
|
property: null,
|
|
2551
|
-
start:
|
|
2552
|
-
end:
|
|
2528
|
+
start: deserializeI32(pos),
|
|
2529
|
+
end: deserializeI32(pos + 4),
|
|
2553
2530
|
};
|
|
2554
2531
|
node.object = deserializeJSXMemberExpressionObject(pos + 16);
|
|
2555
2532
|
node.property = deserializeJSXIdentifier(pos + 32);
|
|
@@ -2585,8 +2562,8 @@ function deserializeJSXExpressionContainer(pos) {
|
|
|
2585
2562
|
let node = {
|
|
2586
2563
|
type: "JSXExpressionContainer",
|
|
2587
2564
|
expression: null,
|
|
2588
|
-
start:
|
|
2589
|
-
end:
|
|
2565
|
+
start: deserializeI32(pos),
|
|
2566
|
+
end: deserializeI32(pos + 4),
|
|
2590
2567
|
};
|
|
2591
2568
|
node.expression = deserializeJSXExpression(pos + 16);
|
|
2592
2569
|
return node;
|
|
@@ -2690,8 +2667,8 @@ function deserializeJSXExpression(pos) {
|
|
|
2690
2667
|
function deserializeJSXEmptyExpression(pos) {
|
|
2691
2668
|
return {
|
|
2692
2669
|
type: "JSXEmptyExpression",
|
|
2693
|
-
start:
|
|
2694
|
-
end:
|
|
2670
|
+
start: deserializeI32(pos),
|
|
2671
|
+
end: deserializeI32(pos + 4),
|
|
2695
2672
|
};
|
|
2696
2673
|
}
|
|
2697
2674
|
|
|
@@ -2711,8 +2688,8 @@ function deserializeJSXAttribute(pos) {
|
|
|
2711
2688
|
type: "JSXAttribute",
|
|
2712
2689
|
name: null,
|
|
2713
2690
|
value: null,
|
|
2714
|
-
start:
|
|
2715
|
-
end:
|
|
2691
|
+
start: deserializeI32(pos),
|
|
2692
|
+
end: deserializeI32(pos + 4),
|
|
2716
2693
|
};
|
|
2717
2694
|
node.name = deserializeJSXAttributeName(pos + 16);
|
|
2718
2695
|
node.value = deserializeOptionJSXAttributeValue(pos + 32);
|
|
@@ -2723,8 +2700,8 @@ function deserializeJSXSpreadAttribute(pos) {
|
|
|
2723
2700
|
let node = {
|
|
2724
2701
|
type: "JSXSpreadAttribute",
|
|
2725
2702
|
argument: null,
|
|
2726
|
-
start:
|
|
2727
|
-
end:
|
|
2703
|
+
start: deserializeI32(pos),
|
|
2704
|
+
end: deserializeI32(pos + 4),
|
|
2728
2705
|
};
|
|
2729
2706
|
node.argument = deserializeExpression(pos + 16);
|
|
2730
2707
|
return node;
|
|
@@ -2760,8 +2737,8 @@ function deserializeJSXIdentifier(pos) {
|
|
|
2760
2737
|
return {
|
|
2761
2738
|
type: "JSXIdentifier",
|
|
2762
2739
|
name: deserializeStr(pos + 16),
|
|
2763
|
-
start:
|
|
2764
|
-
end:
|
|
2740
|
+
start: deserializeI32(pos),
|
|
2741
|
+
end: deserializeI32(pos + 4),
|
|
2765
2742
|
};
|
|
2766
2743
|
}
|
|
2767
2744
|
|
|
@@ -2786,21 +2763,21 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
2786
2763
|
let node = {
|
|
2787
2764
|
type: "JSXSpreadChild",
|
|
2788
2765
|
expression: null,
|
|
2789
|
-
start:
|
|
2790
|
-
end:
|
|
2766
|
+
start: deserializeI32(pos),
|
|
2767
|
+
end: deserializeI32(pos + 4),
|
|
2791
2768
|
};
|
|
2792
2769
|
node.expression = deserializeExpression(pos + 16);
|
|
2793
2770
|
return node;
|
|
2794
2771
|
}
|
|
2795
2772
|
|
|
2796
2773
|
function deserializeJSXText(pos) {
|
|
2797
|
-
let start =
|
|
2798
|
-
end =
|
|
2774
|
+
let start = deserializeI32(pos),
|
|
2775
|
+
end = deserializeI32(pos + 4);
|
|
2799
2776
|
return {
|
|
2800
2777
|
type: "JSXText",
|
|
2801
2778
|
value: deserializeStr(pos + 16),
|
|
2802
2779
|
raw:
|
|
2803
|
-
|
|
2780
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
2804
2781
|
? null
|
|
2805
2782
|
: sourceText.slice(start, end),
|
|
2806
2783
|
start,
|
|
@@ -2811,16 +2788,13 @@ function deserializeJSXText(pos) {
|
|
|
2811
2788
|
function deserializeTSThisParameter(pos) {
|
|
2812
2789
|
let node = {
|
|
2813
2790
|
type: "Identifier",
|
|
2814
|
-
decorators:
|
|
2815
|
-
name:
|
|
2816
|
-
optional:
|
|
2791
|
+
decorators: [],
|
|
2792
|
+
name: "this",
|
|
2793
|
+
optional: false,
|
|
2817
2794
|
typeAnnotation: null,
|
|
2818
|
-
start:
|
|
2819
|
-
end:
|
|
2795
|
+
start: deserializeI32(pos),
|
|
2796
|
+
end: deserializeI32(pos + 4),
|
|
2820
2797
|
};
|
|
2821
|
-
node.decorators = [];
|
|
2822
|
-
node.name = "this";
|
|
2823
|
-
node.optional = false;
|
|
2824
2798
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24);
|
|
2825
2799
|
return node;
|
|
2826
2800
|
}
|
|
@@ -2832,8 +2806,8 @@ function deserializeTSEnumDeclaration(pos) {
|
|
|
2832
2806
|
body: null,
|
|
2833
2807
|
const: deserializeBool(pos + 12),
|
|
2834
2808
|
declare: deserializeBool(pos + 13),
|
|
2835
|
-
start:
|
|
2836
|
-
end:
|
|
2809
|
+
start: deserializeI32(pos),
|
|
2810
|
+
end: deserializeI32(pos + 4),
|
|
2837
2811
|
};
|
|
2838
2812
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
2839
2813
|
node.body = deserializeTSEnumBody(pos + 48);
|
|
@@ -2844,8 +2818,8 @@ function deserializeTSEnumBody(pos) {
|
|
|
2844
2818
|
let node = {
|
|
2845
2819
|
type: "TSEnumBody",
|
|
2846
2820
|
members: null,
|
|
2847
|
-
start:
|
|
2848
|
-
end:
|
|
2821
|
+
start: deserializeI32(pos),
|
|
2822
|
+
end: deserializeI32(pos + 4),
|
|
2849
2823
|
};
|
|
2850
2824
|
node.members = deserializeVecTSEnumMember(pos + 16);
|
|
2851
2825
|
return node;
|
|
@@ -2856,13 +2830,12 @@ function deserializeTSEnumMember(pos) {
|
|
|
2856
2830
|
type: "TSEnumMember",
|
|
2857
2831
|
id: null,
|
|
2858
2832
|
initializer: null,
|
|
2859
|
-
computed:
|
|
2860
|
-
start:
|
|
2861
|
-
end:
|
|
2833
|
+
computed: deserializeU8(pos + 16) > 1,
|
|
2834
|
+
start: deserializeI32(pos),
|
|
2835
|
+
end: deserializeI32(pos + 4),
|
|
2862
2836
|
};
|
|
2863
2837
|
node.id = deserializeTSEnumMemberName(pos + 16);
|
|
2864
2838
|
node.initializer = deserializeOptionExpression(pos + 32);
|
|
2865
|
-
node.computed = deserializeU8(pos + 16) > 1;
|
|
2866
2839
|
return node;
|
|
2867
2840
|
}
|
|
2868
2841
|
|
|
@@ -2885,8 +2858,8 @@ function deserializeTSTypeAnnotation(pos) {
|
|
|
2885
2858
|
let node = {
|
|
2886
2859
|
type: "TSTypeAnnotation",
|
|
2887
2860
|
typeAnnotation: null,
|
|
2888
|
-
start:
|
|
2889
|
-
end:
|
|
2861
|
+
start: deserializeI32(pos),
|
|
2862
|
+
end: deserializeI32(pos + 4),
|
|
2890
2863
|
};
|
|
2891
2864
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
2892
2865
|
return node;
|
|
@@ -2896,8 +2869,8 @@ function deserializeTSLiteralType(pos) {
|
|
|
2896
2869
|
let node = {
|
|
2897
2870
|
type: "TSLiteralType",
|
|
2898
2871
|
literal: null,
|
|
2899
|
-
start:
|
|
2900
|
-
end:
|
|
2872
|
+
start: deserializeI32(pos),
|
|
2873
|
+
end: deserializeI32(pos + 4),
|
|
2901
2874
|
};
|
|
2902
2875
|
node.literal = deserializeTSLiteral(pos + 16);
|
|
2903
2876
|
return node;
|
|
@@ -3010,8 +2983,8 @@ function deserializeTSConditionalType(pos) {
|
|
|
3010
2983
|
extendsType: null,
|
|
3011
2984
|
trueType: null,
|
|
3012
2985
|
falseType: null,
|
|
3013
|
-
start:
|
|
3014
|
-
end:
|
|
2986
|
+
start: deserializeI32(pos),
|
|
2987
|
+
end: deserializeI32(pos + 4),
|
|
3015
2988
|
};
|
|
3016
2989
|
node.checkType = deserializeTSType(pos + 16);
|
|
3017
2990
|
node.extendsType = deserializeTSType(pos + 32);
|
|
@@ -3024,8 +2997,8 @@ function deserializeTSUnionType(pos) {
|
|
|
3024
2997
|
let node = {
|
|
3025
2998
|
type: "TSUnionType",
|
|
3026
2999
|
types: null,
|
|
3027
|
-
start:
|
|
3028
|
-
end:
|
|
3000
|
+
start: deserializeI32(pos),
|
|
3001
|
+
end: deserializeI32(pos + 4),
|
|
3029
3002
|
};
|
|
3030
3003
|
node.types = deserializeVecTSType(pos + 16);
|
|
3031
3004
|
return node;
|
|
@@ -3035,8 +3008,8 @@ function deserializeTSIntersectionType(pos) {
|
|
|
3035
3008
|
let node = {
|
|
3036
3009
|
type: "TSIntersectionType",
|
|
3037
3010
|
types: null,
|
|
3038
|
-
start:
|
|
3039
|
-
end:
|
|
3011
|
+
start: deserializeI32(pos),
|
|
3012
|
+
end: deserializeI32(pos + 4),
|
|
3040
3013
|
};
|
|
3041
3014
|
node.types = deserializeVecTSType(pos + 16);
|
|
3042
3015
|
return node;
|
|
@@ -3047,8 +3020,8 @@ function deserializeTSParenthesizedType(pos) {
|
|
|
3047
3020
|
node = {
|
|
3048
3021
|
type: "TSParenthesizedType",
|
|
3049
3022
|
typeAnnotation: null,
|
|
3050
|
-
start:
|
|
3051
|
-
end:
|
|
3023
|
+
start: deserializeI32(pos),
|
|
3024
|
+
end: deserializeI32(pos + 4),
|
|
3052
3025
|
};
|
|
3053
3026
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3054
3027
|
return node;
|
|
@@ -3059,8 +3032,8 @@ function deserializeTSTypeOperator(pos) {
|
|
|
3059
3032
|
type: "TSTypeOperator",
|
|
3060
3033
|
operator: deserializeTSTypeOperatorOperator(pos + 12),
|
|
3061
3034
|
typeAnnotation: null,
|
|
3062
|
-
start:
|
|
3063
|
-
end:
|
|
3035
|
+
start: deserializeI32(pos),
|
|
3036
|
+
end: deserializeI32(pos + 4),
|
|
3064
3037
|
};
|
|
3065
3038
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3066
3039
|
return node;
|
|
@@ -3083,8 +3056,8 @@ function deserializeTSArrayType(pos) {
|
|
|
3083
3056
|
let node = {
|
|
3084
3057
|
type: "TSArrayType",
|
|
3085
3058
|
elementType: null,
|
|
3086
|
-
start:
|
|
3087
|
-
end:
|
|
3059
|
+
start: deserializeI32(pos),
|
|
3060
|
+
end: deserializeI32(pos + 4),
|
|
3088
3061
|
};
|
|
3089
3062
|
node.elementType = deserializeTSType(pos + 16);
|
|
3090
3063
|
return node;
|
|
@@ -3095,8 +3068,8 @@ function deserializeTSIndexedAccessType(pos) {
|
|
|
3095
3068
|
type: "TSIndexedAccessType",
|
|
3096
3069
|
objectType: null,
|
|
3097
3070
|
indexType: null,
|
|
3098
|
-
start:
|
|
3099
|
-
end:
|
|
3071
|
+
start: deserializeI32(pos),
|
|
3072
|
+
end: deserializeI32(pos + 4),
|
|
3100
3073
|
};
|
|
3101
3074
|
node.objectType = deserializeTSType(pos + 16);
|
|
3102
3075
|
node.indexType = deserializeTSType(pos + 32);
|
|
@@ -3107,8 +3080,8 @@ function deserializeTSTupleType(pos) {
|
|
|
3107
3080
|
let node = {
|
|
3108
3081
|
type: "TSTupleType",
|
|
3109
3082
|
elementTypes: null,
|
|
3110
|
-
start:
|
|
3111
|
-
end:
|
|
3083
|
+
start: deserializeI32(pos),
|
|
3084
|
+
end: deserializeI32(pos + 4),
|
|
3112
3085
|
};
|
|
3113
3086
|
node.elementTypes = deserializeVecTSTupleElement(pos + 16);
|
|
3114
3087
|
return node;
|
|
@@ -3120,8 +3093,8 @@ function deserializeTSNamedTupleMember(pos) {
|
|
|
3120
3093
|
label: null,
|
|
3121
3094
|
elementType: null,
|
|
3122
3095
|
optional: deserializeBool(pos + 12),
|
|
3123
|
-
start:
|
|
3124
|
-
end:
|
|
3096
|
+
start: deserializeI32(pos),
|
|
3097
|
+
end: deserializeI32(pos + 4),
|
|
3125
3098
|
};
|
|
3126
3099
|
node.label = deserializeIdentifierName(pos + 16);
|
|
3127
3100
|
node.elementType = deserializeTSTupleElement(pos + 48);
|
|
@@ -3132,8 +3105,8 @@ function deserializeTSOptionalType(pos) {
|
|
|
3132
3105
|
let node = {
|
|
3133
3106
|
type: "TSOptionalType",
|
|
3134
3107
|
typeAnnotation: null,
|
|
3135
|
-
start:
|
|
3136
|
-
end:
|
|
3108
|
+
start: deserializeI32(pos),
|
|
3109
|
+
end: deserializeI32(pos + 4),
|
|
3137
3110
|
};
|
|
3138
3111
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3139
3112
|
return node;
|
|
@@ -3143,8 +3116,8 @@ function deserializeTSRestType(pos) {
|
|
|
3143
3116
|
let node = {
|
|
3144
3117
|
type: "TSRestType",
|
|
3145
3118
|
typeAnnotation: null,
|
|
3146
|
-
start:
|
|
3147
|
-
end:
|
|
3119
|
+
start: deserializeI32(pos),
|
|
3120
|
+
end: deserializeI32(pos + 4),
|
|
3148
3121
|
};
|
|
3149
3122
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3150
3123
|
return node;
|
|
@@ -3238,112 +3211,112 @@ function deserializeTSTupleElement(pos) {
|
|
|
3238
3211
|
function deserializeTSAnyKeyword(pos) {
|
|
3239
3212
|
return {
|
|
3240
3213
|
type: "TSAnyKeyword",
|
|
3241
|
-
start:
|
|
3242
|
-
end:
|
|
3214
|
+
start: deserializeI32(pos),
|
|
3215
|
+
end: deserializeI32(pos + 4),
|
|
3243
3216
|
};
|
|
3244
3217
|
}
|
|
3245
3218
|
|
|
3246
3219
|
function deserializeTSStringKeyword(pos) {
|
|
3247
3220
|
return {
|
|
3248
3221
|
type: "TSStringKeyword",
|
|
3249
|
-
start:
|
|
3250
|
-
end:
|
|
3222
|
+
start: deserializeI32(pos),
|
|
3223
|
+
end: deserializeI32(pos + 4),
|
|
3251
3224
|
};
|
|
3252
3225
|
}
|
|
3253
3226
|
|
|
3254
3227
|
function deserializeTSBooleanKeyword(pos) {
|
|
3255
3228
|
return {
|
|
3256
3229
|
type: "TSBooleanKeyword",
|
|
3257
|
-
start:
|
|
3258
|
-
end:
|
|
3230
|
+
start: deserializeI32(pos),
|
|
3231
|
+
end: deserializeI32(pos + 4),
|
|
3259
3232
|
};
|
|
3260
3233
|
}
|
|
3261
3234
|
|
|
3262
3235
|
function deserializeTSNumberKeyword(pos) {
|
|
3263
3236
|
return {
|
|
3264
3237
|
type: "TSNumberKeyword",
|
|
3265
|
-
start:
|
|
3266
|
-
end:
|
|
3238
|
+
start: deserializeI32(pos),
|
|
3239
|
+
end: deserializeI32(pos + 4),
|
|
3267
3240
|
};
|
|
3268
3241
|
}
|
|
3269
3242
|
|
|
3270
3243
|
function deserializeTSNeverKeyword(pos) {
|
|
3271
3244
|
return {
|
|
3272
3245
|
type: "TSNeverKeyword",
|
|
3273
|
-
start:
|
|
3274
|
-
end:
|
|
3246
|
+
start: deserializeI32(pos),
|
|
3247
|
+
end: deserializeI32(pos + 4),
|
|
3275
3248
|
};
|
|
3276
3249
|
}
|
|
3277
3250
|
|
|
3278
3251
|
function deserializeTSIntrinsicKeyword(pos) {
|
|
3279
3252
|
return {
|
|
3280
3253
|
type: "TSIntrinsicKeyword",
|
|
3281
|
-
start:
|
|
3282
|
-
end:
|
|
3254
|
+
start: deserializeI32(pos),
|
|
3255
|
+
end: deserializeI32(pos + 4),
|
|
3283
3256
|
};
|
|
3284
3257
|
}
|
|
3285
3258
|
|
|
3286
3259
|
function deserializeTSUnknownKeyword(pos) {
|
|
3287
3260
|
return {
|
|
3288
3261
|
type: "TSUnknownKeyword",
|
|
3289
|
-
start:
|
|
3290
|
-
end:
|
|
3262
|
+
start: deserializeI32(pos),
|
|
3263
|
+
end: deserializeI32(pos + 4),
|
|
3291
3264
|
};
|
|
3292
3265
|
}
|
|
3293
3266
|
|
|
3294
3267
|
function deserializeTSNullKeyword(pos) {
|
|
3295
3268
|
return {
|
|
3296
3269
|
type: "TSNullKeyword",
|
|
3297
|
-
start:
|
|
3298
|
-
end:
|
|
3270
|
+
start: deserializeI32(pos),
|
|
3271
|
+
end: deserializeI32(pos + 4),
|
|
3299
3272
|
};
|
|
3300
3273
|
}
|
|
3301
3274
|
|
|
3302
3275
|
function deserializeTSUndefinedKeyword(pos) {
|
|
3303
3276
|
return {
|
|
3304
3277
|
type: "TSUndefinedKeyword",
|
|
3305
|
-
start:
|
|
3306
|
-
end:
|
|
3278
|
+
start: deserializeI32(pos),
|
|
3279
|
+
end: deserializeI32(pos + 4),
|
|
3307
3280
|
};
|
|
3308
3281
|
}
|
|
3309
3282
|
|
|
3310
3283
|
function deserializeTSVoidKeyword(pos) {
|
|
3311
3284
|
return {
|
|
3312
3285
|
type: "TSVoidKeyword",
|
|
3313
|
-
start:
|
|
3314
|
-
end:
|
|
3286
|
+
start: deserializeI32(pos),
|
|
3287
|
+
end: deserializeI32(pos + 4),
|
|
3315
3288
|
};
|
|
3316
3289
|
}
|
|
3317
3290
|
|
|
3318
3291
|
function deserializeTSSymbolKeyword(pos) {
|
|
3319
3292
|
return {
|
|
3320
3293
|
type: "TSSymbolKeyword",
|
|
3321
|
-
start:
|
|
3322
|
-
end:
|
|
3294
|
+
start: deserializeI32(pos),
|
|
3295
|
+
end: deserializeI32(pos + 4),
|
|
3323
3296
|
};
|
|
3324
3297
|
}
|
|
3325
3298
|
|
|
3326
3299
|
function deserializeTSThisType(pos) {
|
|
3327
3300
|
return {
|
|
3328
3301
|
type: "TSThisType",
|
|
3329
|
-
start:
|
|
3330
|
-
end:
|
|
3302
|
+
start: deserializeI32(pos),
|
|
3303
|
+
end: deserializeI32(pos + 4),
|
|
3331
3304
|
};
|
|
3332
3305
|
}
|
|
3333
3306
|
|
|
3334
3307
|
function deserializeTSObjectKeyword(pos) {
|
|
3335
3308
|
return {
|
|
3336
3309
|
type: "TSObjectKeyword",
|
|
3337
|
-
start:
|
|
3338
|
-
end:
|
|
3310
|
+
start: deserializeI32(pos),
|
|
3311
|
+
end: deserializeI32(pos + 4),
|
|
3339
3312
|
};
|
|
3340
3313
|
}
|
|
3341
3314
|
|
|
3342
3315
|
function deserializeTSBigIntKeyword(pos) {
|
|
3343
3316
|
return {
|
|
3344
3317
|
type: "TSBigIntKeyword",
|
|
3345
|
-
start:
|
|
3346
|
-
end:
|
|
3318
|
+
start: deserializeI32(pos),
|
|
3319
|
+
end: deserializeI32(pos + 4),
|
|
3347
3320
|
};
|
|
3348
3321
|
}
|
|
3349
3322
|
|
|
@@ -3352,8 +3325,8 @@ function deserializeTSTypeReference(pos) {
|
|
|
3352
3325
|
type: "TSTypeReference",
|
|
3353
3326
|
typeName: null,
|
|
3354
3327
|
typeArguments: null,
|
|
3355
|
-
start:
|
|
3356
|
-
end:
|
|
3328
|
+
start: deserializeI32(pos),
|
|
3329
|
+
end: deserializeI32(pos + 4),
|
|
3357
3330
|
};
|
|
3358
3331
|
node.typeName = deserializeTSTypeName(pos + 16);
|
|
3359
3332
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -3378,8 +3351,8 @@ function deserializeTSQualifiedName(pos) {
|
|
|
3378
3351
|
type: "TSQualifiedName",
|
|
3379
3352
|
left: null,
|
|
3380
3353
|
right: null,
|
|
3381
|
-
start:
|
|
3382
|
-
end:
|
|
3354
|
+
start: deserializeI32(pos),
|
|
3355
|
+
end: deserializeI32(pos + 4),
|
|
3383
3356
|
};
|
|
3384
3357
|
node.left = deserializeTSTypeName(pos + 16);
|
|
3385
3358
|
node.right = deserializeIdentifierName(pos + 32);
|
|
@@ -3390,8 +3363,8 @@ function deserializeTSTypeParameterInstantiation(pos) {
|
|
|
3390
3363
|
let node = {
|
|
3391
3364
|
type: "TSTypeParameterInstantiation",
|
|
3392
3365
|
params: null,
|
|
3393
|
-
start:
|
|
3394
|
-
end:
|
|
3366
|
+
start: deserializeI32(pos),
|
|
3367
|
+
end: deserializeI32(pos + 4),
|
|
3395
3368
|
};
|
|
3396
3369
|
node.params = deserializeVecTSType(pos + 16);
|
|
3397
3370
|
return node;
|
|
@@ -3406,8 +3379,8 @@ function deserializeTSTypeParameter(pos) {
|
|
|
3406
3379
|
in: deserializeBool(pos + 12),
|
|
3407
3380
|
out: deserializeBool(pos + 13),
|
|
3408
3381
|
const: deserializeBool(pos + 14),
|
|
3409
|
-
start:
|
|
3410
|
-
end:
|
|
3382
|
+
start: deserializeI32(pos),
|
|
3383
|
+
end: deserializeI32(pos + 4),
|
|
3411
3384
|
};
|
|
3412
3385
|
node.name = deserializeBindingIdentifier(pos + 16);
|
|
3413
3386
|
node.constraint = deserializeOptionTSType(pos + 48);
|
|
@@ -3419,8 +3392,8 @@ function deserializeTSTypeParameterDeclaration(pos) {
|
|
|
3419
3392
|
let node = {
|
|
3420
3393
|
type: "TSTypeParameterDeclaration",
|
|
3421
3394
|
params: null,
|
|
3422
|
-
start:
|
|
3423
|
-
end:
|
|
3395
|
+
start: deserializeI32(pos),
|
|
3396
|
+
end: deserializeI32(pos + 4),
|
|
3424
3397
|
};
|
|
3425
3398
|
node.params = deserializeVecTSTypeParameter(pos + 16);
|
|
3426
3399
|
return node;
|
|
@@ -3433,8 +3406,8 @@ function deserializeTSTypeAliasDeclaration(pos) {
|
|
|
3433
3406
|
typeParameters: null,
|
|
3434
3407
|
typeAnnotation: null,
|
|
3435
3408
|
declare: deserializeBool(pos + 72),
|
|
3436
|
-
start:
|
|
3437
|
-
end:
|
|
3409
|
+
start: deserializeI32(pos),
|
|
3410
|
+
end: deserializeI32(pos + 4),
|
|
3438
3411
|
};
|
|
3439
3412
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
3440
3413
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 48);
|
|
@@ -3450,8 +3423,8 @@ function deserializeTSInterfaceDeclaration(pos) {
|
|
|
3450
3423
|
extends: null,
|
|
3451
3424
|
body: null,
|
|
3452
3425
|
declare: deserializeBool(pos + 88),
|
|
3453
|
-
start:
|
|
3454
|
-
end:
|
|
3426
|
+
start: deserializeI32(pos),
|
|
3427
|
+
end: deserializeI32(pos + 4),
|
|
3455
3428
|
};
|
|
3456
3429
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
3457
3430
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 48);
|
|
@@ -3464,8 +3437,8 @@ function deserializeTSInterfaceBody(pos) {
|
|
|
3464
3437
|
let node = {
|
|
3465
3438
|
type: "TSInterfaceBody",
|
|
3466
3439
|
body: null,
|
|
3467
|
-
start:
|
|
3468
|
-
end:
|
|
3440
|
+
start: deserializeI32(pos),
|
|
3441
|
+
end: deserializeI32(pos + 4),
|
|
3469
3442
|
};
|
|
3470
3443
|
node.body = deserializeVecTSSignature(pos + 16);
|
|
3471
3444
|
return node;
|
|
@@ -3480,13 +3453,12 @@ function deserializeTSPropertySignature(pos) {
|
|
|
3480
3453
|
key: null,
|
|
3481
3454
|
typeAnnotation: null,
|
|
3482
3455
|
accessibility: null,
|
|
3483
|
-
static:
|
|
3484
|
-
start:
|
|
3485
|
-
end:
|
|
3456
|
+
static: false,
|
|
3457
|
+
start: deserializeI32(pos),
|
|
3458
|
+
end: deserializeI32(pos + 4),
|
|
3486
3459
|
};
|
|
3487
3460
|
node.key = deserializePropertyKey(pos + 16);
|
|
3488
3461
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 32);
|
|
3489
|
-
node.static = false;
|
|
3490
3462
|
return node;
|
|
3491
3463
|
}
|
|
3492
3464
|
|
|
@@ -3515,8 +3487,8 @@ function deserializeTSIndexSignature(pos) {
|
|
|
3515
3487
|
readonly: deserializeBool(pos + 12),
|
|
3516
3488
|
static: deserializeBool(pos + 13),
|
|
3517
3489
|
accessibility: null,
|
|
3518
|
-
start:
|
|
3519
|
-
end:
|
|
3490
|
+
start: deserializeI32(pos),
|
|
3491
|
+
end: deserializeI32(pos + 4),
|
|
3520
3492
|
};
|
|
3521
3493
|
node.parameters = deserializeVecTSIndexSignatureName(pos + 16);
|
|
3522
3494
|
node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 40);
|
|
@@ -3529,8 +3501,8 @@ function deserializeTSCallSignatureDeclaration(pos) {
|
|
|
3529
3501
|
typeParameters: null,
|
|
3530
3502
|
params: null,
|
|
3531
3503
|
returnType: null,
|
|
3532
|
-
start:
|
|
3533
|
-
end:
|
|
3504
|
+
start: deserializeI32(pos),
|
|
3505
|
+
end: deserializeI32(pos + 4),
|
|
3534
3506
|
},
|
|
3535
3507
|
params = deserializeBoxFormalParameters(pos + 32),
|
|
3536
3508
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 24);
|
|
@@ -3565,10 +3537,10 @@ function deserializeTSMethodSignature(pos) {
|
|
|
3565
3537
|
params: null,
|
|
3566
3538
|
returnType: null,
|
|
3567
3539
|
accessibility: null,
|
|
3568
|
-
readonly:
|
|
3569
|
-
static:
|
|
3570
|
-
start:
|
|
3571
|
-
end:
|
|
3540
|
+
readonly: false,
|
|
3541
|
+
static: false,
|
|
3542
|
+
start: deserializeI32(pos),
|
|
3543
|
+
end: deserializeI32(pos + 4),
|
|
3572
3544
|
},
|
|
3573
3545
|
params = deserializeBoxFormalParameters(pos + 48),
|
|
3574
3546
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 40);
|
|
@@ -3577,8 +3549,6 @@ function deserializeTSMethodSignature(pos) {
|
|
|
3577
3549
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 32);
|
|
3578
3550
|
node.params = params;
|
|
3579
3551
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 56);
|
|
3580
|
-
node.readonly = false;
|
|
3581
|
-
node.static = false;
|
|
3582
3552
|
return node;
|
|
3583
3553
|
}
|
|
3584
3554
|
|
|
@@ -3588,8 +3558,8 @@ function deserializeTSConstructSignatureDeclaration(pos) {
|
|
|
3588
3558
|
typeParameters: null,
|
|
3589
3559
|
params: null,
|
|
3590
3560
|
returnType: null,
|
|
3591
|
-
start:
|
|
3592
|
-
end:
|
|
3561
|
+
start: deserializeI32(pos),
|
|
3562
|
+
end: deserializeI32(pos + 4),
|
|
3593
3563
|
};
|
|
3594
3564
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16);
|
|
3595
3565
|
node.params = deserializeBoxFormalParameters(pos + 24);
|
|
@@ -3600,15 +3570,13 @@ function deserializeTSConstructSignatureDeclaration(pos) {
|
|
|
3600
3570
|
function deserializeTSIndexSignatureName(pos) {
|
|
3601
3571
|
let node = {
|
|
3602
3572
|
type: "Identifier",
|
|
3603
|
-
decorators:
|
|
3573
|
+
decorators: [],
|
|
3604
3574
|
name: deserializeStr(pos + 16),
|
|
3605
|
-
optional:
|
|
3575
|
+
optional: false,
|
|
3606
3576
|
typeAnnotation: null,
|
|
3607
|
-
start:
|
|
3608
|
-
end:
|
|
3577
|
+
start: deserializeI32(pos),
|
|
3578
|
+
end: deserializeI32(pos + 4),
|
|
3609
3579
|
};
|
|
3610
|
-
node.decorators = [];
|
|
3611
|
-
node.optional = false;
|
|
3612
3580
|
node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 32);
|
|
3613
3581
|
return node;
|
|
3614
3582
|
}
|
|
@@ -3618,8 +3586,8 @@ function deserializeTSInterfaceHeritage(pos) {
|
|
|
3618
3586
|
type: "TSInterfaceHeritage",
|
|
3619
3587
|
expression: null,
|
|
3620
3588
|
typeArguments: null,
|
|
3621
|
-
start:
|
|
3622
|
-
end:
|
|
3589
|
+
start: deserializeI32(pos),
|
|
3590
|
+
end: deserializeI32(pos + 4),
|
|
3623
3591
|
};
|
|
3624
3592
|
node.expression = deserializeExpression(pos + 16);
|
|
3625
3593
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -3632,8 +3600,8 @@ function deserializeTSTypePredicate(pos) {
|
|
|
3632
3600
|
parameterName: null,
|
|
3633
3601
|
asserts: deserializeBool(pos + 12),
|
|
3634
3602
|
typeAnnotation: null,
|
|
3635
|
-
start:
|
|
3636
|
-
end:
|
|
3603
|
+
start: deserializeI32(pos),
|
|
3604
|
+
end: deserializeI32(pos + 4),
|
|
3637
3605
|
};
|
|
3638
3606
|
node.parameterName = deserializeTSTypePredicateName(pos + 16);
|
|
3639
3607
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 40);
|
|
@@ -3653,8 +3621,8 @@ function deserializeTSTypePredicateName(pos) {
|
|
|
3653
3621
|
|
|
3654
3622
|
function deserializeTSModuleDeclaration(pos) {
|
|
3655
3623
|
let kind = deserializeTSModuleDeclarationKind(pos + 88),
|
|
3656
|
-
start =
|
|
3657
|
-
end =
|
|
3624
|
+
start = deserializeI32(pos),
|
|
3625
|
+
end = deserializeI32(pos + 4),
|
|
3658
3626
|
declare = deserializeBool(pos + 89),
|
|
3659
3627
|
node,
|
|
3660
3628
|
body = deserializeOptionTSModuleDeclarationBody(pos + 72);
|
|
@@ -3758,21 +3726,19 @@ function deserializeTSGlobalDeclaration(pos) {
|
|
|
3758
3726
|
type: "TSModuleDeclaration",
|
|
3759
3727
|
id: null,
|
|
3760
3728
|
body: null,
|
|
3761
|
-
kind:
|
|
3729
|
+
kind: "global",
|
|
3762
3730
|
declare: deserializeBool(pos + 88),
|
|
3763
|
-
global:
|
|
3764
|
-
start:
|
|
3765
|
-
end:
|
|
3731
|
+
global: true,
|
|
3732
|
+
start: deserializeI32(pos),
|
|
3733
|
+
end: deserializeI32(pos + 4),
|
|
3766
3734
|
};
|
|
3767
3735
|
node.id = {
|
|
3768
3736
|
type: "Identifier",
|
|
3769
3737
|
name: "global",
|
|
3770
|
-
start:
|
|
3771
|
-
end:
|
|
3738
|
+
start: deserializeI32(pos + 16),
|
|
3739
|
+
end: deserializeI32(pos + 20),
|
|
3772
3740
|
};
|
|
3773
3741
|
node.body = deserializeTSModuleBlock(pos + 24);
|
|
3774
|
-
node.kind = "global";
|
|
3775
|
-
node.global = true;
|
|
3776
3742
|
return node;
|
|
3777
3743
|
}
|
|
3778
3744
|
|
|
@@ -3780,8 +3746,8 @@ function deserializeTSModuleBlock(pos) {
|
|
|
3780
3746
|
let node = {
|
|
3781
3747
|
type: "TSModuleBlock",
|
|
3782
3748
|
body: null,
|
|
3783
|
-
start:
|
|
3784
|
-
end:
|
|
3749
|
+
start: deserializeI32(pos),
|
|
3750
|
+
end: deserializeI32(pos + 4),
|
|
3785
3751
|
},
|
|
3786
3752
|
body = deserializeVecDirective(pos + 16);
|
|
3787
3753
|
body.push(...deserializeVecStatement(pos + 40));
|
|
@@ -3793,8 +3759,8 @@ function deserializeTSTypeLiteral(pos) {
|
|
|
3793
3759
|
let node = {
|
|
3794
3760
|
type: "TSTypeLiteral",
|
|
3795
3761
|
members: null,
|
|
3796
|
-
start:
|
|
3797
|
-
end:
|
|
3762
|
+
start: deserializeI32(pos),
|
|
3763
|
+
end: deserializeI32(pos + 4),
|
|
3798
3764
|
};
|
|
3799
3765
|
node.members = deserializeVecTSSignature(pos + 16);
|
|
3800
3766
|
return node;
|
|
@@ -3804,8 +3770,8 @@ function deserializeTSInferType(pos) {
|
|
|
3804
3770
|
let node = {
|
|
3805
3771
|
type: "TSInferType",
|
|
3806
3772
|
typeParameter: null,
|
|
3807
|
-
start:
|
|
3808
|
-
end:
|
|
3773
|
+
start: deserializeI32(pos),
|
|
3774
|
+
end: deserializeI32(pos + 4),
|
|
3809
3775
|
};
|
|
3810
3776
|
node.typeParameter = deserializeBoxTSTypeParameter(pos + 16);
|
|
3811
3777
|
return node;
|
|
@@ -3816,8 +3782,8 @@ function deserializeTSTypeQuery(pos) {
|
|
|
3816
3782
|
type: "TSTypeQuery",
|
|
3817
3783
|
exprName: null,
|
|
3818
3784
|
typeArguments: null,
|
|
3819
|
-
start:
|
|
3820
|
-
end:
|
|
3785
|
+
start: deserializeI32(pos),
|
|
3786
|
+
end: deserializeI32(pos + 4),
|
|
3821
3787
|
};
|
|
3822
3788
|
node.exprName = deserializeTSTypeQueryExprName(pos + 16);
|
|
3823
3789
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -3846,8 +3812,8 @@ function deserializeTSImportType(pos) {
|
|
|
3846
3812
|
options: null,
|
|
3847
3813
|
qualifier: null,
|
|
3848
3814
|
typeArguments: null,
|
|
3849
|
-
start:
|
|
3850
|
-
end:
|
|
3815
|
+
start: deserializeI32(pos),
|
|
3816
|
+
end: deserializeI32(pos + 4),
|
|
3851
3817
|
};
|
|
3852
3818
|
node.source = deserializeStringLiteral(pos + 16);
|
|
3853
3819
|
node.options = deserializeOptionBoxObjectExpression(pos + 64);
|
|
@@ -3872,8 +3838,8 @@ function deserializeTSImportTypeQualifiedName(pos) {
|
|
|
3872
3838
|
type: "TSQualifiedName",
|
|
3873
3839
|
left: null,
|
|
3874
3840
|
right: null,
|
|
3875
|
-
start:
|
|
3876
|
-
end:
|
|
3841
|
+
start: deserializeI32(pos),
|
|
3842
|
+
end: deserializeI32(pos + 4),
|
|
3877
3843
|
};
|
|
3878
3844
|
node.left = deserializeTSImportTypeQualifier(pos + 16);
|
|
3879
3845
|
node.right = deserializeIdentifierName(pos + 32);
|
|
@@ -3886,8 +3852,8 @@ function deserializeTSFunctionType(pos) {
|
|
|
3886
3852
|
typeParameters: null,
|
|
3887
3853
|
params: null,
|
|
3888
3854
|
returnType: null,
|
|
3889
|
-
start:
|
|
3890
|
-
end:
|
|
3855
|
+
start: deserializeI32(pos),
|
|
3856
|
+
end: deserializeI32(pos + 4),
|
|
3891
3857
|
},
|
|
3892
3858
|
params = deserializeBoxFormalParameters(pos + 32),
|
|
3893
3859
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 24);
|
|
@@ -3905,8 +3871,8 @@ function deserializeTSConstructorType(pos) {
|
|
|
3905
3871
|
typeParameters: null,
|
|
3906
3872
|
params: null,
|
|
3907
3873
|
returnType: null,
|
|
3908
|
-
start:
|
|
3909
|
-
end:
|
|
3874
|
+
start: deserializeI32(pos),
|
|
3875
|
+
end: deserializeI32(pos + 4),
|
|
3910
3876
|
};
|
|
3911
3877
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16);
|
|
3912
3878
|
node.params = deserializeBoxFormalParameters(pos + 24);
|
|
@@ -3923,8 +3889,8 @@ function deserializeTSMappedType(pos) {
|
|
|
3923
3889
|
typeAnnotation: null,
|
|
3924
3890
|
optional: null,
|
|
3925
3891
|
readonly: deserializeOptionTSMappedTypeModifierOperator(pos + 97),
|
|
3926
|
-
start:
|
|
3927
|
-
end:
|
|
3892
|
+
start: deserializeI32(pos),
|
|
3893
|
+
end: deserializeI32(pos + 4),
|
|
3928
3894
|
},
|
|
3929
3895
|
optional = deserializeOptionTSMappedTypeModifierOperator(pos + 96);
|
|
3930
3896
|
optional === null && (optional = false);
|
|
@@ -3954,8 +3920,8 @@ function deserializeTSTemplateLiteralType(pos) {
|
|
|
3954
3920
|
type: "TSTemplateLiteralType",
|
|
3955
3921
|
quasis: null,
|
|
3956
3922
|
types: null,
|
|
3957
|
-
start:
|
|
3958
|
-
end:
|
|
3923
|
+
start: deserializeI32(pos),
|
|
3924
|
+
end: deserializeI32(pos + 4),
|
|
3959
3925
|
};
|
|
3960
3926
|
node.quasis = deserializeVecTemplateElement(pos + 16);
|
|
3961
3927
|
node.types = deserializeVecTSType(pos + 40);
|
|
@@ -3967,8 +3933,8 @@ function deserializeTSAsExpression(pos) {
|
|
|
3967
3933
|
type: "TSAsExpression",
|
|
3968
3934
|
expression: null,
|
|
3969
3935
|
typeAnnotation: null,
|
|
3970
|
-
start:
|
|
3971
|
-
end:
|
|
3936
|
+
start: deserializeI32(pos),
|
|
3937
|
+
end: deserializeI32(pos + 4),
|
|
3972
3938
|
};
|
|
3973
3939
|
node.expression = deserializeExpression(pos + 16);
|
|
3974
3940
|
node.typeAnnotation = deserializeTSType(pos + 32);
|
|
@@ -3980,8 +3946,8 @@ function deserializeTSSatisfiesExpression(pos) {
|
|
|
3980
3946
|
type: "TSSatisfiesExpression",
|
|
3981
3947
|
expression: null,
|
|
3982
3948
|
typeAnnotation: null,
|
|
3983
|
-
start:
|
|
3984
|
-
end:
|
|
3949
|
+
start: deserializeI32(pos),
|
|
3950
|
+
end: deserializeI32(pos + 4),
|
|
3985
3951
|
};
|
|
3986
3952
|
node.expression = deserializeExpression(pos + 16);
|
|
3987
3953
|
node.typeAnnotation = deserializeTSType(pos + 32);
|
|
@@ -3993,8 +3959,8 @@ function deserializeTSTypeAssertion(pos) {
|
|
|
3993
3959
|
type: "TSTypeAssertion",
|
|
3994
3960
|
typeAnnotation: null,
|
|
3995
3961
|
expression: null,
|
|
3996
|
-
start:
|
|
3997
|
-
end:
|
|
3962
|
+
start: deserializeI32(pos),
|
|
3963
|
+
end: deserializeI32(pos + 4),
|
|
3998
3964
|
};
|
|
3999
3965
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
4000
3966
|
node.expression = deserializeExpression(pos + 32);
|
|
@@ -4007,8 +3973,8 @@ function deserializeTSImportEqualsDeclaration(pos) {
|
|
|
4007
3973
|
id: null,
|
|
4008
3974
|
moduleReference: null,
|
|
4009
3975
|
importKind: deserializeImportOrExportKind(pos + 12),
|
|
4010
|
-
start:
|
|
4011
|
-
end:
|
|
3976
|
+
start: deserializeI32(pos),
|
|
3977
|
+
end: deserializeI32(pos + 4),
|
|
4012
3978
|
};
|
|
4013
3979
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
4014
3980
|
node.moduleReference = deserializeTSModuleReference(pos + 48);
|
|
@@ -4032,8 +3998,8 @@ function deserializeTSExternalModuleReference(pos) {
|
|
|
4032
3998
|
let node = {
|
|
4033
3999
|
type: "TSExternalModuleReference",
|
|
4034
4000
|
expression: null,
|
|
4035
|
-
start:
|
|
4036
|
-
end:
|
|
4001
|
+
start: deserializeI32(pos),
|
|
4002
|
+
end: deserializeI32(pos + 4),
|
|
4037
4003
|
};
|
|
4038
4004
|
node.expression = deserializeStringLiteral(pos + 16);
|
|
4039
4005
|
return node;
|
|
@@ -4043,8 +4009,8 @@ function deserializeTSNonNullExpression(pos) {
|
|
|
4043
4009
|
let node = {
|
|
4044
4010
|
type: "TSNonNullExpression",
|
|
4045
4011
|
expression: null,
|
|
4046
|
-
start:
|
|
4047
|
-
end:
|
|
4012
|
+
start: deserializeI32(pos),
|
|
4013
|
+
end: deserializeI32(pos + 4),
|
|
4048
4014
|
};
|
|
4049
4015
|
node.expression = deserializeExpression(pos + 16);
|
|
4050
4016
|
return node;
|
|
@@ -4054,8 +4020,8 @@ function deserializeDecorator(pos) {
|
|
|
4054
4020
|
let node = {
|
|
4055
4021
|
type: "Decorator",
|
|
4056
4022
|
expression: null,
|
|
4057
|
-
start:
|
|
4058
|
-
end:
|
|
4023
|
+
start: deserializeI32(pos),
|
|
4024
|
+
end: deserializeI32(pos + 4),
|
|
4059
4025
|
};
|
|
4060
4026
|
node.expression = deserializeExpression(pos + 16);
|
|
4061
4027
|
return node;
|
|
@@ -4065,8 +4031,8 @@ function deserializeTSExportAssignment(pos) {
|
|
|
4065
4031
|
let node = {
|
|
4066
4032
|
type: "TSExportAssignment",
|
|
4067
4033
|
expression: null,
|
|
4068
|
-
start:
|
|
4069
|
-
end:
|
|
4034
|
+
start: deserializeI32(pos),
|
|
4035
|
+
end: deserializeI32(pos + 4),
|
|
4070
4036
|
};
|
|
4071
4037
|
node.expression = deserializeExpression(pos + 16);
|
|
4072
4038
|
return node;
|
|
@@ -4076,8 +4042,8 @@ function deserializeTSNamespaceExportDeclaration(pos) {
|
|
|
4076
4042
|
let node = {
|
|
4077
4043
|
type: "TSNamespaceExportDeclaration",
|
|
4078
4044
|
id: null,
|
|
4079
|
-
start:
|
|
4080
|
-
end:
|
|
4045
|
+
start: deserializeI32(pos),
|
|
4046
|
+
end: deserializeI32(pos + 4),
|
|
4081
4047
|
};
|
|
4082
4048
|
node.id = deserializeIdentifierName(pos + 16);
|
|
4083
4049
|
return node;
|
|
@@ -4088,8 +4054,8 @@ function deserializeTSInstantiationExpression(pos) {
|
|
|
4088
4054
|
type: "TSInstantiationExpression",
|
|
4089
4055
|
expression: null,
|
|
4090
4056
|
typeArguments: null,
|
|
4091
|
-
start:
|
|
4092
|
-
end:
|
|
4057
|
+
start: deserializeI32(pos),
|
|
4058
|
+
end: deserializeI32(pos + 4),
|
|
4093
4059
|
};
|
|
4094
4060
|
node.expression = deserializeExpression(pos + 16);
|
|
4095
4061
|
node.typeArguments = deserializeBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -4112,8 +4078,8 @@ function deserializeJSDocNullableType(pos) {
|
|
|
4112
4078
|
type: "TSJSDocNullableType",
|
|
4113
4079
|
typeAnnotation: null,
|
|
4114
4080
|
postfix: deserializeBool(pos + 12),
|
|
4115
|
-
start:
|
|
4116
|
-
end:
|
|
4081
|
+
start: deserializeI32(pos),
|
|
4082
|
+
end: deserializeI32(pos + 4),
|
|
4117
4083
|
};
|
|
4118
4084
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
4119
4085
|
return node;
|
|
@@ -4124,8 +4090,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4124
4090
|
type: "TSJSDocNonNullableType",
|
|
4125
4091
|
typeAnnotation: null,
|
|
4126
4092
|
postfix: deserializeBool(pos + 12),
|
|
4127
|
-
start:
|
|
4128
|
-
end:
|
|
4093
|
+
start: deserializeI32(pos),
|
|
4094
|
+
end: deserializeI32(pos + 4),
|
|
4129
4095
|
};
|
|
4130
4096
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
4131
4097
|
return node;
|
|
@@ -4134,8 +4100,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4134
4100
|
function deserializeJSDocUnknownType(pos) {
|
|
4135
4101
|
return {
|
|
4136
4102
|
type: "TSJSDocUnknownType",
|
|
4137
|
-
start:
|
|
4138
|
-
end:
|
|
4103
|
+
start: deserializeI32(pos),
|
|
4104
|
+
end: deserializeI32(pos + 4),
|
|
4139
4105
|
};
|
|
4140
4106
|
}
|
|
4141
4107
|
|
|
@@ -4154,8 +4120,8 @@ function deserializeCommentKind(pos) {
|
|
|
4154
4120
|
|
|
4155
4121
|
function deserializeComment(pos) {
|
|
4156
4122
|
let type = deserializeCommentKind(pos + 12),
|
|
4157
|
-
start =
|
|
4158
|
-
end =
|
|
4123
|
+
start = deserializeI32(pos),
|
|
4124
|
+
end = deserializeI32(pos + 4);
|
|
4159
4125
|
return {
|
|
4160
4126
|
type,
|
|
4161
4127
|
value: sourceText.slice(start + 2, end - (type === "Line" ? 0 : 2)),
|
|
@@ -4179,16 +4145,16 @@ function deserializeModuleKind(pos) {
|
|
|
4179
4145
|
|
|
4180
4146
|
function deserializeSpan(pos) {
|
|
4181
4147
|
return {
|
|
4182
|
-
start:
|
|
4183
|
-
end:
|
|
4148
|
+
start: deserializeI32(pos),
|
|
4149
|
+
end: deserializeI32(pos + 4),
|
|
4184
4150
|
};
|
|
4185
4151
|
}
|
|
4186
4152
|
|
|
4187
4153
|
function deserializeNameSpan(pos) {
|
|
4188
4154
|
return {
|
|
4189
4155
|
value: deserializeStr(pos + 8),
|
|
4190
|
-
start:
|
|
4191
|
-
end:
|
|
4156
|
+
start: deserializeI32(pos),
|
|
4157
|
+
end: deserializeI32(pos + 4),
|
|
4192
4158
|
};
|
|
4193
4159
|
}
|
|
4194
4160
|
|
|
@@ -4237,8 +4203,8 @@ function deserializeExportEntry(pos) {
|
|
|
4237
4203
|
exportName: deserializeExportExportName(pos + 72),
|
|
4238
4204
|
localName: deserializeExportLocalName(pos + 104),
|
|
4239
4205
|
isType: deserializeBool(pos + 136),
|
|
4240
|
-
start:
|
|
4241
|
-
end:
|
|
4206
|
+
start: deserializeI32(pos),
|
|
4207
|
+
end: deserializeI32(pos + 4),
|
|
4242
4208
|
};
|
|
4243
4209
|
}
|
|
4244
4210
|
|
|
@@ -4341,8 +4307,8 @@ function deserializeExportLocalName(pos) {
|
|
|
4341
4307
|
function deserializeDynamicImport(pos) {
|
|
4342
4308
|
return {
|
|
4343
4309
|
moduleRequest: deserializeSpan(pos + 8),
|
|
4344
|
-
start:
|
|
4345
|
-
end:
|
|
4310
|
+
start: deserializeI32(pos),
|
|
4311
|
+
end: deserializeI32(pos + 4),
|
|
4346
4312
|
};
|
|
4347
4313
|
}
|
|
4348
4314
|
|
|
@@ -4516,8 +4482,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
4516
4482
|
function deserializeErrorLabel(pos) {
|
|
4517
4483
|
return {
|
|
4518
4484
|
message: deserializeOptionStr(pos + 8),
|
|
4519
|
-
start:
|
|
4520
|
-
end:
|
|
4485
|
+
start: deserializeI32(pos),
|
|
4486
|
+
end: deserializeI32(pos + 4),
|
|
4521
4487
|
};
|
|
4522
4488
|
}
|
|
4523
4489
|
|
|
@@ -4535,24 +4501,24 @@ function deserializeStaticImport(pos) {
|
|
|
4535
4501
|
return {
|
|
4536
4502
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
4537
4503
|
entries: deserializeVecImportEntry(pos + 32),
|
|
4538
|
-
start:
|
|
4539
|
-
end:
|
|
4504
|
+
start: deserializeI32(pos),
|
|
4505
|
+
end: deserializeI32(pos + 4),
|
|
4540
4506
|
};
|
|
4541
4507
|
}
|
|
4542
4508
|
|
|
4543
4509
|
function deserializeStaticExport(pos) {
|
|
4544
4510
|
return {
|
|
4545
4511
|
entries: deserializeVecExportEntry(pos + 8),
|
|
4546
|
-
start:
|
|
4547
|
-
end:
|
|
4512
|
+
start: deserializeI32(pos),
|
|
4513
|
+
end: deserializeI32(pos + 4),
|
|
4548
4514
|
};
|
|
4549
4515
|
}
|
|
4550
4516
|
|
|
4551
4517
|
function deserializeStr(pos) {
|
|
4552
4518
|
let pos32 = pos >> 2,
|
|
4553
|
-
len =
|
|
4519
|
+
len = int32[pos32 + 2];
|
|
4554
4520
|
if (len === 0) return "";
|
|
4555
|
-
pos =
|
|
4521
|
+
pos = int32[pos32];
|
|
4556
4522
|
let end = pos + len;
|
|
4557
4523
|
if (end <= firstNonAsciiPos) return sourceTextLatin.substr(pos, len);
|
|
4558
4524
|
// Use `utf8Slice` for strings longer than 64 bytes
|
|
@@ -4579,8 +4545,8 @@ function deserializeStr(pos) {
|
|
|
4579
4545
|
function deserializeVecComment(pos) {
|
|
4580
4546
|
let arr = [],
|
|
4581
4547
|
pos32 = pos >> 2;
|
|
4582
|
-
pos =
|
|
4583
|
-
let endPos = pos +
|
|
4548
|
+
pos = int32[pos32];
|
|
4549
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4584
4550
|
for (; pos !== endPos; ) {
|
|
4585
4551
|
arr.push(deserializeComment(pos));
|
|
4586
4552
|
pos += 16;
|
|
@@ -4589,7 +4555,7 @@ function deserializeVecComment(pos) {
|
|
|
4589
4555
|
}
|
|
4590
4556
|
|
|
4591
4557
|
function deserializeOptionHashbang(pos) {
|
|
4592
|
-
return
|
|
4558
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
4593
4559
|
? null
|
|
4594
4560
|
: deserializeHashbang(pos);
|
|
4595
4561
|
}
|
|
@@ -4597,8 +4563,8 @@ function deserializeOptionHashbang(pos) {
|
|
|
4597
4563
|
function deserializeVecDirective(pos) {
|
|
4598
4564
|
let arr = [],
|
|
4599
4565
|
pos32 = pos >> 2;
|
|
4600
|
-
pos =
|
|
4601
|
-
let endPos = pos +
|
|
4566
|
+
pos = int32[pos32];
|
|
4567
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
4602
4568
|
for (; pos !== endPos; ) {
|
|
4603
4569
|
arr.push(deserializeDirective(pos));
|
|
4604
4570
|
pos += 80;
|
|
@@ -4609,8 +4575,8 @@ function deserializeVecDirective(pos) {
|
|
|
4609
4575
|
function deserializeVecStatement(pos) {
|
|
4610
4576
|
let arr = [],
|
|
4611
4577
|
pos32 = pos >> 2;
|
|
4612
|
-
pos =
|
|
4613
|
-
let endPos = pos +
|
|
4578
|
+
pos = int32[pos32];
|
|
4579
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4614
4580
|
for (; pos !== endPos; ) {
|
|
4615
4581
|
arr.push(deserializeStatement(pos));
|
|
4616
4582
|
pos += 16;
|
|
@@ -4619,170 +4585,170 @@ function deserializeVecStatement(pos) {
|
|
|
4619
4585
|
}
|
|
4620
4586
|
|
|
4621
4587
|
function deserializeBoxBooleanLiteral(pos) {
|
|
4622
|
-
return deserializeBooleanLiteral(
|
|
4588
|
+
return deserializeBooleanLiteral(int32[pos >> 2]);
|
|
4623
4589
|
}
|
|
4624
4590
|
|
|
4625
4591
|
function deserializeBoxNullLiteral(pos) {
|
|
4626
|
-
return deserializeNullLiteral(
|
|
4592
|
+
return deserializeNullLiteral(int32[pos >> 2]);
|
|
4627
4593
|
}
|
|
4628
4594
|
|
|
4629
4595
|
function deserializeBoxNumericLiteral(pos) {
|
|
4630
|
-
return deserializeNumericLiteral(
|
|
4596
|
+
return deserializeNumericLiteral(int32[pos >> 2]);
|
|
4631
4597
|
}
|
|
4632
4598
|
|
|
4633
4599
|
function deserializeBoxBigIntLiteral(pos) {
|
|
4634
|
-
return deserializeBigIntLiteral(
|
|
4600
|
+
return deserializeBigIntLiteral(int32[pos >> 2]);
|
|
4635
4601
|
}
|
|
4636
4602
|
|
|
4637
4603
|
function deserializeBoxRegExpLiteral(pos) {
|
|
4638
|
-
return deserializeRegExpLiteral(
|
|
4604
|
+
return deserializeRegExpLiteral(int32[pos >> 2]);
|
|
4639
4605
|
}
|
|
4640
4606
|
|
|
4641
4607
|
function deserializeBoxStringLiteral(pos) {
|
|
4642
|
-
return deserializeStringLiteral(
|
|
4608
|
+
return deserializeStringLiteral(int32[pos >> 2]);
|
|
4643
4609
|
}
|
|
4644
4610
|
|
|
4645
4611
|
function deserializeBoxTemplateLiteral(pos) {
|
|
4646
|
-
return deserializeTemplateLiteral(
|
|
4612
|
+
return deserializeTemplateLiteral(int32[pos >> 2]);
|
|
4647
4613
|
}
|
|
4648
4614
|
|
|
4649
4615
|
function deserializeBoxIdentifierReference(pos) {
|
|
4650
|
-
return deserializeIdentifierReference(
|
|
4616
|
+
return deserializeIdentifierReference(int32[pos >> 2]);
|
|
4651
4617
|
}
|
|
4652
4618
|
|
|
4653
4619
|
function deserializeBoxMetaProperty(pos) {
|
|
4654
|
-
return deserializeMetaProperty(
|
|
4620
|
+
return deserializeMetaProperty(int32[pos >> 2]);
|
|
4655
4621
|
}
|
|
4656
4622
|
|
|
4657
4623
|
function deserializeBoxSuper(pos) {
|
|
4658
|
-
return deserializeSuper(
|
|
4624
|
+
return deserializeSuper(int32[pos >> 2]);
|
|
4659
4625
|
}
|
|
4660
4626
|
|
|
4661
4627
|
function deserializeBoxArrayExpression(pos) {
|
|
4662
|
-
return deserializeArrayExpression(
|
|
4628
|
+
return deserializeArrayExpression(int32[pos >> 2]);
|
|
4663
4629
|
}
|
|
4664
4630
|
|
|
4665
4631
|
function deserializeBoxArrowFunctionExpression(pos) {
|
|
4666
|
-
return deserializeArrowFunctionExpression(
|
|
4632
|
+
return deserializeArrowFunctionExpression(int32[pos >> 2]);
|
|
4667
4633
|
}
|
|
4668
4634
|
|
|
4669
4635
|
function deserializeBoxAssignmentExpression(pos) {
|
|
4670
|
-
return deserializeAssignmentExpression(
|
|
4636
|
+
return deserializeAssignmentExpression(int32[pos >> 2]);
|
|
4671
4637
|
}
|
|
4672
4638
|
|
|
4673
4639
|
function deserializeBoxAwaitExpression(pos) {
|
|
4674
|
-
return deserializeAwaitExpression(
|
|
4640
|
+
return deserializeAwaitExpression(int32[pos >> 2]);
|
|
4675
4641
|
}
|
|
4676
4642
|
|
|
4677
4643
|
function deserializeBoxBinaryExpression(pos) {
|
|
4678
|
-
return deserializeBinaryExpression(
|
|
4644
|
+
return deserializeBinaryExpression(int32[pos >> 2]);
|
|
4679
4645
|
}
|
|
4680
4646
|
|
|
4681
4647
|
function deserializeBoxCallExpression(pos) {
|
|
4682
|
-
return deserializeCallExpression(
|
|
4648
|
+
return deserializeCallExpression(int32[pos >> 2]);
|
|
4683
4649
|
}
|
|
4684
4650
|
|
|
4685
4651
|
function deserializeBoxChainExpression(pos) {
|
|
4686
|
-
return deserializeChainExpression(
|
|
4652
|
+
return deserializeChainExpression(int32[pos >> 2]);
|
|
4687
4653
|
}
|
|
4688
4654
|
|
|
4689
4655
|
function deserializeBoxClass(pos) {
|
|
4690
|
-
return deserializeClass(
|
|
4656
|
+
return deserializeClass(int32[pos >> 2]);
|
|
4691
4657
|
}
|
|
4692
4658
|
|
|
4693
4659
|
function deserializeBoxConditionalExpression(pos) {
|
|
4694
|
-
return deserializeConditionalExpression(
|
|
4660
|
+
return deserializeConditionalExpression(int32[pos >> 2]);
|
|
4695
4661
|
}
|
|
4696
4662
|
|
|
4697
4663
|
function deserializeBoxFunction(pos) {
|
|
4698
|
-
return deserializeFunction(
|
|
4664
|
+
return deserializeFunction(int32[pos >> 2]);
|
|
4699
4665
|
}
|
|
4700
4666
|
|
|
4701
4667
|
function deserializeBoxImportExpression(pos) {
|
|
4702
|
-
return deserializeImportExpression(
|
|
4668
|
+
return deserializeImportExpression(int32[pos >> 2]);
|
|
4703
4669
|
}
|
|
4704
4670
|
|
|
4705
4671
|
function deserializeBoxLogicalExpression(pos) {
|
|
4706
|
-
return deserializeLogicalExpression(
|
|
4672
|
+
return deserializeLogicalExpression(int32[pos >> 2]);
|
|
4707
4673
|
}
|
|
4708
4674
|
|
|
4709
4675
|
function deserializeBoxNewExpression(pos) {
|
|
4710
|
-
return deserializeNewExpression(
|
|
4676
|
+
return deserializeNewExpression(int32[pos >> 2]);
|
|
4711
4677
|
}
|
|
4712
4678
|
|
|
4713
4679
|
function deserializeBoxObjectExpression(pos) {
|
|
4714
|
-
return deserializeObjectExpression(
|
|
4680
|
+
return deserializeObjectExpression(int32[pos >> 2]);
|
|
4715
4681
|
}
|
|
4716
4682
|
|
|
4717
4683
|
function deserializeBoxParenthesizedExpression(pos) {
|
|
4718
|
-
return deserializeParenthesizedExpression(
|
|
4684
|
+
return deserializeParenthesizedExpression(int32[pos >> 2]);
|
|
4719
4685
|
}
|
|
4720
4686
|
|
|
4721
4687
|
function deserializeBoxSequenceExpression(pos) {
|
|
4722
|
-
return deserializeSequenceExpression(
|
|
4688
|
+
return deserializeSequenceExpression(int32[pos >> 2]);
|
|
4723
4689
|
}
|
|
4724
4690
|
|
|
4725
4691
|
function deserializeBoxTaggedTemplateExpression(pos) {
|
|
4726
|
-
return deserializeTaggedTemplateExpression(
|
|
4692
|
+
return deserializeTaggedTemplateExpression(int32[pos >> 2]);
|
|
4727
4693
|
}
|
|
4728
4694
|
|
|
4729
4695
|
function deserializeBoxThisExpression(pos) {
|
|
4730
|
-
return deserializeThisExpression(
|
|
4696
|
+
return deserializeThisExpression(int32[pos >> 2]);
|
|
4731
4697
|
}
|
|
4732
4698
|
|
|
4733
4699
|
function deserializeBoxUnaryExpression(pos) {
|
|
4734
|
-
return deserializeUnaryExpression(
|
|
4700
|
+
return deserializeUnaryExpression(int32[pos >> 2]);
|
|
4735
4701
|
}
|
|
4736
4702
|
|
|
4737
4703
|
function deserializeBoxUpdateExpression(pos) {
|
|
4738
|
-
return deserializeUpdateExpression(
|
|
4704
|
+
return deserializeUpdateExpression(int32[pos >> 2]);
|
|
4739
4705
|
}
|
|
4740
4706
|
|
|
4741
4707
|
function deserializeBoxYieldExpression(pos) {
|
|
4742
|
-
return deserializeYieldExpression(
|
|
4708
|
+
return deserializeYieldExpression(int32[pos >> 2]);
|
|
4743
4709
|
}
|
|
4744
4710
|
|
|
4745
4711
|
function deserializeBoxPrivateInExpression(pos) {
|
|
4746
|
-
return deserializePrivateInExpression(
|
|
4712
|
+
return deserializePrivateInExpression(int32[pos >> 2]);
|
|
4747
4713
|
}
|
|
4748
4714
|
|
|
4749
4715
|
function deserializeBoxJSXElement(pos) {
|
|
4750
|
-
return deserializeJSXElement(
|
|
4716
|
+
return deserializeJSXElement(int32[pos >> 2]);
|
|
4751
4717
|
}
|
|
4752
4718
|
|
|
4753
4719
|
function deserializeBoxJSXFragment(pos) {
|
|
4754
|
-
return deserializeJSXFragment(
|
|
4720
|
+
return deserializeJSXFragment(int32[pos >> 2]);
|
|
4755
4721
|
}
|
|
4756
4722
|
|
|
4757
4723
|
function deserializeBoxTSAsExpression(pos) {
|
|
4758
|
-
return deserializeTSAsExpression(
|
|
4724
|
+
return deserializeTSAsExpression(int32[pos >> 2]);
|
|
4759
4725
|
}
|
|
4760
4726
|
|
|
4761
4727
|
function deserializeBoxTSSatisfiesExpression(pos) {
|
|
4762
|
-
return deserializeTSSatisfiesExpression(
|
|
4728
|
+
return deserializeTSSatisfiesExpression(int32[pos >> 2]);
|
|
4763
4729
|
}
|
|
4764
4730
|
|
|
4765
4731
|
function deserializeBoxTSTypeAssertion(pos) {
|
|
4766
|
-
return deserializeTSTypeAssertion(
|
|
4732
|
+
return deserializeTSTypeAssertion(int32[pos >> 2]);
|
|
4767
4733
|
}
|
|
4768
4734
|
|
|
4769
4735
|
function deserializeBoxTSNonNullExpression(pos) {
|
|
4770
|
-
return deserializeTSNonNullExpression(
|
|
4736
|
+
return deserializeTSNonNullExpression(int32[pos >> 2]);
|
|
4771
4737
|
}
|
|
4772
4738
|
|
|
4773
4739
|
function deserializeBoxTSInstantiationExpression(pos) {
|
|
4774
|
-
return deserializeTSInstantiationExpression(
|
|
4740
|
+
return deserializeTSInstantiationExpression(int32[pos >> 2]);
|
|
4775
4741
|
}
|
|
4776
4742
|
|
|
4777
4743
|
function deserializeBoxV8IntrinsicExpression(pos) {
|
|
4778
|
-
return deserializeV8IntrinsicExpression(
|
|
4744
|
+
return deserializeV8IntrinsicExpression(int32[pos >> 2]);
|
|
4779
4745
|
}
|
|
4780
4746
|
|
|
4781
4747
|
function deserializeVecArrayExpressionElement(pos) {
|
|
4782
4748
|
let arr = [],
|
|
4783
4749
|
pos32 = pos >> 2;
|
|
4784
|
-
pos =
|
|
4785
|
-
let endPos = pos +
|
|
4750
|
+
pos = int32[pos32];
|
|
4751
|
+
let endPos = pos + int32[pos32 + 2] * 24;
|
|
4786
4752
|
for (; pos !== endPos; ) {
|
|
4787
4753
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
4788
4754
|
pos += 24;
|
|
@@ -4791,14 +4757,14 @@ function deserializeVecArrayExpressionElement(pos) {
|
|
|
4791
4757
|
}
|
|
4792
4758
|
|
|
4793
4759
|
function deserializeBoxSpreadElement(pos) {
|
|
4794
|
-
return deserializeSpreadElement(
|
|
4760
|
+
return deserializeSpreadElement(int32[pos >> 2]);
|
|
4795
4761
|
}
|
|
4796
4762
|
|
|
4797
4763
|
function deserializeVecObjectPropertyKind(pos) {
|
|
4798
4764
|
let arr = [],
|
|
4799
4765
|
pos32 = pos >> 2;
|
|
4800
|
-
pos =
|
|
4801
|
-
let endPos = pos +
|
|
4766
|
+
pos = int32[pos32];
|
|
4767
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4802
4768
|
for (; pos !== endPos; ) {
|
|
4803
4769
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
4804
4770
|
pos += 16;
|
|
@@ -4807,7 +4773,7 @@ function deserializeVecObjectPropertyKind(pos) {
|
|
|
4807
4773
|
}
|
|
4808
4774
|
|
|
4809
4775
|
function deserializeBoxObjectProperty(pos) {
|
|
4810
|
-
return deserializeObjectProperty(
|
|
4776
|
+
return deserializeObjectProperty(int32[pos >> 2]);
|
|
4811
4777
|
}
|
|
4812
4778
|
|
|
4813
4779
|
function deserializeBool(pos) {
|
|
@@ -4815,18 +4781,18 @@ function deserializeBool(pos) {
|
|
|
4815
4781
|
}
|
|
4816
4782
|
|
|
4817
4783
|
function deserializeBoxIdentifierName(pos) {
|
|
4818
|
-
return deserializeIdentifierName(
|
|
4784
|
+
return deserializeIdentifierName(int32[pos >> 2]);
|
|
4819
4785
|
}
|
|
4820
4786
|
|
|
4821
4787
|
function deserializeBoxPrivateIdentifier(pos) {
|
|
4822
|
-
return deserializePrivateIdentifier(
|
|
4788
|
+
return deserializePrivateIdentifier(int32[pos >> 2]);
|
|
4823
4789
|
}
|
|
4824
4790
|
|
|
4825
4791
|
function deserializeVecTemplateElement(pos) {
|
|
4826
4792
|
let arr = [],
|
|
4827
4793
|
pos32 = pos >> 2;
|
|
4828
|
-
pos =
|
|
4829
|
-
let endPos = pos +
|
|
4794
|
+
pos = int32[pos32];
|
|
4795
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
4830
4796
|
for (; pos !== endPos; ) {
|
|
4831
4797
|
arr.push(deserializeTemplateElement(pos));
|
|
4832
4798
|
pos += 48;
|
|
@@ -4837,8 +4803,8 @@ function deserializeVecTemplateElement(pos) {
|
|
|
4837
4803
|
function deserializeVecExpression(pos) {
|
|
4838
4804
|
let arr = [],
|
|
4839
4805
|
pos32 = pos >> 2;
|
|
4840
|
-
pos =
|
|
4841
|
-
let endPos = pos +
|
|
4806
|
+
pos = int32[pos32];
|
|
4807
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4842
4808
|
for (; pos !== endPos; ) {
|
|
4843
4809
|
arr.push(deserializeExpression(pos));
|
|
4844
4810
|
pos += 16;
|
|
@@ -4847,36 +4813,36 @@ function deserializeVecExpression(pos) {
|
|
|
4847
4813
|
}
|
|
4848
4814
|
|
|
4849
4815
|
function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
4850
|
-
return deserializeTSTypeParameterInstantiation(
|
|
4816
|
+
return deserializeTSTypeParameterInstantiation(int32[pos >> 2]);
|
|
4851
4817
|
}
|
|
4852
4818
|
|
|
4853
4819
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
4854
|
-
return
|
|
4820
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
4855
4821
|
? null
|
|
4856
4822
|
: deserializeBoxTSTypeParameterInstantiation(pos);
|
|
4857
4823
|
}
|
|
4858
4824
|
|
|
4859
4825
|
function deserializeOptionStr(pos) {
|
|
4860
|
-
return
|
|
4826
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeStr(pos);
|
|
4861
4827
|
}
|
|
4862
4828
|
|
|
4863
4829
|
function deserializeBoxComputedMemberExpression(pos) {
|
|
4864
|
-
return deserializeComputedMemberExpression(
|
|
4830
|
+
return deserializeComputedMemberExpression(int32[pos >> 2]);
|
|
4865
4831
|
}
|
|
4866
4832
|
|
|
4867
4833
|
function deserializeBoxStaticMemberExpression(pos) {
|
|
4868
|
-
return deserializeStaticMemberExpression(
|
|
4834
|
+
return deserializeStaticMemberExpression(int32[pos >> 2]);
|
|
4869
4835
|
}
|
|
4870
4836
|
|
|
4871
4837
|
function deserializeBoxPrivateFieldExpression(pos) {
|
|
4872
|
-
return deserializePrivateFieldExpression(
|
|
4838
|
+
return deserializePrivateFieldExpression(int32[pos >> 2]);
|
|
4873
4839
|
}
|
|
4874
4840
|
|
|
4875
4841
|
function deserializeVecArgument(pos) {
|
|
4876
4842
|
let arr = [],
|
|
4877
4843
|
pos32 = pos >> 2;
|
|
4878
|
-
pos =
|
|
4879
|
-
let endPos = pos +
|
|
4844
|
+
pos = int32[pos32];
|
|
4845
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4880
4846
|
for (; pos !== endPos; ) {
|
|
4881
4847
|
arr.push(deserializeArgument(pos));
|
|
4882
4848
|
pos += 16;
|
|
@@ -4885,11 +4851,11 @@ function deserializeVecArgument(pos) {
|
|
|
4885
4851
|
}
|
|
4886
4852
|
|
|
4887
4853
|
function deserializeBoxArrayAssignmentTarget(pos) {
|
|
4888
|
-
return deserializeArrayAssignmentTarget(
|
|
4854
|
+
return deserializeArrayAssignmentTarget(int32[pos >> 2]);
|
|
4889
4855
|
}
|
|
4890
4856
|
|
|
4891
4857
|
function deserializeBoxObjectAssignmentTarget(pos) {
|
|
4892
|
-
return deserializeObjectAssignmentTarget(
|
|
4858
|
+
return deserializeObjectAssignmentTarget(int32[pos >> 2]);
|
|
4893
4859
|
}
|
|
4894
4860
|
|
|
4895
4861
|
function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
@@ -4899,8 +4865,8 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
4899
4865
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
4900
4866
|
let arr = [],
|
|
4901
4867
|
pos32 = pos >> 2;
|
|
4902
|
-
pos =
|
|
4903
|
-
let endPos = pos +
|
|
4868
|
+
pos = int32[pos32];
|
|
4869
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4904
4870
|
for (; pos !== endPos; ) {
|
|
4905
4871
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
4906
4872
|
pos += 16;
|
|
@@ -4909,11 +4875,11 @@ function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
4909
4875
|
}
|
|
4910
4876
|
|
|
4911
4877
|
function deserializeBoxAssignmentTargetRest(pos) {
|
|
4912
|
-
return deserializeAssignmentTargetRest(
|
|
4878
|
+
return deserializeAssignmentTargetRest(int32[pos >> 2]);
|
|
4913
4879
|
}
|
|
4914
4880
|
|
|
4915
4881
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
4916
|
-
return
|
|
4882
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
4917
4883
|
? null
|
|
4918
4884
|
: deserializeBoxAssignmentTargetRest(pos);
|
|
4919
4885
|
}
|
|
@@ -4921,8 +4887,8 @@ function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
|
4921
4887
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
4922
4888
|
let arr = [],
|
|
4923
4889
|
pos32 = pos >> 2;
|
|
4924
|
-
pos =
|
|
4925
|
-
let endPos = pos +
|
|
4890
|
+
pos = int32[pos32];
|
|
4891
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4926
4892
|
for (; pos !== endPos; ) {
|
|
4927
4893
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
4928
4894
|
pos += 16;
|
|
@@ -4931,15 +4897,15 @@ function deserializeVecAssignmentTargetProperty(pos) {
|
|
|
4931
4897
|
}
|
|
4932
4898
|
|
|
4933
4899
|
function deserializeBoxAssignmentTargetWithDefault(pos) {
|
|
4934
|
-
return deserializeAssignmentTargetWithDefault(
|
|
4900
|
+
return deserializeAssignmentTargetWithDefault(int32[pos >> 2]);
|
|
4935
4901
|
}
|
|
4936
4902
|
|
|
4937
4903
|
function deserializeBoxAssignmentTargetPropertyIdentifier(pos) {
|
|
4938
|
-
return deserializeAssignmentTargetPropertyIdentifier(
|
|
4904
|
+
return deserializeAssignmentTargetPropertyIdentifier(int32[pos >> 2]);
|
|
4939
4905
|
}
|
|
4940
4906
|
|
|
4941
4907
|
function deserializeBoxAssignmentTargetPropertyProperty(pos) {
|
|
4942
|
-
return deserializeAssignmentTargetPropertyProperty(
|
|
4908
|
+
return deserializeAssignmentTargetPropertyProperty(int32[pos >> 2]);
|
|
4943
4909
|
}
|
|
4944
4910
|
|
|
4945
4911
|
function deserializeOptionExpression(pos) {
|
|
@@ -4947,110 +4913,110 @@ function deserializeOptionExpression(pos) {
|
|
|
4947
4913
|
}
|
|
4948
4914
|
|
|
4949
4915
|
function deserializeBoxBlockStatement(pos) {
|
|
4950
|
-
return deserializeBlockStatement(
|
|
4916
|
+
return deserializeBlockStatement(int32[pos >> 2]);
|
|
4951
4917
|
}
|
|
4952
4918
|
|
|
4953
4919
|
function deserializeBoxBreakStatement(pos) {
|
|
4954
|
-
return deserializeBreakStatement(
|
|
4920
|
+
return deserializeBreakStatement(int32[pos >> 2]);
|
|
4955
4921
|
}
|
|
4956
4922
|
|
|
4957
4923
|
function deserializeBoxContinueStatement(pos) {
|
|
4958
|
-
return deserializeContinueStatement(
|
|
4924
|
+
return deserializeContinueStatement(int32[pos >> 2]);
|
|
4959
4925
|
}
|
|
4960
4926
|
|
|
4961
4927
|
function deserializeBoxDebuggerStatement(pos) {
|
|
4962
|
-
return deserializeDebuggerStatement(
|
|
4928
|
+
return deserializeDebuggerStatement(int32[pos >> 2]);
|
|
4963
4929
|
}
|
|
4964
4930
|
|
|
4965
4931
|
function deserializeBoxDoWhileStatement(pos) {
|
|
4966
|
-
return deserializeDoWhileStatement(
|
|
4932
|
+
return deserializeDoWhileStatement(int32[pos >> 2]);
|
|
4967
4933
|
}
|
|
4968
4934
|
|
|
4969
4935
|
function deserializeBoxEmptyStatement(pos) {
|
|
4970
|
-
return deserializeEmptyStatement(
|
|
4936
|
+
return deserializeEmptyStatement(int32[pos >> 2]);
|
|
4971
4937
|
}
|
|
4972
4938
|
|
|
4973
4939
|
function deserializeBoxExpressionStatement(pos) {
|
|
4974
|
-
return deserializeExpressionStatement(
|
|
4940
|
+
return deserializeExpressionStatement(int32[pos >> 2]);
|
|
4975
4941
|
}
|
|
4976
4942
|
|
|
4977
4943
|
function deserializeBoxForInStatement(pos) {
|
|
4978
|
-
return deserializeForInStatement(
|
|
4944
|
+
return deserializeForInStatement(int32[pos >> 2]);
|
|
4979
4945
|
}
|
|
4980
4946
|
|
|
4981
4947
|
function deserializeBoxForOfStatement(pos) {
|
|
4982
|
-
return deserializeForOfStatement(
|
|
4948
|
+
return deserializeForOfStatement(int32[pos >> 2]);
|
|
4983
4949
|
}
|
|
4984
4950
|
|
|
4985
4951
|
function deserializeBoxForStatement(pos) {
|
|
4986
|
-
return deserializeForStatement(
|
|
4952
|
+
return deserializeForStatement(int32[pos >> 2]);
|
|
4987
4953
|
}
|
|
4988
4954
|
|
|
4989
4955
|
function deserializeBoxIfStatement(pos) {
|
|
4990
|
-
return deserializeIfStatement(
|
|
4956
|
+
return deserializeIfStatement(int32[pos >> 2]);
|
|
4991
4957
|
}
|
|
4992
4958
|
|
|
4993
4959
|
function deserializeBoxLabeledStatement(pos) {
|
|
4994
|
-
return deserializeLabeledStatement(
|
|
4960
|
+
return deserializeLabeledStatement(int32[pos >> 2]);
|
|
4995
4961
|
}
|
|
4996
4962
|
|
|
4997
4963
|
function deserializeBoxReturnStatement(pos) {
|
|
4998
|
-
return deserializeReturnStatement(
|
|
4964
|
+
return deserializeReturnStatement(int32[pos >> 2]);
|
|
4999
4965
|
}
|
|
5000
4966
|
|
|
5001
4967
|
function deserializeBoxSwitchStatement(pos) {
|
|
5002
|
-
return deserializeSwitchStatement(
|
|
4968
|
+
return deserializeSwitchStatement(int32[pos >> 2]);
|
|
5003
4969
|
}
|
|
5004
4970
|
|
|
5005
4971
|
function deserializeBoxThrowStatement(pos) {
|
|
5006
|
-
return deserializeThrowStatement(
|
|
4972
|
+
return deserializeThrowStatement(int32[pos >> 2]);
|
|
5007
4973
|
}
|
|
5008
4974
|
|
|
5009
4975
|
function deserializeBoxTryStatement(pos) {
|
|
5010
|
-
return deserializeTryStatement(
|
|
4976
|
+
return deserializeTryStatement(int32[pos >> 2]);
|
|
5011
4977
|
}
|
|
5012
4978
|
|
|
5013
4979
|
function deserializeBoxWhileStatement(pos) {
|
|
5014
|
-
return deserializeWhileStatement(
|
|
4980
|
+
return deserializeWhileStatement(int32[pos >> 2]);
|
|
5015
4981
|
}
|
|
5016
4982
|
|
|
5017
4983
|
function deserializeBoxWithStatement(pos) {
|
|
5018
|
-
return deserializeWithStatement(
|
|
4984
|
+
return deserializeWithStatement(int32[pos >> 2]);
|
|
5019
4985
|
}
|
|
5020
4986
|
|
|
5021
4987
|
function deserializeBoxVariableDeclaration(pos) {
|
|
5022
|
-
return deserializeVariableDeclaration(
|
|
4988
|
+
return deserializeVariableDeclaration(int32[pos >> 2]);
|
|
5023
4989
|
}
|
|
5024
4990
|
|
|
5025
4991
|
function deserializeBoxTSTypeAliasDeclaration(pos) {
|
|
5026
|
-
return deserializeTSTypeAliasDeclaration(
|
|
4992
|
+
return deserializeTSTypeAliasDeclaration(int32[pos >> 2]);
|
|
5027
4993
|
}
|
|
5028
4994
|
|
|
5029
4995
|
function deserializeBoxTSInterfaceDeclaration(pos) {
|
|
5030
|
-
return deserializeTSInterfaceDeclaration(
|
|
4996
|
+
return deserializeTSInterfaceDeclaration(int32[pos >> 2]);
|
|
5031
4997
|
}
|
|
5032
4998
|
|
|
5033
4999
|
function deserializeBoxTSEnumDeclaration(pos) {
|
|
5034
|
-
return deserializeTSEnumDeclaration(
|
|
5000
|
+
return deserializeTSEnumDeclaration(int32[pos >> 2]);
|
|
5035
5001
|
}
|
|
5036
5002
|
|
|
5037
5003
|
function deserializeBoxTSModuleDeclaration(pos) {
|
|
5038
|
-
return deserializeTSModuleDeclaration(
|
|
5004
|
+
return deserializeTSModuleDeclaration(int32[pos >> 2]);
|
|
5039
5005
|
}
|
|
5040
5006
|
|
|
5041
5007
|
function deserializeBoxTSGlobalDeclaration(pos) {
|
|
5042
|
-
return deserializeTSGlobalDeclaration(
|
|
5008
|
+
return deserializeTSGlobalDeclaration(int32[pos >> 2]);
|
|
5043
5009
|
}
|
|
5044
5010
|
|
|
5045
5011
|
function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
5046
|
-
return deserializeTSImportEqualsDeclaration(
|
|
5012
|
+
return deserializeTSImportEqualsDeclaration(int32[pos >> 2]);
|
|
5047
5013
|
}
|
|
5048
5014
|
|
|
5049
5015
|
function deserializeVecVariableDeclarator(pos) {
|
|
5050
5016
|
let arr = [],
|
|
5051
5017
|
pos32 = pos >> 2;
|
|
5052
|
-
pos =
|
|
5053
|
-
let endPos = pos +
|
|
5018
|
+
pos = int32[pos32];
|
|
5019
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
5054
5020
|
for (; pos !== endPos; ) {
|
|
5055
5021
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5056
5022
|
pos += 56;
|
|
@@ -5059,11 +5025,11 @@ function deserializeVecVariableDeclarator(pos) {
|
|
|
5059
5025
|
}
|
|
5060
5026
|
|
|
5061
5027
|
function deserializeBoxTSTypeAnnotation(pos) {
|
|
5062
|
-
return deserializeTSTypeAnnotation(
|
|
5028
|
+
return deserializeTSTypeAnnotation(int32[pos >> 2]);
|
|
5063
5029
|
}
|
|
5064
5030
|
|
|
5065
5031
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5066
|
-
return
|
|
5032
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5067
5033
|
? null
|
|
5068
5034
|
: deserializeBoxTSTypeAnnotation(pos);
|
|
5069
5035
|
}
|
|
@@ -5077,7 +5043,7 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5077
5043
|
}
|
|
5078
5044
|
|
|
5079
5045
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5080
|
-
return
|
|
5046
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
5081
5047
|
? null
|
|
5082
5048
|
: deserializeLabelIdentifier(pos);
|
|
5083
5049
|
}
|
|
@@ -5085,8 +5051,8 @@ function deserializeOptionLabelIdentifier(pos) {
|
|
|
5085
5051
|
function deserializeVecSwitchCase(pos) {
|
|
5086
5052
|
let arr = [],
|
|
5087
5053
|
pos32 = pos >> 2;
|
|
5088
|
-
pos =
|
|
5089
|
-
let endPos = pos +
|
|
5054
|
+
pos = int32[pos32];
|
|
5055
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
5090
5056
|
for (; pos !== endPos; ) {
|
|
5091
5057
|
arr.push(deserializeSwitchCase(pos));
|
|
5092
5058
|
pos += 56;
|
|
@@ -5095,17 +5061,17 @@ function deserializeVecSwitchCase(pos) {
|
|
|
5095
5061
|
}
|
|
5096
5062
|
|
|
5097
5063
|
function deserializeBoxCatchClause(pos) {
|
|
5098
|
-
return deserializeCatchClause(
|
|
5064
|
+
return deserializeCatchClause(int32[pos >> 2]);
|
|
5099
5065
|
}
|
|
5100
5066
|
|
|
5101
5067
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5102
|
-
return
|
|
5068
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5103
5069
|
? null
|
|
5104
5070
|
: deserializeBoxCatchClause(pos);
|
|
5105
5071
|
}
|
|
5106
5072
|
|
|
5107
5073
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5108
|
-
return
|
|
5074
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5109
5075
|
? null
|
|
5110
5076
|
: deserializeBoxBlockStatement(pos);
|
|
5111
5077
|
}
|
|
@@ -5115,26 +5081,26 @@ function deserializeOptionCatchParameter(pos) {
|
|
|
5115
5081
|
}
|
|
5116
5082
|
|
|
5117
5083
|
function deserializeBoxBindingIdentifier(pos) {
|
|
5118
|
-
return deserializeBindingIdentifier(
|
|
5084
|
+
return deserializeBindingIdentifier(int32[pos >> 2]);
|
|
5119
5085
|
}
|
|
5120
5086
|
|
|
5121
5087
|
function deserializeBoxObjectPattern(pos) {
|
|
5122
|
-
return deserializeObjectPattern(
|
|
5088
|
+
return deserializeObjectPattern(int32[pos >> 2]);
|
|
5123
5089
|
}
|
|
5124
5090
|
|
|
5125
5091
|
function deserializeBoxArrayPattern(pos) {
|
|
5126
|
-
return deserializeArrayPattern(
|
|
5092
|
+
return deserializeArrayPattern(int32[pos >> 2]);
|
|
5127
5093
|
}
|
|
5128
5094
|
|
|
5129
5095
|
function deserializeBoxAssignmentPattern(pos) {
|
|
5130
|
-
return deserializeAssignmentPattern(
|
|
5096
|
+
return deserializeAssignmentPattern(int32[pos >> 2]);
|
|
5131
5097
|
}
|
|
5132
5098
|
|
|
5133
5099
|
function deserializeVecBindingProperty(pos) {
|
|
5134
5100
|
let arr = [],
|
|
5135
5101
|
pos32 = pos >> 2;
|
|
5136
|
-
pos =
|
|
5137
|
-
let endPos = pos +
|
|
5102
|
+
pos = int32[pos32];
|
|
5103
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5138
5104
|
for (; pos !== endPos; ) {
|
|
5139
5105
|
arr.push(deserializeBindingProperty(pos));
|
|
5140
5106
|
pos += 48;
|
|
@@ -5143,11 +5109,11 @@ function deserializeVecBindingProperty(pos) {
|
|
|
5143
5109
|
}
|
|
5144
5110
|
|
|
5145
5111
|
function deserializeBoxBindingRestElement(pos) {
|
|
5146
|
-
return deserializeBindingRestElement(
|
|
5112
|
+
return deserializeBindingRestElement(int32[pos >> 2]);
|
|
5147
5113
|
}
|
|
5148
5114
|
|
|
5149
5115
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5150
|
-
return
|
|
5116
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5151
5117
|
? null
|
|
5152
5118
|
: deserializeBoxBindingRestElement(pos);
|
|
5153
5119
|
}
|
|
@@ -5159,8 +5125,8 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5159
5125
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5160
5126
|
let arr = [],
|
|
5161
5127
|
pos32 = pos >> 2;
|
|
5162
|
-
pos =
|
|
5163
|
-
let endPos = pos +
|
|
5128
|
+
pos = int32[pos32];
|
|
5129
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5164
5130
|
for (; pos !== endPos; ) {
|
|
5165
5131
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5166
5132
|
pos += 16;
|
|
@@ -5169,41 +5135,41 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5169
5135
|
}
|
|
5170
5136
|
|
|
5171
5137
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5172
|
-
return
|
|
5138
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
5173
5139
|
? null
|
|
5174
5140
|
: deserializeBindingIdentifier(pos);
|
|
5175
5141
|
}
|
|
5176
5142
|
|
|
5177
5143
|
function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
5178
|
-
return deserializeTSTypeParameterDeclaration(
|
|
5144
|
+
return deserializeTSTypeParameterDeclaration(int32[pos >> 2]);
|
|
5179
5145
|
}
|
|
5180
5146
|
|
|
5181
5147
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5182
|
-
return
|
|
5148
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5183
5149
|
? null
|
|
5184
5150
|
: deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5185
5151
|
}
|
|
5186
5152
|
|
|
5187
5153
|
function deserializeBoxTSThisParameter(pos) {
|
|
5188
|
-
return deserializeTSThisParameter(
|
|
5154
|
+
return deserializeTSThisParameter(int32[pos >> 2]);
|
|
5189
5155
|
}
|
|
5190
5156
|
|
|
5191
5157
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5192
|
-
return
|
|
5158
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5193
5159
|
? null
|
|
5194
5160
|
: deserializeBoxTSThisParameter(pos);
|
|
5195
5161
|
}
|
|
5196
5162
|
|
|
5197
5163
|
function deserializeBoxFormalParameters(pos) {
|
|
5198
|
-
return deserializeFormalParameters(
|
|
5164
|
+
return deserializeFormalParameters(int32[pos >> 2]);
|
|
5199
5165
|
}
|
|
5200
5166
|
|
|
5201
5167
|
function deserializeBoxFunctionBody(pos) {
|
|
5202
|
-
return deserializeFunctionBody(
|
|
5168
|
+
return deserializeFunctionBody(int32[pos >> 2]);
|
|
5203
5169
|
}
|
|
5204
5170
|
|
|
5205
5171
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5206
|
-
return
|
|
5172
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5207
5173
|
? null
|
|
5208
5174
|
: deserializeBoxFunctionBody(pos);
|
|
5209
5175
|
}
|
|
@@ -5211,8 +5177,8 @@ function deserializeOptionBoxFunctionBody(pos) {
|
|
|
5211
5177
|
function deserializeVecFormalParameter(pos) {
|
|
5212
5178
|
let arr = [],
|
|
5213
5179
|
pos32 = pos >> 2;
|
|
5214
|
-
pos =
|
|
5215
|
-
let endPos = pos +
|
|
5180
|
+
pos = int32[pos32];
|
|
5181
|
+
let endPos = pos + int32[pos32 + 2] * 72;
|
|
5216
5182
|
for (; pos !== endPos; ) {
|
|
5217
5183
|
arr.push(deserializeFormalParameter(pos));
|
|
5218
5184
|
pos += 72;
|
|
@@ -5223,8 +5189,8 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5223
5189
|
function deserializeVecDecorator(pos) {
|
|
5224
5190
|
let arr = [],
|
|
5225
5191
|
pos32 = pos >> 2;
|
|
5226
|
-
pos =
|
|
5227
|
-
let endPos = pos +
|
|
5192
|
+
pos = int32[pos32];
|
|
5193
|
+
let endPos = pos + (int32[pos32 + 2] << 5);
|
|
5228
5194
|
for (; pos !== endPos; ) {
|
|
5229
5195
|
arr.push(deserializeDecorator(pos));
|
|
5230
5196
|
pos += 32;
|
|
@@ -5233,24 +5199,24 @@ function deserializeVecDecorator(pos) {
|
|
|
5233
5199
|
}
|
|
5234
5200
|
|
|
5235
5201
|
function deserializeBoxExpression(pos) {
|
|
5236
|
-
return deserializeExpression(
|
|
5202
|
+
return deserializeExpression(int32[pos >> 2]);
|
|
5237
5203
|
}
|
|
5238
5204
|
|
|
5239
5205
|
function deserializeOptionBoxExpression(pos) {
|
|
5240
|
-
return
|
|
5206
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5241
5207
|
? null
|
|
5242
5208
|
: deserializeBoxExpression(pos);
|
|
5243
5209
|
}
|
|
5244
5210
|
|
|
5245
5211
|
function deserializeBoxClassBody(pos) {
|
|
5246
|
-
return deserializeClassBody(
|
|
5212
|
+
return deserializeClassBody(int32[pos >> 2]);
|
|
5247
5213
|
}
|
|
5248
5214
|
|
|
5249
5215
|
function deserializeVecClassElement(pos) {
|
|
5250
5216
|
let arr = [],
|
|
5251
5217
|
pos32 = pos >> 2;
|
|
5252
|
-
pos =
|
|
5253
|
-
let endPos = pos +
|
|
5218
|
+
pos = int32[pos32];
|
|
5219
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5254
5220
|
for (; pos !== endPos; ) {
|
|
5255
5221
|
arr.push(deserializeClassElement(pos));
|
|
5256
5222
|
pos += 16;
|
|
@@ -5259,47 +5225,47 @@ function deserializeVecClassElement(pos) {
|
|
|
5259
5225
|
}
|
|
5260
5226
|
|
|
5261
5227
|
function deserializeBoxStaticBlock(pos) {
|
|
5262
|
-
return deserializeStaticBlock(
|
|
5228
|
+
return deserializeStaticBlock(int32[pos >> 2]);
|
|
5263
5229
|
}
|
|
5264
5230
|
|
|
5265
5231
|
function deserializeBoxMethodDefinition(pos) {
|
|
5266
|
-
return deserializeMethodDefinition(
|
|
5232
|
+
return deserializeMethodDefinition(int32[pos >> 2]);
|
|
5267
5233
|
}
|
|
5268
5234
|
|
|
5269
5235
|
function deserializeBoxPropertyDefinition(pos) {
|
|
5270
|
-
return deserializePropertyDefinition(
|
|
5236
|
+
return deserializePropertyDefinition(int32[pos >> 2]);
|
|
5271
5237
|
}
|
|
5272
5238
|
|
|
5273
5239
|
function deserializeBoxAccessorProperty(pos) {
|
|
5274
|
-
return deserializeAccessorProperty(
|
|
5240
|
+
return deserializeAccessorProperty(int32[pos >> 2]);
|
|
5275
5241
|
}
|
|
5276
5242
|
|
|
5277
5243
|
function deserializeBoxTSIndexSignature(pos) {
|
|
5278
|
-
return deserializeTSIndexSignature(
|
|
5244
|
+
return deserializeTSIndexSignature(int32[pos >> 2]);
|
|
5279
5245
|
}
|
|
5280
5246
|
|
|
5281
5247
|
function deserializeBoxImportDeclaration(pos) {
|
|
5282
|
-
return deserializeImportDeclaration(
|
|
5248
|
+
return deserializeImportDeclaration(int32[pos >> 2]);
|
|
5283
5249
|
}
|
|
5284
5250
|
|
|
5285
5251
|
function deserializeBoxExportAllDeclaration(pos) {
|
|
5286
|
-
return deserializeExportAllDeclaration(
|
|
5252
|
+
return deserializeExportAllDeclaration(int32[pos >> 2]);
|
|
5287
5253
|
}
|
|
5288
5254
|
|
|
5289
5255
|
function deserializeBoxExportDefaultDeclaration(pos) {
|
|
5290
|
-
return deserializeExportDefaultDeclaration(
|
|
5256
|
+
return deserializeExportDefaultDeclaration(int32[pos >> 2]);
|
|
5291
5257
|
}
|
|
5292
5258
|
|
|
5293
5259
|
function deserializeBoxExportNamedDeclaration(pos) {
|
|
5294
|
-
return deserializeExportNamedDeclaration(
|
|
5260
|
+
return deserializeExportNamedDeclaration(int32[pos >> 2]);
|
|
5295
5261
|
}
|
|
5296
5262
|
|
|
5297
5263
|
function deserializeBoxTSExportAssignment(pos) {
|
|
5298
|
-
return deserializeTSExportAssignment(
|
|
5264
|
+
return deserializeTSExportAssignment(int32[pos >> 2]);
|
|
5299
5265
|
}
|
|
5300
5266
|
|
|
5301
5267
|
function deserializeBoxTSNamespaceExportDeclaration(pos) {
|
|
5302
|
-
return deserializeTSNamespaceExportDeclaration(
|
|
5268
|
+
return deserializeTSNamespaceExportDeclaration(int32[pos >> 2]);
|
|
5303
5269
|
}
|
|
5304
5270
|
|
|
5305
5271
|
function deserializeOptionImportPhase(pos) {
|
|
@@ -5309,8 +5275,8 @@ function deserializeOptionImportPhase(pos) {
|
|
|
5309
5275
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
5310
5276
|
let arr = [],
|
|
5311
5277
|
pos32 = pos >> 2;
|
|
5312
|
-
pos =
|
|
5313
|
-
let endPos = pos +
|
|
5278
|
+
pos = int32[pos32];
|
|
5279
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5314
5280
|
for (; pos !== endPos; ) {
|
|
5315
5281
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
5316
5282
|
pos += 16;
|
|
@@ -5319,38 +5285,38 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5319
5285
|
}
|
|
5320
5286
|
|
|
5321
5287
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5322
|
-
return
|
|
5288
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5323
5289
|
? null
|
|
5324
5290
|
: deserializeVecImportDeclarationSpecifier(pos);
|
|
5325
5291
|
}
|
|
5326
5292
|
|
|
5327
5293
|
function deserializeBoxWithClause(pos) {
|
|
5328
|
-
return deserializeWithClause(
|
|
5294
|
+
return deserializeWithClause(int32[pos >> 2]);
|
|
5329
5295
|
}
|
|
5330
5296
|
|
|
5331
5297
|
function deserializeOptionBoxWithClause(pos) {
|
|
5332
|
-
return
|
|
5298
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5333
5299
|
? null
|
|
5334
5300
|
: deserializeBoxWithClause(pos);
|
|
5335
5301
|
}
|
|
5336
5302
|
|
|
5337
5303
|
function deserializeBoxImportSpecifier(pos) {
|
|
5338
|
-
return deserializeImportSpecifier(
|
|
5304
|
+
return deserializeImportSpecifier(int32[pos >> 2]);
|
|
5339
5305
|
}
|
|
5340
5306
|
|
|
5341
5307
|
function deserializeBoxImportDefaultSpecifier(pos) {
|
|
5342
|
-
return deserializeImportDefaultSpecifier(
|
|
5308
|
+
return deserializeImportDefaultSpecifier(int32[pos >> 2]);
|
|
5343
5309
|
}
|
|
5344
5310
|
|
|
5345
5311
|
function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
5346
|
-
return deserializeImportNamespaceSpecifier(
|
|
5312
|
+
return deserializeImportNamespaceSpecifier(int32[pos >> 2]);
|
|
5347
5313
|
}
|
|
5348
5314
|
|
|
5349
5315
|
function deserializeVecImportAttribute(pos) {
|
|
5350
5316
|
let arr = [],
|
|
5351
5317
|
pos32 = pos >> 2;
|
|
5352
|
-
pos =
|
|
5353
|
-
let endPos = pos +
|
|
5318
|
+
pos = int32[pos32];
|
|
5319
|
+
let endPos = pos + int32[pos32 + 2] * 120;
|
|
5354
5320
|
for (; pos !== endPos; ) {
|
|
5355
5321
|
arr.push(deserializeImportAttribute(pos));
|
|
5356
5322
|
pos += 120;
|
|
@@ -5365,8 +5331,8 @@ function deserializeOptionDeclaration(pos) {
|
|
|
5365
5331
|
function deserializeVecExportSpecifier(pos) {
|
|
5366
5332
|
let arr = [],
|
|
5367
5333
|
pos32 = pos >> 2;
|
|
5368
|
-
pos =
|
|
5369
|
-
let endPos = pos +
|
|
5334
|
+
pos = int32[pos32];
|
|
5335
|
+
let endPos = pos + (int32[pos32 + 2] << 7);
|
|
5370
5336
|
for (; pos !== endPos; ) {
|
|
5371
5337
|
arr.push(deserializeExportSpecifier(pos));
|
|
5372
5338
|
pos += 128;
|
|
@@ -5391,14 +5357,14 @@ function deserializeU8(pos) {
|
|
|
5391
5357
|
}
|
|
5392
5358
|
|
|
5393
5359
|
function deserializeBoxJSXOpeningElement(pos) {
|
|
5394
|
-
return deserializeJSXOpeningElement(
|
|
5360
|
+
return deserializeJSXOpeningElement(int32[pos >> 2]);
|
|
5395
5361
|
}
|
|
5396
5362
|
|
|
5397
5363
|
function deserializeVecJSXChild(pos) {
|
|
5398
5364
|
let arr = [],
|
|
5399
5365
|
pos32 = pos >> 2;
|
|
5400
|
-
pos =
|
|
5401
|
-
let endPos = pos +
|
|
5366
|
+
pos = int32[pos32];
|
|
5367
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5402
5368
|
for (; pos !== endPos; ) {
|
|
5403
5369
|
arr.push(deserializeJSXChild(pos));
|
|
5404
5370
|
pos += 16;
|
|
@@ -5407,11 +5373,11 @@ function deserializeVecJSXChild(pos) {
|
|
|
5407
5373
|
}
|
|
5408
5374
|
|
|
5409
5375
|
function deserializeBoxJSXClosingElement(pos) {
|
|
5410
|
-
return deserializeJSXClosingElement(
|
|
5376
|
+
return deserializeJSXClosingElement(int32[pos >> 2]);
|
|
5411
5377
|
}
|
|
5412
5378
|
|
|
5413
5379
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5414
|
-
return
|
|
5380
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5415
5381
|
? null
|
|
5416
5382
|
: deserializeBoxJSXClosingElement(pos);
|
|
5417
5383
|
}
|
|
@@ -5419,8 +5385,8 @@ function deserializeOptionBoxJSXClosingElement(pos) {
|
|
|
5419
5385
|
function deserializeVecJSXAttributeItem(pos) {
|
|
5420
5386
|
let arr = [],
|
|
5421
5387
|
pos32 = pos >> 2;
|
|
5422
|
-
pos =
|
|
5423
|
-
let endPos = pos +
|
|
5388
|
+
pos = int32[pos32];
|
|
5389
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5424
5390
|
for (; pos !== endPos; ) {
|
|
5425
5391
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
5426
5392
|
pos += 16;
|
|
@@ -5429,23 +5395,23 @@ function deserializeVecJSXAttributeItem(pos) {
|
|
|
5429
5395
|
}
|
|
5430
5396
|
|
|
5431
5397
|
function deserializeBoxJSXIdentifier(pos) {
|
|
5432
|
-
return deserializeJSXIdentifier(
|
|
5398
|
+
return deserializeJSXIdentifier(int32[pos >> 2]);
|
|
5433
5399
|
}
|
|
5434
5400
|
|
|
5435
5401
|
function deserializeBoxJSXNamespacedName(pos) {
|
|
5436
|
-
return deserializeJSXNamespacedName(
|
|
5402
|
+
return deserializeJSXNamespacedName(int32[pos >> 2]);
|
|
5437
5403
|
}
|
|
5438
5404
|
|
|
5439
5405
|
function deserializeBoxJSXMemberExpression(pos) {
|
|
5440
|
-
return deserializeJSXMemberExpression(
|
|
5406
|
+
return deserializeJSXMemberExpression(int32[pos >> 2]);
|
|
5441
5407
|
}
|
|
5442
5408
|
|
|
5443
5409
|
function deserializeBoxJSXAttribute(pos) {
|
|
5444
|
-
return deserializeJSXAttribute(
|
|
5410
|
+
return deserializeJSXAttribute(int32[pos >> 2]);
|
|
5445
5411
|
}
|
|
5446
5412
|
|
|
5447
5413
|
function deserializeBoxJSXSpreadAttribute(pos) {
|
|
5448
|
-
return deserializeJSXSpreadAttribute(
|
|
5414
|
+
return deserializeJSXSpreadAttribute(int32[pos >> 2]);
|
|
5449
5415
|
}
|
|
5450
5416
|
|
|
5451
5417
|
function deserializeOptionJSXAttributeValue(pos) {
|
|
@@ -5453,22 +5419,22 @@ function deserializeOptionJSXAttributeValue(pos) {
|
|
|
5453
5419
|
}
|
|
5454
5420
|
|
|
5455
5421
|
function deserializeBoxJSXExpressionContainer(pos) {
|
|
5456
|
-
return deserializeJSXExpressionContainer(
|
|
5422
|
+
return deserializeJSXExpressionContainer(int32[pos >> 2]);
|
|
5457
5423
|
}
|
|
5458
5424
|
|
|
5459
5425
|
function deserializeBoxJSXText(pos) {
|
|
5460
|
-
return deserializeJSXText(
|
|
5426
|
+
return deserializeJSXText(int32[pos >> 2]);
|
|
5461
5427
|
}
|
|
5462
5428
|
|
|
5463
5429
|
function deserializeBoxJSXSpreadChild(pos) {
|
|
5464
|
-
return deserializeJSXSpreadChild(
|
|
5430
|
+
return deserializeJSXSpreadChild(int32[pos >> 2]);
|
|
5465
5431
|
}
|
|
5466
5432
|
|
|
5467
5433
|
function deserializeVecTSEnumMember(pos) {
|
|
5468
5434
|
let arr = [],
|
|
5469
5435
|
pos32 = pos >> 2;
|
|
5470
|
-
pos =
|
|
5471
|
-
let endPos = pos +
|
|
5436
|
+
pos = int32[pos32];
|
|
5437
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5472
5438
|
for (; pos !== endPos; ) {
|
|
5473
5439
|
arr.push(deserializeTSEnumMember(pos));
|
|
5474
5440
|
pos += 48;
|
|
@@ -5477,158 +5443,158 @@ function deserializeVecTSEnumMember(pos) {
|
|
|
5477
5443
|
}
|
|
5478
5444
|
|
|
5479
5445
|
function deserializeBoxTSAnyKeyword(pos) {
|
|
5480
|
-
return deserializeTSAnyKeyword(
|
|
5446
|
+
return deserializeTSAnyKeyword(int32[pos >> 2]);
|
|
5481
5447
|
}
|
|
5482
5448
|
|
|
5483
5449
|
function deserializeBoxTSBigIntKeyword(pos) {
|
|
5484
|
-
return deserializeTSBigIntKeyword(
|
|
5450
|
+
return deserializeTSBigIntKeyword(int32[pos >> 2]);
|
|
5485
5451
|
}
|
|
5486
5452
|
|
|
5487
5453
|
function deserializeBoxTSBooleanKeyword(pos) {
|
|
5488
|
-
return deserializeTSBooleanKeyword(
|
|
5454
|
+
return deserializeTSBooleanKeyword(int32[pos >> 2]);
|
|
5489
5455
|
}
|
|
5490
5456
|
|
|
5491
5457
|
function deserializeBoxTSIntrinsicKeyword(pos) {
|
|
5492
|
-
return deserializeTSIntrinsicKeyword(
|
|
5458
|
+
return deserializeTSIntrinsicKeyword(int32[pos >> 2]);
|
|
5493
5459
|
}
|
|
5494
5460
|
|
|
5495
5461
|
function deserializeBoxTSNeverKeyword(pos) {
|
|
5496
|
-
return deserializeTSNeverKeyword(
|
|
5462
|
+
return deserializeTSNeverKeyword(int32[pos >> 2]);
|
|
5497
5463
|
}
|
|
5498
5464
|
|
|
5499
5465
|
function deserializeBoxTSNullKeyword(pos) {
|
|
5500
|
-
return deserializeTSNullKeyword(
|
|
5466
|
+
return deserializeTSNullKeyword(int32[pos >> 2]);
|
|
5501
5467
|
}
|
|
5502
5468
|
|
|
5503
5469
|
function deserializeBoxTSNumberKeyword(pos) {
|
|
5504
|
-
return deserializeTSNumberKeyword(
|
|
5470
|
+
return deserializeTSNumberKeyword(int32[pos >> 2]);
|
|
5505
5471
|
}
|
|
5506
5472
|
|
|
5507
5473
|
function deserializeBoxTSObjectKeyword(pos) {
|
|
5508
|
-
return deserializeTSObjectKeyword(
|
|
5474
|
+
return deserializeTSObjectKeyword(int32[pos >> 2]);
|
|
5509
5475
|
}
|
|
5510
5476
|
|
|
5511
5477
|
function deserializeBoxTSStringKeyword(pos) {
|
|
5512
|
-
return deserializeTSStringKeyword(
|
|
5478
|
+
return deserializeTSStringKeyword(int32[pos >> 2]);
|
|
5513
5479
|
}
|
|
5514
5480
|
|
|
5515
5481
|
function deserializeBoxTSSymbolKeyword(pos) {
|
|
5516
|
-
return deserializeTSSymbolKeyword(
|
|
5482
|
+
return deserializeTSSymbolKeyword(int32[pos >> 2]);
|
|
5517
5483
|
}
|
|
5518
5484
|
|
|
5519
5485
|
function deserializeBoxTSUndefinedKeyword(pos) {
|
|
5520
|
-
return deserializeTSUndefinedKeyword(
|
|
5486
|
+
return deserializeTSUndefinedKeyword(int32[pos >> 2]);
|
|
5521
5487
|
}
|
|
5522
5488
|
|
|
5523
5489
|
function deserializeBoxTSUnknownKeyword(pos) {
|
|
5524
|
-
return deserializeTSUnknownKeyword(
|
|
5490
|
+
return deserializeTSUnknownKeyword(int32[pos >> 2]);
|
|
5525
5491
|
}
|
|
5526
5492
|
|
|
5527
5493
|
function deserializeBoxTSVoidKeyword(pos) {
|
|
5528
|
-
return deserializeTSVoidKeyword(
|
|
5494
|
+
return deserializeTSVoidKeyword(int32[pos >> 2]);
|
|
5529
5495
|
}
|
|
5530
5496
|
|
|
5531
5497
|
function deserializeBoxTSArrayType(pos) {
|
|
5532
|
-
return deserializeTSArrayType(
|
|
5498
|
+
return deserializeTSArrayType(int32[pos >> 2]);
|
|
5533
5499
|
}
|
|
5534
5500
|
|
|
5535
5501
|
function deserializeBoxTSConditionalType(pos) {
|
|
5536
|
-
return deserializeTSConditionalType(
|
|
5502
|
+
return deserializeTSConditionalType(int32[pos >> 2]);
|
|
5537
5503
|
}
|
|
5538
5504
|
|
|
5539
5505
|
function deserializeBoxTSConstructorType(pos) {
|
|
5540
|
-
return deserializeTSConstructorType(
|
|
5506
|
+
return deserializeTSConstructorType(int32[pos >> 2]);
|
|
5541
5507
|
}
|
|
5542
5508
|
|
|
5543
5509
|
function deserializeBoxTSFunctionType(pos) {
|
|
5544
|
-
return deserializeTSFunctionType(
|
|
5510
|
+
return deserializeTSFunctionType(int32[pos >> 2]);
|
|
5545
5511
|
}
|
|
5546
5512
|
|
|
5547
5513
|
function deserializeBoxTSImportType(pos) {
|
|
5548
|
-
return deserializeTSImportType(
|
|
5514
|
+
return deserializeTSImportType(int32[pos >> 2]);
|
|
5549
5515
|
}
|
|
5550
5516
|
|
|
5551
5517
|
function deserializeBoxTSIndexedAccessType(pos) {
|
|
5552
|
-
return deserializeTSIndexedAccessType(
|
|
5518
|
+
return deserializeTSIndexedAccessType(int32[pos >> 2]);
|
|
5553
5519
|
}
|
|
5554
5520
|
|
|
5555
5521
|
function deserializeBoxTSInferType(pos) {
|
|
5556
|
-
return deserializeTSInferType(
|
|
5522
|
+
return deserializeTSInferType(int32[pos >> 2]);
|
|
5557
5523
|
}
|
|
5558
5524
|
|
|
5559
5525
|
function deserializeBoxTSIntersectionType(pos) {
|
|
5560
|
-
return deserializeTSIntersectionType(
|
|
5526
|
+
return deserializeTSIntersectionType(int32[pos >> 2]);
|
|
5561
5527
|
}
|
|
5562
5528
|
|
|
5563
5529
|
function deserializeBoxTSLiteralType(pos) {
|
|
5564
|
-
return deserializeTSLiteralType(
|
|
5530
|
+
return deserializeTSLiteralType(int32[pos >> 2]);
|
|
5565
5531
|
}
|
|
5566
5532
|
|
|
5567
5533
|
function deserializeBoxTSMappedType(pos) {
|
|
5568
|
-
return deserializeTSMappedType(
|
|
5534
|
+
return deserializeTSMappedType(int32[pos >> 2]);
|
|
5569
5535
|
}
|
|
5570
5536
|
|
|
5571
5537
|
function deserializeBoxTSNamedTupleMember(pos) {
|
|
5572
|
-
return deserializeTSNamedTupleMember(
|
|
5538
|
+
return deserializeTSNamedTupleMember(int32[pos >> 2]);
|
|
5573
5539
|
}
|
|
5574
5540
|
|
|
5575
5541
|
function deserializeBoxTSTemplateLiteralType(pos) {
|
|
5576
|
-
return deserializeTSTemplateLiteralType(
|
|
5542
|
+
return deserializeTSTemplateLiteralType(int32[pos >> 2]);
|
|
5577
5543
|
}
|
|
5578
5544
|
|
|
5579
5545
|
function deserializeBoxTSThisType(pos) {
|
|
5580
|
-
return deserializeTSThisType(
|
|
5546
|
+
return deserializeTSThisType(int32[pos >> 2]);
|
|
5581
5547
|
}
|
|
5582
5548
|
|
|
5583
5549
|
function deserializeBoxTSTupleType(pos) {
|
|
5584
|
-
return deserializeTSTupleType(
|
|
5550
|
+
return deserializeTSTupleType(int32[pos >> 2]);
|
|
5585
5551
|
}
|
|
5586
5552
|
|
|
5587
5553
|
function deserializeBoxTSTypeLiteral(pos) {
|
|
5588
|
-
return deserializeTSTypeLiteral(
|
|
5554
|
+
return deserializeTSTypeLiteral(int32[pos >> 2]);
|
|
5589
5555
|
}
|
|
5590
5556
|
|
|
5591
5557
|
function deserializeBoxTSTypeOperator(pos) {
|
|
5592
|
-
return deserializeTSTypeOperator(
|
|
5558
|
+
return deserializeTSTypeOperator(int32[pos >> 2]);
|
|
5593
5559
|
}
|
|
5594
5560
|
|
|
5595
5561
|
function deserializeBoxTSTypePredicate(pos) {
|
|
5596
|
-
return deserializeTSTypePredicate(
|
|
5562
|
+
return deserializeTSTypePredicate(int32[pos >> 2]);
|
|
5597
5563
|
}
|
|
5598
5564
|
|
|
5599
5565
|
function deserializeBoxTSTypeQuery(pos) {
|
|
5600
|
-
return deserializeTSTypeQuery(
|
|
5566
|
+
return deserializeTSTypeQuery(int32[pos >> 2]);
|
|
5601
5567
|
}
|
|
5602
5568
|
|
|
5603
5569
|
function deserializeBoxTSTypeReference(pos) {
|
|
5604
|
-
return deserializeTSTypeReference(
|
|
5570
|
+
return deserializeTSTypeReference(int32[pos >> 2]);
|
|
5605
5571
|
}
|
|
5606
5572
|
|
|
5607
5573
|
function deserializeBoxTSUnionType(pos) {
|
|
5608
|
-
return deserializeTSUnionType(
|
|
5574
|
+
return deserializeTSUnionType(int32[pos >> 2]);
|
|
5609
5575
|
}
|
|
5610
5576
|
|
|
5611
5577
|
function deserializeBoxTSParenthesizedType(pos) {
|
|
5612
|
-
return deserializeTSParenthesizedType(
|
|
5578
|
+
return deserializeTSParenthesizedType(int32[pos >> 2]);
|
|
5613
5579
|
}
|
|
5614
5580
|
|
|
5615
5581
|
function deserializeBoxJSDocNullableType(pos) {
|
|
5616
|
-
return deserializeJSDocNullableType(
|
|
5582
|
+
return deserializeJSDocNullableType(int32[pos >> 2]);
|
|
5617
5583
|
}
|
|
5618
5584
|
|
|
5619
5585
|
function deserializeBoxJSDocNonNullableType(pos) {
|
|
5620
|
-
return deserializeJSDocNonNullableType(
|
|
5586
|
+
return deserializeJSDocNonNullableType(int32[pos >> 2]);
|
|
5621
5587
|
}
|
|
5622
5588
|
|
|
5623
5589
|
function deserializeBoxJSDocUnknownType(pos) {
|
|
5624
|
-
return deserializeJSDocUnknownType(
|
|
5590
|
+
return deserializeJSDocUnknownType(int32[pos >> 2]);
|
|
5625
5591
|
}
|
|
5626
5592
|
|
|
5627
5593
|
function deserializeVecTSType(pos) {
|
|
5628
5594
|
let arr = [],
|
|
5629
5595
|
pos32 = pos >> 2;
|
|
5630
|
-
pos =
|
|
5631
|
-
let endPos = pos +
|
|
5596
|
+
pos = int32[pos32];
|
|
5597
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5632
5598
|
for (; pos !== endPos; ) {
|
|
5633
5599
|
arr.push(deserializeTSType(pos));
|
|
5634
5600
|
pos += 16;
|
|
@@ -5639,8 +5605,8 @@ function deserializeVecTSType(pos) {
|
|
|
5639
5605
|
function deserializeVecTSTupleElement(pos) {
|
|
5640
5606
|
let arr = [],
|
|
5641
5607
|
pos32 = pos >> 2;
|
|
5642
|
-
pos =
|
|
5643
|
-
let endPos = pos +
|
|
5608
|
+
pos = int32[pos32];
|
|
5609
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5644
5610
|
for (; pos !== endPos; ) {
|
|
5645
5611
|
arr.push(deserializeTSTupleElement(pos));
|
|
5646
5612
|
pos += 16;
|
|
@@ -5649,15 +5615,15 @@ function deserializeVecTSTupleElement(pos) {
|
|
|
5649
5615
|
}
|
|
5650
5616
|
|
|
5651
5617
|
function deserializeBoxTSOptionalType(pos) {
|
|
5652
|
-
return deserializeTSOptionalType(
|
|
5618
|
+
return deserializeTSOptionalType(int32[pos >> 2]);
|
|
5653
5619
|
}
|
|
5654
5620
|
|
|
5655
5621
|
function deserializeBoxTSRestType(pos) {
|
|
5656
|
-
return deserializeTSRestType(
|
|
5622
|
+
return deserializeTSRestType(int32[pos >> 2]);
|
|
5657
5623
|
}
|
|
5658
5624
|
|
|
5659
5625
|
function deserializeBoxTSQualifiedName(pos) {
|
|
5660
|
-
return deserializeTSQualifiedName(
|
|
5626
|
+
return deserializeTSQualifiedName(int32[pos >> 2]);
|
|
5661
5627
|
}
|
|
5662
5628
|
|
|
5663
5629
|
function deserializeOptionTSType(pos) {
|
|
@@ -5667,8 +5633,8 @@ function deserializeOptionTSType(pos) {
|
|
|
5667
5633
|
function deserializeVecTSTypeParameter(pos) {
|
|
5668
5634
|
let arr = [],
|
|
5669
5635
|
pos32 = pos >> 2;
|
|
5670
|
-
pos =
|
|
5671
|
-
let endPos = pos +
|
|
5636
|
+
pos = int32[pos32];
|
|
5637
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
5672
5638
|
for (; pos !== endPos; ) {
|
|
5673
5639
|
arr.push(deserializeTSTypeParameter(pos));
|
|
5674
5640
|
pos += 80;
|
|
@@ -5679,8 +5645,8 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
5679
5645
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
5680
5646
|
let arr = [],
|
|
5681
5647
|
pos32 = pos >> 2;
|
|
5682
|
-
pos =
|
|
5683
|
-
let endPos = pos +
|
|
5648
|
+
pos = int32[pos32];
|
|
5649
|
+
let endPos = pos + int32[pos32 + 2] * 40;
|
|
5684
5650
|
for (; pos !== endPos; ) {
|
|
5685
5651
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
5686
5652
|
pos += 40;
|
|
@@ -5689,14 +5655,14 @@ function deserializeVecTSInterfaceHeritage(pos) {
|
|
|
5689
5655
|
}
|
|
5690
5656
|
|
|
5691
5657
|
function deserializeBoxTSInterfaceBody(pos) {
|
|
5692
|
-
return deserializeTSInterfaceBody(
|
|
5658
|
+
return deserializeTSInterfaceBody(int32[pos >> 2]);
|
|
5693
5659
|
}
|
|
5694
5660
|
|
|
5695
5661
|
function deserializeVecTSSignature(pos) {
|
|
5696
5662
|
let arr = [],
|
|
5697
5663
|
pos32 = pos >> 2;
|
|
5698
|
-
pos =
|
|
5699
|
-
let endPos = pos +
|
|
5664
|
+
pos = int32[pos32];
|
|
5665
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5700
5666
|
for (; pos !== endPos; ) {
|
|
5701
5667
|
arr.push(deserializeTSSignature(pos));
|
|
5702
5668
|
pos += 16;
|
|
@@ -5705,26 +5671,26 @@ function deserializeVecTSSignature(pos) {
|
|
|
5705
5671
|
}
|
|
5706
5672
|
|
|
5707
5673
|
function deserializeBoxTSPropertySignature(pos) {
|
|
5708
|
-
return deserializeTSPropertySignature(
|
|
5674
|
+
return deserializeTSPropertySignature(int32[pos >> 2]);
|
|
5709
5675
|
}
|
|
5710
5676
|
|
|
5711
5677
|
function deserializeBoxTSCallSignatureDeclaration(pos) {
|
|
5712
|
-
return deserializeTSCallSignatureDeclaration(
|
|
5678
|
+
return deserializeTSCallSignatureDeclaration(int32[pos >> 2]);
|
|
5713
5679
|
}
|
|
5714
5680
|
|
|
5715
5681
|
function deserializeBoxTSConstructSignatureDeclaration(pos) {
|
|
5716
|
-
return deserializeTSConstructSignatureDeclaration(
|
|
5682
|
+
return deserializeTSConstructSignatureDeclaration(int32[pos >> 2]);
|
|
5717
5683
|
}
|
|
5718
5684
|
|
|
5719
5685
|
function deserializeBoxTSMethodSignature(pos) {
|
|
5720
|
-
return deserializeTSMethodSignature(
|
|
5686
|
+
return deserializeTSMethodSignature(int32[pos >> 2]);
|
|
5721
5687
|
}
|
|
5722
5688
|
|
|
5723
5689
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
5724
5690
|
let arr = [],
|
|
5725
5691
|
pos32 = pos >> 2;
|
|
5726
|
-
pos =
|
|
5727
|
-
let endPos = pos +
|
|
5692
|
+
pos = int32[pos32];
|
|
5693
|
+
let endPos = pos + int32[pos32 + 2] * 40;
|
|
5728
5694
|
for (; pos !== endPos; ) {
|
|
5729
5695
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
5730
5696
|
pos += 40;
|
|
@@ -5737,15 +5703,15 @@ function deserializeOptionTSModuleDeclarationBody(pos) {
|
|
|
5737
5703
|
}
|
|
5738
5704
|
|
|
5739
5705
|
function deserializeBoxTSModuleBlock(pos) {
|
|
5740
|
-
return deserializeTSModuleBlock(
|
|
5706
|
+
return deserializeTSModuleBlock(int32[pos >> 2]);
|
|
5741
5707
|
}
|
|
5742
5708
|
|
|
5743
5709
|
function deserializeBoxTSTypeParameter(pos) {
|
|
5744
|
-
return deserializeTSTypeParameter(
|
|
5710
|
+
return deserializeTSTypeParameter(int32[pos >> 2]);
|
|
5745
5711
|
}
|
|
5746
5712
|
|
|
5747
5713
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
5748
|
-
return
|
|
5714
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5749
5715
|
? null
|
|
5750
5716
|
: deserializeBoxObjectExpression(pos);
|
|
5751
5717
|
}
|
|
@@ -5755,7 +5721,7 @@ function deserializeOptionTSImportTypeQualifier(pos) {
|
|
|
5755
5721
|
}
|
|
5756
5722
|
|
|
5757
5723
|
function deserializeBoxTSImportTypeQualifiedName(pos) {
|
|
5758
|
-
return deserializeTSImportTypeQualifiedName(
|
|
5724
|
+
return deserializeTSImportTypeQualifiedName(int32[pos >> 2]);
|
|
5759
5725
|
}
|
|
5760
5726
|
|
|
5761
5727
|
function deserializeOptionTSMappedTypeModifierOperator(pos) {
|
|
@@ -5763,15 +5729,15 @@ function deserializeOptionTSMappedTypeModifierOperator(pos) {
|
|
|
5763
5729
|
}
|
|
5764
5730
|
|
|
5765
5731
|
function deserializeBoxTSExternalModuleReference(pos) {
|
|
5766
|
-
return deserializeTSExternalModuleReference(
|
|
5732
|
+
return deserializeTSExternalModuleReference(int32[pos >> 2]);
|
|
5767
5733
|
}
|
|
5768
5734
|
|
|
5769
|
-
function
|
|
5770
|
-
return
|
|
5735
|
+
function deserializeI32(pos) {
|
|
5736
|
+
return int32[pos >> 2];
|
|
5771
5737
|
}
|
|
5772
5738
|
|
|
5773
5739
|
function deserializeOptionNameSpan(pos) {
|
|
5774
|
-
return
|
|
5740
|
+
return int32[(pos >> 2) + 2] === 0 && int32[(pos >> 2) + 3] === 0
|
|
5775
5741
|
? null
|
|
5776
5742
|
: deserializeNameSpan(pos);
|
|
5777
5743
|
}
|
|
@@ -5779,8 +5745,8 @@ function deserializeOptionNameSpan(pos) {
|
|
|
5779
5745
|
function deserializeVecError(pos) {
|
|
5780
5746
|
let arr = [],
|
|
5781
5747
|
pos32 = pos >> 2;
|
|
5782
|
-
pos =
|
|
5783
|
-
let endPos = pos +
|
|
5748
|
+
pos = int32[pos32];
|
|
5749
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
5784
5750
|
for (; pos !== endPos; ) {
|
|
5785
5751
|
arr.push(deserializeError(pos));
|
|
5786
5752
|
pos += 80;
|
|
@@ -5791,8 +5757,8 @@ function deserializeVecError(pos) {
|
|
|
5791
5757
|
function deserializeVecErrorLabel(pos) {
|
|
5792
5758
|
let arr = [],
|
|
5793
5759
|
pos32 = pos >> 2;
|
|
5794
|
-
pos =
|
|
5795
|
-
let endPos = pos +
|
|
5760
|
+
pos = int32[pos32];
|
|
5761
|
+
let endPos = pos + int32[pos32 + 2] * 24;
|
|
5796
5762
|
for (; pos !== endPos; ) {
|
|
5797
5763
|
arr.push(deserializeErrorLabel(pos));
|
|
5798
5764
|
pos += 24;
|
|
@@ -5803,8 +5769,8 @@ function deserializeVecErrorLabel(pos) {
|
|
|
5803
5769
|
function deserializeVecStaticImport(pos) {
|
|
5804
5770
|
let arr = [],
|
|
5805
5771
|
pos32 = pos >> 2;
|
|
5806
|
-
pos =
|
|
5807
|
-
let endPos = pos +
|
|
5772
|
+
pos = int32[pos32];
|
|
5773
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
5808
5774
|
for (; pos !== endPos; ) {
|
|
5809
5775
|
arr.push(deserializeStaticImport(pos));
|
|
5810
5776
|
pos += 56;
|
|
@@ -5815,8 +5781,8 @@ function deserializeVecStaticImport(pos) {
|
|
|
5815
5781
|
function deserializeVecStaticExport(pos) {
|
|
5816
5782
|
let arr = [],
|
|
5817
5783
|
pos32 = pos >> 2;
|
|
5818
|
-
pos =
|
|
5819
|
-
let endPos = pos +
|
|
5784
|
+
pos = int32[pos32];
|
|
5785
|
+
let endPos = pos + (int32[pos32 + 2] << 5);
|
|
5820
5786
|
for (; pos !== endPos; ) {
|
|
5821
5787
|
arr.push(deserializeStaticExport(pos));
|
|
5822
5788
|
pos += 32;
|
|
@@ -5827,8 +5793,8 @@ function deserializeVecStaticExport(pos) {
|
|
|
5827
5793
|
function deserializeVecDynamicImport(pos) {
|
|
5828
5794
|
let arr = [],
|
|
5829
5795
|
pos32 = pos >> 2;
|
|
5830
|
-
pos =
|
|
5831
|
-
let endPos = pos +
|
|
5796
|
+
pos = int32[pos32];
|
|
5797
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5832
5798
|
for (; pos !== endPos; ) {
|
|
5833
5799
|
arr.push(deserializeDynamicImport(pos));
|
|
5834
5800
|
pos += 16;
|
|
@@ -5839,8 +5805,8 @@ function deserializeVecDynamicImport(pos) {
|
|
|
5839
5805
|
function deserializeVecSpan(pos) {
|
|
5840
5806
|
let arr = [],
|
|
5841
5807
|
pos32 = pos >> 2;
|
|
5842
|
-
pos =
|
|
5843
|
-
let endPos = pos +
|
|
5808
|
+
pos = int32[pos32];
|
|
5809
|
+
let endPos = pos + (int32[pos32 + 2] << 3);
|
|
5844
5810
|
for (; pos !== endPos; ) {
|
|
5845
5811
|
arr.push(deserializeSpan(pos));
|
|
5846
5812
|
pos += 8;
|
|
@@ -5851,8 +5817,8 @@ function deserializeVecSpan(pos) {
|
|
|
5851
5817
|
function deserializeVecImportEntry(pos) {
|
|
5852
5818
|
let arr = [],
|
|
5853
5819
|
pos32 = pos >> 2;
|
|
5854
|
-
pos =
|
|
5855
|
-
let endPos = pos +
|
|
5820
|
+
pos = int32[pos32];
|
|
5821
|
+
let endPos = pos + int32[pos32 + 2] * 96;
|
|
5856
5822
|
for (; pos !== endPos; ) {
|
|
5857
5823
|
arr.push(deserializeImportEntry(pos));
|
|
5858
5824
|
pos += 96;
|
|
@@ -5863,8 +5829,8 @@ function deserializeVecImportEntry(pos) {
|
|
|
5863
5829
|
function deserializeVecExportEntry(pos) {
|
|
5864
5830
|
let arr = [],
|
|
5865
5831
|
pos32 = pos >> 2;
|
|
5866
|
-
pos =
|
|
5867
|
-
let endPos = pos +
|
|
5832
|
+
pos = int32[pos32];
|
|
5833
|
+
let endPos = pos + int32[pos32 + 2] * 144;
|
|
5868
5834
|
for (; pos !== endPos; ) {
|
|
5869
5835
|
arr.push(deserializeExportEntry(pos));
|
|
5870
5836
|
pos += 144;
|