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,18 +33,18 @@ 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 end =
|
|
47
|
+
let end = deserializeI32(pos + 4),
|
|
48
48
|
program = {
|
|
49
49
|
type: "Program",
|
|
50
50
|
body: null,
|
|
@@ -172,70 +172,58 @@ function deserializeExpression(pos) {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
function deserializeIdentifierName(pos) {
|
|
175
|
-
|
|
175
|
+
return {
|
|
176
176
|
type: "Identifier",
|
|
177
|
-
decorators:
|
|
177
|
+
decorators: [],
|
|
178
178
|
name: deserializeStr(pos + 16),
|
|
179
|
-
optional:
|
|
179
|
+
optional: false,
|
|
180
180
|
typeAnnotation: null,
|
|
181
|
-
start:
|
|
182
|
-
end:
|
|
181
|
+
start: deserializeI32(pos),
|
|
182
|
+
end: deserializeI32(pos + 4),
|
|
183
183
|
};
|
|
184
|
-
node.decorators = [];
|
|
185
|
-
node.optional = false;
|
|
186
|
-
return node;
|
|
187
184
|
}
|
|
188
185
|
|
|
189
186
|
function deserializeIdentifierReference(pos) {
|
|
190
|
-
|
|
187
|
+
return {
|
|
191
188
|
type: "Identifier",
|
|
192
|
-
decorators:
|
|
189
|
+
decorators: [],
|
|
193
190
|
name: deserializeStr(pos + 16),
|
|
194
|
-
optional:
|
|
191
|
+
optional: false,
|
|
195
192
|
typeAnnotation: null,
|
|
196
|
-
start:
|
|
197
|
-
end:
|
|
193
|
+
start: deserializeI32(pos),
|
|
194
|
+
end: deserializeI32(pos + 4),
|
|
198
195
|
};
|
|
199
|
-
node.decorators = [];
|
|
200
|
-
node.optional = false;
|
|
201
|
-
return node;
|
|
202
196
|
}
|
|
203
197
|
|
|
204
198
|
function deserializeBindingIdentifier(pos) {
|
|
205
|
-
|
|
199
|
+
return {
|
|
206
200
|
type: "Identifier",
|
|
207
|
-
decorators:
|
|
201
|
+
decorators: [],
|
|
208
202
|
name: deserializeStr(pos + 16),
|
|
209
|
-
optional:
|
|
203
|
+
optional: false,
|
|
210
204
|
typeAnnotation: null,
|
|
211
|
-
start:
|
|
212
|
-
end:
|
|
205
|
+
start: deserializeI32(pos),
|
|
206
|
+
end: deserializeI32(pos + 4),
|
|
213
207
|
};
|
|
214
|
-
node.decorators = [];
|
|
215
|
-
node.optional = false;
|
|
216
|
-
return node;
|
|
217
208
|
}
|
|
218
209
|
|
|
219
210
|
function deserializeLabelIdentifier(pos) {
|
|
220
|
-
|
|
211
|
+
return {
|
|
221
212
|
type: "Identifier",
|
|
222
|
-
decorators:
|
|
213
|
+
decorators: [],
|
|
223
214
|
name: deserializeStr(pos + 16),
|
|
224
|
-
optional:
|
|
215
|
+
optional: false,
|
|
225
216
|
typeAnnotation: null,
|
|
226
|
-
start:
|
|
227
|
-
end:
|
|
217
|
+
start: deserializeI32(pos),
|
|
218
|
+
end: deserializeI32(pos + 4),
|
|
228
219
|
};
|
|
229
|
-
node.decorators = [];
|
|
230
|
-
node.optional = false;
|
|
231
|
-
return node;
|
|
232
220
|
}
|
|
233
221
|
|
|
234
222
|
function deserializeThisExpression(pos) {
|
|
235
223
|
return {
|
|
236
224
|
type: "ThisExpression",
|
|
237
|
-
start:
|
|
238
|
-
end:
|
|
225
|
+
start: deserializeI32(pos),
|
|
226
|
+
end: deserializeI32(pos + 4),
|
|
239
227
|
};
|
|
240
228
|
}
|
|
241
229
|
|
|
@@ -243,8 +231,8 @@ function deserializeArrayExpression(pos) {
|
|
|
243
231
|
let node = {
|
|
244
232
|
type: "ArrayExpression",
|
|
245
233
|
elements: null,
|
|
246
|
-
start:
|
|
247
|
-
end:
|
|
234
|
+
start: deserializeI32(pos),
|
|
235
|
+
end: deserializeI32(pos + 4),
|
|
248
236
|
};
|
|
249
237
|
node.elements = deserializeVecArrayExpressionElement(pos + 16);
|
|
250
238
|
return node;
|
|
@@ -355,8 +343,8 @@ function deserializeObjectExpression(pos) {
|
|
|
355
343
|
let node = {
|
|
356
344
|
type: "ObjectExpression",
|
|
357
345
|
properties: null,
|
|
358
|
-
start:
|
|
359
|
-
end:
|
|
346
|
+
start: deserializeI32(pos),
|
|
347
|
+
end: deserializeI32(pos + 4),
|
|
360
348
|
};
|
|
361
349
|
node.properties = deserializeVecObjectPropertyKind(pos + 16);
|
|
362
350
|
return node;
|
|
@@ -382,13 +370,12 @@ function deserializeObjectProperty(pos) {
|
|
|
382
370
|
method: deserializeBool(pos + 13),
|
|
383
371
|
shorthand: deserializeBool(pos + 14),
|
|
384
372
|
computed: deserializeBool(pos + 15),
|
|
385
|
-
optional:
|
|
386
|
-
start:
|
|
387
|
-
end:
|
|
373
|
+
optional: false,
|
|
374
|
+
start: deserializeI32(pos),
|
|
375
|
+
end: deserializeI32(pos + 4),
|
|
388
376
|
};
|
|
389
377
|
node.key = deserializePropertyKey(pos + 16);
|
|
390
378
|
node.value = deserializeExpression(pos + 32);
|
|
391
|
-
node.optional = false;
|
|
392
379
|
return node;
|
|
393
380
|
}
|
|
394
381
|
|
|
@@ -507,8 +494,8 @@ function deserializeTemplateLiteral(pos) {
|
|
|
507
494
|
type: "TemplateLiteral",
|
|
508
495
|
quasis: null,
|
|
509
496
|
expressions: null,
|
|
510
|
-
start:
|
|
511
|
-
end:
|
|
497
|
+
start: deserializeI32(pos),
|
|
498
|
+
end: deserializeI32(pos + 4),
|
|
512
499
|
};
|
|
513
500
|
node.quasis = deserializeVecTemplateElement(pos + 16);
|
|
514
501
|
node.expressions = deserializeVecExpression(pos + 40);
|
|
@@ -521,8 +508,8 @@ function deserializeTaggedTemplateExpression(pos) {
|
|
|
521
508
|
tag: null,
|
|
522
509
|
typeArguments: null,
|
|
523
510
|
quasi: null,
|
|
524
|
-
start:
|
|
525
|
-
end:
|
|
511
|
+
start: deserializeI32(pos),
|
|
512
|
+
end: deserializeI32(pos + 4),
|
|
526
513
|
};
|
|
527
514
|
node.tag = deserializeExpression(pos + 16);
|
|
528
515
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -532,8 +519,8 @@ function deserializeTaggedTemplateExpression(pos) {
|
|
|
532
519
|
|
|
533
520
|
function deserializeTemplateElement(pos) {
|
|
534
521
|
let tail = deserializeBool(pos + 12),
|
|
535
|
-
start =
|
|
536
|
-
end =
|
|
522
|
+
start = deserializeI32(pos) - 1,
|
|
523
|
+
end = deserializeI32(pos + 4) + 2 - tail,
|
|
537
524
|
value = deserializeTemplateElementValue(pos + 16);
|
|
538
525
|
value.cooked !== null &&
|
|
539
526
|
deserializeBool(pos + 13) &&
|
|
@@ -562,13 +549,12 @@ function deserializeComputedMemberExpression(pos) {
|
|
|
562
549
|
object: null,
|
|
563
550
|
property: null,
|
|
564
551
|
optional: deserializeBool(pos + 12),
|
|
565
|
-
computed:
|
|
566
|
-
start:
|
|
567
|
-
end:
|
|
552
|
+
computed: true,
|
|
553
|
+
start: deserializeI32(pos),
|
|
554
|
+
end: deserializeI32(pos + 4),
|
|
568
555
|
};
|
|
569
556
|
node.object = deserializeExpression(pos + 16);
|
|
570
557
|
node.property = deserializeExpression(pos + 32);
|
|
571
|
-
node.computed = true;
|
|
572
558
|
return node;
|
|
573
559
|
}
|
|
574
560
|
|
|
@@ -578,13 +564,12 @@ function deserializeStaticMemberExpression(pos) {
|
|
|
578
564
|
object: null,
|
|
579
565
|
property: null,
|
|
580
566
|
optional: deserializeBool(pos + 12),
|
|
581
|
-
computed:
|
|
582
|
-
start:
|
|
583
|
-
end:
|
|
567
|
+
computed: false,
|
|
568
|
+
start: deserializeI32(pos),
|
|
569
|
+
end: deserializeI32(pos + 4),
|
|
584
570
|
};
|
|
585
571
|
node.object = deserializeExpression(pos + 16);
|
|
586
572
|
node.property = deserializeIdentifierName(pos + 32);
|
|
587
|
-
node.computed = false;
|
|
588
573
|
return node;
|
|
589
574
|
}
|
|
590
575
|
|
|
@@ -594,13 +579,12 @@ function deserializePrivateFieldExpression(pos) {
|
|
|
594
579
|
object: null,
|
|
595
580
|
property: null,
|
|
596
581
|
optional: deserializeBool(pos + 12),
|
|
597
|
-
computed:
|
|
598
|
-
start:
|
|
599
|
-
end:
|
|
582
|
+
computed: false,
|
|
583
|
+
start: deserializeI32(pos),
|
|
584
|
+
end: deserializeI32(pos + 4),
|
|
600
585
|
};
|
|
601
586
|
node.object = deserializeExpression(pos + 16);
|
|
602
587
|
node.property = deserializePrivateIdentifier(pos + 32);
|
|
603
|
-
node.computed = false;
|
|
604
588
|
return node;
|
|
605
589
|
}
|
|
606
590
|
|
|
@@ -611,8 +595,8 @@ function deserializeCallExpression(pos) {
|
|
|
611
595
|
typeArguments: null,
|
|
612
596
|
arguments: null,
|
|
613
597
|
optional: deserializeBool(pos + 12),
|
|
614
|
-
start:
|
|
615
|
-
end:
|
|
598
|
+
start: deserializeI32(pos),
|
|
599
|
+
end: deserializeI32(pos + 4),
|
|
616
600
|
};
|
|
617
601
|
node.callee = deserializeExpression(pos + 16);
|
|
618
602
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -626,8 +610,8 @@ function deserializeNewExpression(pos) {
|
|
|
626
610
|
callee: null,
|
|
627
611
|
typeArguments: null,
|
|
628
612
|
arguments: null,
|
|
629
|
-
start:
|
|
630
|
-
end:
|
|
613
|
+
start: deserializeI32(pos),
|
|
614
|
+
end: deserializeI32(pos + 4),
|
|
631
615
|
};
|
|
632
616
|
node.callee = deserializeExpression(pos + 16);
|
|
633
617
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -640,8 +624,8 @@ function deserializeMetaProperty(pos) {
|
|
|
640
624
|
type: "MetaProperty",
|
|
641
625
|
meta: null,
|
|
642
626
|
property: null,
|
|
643
|
-
start:
|
|
644
|
-
end:
|
|
627
|
+
start: deserializeI32(pos),
|
|
628
|
+
end: deserializeI32(pos + 4),
|
|
645
629
|
};
|
|
646
630
|
node.meta = deserializeIdentifierName(pos + 16);
|
|
647
631
|
node.property = deserializeIdentifierName(pos + 48);
|
|
@@ -652,8 +636,8 @@ function deserializeSpreadElement(pos) {
|
|
|
652
636
|
let node = {
|
|
653
637
|
type: "SpreadElement",
|
|
654
638
|
argument: null,
|
|
655
|
-
start:
|
|
656
|
-
end:
|
|
639
|
+
start: deserializeI32(pos),
|
|
640
|
+
end: deserializeI32(pos + 4),
|
|
657
641
|
};
|
|
658
642
|
node.argument = deserializeExpression(pos + 16);
|
|
659
643
|
return node;
|
|
@@ -760,8 +744,8 @@ function deserializeUpdateExpression(pos) {
|
|
|
760
744
|
operator: deserializeUpdateOperator(pos + 12),
|
|
761
745
|
prefix: deserializeBool(pos + 13),
|
|
762
746
|
argument: null,
|
|
763
|
-
start:
|
|
764
|
-
end:
|
|
747
|
+
start: deserializeI32(pos),
|
|
748
|
+
end: deserializeI32(pos + 4),
|
|
765
749
|
};
|
|
766
750
|
node.argument = deserializeSimpleAssignmentTarget(pos + 16);
|
|
767
751
|
return node;
|
|
@@ -772,12 +756,11 @@ function deserializeUnaryExpression(pos) {
|
|
|
772
756
|
type: "UnaryExpression",
|
|
773
757
|
operator: deserializeUnaryOperator(pos + 12),
|
|
774
758
|
argument: null,
|
|
775
|
-
prefix:
|
|
776
|
-
start:
|
|
777
|
-
end:
|
|
759
|
+
prefix: true,
|
|
760
|
+
start: deserializeI32(pos),
|
|
761
|
+
end: deserializeI32(pos + 4),
|
|
778
762
|
};
|
|
779
763
|
node.argument = deserializeExpression(pos + 16);
|
|
780
|
-
node.prefix = true;
|
|
781
764
|
return node;
|
|
782
765
|
}
|
|
783
766
|
|
|
@@ -787,8 +770,8 @@ function deserializeBinaryExpression(pos) {
|
|
|
787
770
|
left: null,
|
|
788
771
|
operator: deserializeBinaryOperator(pos + 12),
|
|
789
772
|
right: null,
|
|
790
|
-
start:
|
|
791
|
-
end:
|
|
773
|
+
start: deserializeI32(pos),
|
|
774
|
+
end: deserializeI32(pos + 4),
|
|
792
775
|
};
|
|
793
776
|
node.left = deserializeExpression(pos + 16);
|
|
794
777
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -799,13 +782,12 @@ function deserializePrivateInExpression(pos) {
|
|
|
799
782
|
let node = {
|
|
800
783
|
type: "BinaryExpression",
|
|
801
784
|
left: null,
|
|
802
|
-
operator:
|
|
785
|
+
operator: "in",
|
|
803
786
|
right: null,
|
|
804
|
-
start:
|
|
805
|
-
end:
|
|
787
|
+
start: deserializeI32(pos),
|
|
788
|
+
end: deserializeI32(pos + 4),
|
|
806
789
|
};
|
|
807
790
|
node.left = deserializePrivateIdentifier(pos + 16);
|
|
808
|
-
node.operator = "in";
|
|
809
791
|
node.right = deserializeExpression(pos + 48);
|
|
810
792
|
return node;
|
|
811
793
|
}
|
|
@@ -816,8 +798,8 @@ function deserializeLogicalExpression(pos) {
|
|
|
816
798
|
left: null,
|
|
817
799
|
operator: deserializeLogicalOperator(pos + 12),
|
|
818
800
|
right: null,
|
|
819
|
-
start:
|
|
820
|
-
end:
|
|
801
|
+
start: deserializeI32(pos),
|
|
802
|
+
end: deserializeI32(pos + 4),
|
|
821
803
|
};
|
|
822
804
|
node.left = deserializeExpression(pos + 16);
|
|
823
805
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -830,8 +812,8 @@ function deserializeConditionalExpression(pos) {
|
|
|
830
812
|
test: null,
|
|
831
813
|
consequent: null,
|
|
832
814
|
alternate: null,
|
|
833
|
-
start:
|
|
834
|
-
end:
|
|
815
|
+
start: deserializeI32(pos),
|
|
816
|
+
end: deserializeI32(pos + 4),
|
|
835
817
|
};
|
|
836
818
|
node.test = deserializeExpression(pos + 16);
|
|
837
819
|
node.consequent = deserializeExpression(pos + 32);
|
|
@@ -845,8 +827,8 @@ function deserializeAssignmentExpression(pos) {
|
|
|
845
827
|
operator: deserializeAssignmentOperator(pos + 12),
|
|
846
828
|
left: null,
|
|
847
829
|
right: null,
|
|
848
|
-
start:
|
|
849
|
-
end:
|
|
830
|
+
start: deserializeI32(pos),
|
|
831
|
+
end: deserializeI32(pos + 4),
|
|
850
832
|
};
|
|
851
833
|
node.left = deserializeAssignmentTarget(pos + 16);
|
|
852
834
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -906,55 +888,49 @@ function deserializeSimpleAssignmentTarget(pos) {
|
|
|
906
888
|
function deserializeArrayAssignmentTarget(pos) {
|
|
907
889
|
let node = {
|
|
908
890
|
type: "ArrayPattern",
|
|
909
|
-
decorators:
|
|
891
|
+
decorators: [],
|
|
910
892
|
elements: null,
|
|
911
|
-
optional:
|
|
893
|
+
optional: false,
|
|
912
894
|
typeAnnotation: null,
|
|
913
|
-
start:
|
|
914
|
-
end:
|
|
895
|
+
start: deserializeI32(pos),
|
|
896
|
+
end: deserializeI32(pos + 4),
|
|
915
897
|
},
|
|
916
898
|
elements = deserializeVecOptionAssignmentTargetMaybeDefault(pos + 16),
|
|
917
899
|
rest = deserializeOptionBoxAssignmentTargetRest(pos + 40);
|
|
918
900
|
rest !== null && elements.push(rest);
|
|
919
|
-
node.decorators = [];
|
|
920
901
|
node.elements = elements;
|
|
921
|
-
node.optional = false;
|
|
922
902
|
return node;
|
|
923
903
|
}
|
|
924
904
|
|
|
925
905
|
function deserializeObjectAssignmentTarget(pos) {
|
|
926
906
|
let node = {
|
|
927
907
|
type: "ObjectPattern",
|
|
928
|
-
decorators:
|
|
908
|
+
decorators: [],
|
|
929
909
|
properties: null,
|
|
930
|
-
optional:
|
|
910
|
+
optional: false,
|
|
931
911
|
typeAnnotation: null,
|
|
932
|
-
start:
|
|
933
|
-
end:
|
|
912
|
+
start: deserializeI32(pos),
|
|
913
|
+
end: deserializeI32(pos + 4),
|
|
934
914
|
},
|
|
935
915
|
properties = deserializeVecAssignmentTargetProperty(pos + 16),
|
|
936
916
|
rest = deserializeOptionBoxAssignmentTargetRest(pos + 40);
|
|
937
917
|
rest !== null && properties.push(rest);
|
|
938
|
-
node.decorators = [];
|
|
939
918
|
node.properties = properties;
|
|
940
|
-
node.optional = false;
|
|
941
919
|
return node;
|
|
942
920
|
}
|
|
943
921
|
|
|
944
922
|
function deserializeAssignmentTargetRest(pos) {
|
|
945
923
|
let node = {
|
|
946
924
|
type: "RestElement",
|
|
947
|
-
decorators:
|
|
925
|
+
decorators: [],
|
|
948
926
|
argument: null,
|
|
949
|
-
optional:
|
|
927
|
+
optional: false,
|
|
950
928
|
typeAnnotation: null,
|
|
951
929
|
value: null,
|
|
952
|
-
start:
|
|
953
|
-
end:
|
|
930
|
+
start: deserializeI32(pos),
|
|
931
|
+
end: deserializeI32(pos + 4),
|
|
954
932
|
};
|
|
955
|
-
node.decorators = [];
|
|
956
933
|
node.argument = deserializeAssignmentTarget(pos + 16);
|
|
957
|
-
node.optional = false;
|
|
958
934
|
return node;
|
|
959
935
|
}
|
|
960
936
|
|
|
@@ -990,18 +966,16 @@ function deserializeAssignmentTargetMaybeDefault(pos) {
|
|
|
990
966
|
function deserializeAssignmentTargetWithDefault(pos) {
|
|
991
967
|
let node = {
|
|
992
968
|
type: "AssignmentPattern",
|
|
993
|
-
decorators:
|
|
969
|
+
decorators: [],
|
|
994
970
|
left: null,
|
|
995
971
|
right: null,
|
|
996
|
-
optional:
|
|
972
|
+
optional: false,
|
|
997
973
|
typeAnnotation: null,
|
|
998
|
-
start:
|
|
999
|
-
end:
|
|
974
|
+
start: deserializeI32(pos),
|
|
975
|
+
end: deserializeI32(pos + 4),
|
|
1000
976
|
};
|
|
1001
|
-
node.decorators = [];
|
|
1002
977
|
node.left = deserializeAssignmentTarget(pos + 16);
|
|
1003
978
|
node.right = deserializeExpression(pos + 32);
|
|
1004
|
-
node.optional = false;
|
|
1005
979
|
return node;
|
|
1006
980
|
}
|
|
1007
981
|
|
|
@@ -1017,17 +991,17 @@ function deserializeAssignmentTargetProperty(pos) {
|
|
|
1017
991
|
}
|
|
1018
992
|
|
|
1019
993
|
function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
1020
|
-
let start =
|
|
1021
|
-
end =
|
|
994
|
+
let start = deserializeI32(pos),
|
|
995
|
+
end = deserializeI32(pos + 4),
|
|
1022
996
|
node = {
|
|
1023
997
|
type: "Property",
|
|
1024
|
-
kind:
|
|
998
|
+
kind: "init",
|
|
1025
999
|
key: null,
|
|
1026
1000
|
value: null,
|
|
1027
|
-
method:
|
|
1028
|
-
shorthand:
|
|
1029
|
-
computed:
|
|
1030
|
-
optional:
|
|
1001
|
+
method: false,
|
|
1002
|
+
shorthand: true,
|
|
1003
|
+
computed: false,
|
|
1004
|
+
optional: false,
|
|
1031
1005
|
start,
|
|
1032
1006
|
end,
|
|
1033
1007
|
},
|
|
@@ -1053,35 +1027,26 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
1053
1027
|
start,
|
|
1054
1028
|
end,
|
|
1055
1029
|
});
|
|
1056
|
-
node.kind = "init";
|
|
1057
1030
|
node.key = key;
|
|
1058
1031
|
node.value = value;
|
|
1059
|
-
node.method = false;
|
|
1060
|
-
node.shorthand = true;
|
|
1061
|
-
node.computed = false;
|
|
1062
|
-
node.optional = false;
|
|
1063
1032
|
return node;
|
|
1064
1033
|
}
|
|
1065
1034
|
|
|
1066
1035
|
function deserializeAssignmentTargetPropertyProperty(pos) {
|
|
1067
1036
|
let node = {
|
|
1068
1037
|
type: "Property",
|
|
1069
|
-
kind:
|
|
1038
|
+
kind: "init",
|
|
1070
1039
|
key: null,
|
|
1071
1040
|
value: null,
|
|
1072
|
-
method:
|
|
1073
|
-
shorthand:
|
|
1041
|
+
method: false,
|
|
1042
|
+
shorthand: false,
|
|
1074
1043
|
computed: deserializeBool(pos + 12),
|
|
1075
|
-
optional:
|
|
1076
|
-
start:
|
|
1077
|
-
end:
|
|
1044
|
+
optional: false,
|
|
1045
|
+
start: deserializeI32(pos),
|
|
1046
|
+
end: deserializeI32(pos + 4),
|
|
1078
1047
|
};
|
|
1079
|
-
node.kind = "init";
|
|
1080
1048
|
node.key = deserializePropertyKey(pos + 16);
|
|
1081
1049
|
node.value = deserializeAssignmentTargetMaybeDefault(pos + 32);
|
|
1082
|
-
node.method = false;
|
|
1083
|
-
node.shorthand = false;
|
|
1084
|
-
node.optional = false;
|
|
1085
1050
|
return node;
|
|
1086
1051
|
}
|
|
1087
1052
|
|
|
@@ -1089,8 +1054,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1089
1054
|
let node = {
|
|
1090
1055
|
type: "SequenceExpression",
|
|
1091
1056
|
expressions: null,
|
|
1092
|
-
start:
|
|
1093
|
-
end:
|
|
1057
|
+
start: deserializeI32(pos),
|
|
1058
|
+
end: deserializeI32(pos + 4),
|
|
1094
1059
|
};
|
|
1095
1060
|
node.expressions = deserializeVecExpression(pos + 16);
|
|
1096
1061
|
return node;
|
|
@@ -1099,8 +1064,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1099
1064
|
function deserializeSuper(pos) {
|
|
1100
1065
|
return {
|
|
1101
1066
|
type: "Super",
|
|
1102
|
-
start:
|
|
1103
|
-
end:
|
|
1067
|
+
start: deserializeI32(pos),
|
|
1068
|
+
end: deserializeI32(pos + 4),
|
|
1104
1069
|
};
|
|
1105
1070
|
}
|
|
1106
1071
|
|
|
@@ -1108,8 +1073,8 @@ function deserializeAwaitExpression(pos) {
|
|
|
1108
1073
|
let node = {
|
|
1109
1074
|
type: "AwaitExpression",
|
|
1110
1075
|
argument: null,
|
|
1111
|
-
start:
|
|
1112
|
-
end:
|
|
1076
|
+
start: deserializeI32(pos),
|
|
1077
|
+
end: deserializeI32(pos + 4),
|
|
1113
1078
|
};
|
|
1114
1079
|
node.argument = deserializeExpression(pos + 16);
|
|
1115
1080
|
return node;
|
|
@@ -1119,8 +1084,8 @@ function deserializeChainExpression(pos) {
|
|
|
1119
1084
|
let node = {
|
|
1120
1085
|
type: "ChainExpression",
|
|
1121
1086
|
expression: null,
|
|
1122
|
-
start:
|
|
1123
|
-
end:
|
|
1087
|
+
start: deserializeI32(pos),
|
|
1088
|
+
end: deserializeI32(pos + 4),
|
|
1124
1089
|
};
|
|
1125
1090
|
node.expression = deserializeChainElement(pos + 16);
|
|
1126
1091
|
return node;
|
|
@@ -1148,8 +1113,8 @@ function deserializeParenthesizedExpression(pos) {
|
|
|
1148
1113
|
node = {
|
|
1149
1114
|
type: "ParenthesizedExpression",
|
|
1150
1115
|
expression: null,
|
|
1151
|
-
start:
|
|
1152
|
-
end:
|
|
1116
|
+
start: deserializeI32(pos),
|
|
1117
|
+
end: deserializeI32(pos + 4),
|
|
1153
1118
|
};
|
|
1154
1119
|
node.expression = deserializeExpression(pos + 16);
|
|
1155
1120
|
return node;
|
|
@@ -1233,8 +1198,8 @@ function deserializeDirective(pos) {
|
|
|
1233
1198
|
type: "ExpressionStatement",
|
|
1234
1199
|
expression: null,
|
|
1235
1200
|
directive: deserializeStr(pos + 64),
|
|
1236
|
-
start:
|
|
1237
|
-
end:
|
|
1201
|
+
start: deserializeI32(pos),
|
|
1202
|
+
end: deserializeI32(pos + 4),
|
|
1238
1203
|
};
|
|
1239
1204
|
node.expression = deserializeStringLiteral(pos + 16);
|
|
1240
1205
|
return node;
|
|
@@ -1244,8 +1209,8 @@ function deserializeHashbang(pos) {
|
|
|
1244
1209
|
return {
|
|
1245
1210
|
type: "Hashbang",
|
|
1246
1211
|
value: deserializeStr(pos + 16),
|
|
1247
|
-
start:
|
|
1248
|
-
end:
|
|
1212
|
+
start: deserializeI32(pos),
|
|
1213
|
+
end: deserializeI32(pos + 4),
|
|
1249
1214
|
};
|
|
1250
1215
|
}
|
|
1251
1216
|
|
|
@@ -1253,8 +1218,8 @@ function deserializeBlockStatement(pos) {
|
|
|
1253
1218
|
let node = {
|
|
1254
1219
|
type: "BlockStatement",
|
|
1255
1220
|
body: null,
|
|
1256
|
-
start:
|
|
1257
|
-
end:
|
|
1221
|
+
start: deserializeI32(pos),
|
|
1222
|
+
end: deserializeI32(pos + 4),
|
|
1258
1223
|
};
|
|
1259
1224
|
node.body = deserializeVecStatement(pos + 16);
|
|
1260
1225
|
return node;
|
|
@@ -1291,8 +1256,8 @@ function deserializeVariableDeclaration(pos) {
|
|
|
1291
1256
|
kind: deserializeVariableDeclarationKind(pos + 12),
|
|
1292
1257
|
declarations: null,
|
|
1293
1258
|
declare: deserializeBool(pos + 13),
|
|
1294
|
-
start:
|
|
1295
|
-
end:
|
|
1259
|
+
start: deserializeI32(pos),
|
|
1260
|
+
end: deserializeI32(pos + 4),
|
|
1296
1261
|
};
|
|
1297
1262
|
node.declarations = deserializeVecVariableDeclarator(pos + 16);
|
|
1298
1263
|
return node;
|
|
@@ -1321,8 +1286,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1321
1286
|
id: null,
|
|
1322
1287
|
init: null,
|
|
1323
1288
|
definite: deserializeBool(pos + 13),
|
|
1324
|
-
start:
|
|
1325
|
-
end:
|
|
1289
|
+
start: deserializeI32(pos),
|
|
1290
|
+
end: deserializeI32(pos + 4),
|
|
1326
1291
|
},
|
|
1327
1292
|
pattern = deserializeBindingPattern(pos + 16);
|
|
1328
1293
|
{
|
|
@@ -1340,8 +1305,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1340
1305
|
function deserializeEmptyStatement(pos) {
|
|
1341
1306
|
return {
|
|
1342
1307
|
type: "EmptyStatement",
|
|
1343
|
-
start:
|
|
1344
|
-
end:
|
|
1308
|
+
start: deserializeI32(pos),
|
|
1309
|
+
end: deserializeI32(pos + 4),
|
|
1345
1310
|
};
|
|
1346
1311
|
}
|
|
1347
1312
|
|
|
@@ -1350,8 +1315,8 @@ function deserializeExpressionStatement(pos) {
|
|
|
1350
1315
|
type: "ExpressionStatement",
|
|
1351
1316
|
expression: null,
|
|
1352
1317
|
directive: null,
|
|
1353
|
-
start:
|
|
1354
|
-
end:
|
|
1318
|
+
start: deserializeI32(pos),
|
|
1319
|
+
end: deserializeI32(pos + 4),
|
|
1355
1320
|
};
|
|
1356
1321
|
node.expression = deserializeExpression(pos + 16);
|
|
1357
1322
|
return node;
|
|
@@ -1363,8 +1328,8 @@ function deserializeIfStatement(pos) {
|
|
|
1363
1328
|
test: null,
|
|
1364
1329
|
consequent: null,
|
|
1365
1330
|
alternate: null,
|
|
1366
|
-
start:
|
|
1367
|
-
end:
|
|
1331
|
+
start: deserializeI32(pos),
|
|
1332
|
+
end: deserializeI32(pos + 4),
|
|
1368
1333
|
};
|
|
1369
1334
|
node.test = deserializeExpression(pos + 16);
|
|
1370
1335
|
node.consequent = deserializeStatement(pos + 32);
|
|
@@ -1377,8 +1342,8 @@ function deserializeDoWhileStatement(pos) {
|
|
|
1377
1342
|
type: "DoWhileStatement",
|
|
1378
1343
|
body: null,
|
|
1379
1344
|
test: null,
|
|
1380
|
-
start:
|
|
1381
|
-
end:
|
|
1345
|
+
start: deserializeI32(pos),
|
|
1346
|
+
end: deserializeI32(pos + 4),
|
|
1382
1347
|
};
|
|
1383
1348
|
node.body = deserializeStatement(pos + 16);
|
|
1384
1349
|
node.test = deserializeExpression(pos + 32);
|
|
@@ -1390,8 +1355,8 @@ function deserializeWhileStatement(pos) {
|
|
|
1390
1355
|
type: "WhileStatement",
|
|
1391
1356
|
test: null,
|
|
1392
1357
|
body: null,
|
|
1393
|
-
start:
|
|
1394
|
-
end:
|
|
1358
|
+
start: deserializeI32(pos),
|
|
1359
|
+
end: deserializeI32(pos + 4),
|
|
1395
1360
|
};
|
|
1396
1361
|
node.test = deserializeExpression(pos + 16);
|
|
1397
1362
|
node.body = deserializeStatement(pos + 32);
|
|
@@ -1405,8 +1370,8 @@ function deserializeForStatement(pos) {
|
|
|
1405
1370
|
test: null,
|
|
1406
1371
|
update: null,
|
|
1407
1372
|
body: null,
|
|
1408
|
-
start:
|
|
1409
|
-
end:
|
|
1373
|
+
start: deserializeI32(pos),
|
|
1374
|
+
end: deserializeI32(pos + 4),
|
|
1410
1375
|
};
|
|
1411
1376
|
node.init = deserializeOptionForStatementInit(pos + 16);
|
|
1412
1377
|
node.test = deserializeOptionExpression(pos + 32);
|
|
@@ -1516,8 +1481,8 @@ function deserializeForInStatement(pos) {
|
|
|
1516
1481
|
left: null,
|
|
1517
1482
|
right: null,
|
|
1518
1483
|
body: null,
|
|
1519
|
-
start:
|
|
1520
|
-
end:
|
|
1484
|
+
start: deserializeI32(pos),
|
|
1485
|
+
end: deserializeI32(pos + 4),
|
|
1521
1486
|
};
|
|
1522
1487
|
node.left = deserializeForStatementLeft(pos + 16);
|
|
1523
1488
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -1561,8 +1526,8 @@ function deserializeForOfStatement(pos) {
|
|
|
1561
1526
|
left: null,
|
|
1562
1527
|
right: null,
|
|
1563
1528
|
body: null,
|
|
1564
|
-
start:
|
|
1565
|
-
end:
|
|
1529
|
+
start: deserializeI32(pos),
|
|
1530
|
+
end: deserializeI32(pos + 4),
|
|
1566
1531
|
};
|
|
1567
1532
|
node.left = deserializeForStatementLeft(pos + 16);
|
|
1568
1533
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -1574,8 +1539,8 @@ function deserializeContinueStatement(pos) {
|
|
|
1574
1539
|
let node = {
|
|
1575
1540
|
type: "ContinueStatement",
|
|
1576
1541
|
label: null,
|
|
1577
|
-
start:
|
|
1578
|
-
end:
|
|
1542
|
+
start: deserializeI32(pos),
|
|
1543
|
+
end: deserializeI32(pos + 4),
|
|
1579
1544
|
};
|
|
1580
1545
|
node.label = deserializeOptionLabelIdentifier(pos + 16);
|
|
1581
1546
|
return node;
|
|
@@ -1585,8 +1550,8 @@ function deserializeBreakStatement(pos) {
|
|
|
1585
1550
|
let node = {
|
|
1586
1551
|
type: "BreakStatement",
|
|
1587
1552
|
label: null,
|
|
1588
|
-
start:
|
|
1589
|
-
end:
|
|
1553
|
+
start: deserializeI32(pos),
|
|
1554
|
+
end: deserializeI32(pos + 4),
|
|
1590
1555
|
};
|
|
1591
1556
|
node.label = deserializeOptionLabelIdentifier(pos + 16);
|
|
1592
1557
|
return node;
|
|
@@ -1596,8 +1561,8 @@ function deserializeReturnStatement(pos) {
|
|
|
1596
1561
|
let node = {
|
|
1597
1562
|
type: "ReturnStatement",
|
|
1598
1563
|
argument: null,
|
|
1599
|
-
start:
|
|
1600
|
-
end:
|
|
1564
|
+
start: deserializeI32(pos),
|
|
1565
|
+
end: deserializeI32(pos + 4),
|
|
1601
1566
|
};
|
|
1602
1567
|
node.argument = deserializeOptionExpression(pos + 16);
|
|
1603
1568
|
return node;
|
|
@@ -1608,8 +1573,8 @@ function deserializeWithStatement(pos) {
|
|
|
1608
1573
|
type: "WithStatement",
|
|
1609
1574
|
object: null,
|
|
1610
1575
|
body: null,
|
|
1611
|
-
start:
|
|
1612
|
-
end:
|
|
1576
|
+
start: deserializeI32(pos),
|
|
1577
|
+
end: deserializeI32(pos + 4),
|
|
1613
1578
|
};
|
|
1614
1579
|
node.object = deserializeExpression(pos + 16);
|
|
1615
1580
|
node.body = deserializeStatement(pos + 32);
|
|
@@ -1621,8 +1586,8 @@ function deserializeSwitchStatement(pos) {
|
|
|
1621
1586
|
type: "SwitchStatement",
|
|
1622
1587
|
discriminant: null,
|
|
1623
1588
|
cases: null,
|
|
1624
|
-
start:
|
|
1625
|
-
end:
|
|
1589
|
+
start: deserializeI32(pos),
|
|
1590
|
+
end: deserializeI32(pos + 4),
|
|
1626
1591
|
};
|
|
1627
1592
|
node.discriminant = deserializeExpression(pos + 16);
|
|
1628
1593
|
node.cases = deserializeVecSwitchCase(pos + 32);
|
|
@@ -1634,8 +1599,8 @@ function deserializeSwitchCase(pos) {
|
|
|
1634
1599
|
type: "SwitchCase",
|
|
1635
1600
|
test: null,
|
|
1636
1601
|
consequent: null,
|
|
1637
|
-
start:
|
|
1638
|
-
end:
|
|
1602
|
+
start: deserializeI32(pos),
|
|
1603
|
+
end: deserializeI32(pos + 4),
|
|
1639
1604
|
};
|
|
1640
1605
|
node.test = deserializeOptionExpression(pos + 16);
|
|
1641
1606
|
node.consequent = deserializeVecStatement(pos + 32);
|
|
@@ -1647,8 +1612,8 @@ function deserializeLabeledStatement(pos) {
|
|
|
1647
1612
|
type: "LabeledStatement",
|
|
1648
1613
|
label: null,
|
|
1649
1614
|
body: null,
|
|
1650
|
-
start:
|
|
1651
|
-
end:
|
|
1615
|
+
start: deserializeI32(pos),
|
|
1616
|
+
end: deserializeI32(pos + 4),
|
|
1652
1617
|
};
|
|
1653
1618
|
node.label = deserializeLabelIdentifier(pos + 16);
|
|
1654
1619
|
node.body = deserializeStatement(pos + 48);
|
|
@@ -1659,8 +1624,8 @@ function deserializeThrowStatement(pos) {
|
|
|
1659
1624
|
let node = {
|
|
1660
1625
|
type: "ThrowStatement",
|
|
1661
1626
|
argument: null,
|
|
1662
|
-
start:
|
|
1663
|
-
end:
|
|
1627
|
+
start: deserializeI32(pos),
|
|
1628
|
+
end: deserializeI32(pos + 4),
|
|
1664
1629
|
};
|
|
1665
1630
|
node.argument = deserializeExpression(pos + 16);
|
|
1666
1631
|
return node;
|
|
@@ -1672,8 +1637,8 @@ function deserializeTryStatement(pos) {
|
|
|
1672
1637
|
block: null,
|
|
1673
1638
|
handler: null,
|
|
1674
1639
|
finalizer: null,
|
|
1675
|
-
start:
|
|
1676
|
-
end:
|
|
1640
|
+
start: deserializeI32(pos),
|
|
1641
|
+
end: deserializeI32(pos + 4),
|
|
1677
1642
|
};
|
|
1678
1643
|
node.block = deserializeBoxBlockStatement(pos + 16);
|
|
1679
1644
|
node.handler = deserializeOptionBoxCatchClause(pos + 24);
|
|
@@ -1686,8 +1651,8 @@ function deserializeCatchClause(pos) {
|
|
|
1686
1651
|
type: "CatchClause",
|
|
1687
1652
|
param: null,
|
|
1688
1653
|
body: null,
|
|
1689
|
-
start:
|
|
1690
|
-
end:
|
|
1654
|
+
start: deserializeI32(pos),
|
|
1655
|
+
end: deserializeI32(pos + 4),
|
|
1691
1656
|
};
|
|
1692
1657
|
node.param = deserializeOptionCatchParameter(pos + 16);
|
|
1693
1658
|
node.body = deserializeBoxBlockStatement(pos + 56);
|
|
@@ -1707,8 +1672,8 @@ function deserializeCatchParameter(pos) {
|
|
|
1707
1672
|
function deserializeDebuggerStatement(pos) {
|
|
1708
1673
|
return {
|
|
1709
1674
|
type: "DebuggerStatement",
|
|
1710
|
-
start:
|
|
1711
|
-
end:
|
|
1675
|
+
start: deserializeI32(pos),
|
|
1676
|
+
end: deserializeI32(pos + 4),
|
|
1712
1677
|
};
|
|
1713
1678
|
}
|
|
1714
1679
|
|
|
@@ -1730,94 +1695,83 @@ function deserializeBindingPattern(pos) {
|
|
|
1730
1695
|
function deserializeAssignmentPattern(pos) {
|
|
1731
1696
|
let node = {
|
|
1732
1697
|
type: "AssignmentPattern",
|
|
1733
|
-
decorators:
|
|
1698
|
+
decorators: [],
|
|
1734
1699
|
left: null,
|
|
1735
1700
|
right: null,
|
|
1736
|
-
optional:
|
|
1701
|
+
optional: false,
|
|
1737
1702
|
typeAnnotation: null,
|
|
1738
|
-
start:
|
|
1739
|
-
end:
|
|
1703
|
+
start: deserializeI32(pos),
|
|
1704
|
+
end: deserializeI32(pos + 4),
|
|
1740
1705
|
};
|
|
1741
|
-
node.decorators = [];
|
|
1742
1706
|
node.left = deserializeBindingPattern(pos + 16);
|
|
1743
1707
|
node.right = deserializeExpression(pos + 32);
|
|
1744
|
-
node.optional = false;
|
|
1745
1708
|
return node;
|
|
1746
1709
|
}
|
|
1747
1710
|
|
|
1748
1711
|
function deserializeObjectPattern(pos) {
|
|
1749
1712
|
let node = {
|
|
1750
1713
|
type: "ObjectPattern",
|
|
1751
|
-
decorators:
|
|
1714
|
+
decorators: [],
|
|
1752
1715
|
properties: null,
|
|
1753
|
-
optional:
|
|
1716
|
+
optional: false,
|
|
1754
1717
|
typeAnnotation: null,
|
|
1755
|
-
start:
|
|
1756
|
-
end:
|
|
1718
|
+
start: deserializeI32(pos),
|
|
1719
|
+
end: deserializeI32(pos + 4),
|
|
1757
1720
|
},
|
|
1758
1721
|
properties = deserializeVecBindingProperty(pos + 16),
|
|
1759
1722
|
rest = deserializeOptionBoxBindingRestElement(pos + 40);
|
|
1760
1723
|
rest !== null && properties.push(rest);
|
|
1761
|
-
node.decorators = [];
|
|
1762
1724
|
node.properties = properties;
|
|
1763
|
-
node.optional = false;
|
|
1764
1725
|
return node;
|
|
1765
1726
|
}
|
|
1766
1727
|
|
|
1767
1728
|
function deserializeBindingProperty(pos) {
|
|
1768
1729
|
let node = {
|
|
1769
1730
|
type: "Property",
|
|
1770
|
-
kind:
|
|
1731
|
+
kind: "init",
|
|
1771
1732
|
key: null,
|
|
1772
1733
|
value: null,
|
|
1773
|
-
method:
|
|
1734
|
+
method: false,
|
|
1774
1735
|
shorthand: deserializeBool(pos + 12),
|
|
1775
1736
|
computed: deserializeBool(pos + 13),
|
|
1776
|
-
optional:
|
|
1777
|
-
start:
|
|
1778
|
-
end:
|
|
1737
|
+
optional: false,
|
|
1738
|
+
start: deserializeI32(pos),
|
|
1739
|
+
end: deserializeI32(pos + 4),
|
|
1779
1740
|
};
|
|
1780
|
-
node.kind = "init";
|
|
1781
1741
|
node.key = deserializePropertyKey(pos + 16);
|
|
1782
1742
|
node.value = deserializeBindingPattern(pos + 32);
|
|
1783
|
-
node.method = false;
|
|
1784
|
-
node.optional = false;
|
|
1785
1743
|
return node;
|
|
1786
1744
|
}
|
|
1787
1745
|
|
|
1788
1746
|
function deserializeArrayPattern(pos) {
|
|
1789
1747
|
let node = {
|
|
1790
1748
|
type: "ArrayPattern",
|
|
1791
|
-
decorators:
|
|
1749
|
+
decorators: [],
|
|
1792
1750
|
elements: null,
|
|
1793
|
-
optional:
|
|
1751
|
+
optional: false,
|
|
1794
1752
|
typeAnnotation: null,
|
|
1795
|
-
start:
|
|
1796
|
-
end:
|
|
1753
|
+
start: deserializeI32(pos),
|
|
1754
|
+
end: deserializeI32(pos + 4),
|
|
1797
1755
|
},
|
|
1798
1756
|
elements = deserializeVecOptionBindingPattern(pos + 16),
|
|
1799
1757
|
rest = deserializeOptionBoxBindingRestElement(pos + 40);
|
|
1800
1758
|
rest !== null && elements.push(rest);
|
|
1801
|
-
node.decorators = [];
|
|
1802
1759
|
node.elements = elements;
|
|
1803
|
-
node.optional = false;
|
|
1804
1760
|
return node;
|
|
1805
1761
|
}
|
|
1806
1762
|
|
|
1807
1763
|
function deserializeBindingRestElement(pos) {
|
|
1808
1764
|
let node = {
|
|
1809
1765
|
type: "RestElement",
|
|
1810
|
-
decorators:
|
|
1766
|
+
decorators: [],
|
|
1811
1767
|
argument: null,
|
|
1812
|
-
optional:
|
|
1768
|
+
optional: false,
|
|
1813
1769
|
typeAnnotation: null,
|
|
1814
1770
|
value: null,
|
|
1815
|
-
start:
|
|
1816
|
-
end:
|
|
1771
|
+
start: deserializeI32(pos),
|
|
1772
|
+
end: deserializeI32(pos + 4),
|
|
1817
1773
|
};
|
|
1818
|
-
node.decorators = [];
|
|
1819
1774
|
node.argument = deserializeBindingPattern(pos + 16);
|
|
1820
|
-
node.optional = false;
|
|
1821
1775
|
return node;
|
|
1822
1776
|
}
|
|
1823
1777
|
|
|
@@ -1832,9 +1786,9 @@ function deserializeFunction(pos) {
|
|
|
1832
1786
|
params: null,
|
|
1833
1787
|
returnType: null,
|
|
1834
1788
|
body: null,
|
|
1835
|
-
expression:
|
|
1836
|
-
start:
|
|
1837
|
-
end:
|
|
1789
|
+
expression: false,
|
|
1790
|
+
start: deserializeI32(pos),
|
|
1791
|
+
end: deserializeI32(pos + 4),
|
|
1838
1792
|
},
|
|
1839
1793
|
params = deserializeBoxFormalParameters(pos + 64);
|
|
1840
1794
|
{
|
|
@@ -1846,7 +1800,6 @@ function deserializeFunction(pos) {
|
|
|
1846
1800
|
node.params = params;
|
|
1847
1801
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 72);
|
|
1848
1802
|
node.body = deserializeOptionBoxFunctionBody(pos + 80);
|
|
1849
|
-
node.expression = false;
|
|
1850
1803
|
return node;
|
|
1851
1804
|
}
|
|
1852
1805
|
|
|
@@ -1866,9 +1819,10 @@ function deserializeFunctionType(pos) {
|
|
|
1866
1819
|
}
|
|
1867
1820
|
|
|
1868
1821
|
function deserializeFormalParameters(pos) {
|
|
1869
|
-
let params = deserializeVecFormalParameter(pos + 16)
|
|
1870
|
-
|
|
1871
|
-
|
|
1822
|
+
let params = deserializeVecFormalParameter(pos + 16),
|
|
1823
|
+
restFieldPos32 = (pos >> 2) + 10;
|
|
1824
|
+
if (int32[restFieldPos32] !== 0 && int32[restFieldPos32 + 1] !== 0) {
|
|
1825
|
+
pos = int32[restFieldPos32];
|
|
1872
1826
|
let end,
|
|
1873
1827
|
rest = {
|
|
1874
1828
|
type: "RestElement",
|
|
@@ -1877,8 +1831,8 @@ function deserializeFormalParameters(pos) {
|
|
|
1877
1831
|
optional: false,
|
|
1878
1832
|
typeAnnotation: null,
|
|
1879
1833
|
value: null,
|
|
1880
|
-
start:
|
|
1881
|
-
end: (end =
|
|
1834
|
+
start: deserializeI32(pos + 40),
|
|
1835
|
+
end: (end = deserializeI32(pos + 44)),
|
|
1882
1836
|
};
|
|
1883
1837
|
rest.argument = deserializeBindingPattern(pos + 56);
|
|
1884
1838
|
rest.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 72);
|
|
@@ -1893,7 +1847,8 @@ function deserializeFormalParameters(pos) {
|
|
|
1893
1847
|
|
|
1894
1848
|
function deserializeFormalParameter(pos) {
|
|
1895
1849
|
let param,
|
|
1896
|
-
|
|
1850
|
+
initializerFieldPos32 = (pos >> 2) + 16,
|
|
1851
|
+
hasInitializer = int32[initializerFieldPos32] !== 0 && int32[initializerFieldPos32 + 1] !== 0;
|
|
1897
1852
|
{
|
|
1898
1853
|
let accessibility = deserializeOptionTSAccessibility(pos + 13),
|
|
1899
1854
|
readonly = deserializeBool(pos + 14),
|
|
@@ -1908,8 +1863,8 @@ function deserializeFormalParameter(pos) {
|
|
|
1908
1863
|
right: null,
|
|
1909
1864
|
optional,
|
|
1910
1865
|
typeAnnotation: null,
|
|
1911
|
-
start:
|
|
1912
|
-
end:
|
|
1866
|
+
start: deserializeI32(pos),
|
|
1867
|
+
end: deserializeI32(pos + 4),
|
|
1913
1868
|
};
|
|
1914
1869
|
param.decorators = deserializeVecDecorator(pos + 16);
|
|
1915
1870
|
param.left = deserializeBindingPattern(pos + 40);
|
|
@@ -1926,7 +1881,7 @@ function deserializeFormalParameter(pos) {
|
|
|
1926
1881
|
let typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 56);
|
|
1927
1882
|
param.typeAnnotation = typeAnnotation;
|
|
1928
1883
|
typeAnnotation === null
|
|
1929
|
-
? optional && (param.end =
|
|
1884
|
+
? optional && (param.end = deserializeI32(pos + 4))
|
|
1930
1885
|
: (param.end = typeAnnotation.end);
|
|
1931
1886
|
}
|
|
1932
1887
|
} else {
|
|
@@ -1938,8 +1893,8 @@ function deserializeFormalParameter(pos) {
|
|
|
1938
1893
|
parameter: null,
|
|
1939
1894
|
readonly,
|
|
1940
1895
|
static: false,
|
|
1941
|
-
start:
|
|
1942
|
-
end:
|
|
1896
|
+
start: deserializeI32(pos),
|
|
1897
|
+
end: deserializeI32(pos + 4),
|
|
1943
1898
|
};
|
|
1944
1899
|
param.decorators = deserializeVecDecorator(pos + 16);
|
|
1945
1900
|
if (hasInitializer) {
|
|
@@ -1972,7 +1927,7 @@ function deserializeFormalParameter(pos) {
|
|
|
1972
1927
|
param.parameter.typeAnnotation = paramTypeAnnotation;
|
|
1973
1928
|
if (paramTypeAnnotation !== null) param.parameter.end = paramTypeAnnotation.end;
|
|
1974
1929
|
else if (paramOptional) {
|
|
1975
|
-
let paramEnd =
|
|
1930
|
+
let paramEnd = deserializeI32(pos + 4);
|
|
1976
1931
|
param.parameter.end = paramEnd;
|
|
1977
1932
|
}
|
|
1978
1933
|
}
|
|
@@ -1985,8 +1940,8 @@ function deserializeFunctionBody(pos) {
|
|
|
1985
1940
|
let node = {
|
|
1986
1941
|
type: "BlockStatement",
|
|
1987
1942
|
body: null,
|
|
1988
|
-
start:
|
|
1989
|
-
end:
|
|
1943
|
+
start: deserializeI32(pos),
|
|
1944
|
+
end: deserializeI32(pos + 4),
|
|
1990
1945
|
},
|
|
1991
1946
|
body = deserializeVecDirective(pos + 16);
|
|
1992
1947
|
body.push(...deserializeVecStatement(pos + 40));
|
|
@@ -2005,9 +1960,9 @@ function deserializeArrowFunctionExpression(pos) {
|
|
|
2005
1960
|
returnType: null,
|
|
2006
1961
|
body: null,
|
|
2007
1962
|
id: null,
|
|
2008
|
-
generator:
|
|
2009
|
-
start:
|
|
2010
|
-
end:
|
|
1963
|
+
generator: false,
|
|
1964
|
+
start: deserializeI32(pos),
|
|
1965
|
+
end: deserializeI32(pos + 4),
|
|
2011
1966
|
},
|
|
2012
1967
|
body = deserializeBoxFunctionBody(pos + 40);
|
|
2013
1968
|
expression === true && (body = body.body[0].expression);
|
|
@@ -2015,7 +1970,6 @@ function deserializeArrowFunctionExpression(pos) {
|
|
|
2015
1970
|
node.params = deserializeBoxFormalParameters(pos + 24);
|
|
2016
1971
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 32);
|
|
2017
1972
|
node.body = body;
|
|
2018
|
-
node.generator = false;
|
|
2019
1973
|
return node;
|
|
2020
1974
|
}
|
|
2021
1975
|
|
|
@@ -2024,8 +1978,8 @@ function deserializeYieldExpression(pos) {
|
|
|
2024
1978
|
type: "YieldExpression",
|
|
2025
1979
|
delegate: deserializeBool(pos + 12),
|
|
2026
1980
|
argument: null,
|
|
2027
|
-
start:
|
|
2028
|
-
end:
|
|
1981
|
+
start: deserializeI32(pos),
|
|
1982
|
+
end: deserializeI32(pos + 4),
|
|
2029
1983
|
};
|
|
2030
1984
|
node.argument = deserializeOptionExpression(pos + 16);
|
|
2031
1985
|
return node;
|
|
@@ -2043,8 +1997,8 @@ function deserializeClass(pos) {
|
|
|
2043
1997
|
body: null,
|
|
2044
1998
|
abstract: deserializeBool(pos + 137),
|
|
2045
1999
|
declare: deserializeBool(pos + 138),
|
|
2046
|
-
start:
|
|
2047
|
-
end:
|
|
2000
|
+
start: deserializeI32(pos),
|
|
2001
|
+
end: deserializeI32(pos + 4),
|
|
2048
2002
|
};
|
|
2049
2003
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
2050
2004
|
node.id = deserializeOptionBindingIdentifier(pos + 40);
|
|
@@ -2071,8 +2025,8 @@ function deserializeClassBody(pos) {
|
|
|
2071
2025
|
let node = {
|
|
2072
2026
|
type: "ClassBody",
|
|
2073
2027
|
body: null,
|
|
2074
|
-
start:
|
|
2075
|
-
end:
|
|
2028
|
+
start: deserializeI32(pos),
|
|
2029
|
+
end: deserializeI32(pos + 4),
|
|
2076
2030
|
};
|
|
2077
2031
|
node.body = deserializeVecClassElement(pos + 16);
|
|
2078
2032
|
return node;
|
|
@@ -2107,8 +2061,8 @@ function deserializeMethodDefinition(pos) {
|
|
|
2107
2061
|
override: deserializeBool(pos + 64),
|
|
2108
2062
|
optional: deserializeBool(pos + 65),
|
|
2109
2063
|
accessibility: deserializeOptionTSAccessibility(pos + 66),
|
|
2110
|
-
start:
|
|
2111
|
-
end:
|
|
2064
|
+
start: deserializeI32(pos),
|
|
2065
|
+
end: deserializeI32(pos + 4),
|
|
2112
2066
|
};
|
|
2113
2067
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
2114
2068
|
node.key = deserializePropertyKey(pos + 40);
|
|
@@ -2142,8 +2096,8 @@ function deserializePropertyDefinition(pos) {
|
|
|
2142
2096
|
definite: deserializeBool(pos + 82),
|
|
2143
2097
|
readonly: deserializeBool(pos + 83),
|
|
2144
2098
|
accessibility: deserializeOptionTSAccessibility(pos + 84),
|
|
2145
|
-
start:
|
|
2146
|
-
end:
|
|
2099
|
+
start: deserializeI32(pos),
|
|
2100
|
+
end: deserializeI32(pos + 4),
|
|
2147
2101
|
};
|
|
2148
2102
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
2149
2103
|
node.key = deserializePropertyKey(pos + 40);
|
|
@@ -2182,8 +2136,8 @@ function deserializePrivateIdentifier(pos) {
|
|
|
2182
2136
|
return {
|
|
2183
2137
|
type: "PrivateIdentifier",
|
|
2184
2138
|
name: deserializeStr(pos + 16),
|
|
2185
|
-
start:
|
|
2186
|
-
end:
|
|
2139
|
+
start: deserializeI32(pos),
|
|
2140
|
+
end: deserializeI32(pos + 4),
|
|
2187
2141
|
};
|
|
2188
2142
|
}
|
|
2189
2143
|
|
|
@@ -2191,8 +2145,8 @@ function deserializeStaticBlock(pos) {
|
|
|
2191
2145
|
let node = {
|
|
2192
2146
|
type: "StaticBlock",
|
|
2193
2147
|
body: null,
|
|
2194
|
-
start:
|
|
2195
|
-
end:
|
|
2148
|
+
start: deserializeI32(pos),
|
|
2149
|
+
end: deserializeI32(pos + 4),
|
|
2196
2150
|
};
|
|
2197
2151
|
node.body = deserializeVecStatement(pos + 16);
|
|
2198
2152
|
return node;
|
|
@@ -2221,19 +2175,16 @@ function deserializeAccessorProperty(pos) {
|
|
|
2221
2175
|
override: deserializeBool(pos + 15),
|
|
2222
2176
|
definite: deserializeBool(pos + 80),
|
|
2223
2177
|
accessibility: deserializeOptionTSAccessibility(pos + 81),
|
|
2224
|
-
declare:
|
|
2225
|
-
optional:
|
|
2226
|
-
readonly:
|
|
2227
|
-
start:
|
|
2228
|
-
end:
|
|
2178
|
+
declare: false,
|
|
2179
|
+
optional: false,
|
|
2180
|
+
readonly: false,
|
|
2181
|
+
start: deserializeI32(pos),
|
|
2182
|
+
end: deserializeI32(pos + 4),
|
|
2229
2183
|
};
|
|
2230
2184
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
2231
2185
|
node.key = deserializePropertyKey(pos + 40);
|
|
2232
2186
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 56);
|
|
2233
2187
|
node.value = deserializeOptionExpression(pos + 64);
|
|
2234
|
-
node.declare = false;
|
|
2235
|
-
node.optional = false;
|
|
2236
|
-
node.readonly = false;
|
|
2237
2188
|
return node;
|
|
2238
2189
|
}
|
|
2239
2190
|
|
|
@@ -2243,8 +2194,8 @@ function deserializeImportExpression(pos) {
|
|
|
2243
2194
|
source: null,
|
|
2244
2195
|
options: null,
|
|
2245
2196
|
phase: deserializeOptionImportPhase(pos + 12),
|
|
2246
|
-
start:
|
|
2247
|
-
end:
|
|
2197
|
+
start: deserializeI32(pos),
|
|
2198
|
+
end: deserializeI32(pos + 4),
|
|
2248
2199
|
};
|
|
2249
2200
|
node.source = deserializeExpression(pos + 16);
|
|
2250
2201
|
node.options = deserializeOptionExpression(pos + 32);
|
|
@@ -2259,8 +2210,8 @@ function deserializeImportDeclaration(pos) {
|
|
|
2259
2210
|
phase: deserializeOptionImportPhase(pos + 12),
|
|
2260
2211
|
attributes: null,
|
|
2261
2212
|
importKind: deserializeImportOrExportKind(pos + 13),
|
|
2262
|
-
start:
|
|
2263
|
-
end:
|
|
2213
|
+
start: deserializeI32(pos),
|
|
2214
|
+
end: deserializeI32(pos + 4),
|
|
2264
2215
|
},
|
|
2265
2216
|
specifiers = deserializeOptionVecImportDeclarationSpecifier(pos + 16);
|
|
2266
2217
|
specifiers === null && (specifiers = []);
|
|
@@ -2301,8 +2252,8 @@ function deserializeImportSpecifier(pos) {
|
|
|
2301
2252
|
imported: null,
|
|
2302
2253
|
local: null,
|
|
2303
2254
|
importKind: deserializeImportOrExportKind(pos + 12),
|
|
2304
|
-
start:
|
|
2305
|
-
end:
|
|
2255
|
+
start: deserializeI32(pos),
|
|
2256
|
+
end: deserializeI32(pos + 4),
|
|
2306
2257
|
};
|
|
2307
2258
|
node.imported = deserializeModuleExportName(pos + 16);
|
|
2308
2259
|
node.local = deserializeBindingIdentifier(pos + 72);
|
|
@@ -2313,8 +2264,8 @@ function deserializeImportDefaultSpecifier(pos) {
|
|
|
2313
2264
|
let node = {
|
|
2314
2265
|
type: "ImportDefaultSpecifier",
|
|
2315
2266
|
local: null,
|
|
2316
|
-
start:
|
|
2317
|
-
end:
|
|
2267
|
+
start: deserializeI32(pos),
|
|
2268
|
+
end: deserializeI32(pos + 4),
|
|
2318
2269
|
};
|
|
2319
2270
|
node.local = deserializeBindingIdentifier(pos + 16);
|
|
2320
2271
|
return node;
|
|
@@ -2324,8 +2275,8 @@ function deserializeImportNamespaceSpecifier(pos) {
|
|
|
2324
2275
|
let node = {
|
|
2325
2276
|
type: "ImportNamespaceSpecifier",
|
|
2326
2277
|
local: null,
|
|
2327
|
-
start:
|
|
2328
|
-
end:
|
|
2278
|
+
start: deserializeI32(pos),
|
|
2279
|
+
end: deserializeI32(pos + 4),
|
|
2329
2280
|
};
|
|
2330
2281
|
node.local = deserializeBindingIdentifier(pos + 16);
|
|
2331
2282
|
return node;
|
|
@@ -2340,8 +2291,8 @@ function deserializeImportAttribute(pos) {
|
|
|
2340
2291
|
type: "ImportAttribute",
|
|
2341
2292
|
key: null,
|
|
2342
2293
|
value: null,
|
|
2343
|
-
start:
|
|
2344
|
-
end:
|
|
2294
|
+
start: deserializeI32(pos),
|
|
2295
|
+
end: deserializeI32(pos + 4),
|
|
2345
2296
|
};
|
|
2346
2297
|
node.key = deserializeImportAttributeKey(pos + 16);
|
|
2347
2298
|
node.value = deserializeStringLiteral(pos + 72);
|
|
@@ -2367,8 +2318,8 @@ function deserializeExportNamedDeclaration(pos) {
|
|
|
2367
2318
|
source: null,
|
|
2368
2319
|
exportKind: deserializeImportOrExportKind(pos + 12),
|
|
2369
2320
|
attributes: null,
|
|
2370
|
-
start:
|
|
2371
|
-
end:
|
|
2321
|
+
start: deserializeI32(pos),
|
|
2322
|
+
end: deserializeI32(pos + 4),
|
|
2372
2323
|
},
|
|
2373
2324
|
withClause = deserializeOptionBoxWithClause(pos + 104);
|
|
2374
2325
|
node.declaration = deserializeOptionDeclaration(pos + 16);
|
|
@@ -2382,12 +2333,11 @@ function deserializeExportDefaultDeclaration(pos) {
|
|
|
2382
2333
|
let node = {
|
|
2383
2334
|
type: "ExportDefaultDeclaration",
|
|
2384
2335
|
declaration: null,
|
|
2385
|
-
exportKind:
|
|
2386
|
-
start:
|
|
2387
|
-
end:
|
|
2336
|
+
exportKind: "value",
|
|
2337
|
+
start: deserializeI32(pos),
|
|
2338
|
+
end: deserializeI32(pos + 4),
|
|
2388
2339
|
};
|
|
2389
2340
|
node.declaration = deserializeExportDefaultDeclarationKind(pos + 16);
|
|
2390
|
-
node.exportKind = "value";
|
|
2391
2341
|
return node;
|
|
2392
2342
|
}
|
|
2393
2343
|
|
|
@@ -2398,8 +2348,8 @@ function deserializeExportAllDeclaration(pos) {
|
|
|
2398
2348
|
source: null,
|
|
2399
2349
|
attributes: null,
|
|
2400
2350
|
exportKind: deserializeImportOrExportKind(pos + 12),
|
|
2401
|
-
start:
|
|
2402
|
-
end:
|
|
2351
|
+
start: deserializeI32(pos),
|
|
2352
|
+
end: deserializeI32(pos + 4),
|
|
2403
2353
|
},
|
|
2404
2354
|
withClause = deserializeOptionBoxWithClause(pos + 120);
|
|
2405
2355
|
node.exported = deserializeOptionModuleExportName(pos + 16);
|
|
@@ -2414,8 +2364,8 @@ function deserializeExportSpecifier(pos) {
|
|
|
2414
2364
|
local: null,
|
|
2415
2365
|
exported: null,
|
|
2416
2366
|
exportKind: deserializeImportOrExportKind(pos + 12),
|
|
2417
|
-
start:
|
|
2418
|
-
end:
|
|
2367
|
+
start: deserializeI32(pos),
|
|
2368
|
+
end: deserializeI32(pos + 4),
|
|
2419
2369
|
};
|
|
2420
2370
|
node.local = deserializeModuleExportName(pos + 16);
|
|
2421
2371
|
node.exported = deserializeModuleExportName(pos + 72);
|
|
@@ -2539,8 +2489,8 @@ function deserializeV8IntrinsicExpression(pos) {
|
|
|
2539
2489
|
type: "V8IntrinsicExpression",
|
|
2540
2490
|
name: null,
|
|
2541
2491
|
arguments: null,
|
|
2542
|
-
start:
|
|
2543
|
-
end:
|
|
2492
|
+
start: deserializeI32(pos),
|
|
2493
|
+
end: deserializeI32(pos + 4),
|
|
2544
2494
|
};
|
|
2545
2495
|
node.name = deserializeIdentifierName(pos + 16);
|
|
2546
2496
|
node.arguments = deserializeVecArgument(pos + 48);
|
|
@@ -2549,8 +2499,8 @@ function deserializeV8IntrinsicExpression(pos) {
|
|
|
2549
2499
|
|
|
2550
2500
|
function deserializeBooleanLiteral(pos) {
|
|
2551
2501
|
let value = deserializeBool(pos + 12),
|
|
2552
|
-
start =
|
|
2553
|
-
end =
|
|
2502
|
+
start = deserializeI32(pos),
|
|
2503
|
+
end = deserializeI32(pos + 4),
|
|
2554
2504
|
node = {
|
|
2555
2505
|
type: "Literal",
|
|
2556
2506
|
value,
|
|
@@ -2563,27 +2513,25 @@ function deserializeBooleanLiteral(pos) {
|
|
|
2563
2513
|
}
|
|
2564
2514
|
|
|
2565
2515
|
function deserializeNullLiteral(pos) {
|
|
2566
|
-
let start =
|
|
2567
|
-
end =
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
node.raw = start === 0 && end === 0 ? null : "null";
|
|
2576
|
-
return node;
|
|
2516
|
+
let start = deserializeI32(pos),
|
|
2517
|
+
end = deserializeI32(pos + 4);
|
|
2518
|
+
return {
|
|
2519
|
+
type: "Literal",
|
|
2520
|
+
value: null,
|
|
2521
|
+
raw: start === 0 && end === 0 ? null : "null",
|
|
2522
|
+
start,
|
|
2523
|
+
end,
|
|
2524
|
+
};
|
|
2577
2525
|
}
|
|
2578
2526
|
|
|
2579
2527
|
function deserializeNumericLiteral(pos) {
|
|
2580
|
-
let start =
|
|
2581
|
-
end =
|
|
2528
|
+
let start = deserializeI32(pos),
|
|
2529
|
+
end = deserializeI32(pos + 4);
|
|
2582
2530
|
return {
|
|
2583
2531
|
type: "Literal",
|
|
2584
2532
|
value: deserializeF64(pos + 32),
|
|
2585
2533
|
raw:
|
|
2586
|
-
|
|
2534
|
+
int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
2587
2535
|
? null
|
|
2588
2536
|
: sourceText.slice(start, end),
|
|
2589
2537
|
start,
|
|
@@ -2592,13 +2540,13 @@ function deserializeNumericLiteral(pos) {
|
|
|
2592
2540
|
}
|
|
2593
2541
|
|
|
2594
2542
|
function deserializeStringLiteral(pos) {
|
|
2595
|
-
let start =
|
|
2596
|
-
end =
|
|
2543
|
+
let start = deserializeI32(pos),
|
|
2544
|
+
end = deserializeI32(pos + 4),
|
|
2597
2545
|
node = {
|
|
2598
2546
|
type: "Literal",
|
|
2599
2547
|
value: null,
|
|
2600
2548
|
raw:
|
|
2601
|
-
|
|
2549
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
2602
2550
|
? null
|
|
2603
2551
|
: sourceText.slice(start, end),
|
|
2604
2552
|
start,
|
|
@@ -2612,33 +2560,30 @@ function deserializeStringLiteral(pos) {
|
|
|
2612
2560
|
}
|
|
2613
2561
|
|
|
2614
2562
|
function deserializeBigIntLiteral(pos) {
|
|
2615
|
-
let start =
|
|
2616
|
-
end =
|
|
2617
|
-
node = {
|
|
2618
|
-
type: "Literal",
|
|
2619
|
-
value: null,
|
|
2620
|
-
raw:
|
|
2621
|
-
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
2622
|
-
? null
|
|
2623
|
-
: sourceText.slice(start, end),
|
|
2624
|
-
bigint: null,
|
|
2625
|
-
start,
|
|
2626
|
-
end,
|
|
2627
|
-
},
|
|
2563
|
+
let start = deserializeI32(pos),
|
|
2564
|
+
end = deserializeI32(pos + 4),
|
|
2628
2565
|
bigint = deserializeStr(pos + 16);
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2566
|
+
return {
|
|
2567
|
+
type: "Literal",
|
|
2568
|
+
value: BigInt(bigint),
|
|
2569
|
+
raw:
|
|
2570
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
2571
|
+
? null
|
|
2572
|
+
: sourceText.slice(start, end),
|
|
2573
|
+
bigint,
|
|
2574
|
+
start,
|
|
2575
|
+
end,
|
|
2576
|
+
};
|
|
2632
2577
|
}
|
|
2633
2578
|
|
|
2634
2579
|
function deserializeRegExpLiteral(pos) {
|
|
2635
|
-
let start =
|
|
2636
|
-
end =
|
|
2580
|
+
let start = deserializeI32(pos),
|
|
2581
|
+
end = deserializeI32(pos + 4),
|
|
2637
2582
|
node = {
|
|
2638
2583
|
type: "Literal",
|
|
2639
2584
|
value: null,
|
|
2640
2585
|
raw:
|
|
2641
|
-
|
|
2586
|
+
int32[(pos >> 2) + 12] === 0 && int32[(pos >> 2) + 13] === 0
|
|
2642
2587
|
? null
|
|
2643
2588
|
: sourceText.slice(start, end),
|
|
2644
2589
|
regex: null,
|
|
@@ -2683,8 +2628,8 @@ function deserializeJSXElement(pos) {
|
|
|
2683
2628
|
openingElement: null,
|
|
2684
2629
|
children: null,
|
|
2685
2630
|
closingElement: null,
|
|
2686
|
-
start:
|
|
2687
|
-
end:
|
|
2631
|
+
start: deserializeI32(pos),
|
|
2632
|
+
end: deserializeI32(pos + 4),
|
|
2688
2633
|
},
|
|
2689
2634
|
closingElement = deserializeOptionBoxJSXClosingElement(pos + 48),
|
|
2690
2635
|
openingElement = deserializeBoxJSXOpeningElement(pos + 16);
|
|
@@ -2701,14 +2646,13 @@ function deserializeJSXOpeningElement(pos) {
|
|
|
2701
2646
|
name: null,
|
|
2702
2647
|
typeArguments: null,
|
|
2703
2648
|
attributes: null,
|
|
2704
|
-
selfClosing:
|
|
2705
|
-
start:
|
|
2706
|
-
end:
|
|
2649
|
+
selfClosing: false,
|
|
2650
|
+
start: deserializeI32(pos),
|
|
2651
|
+
end: deserializeI32(pos + 4),
|
|
2707
2652
|
};
|
|
2708
2653
|
node.name = deserializeJSXElementName(pos + 16);
|
|
2709
2654
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
2710
2655
|
node.attributes = deserializeVecJSXAttributeItem(pos + 40);
|
|
2711
|
-
node.selfClosing = false;
|
|
2712
2656
|
return node;
|
|
2713
2657
|
}
|
|
2714
2658
|
|
|
@@ -2716,8 +2660,8 @@ function deserializeJSXClosingElement(pos) {
|
|
|
2716
2660
|
let node = {
|
|
2717
2661
|
type: "JSXClosingElement",
|
|
2718
2662
|
name: null,
|
|
2719
|
-
start:
|
|
2720
|
-
end:
|
|
2663
|
+
start: deserializeI32(pos),
|
|
2664
|
+
end: deserializeI32(pos + 4),
|
|
2721
2665
|
};
|
|
2722
2666
|
node.name = deserializeJSXElementName(pos + 16);
|
|
2723
2667
|
return node;
|
|
@@ -2729,8 +2673,8 @@ function deserializeJSXFragment(pos) {
|
|
|
2729
2673
|
openingFragment: null,
|
|
2730
2674
|
children: null,
|
|
2731
2675
|
closingFragment: null,
|
|
2732
|
-
start:
|
|
2733
|
-
end:
|
|
2676
|
+
start: deserializeI32(pos),
|
|
2677
|
+
end: deserializeI32(pos + 4),
|
|
2734
2678
|
};
|
|
2735
2679
|
node.openingFragment = deserializeJSXOpeningFragment(pos + 16);
|
|
2736
2680
|
node.children = deserializeVecJSXChild(pos + 32);
|
|
@@ -2741,16 +2685,16 @@ function deserializeJSXFragment(pos) {
|
|
|
2741
2685
|
function deserializeJSXOpeningFragment(pos) {
|
|
2742
2686
|
return {
|
|
2743
2687
|
type: "JSXOpeningFragment",
|
|
2744
|
-
start:
|
|
2745
|
-
end:
|
|
2688
|
+
start: deserializeI32(pos),
|
|
2689
|
+
end: deserializeI32(pos + 4),
|
|
2746
2690
|
};
|
|
2747
2691
|
}
|
|
2748
2692
|
|
|
2749
2693
|
function deserializeJSXClosingFragment(pos) {
|
|
2750
2694
|
return {
|
|
2751
2695
|
type: "JSXClosingFragment",
|
|
2752
|
-
start:
|
|
2753
|
-
end:
|
|
2696
|
+
start: deserializeI32(pos),
|
|
2697
|
+
end: deserializeI32(pos + 4),
|
|
2754
2698
|
};
|
|
2755
2699
|
}
|
|
2756
2700
|
|
|
@@ -2788,8 +2732,8 @@ function deserializeJSXNamespacedName(pos) {
|
|
|
2788
2732
|
type: "JSXNamespacedName",
|
|
2789
2733
|
namespace: null,
|
|
2790
2734
|
name: null,
|
|
2791
|
-
start:
|
|
2792
|
-
end:
|
|
2735
|
+
start: deserializeI32(pos),
|
|
2736
|
+
end: deserializeI32(pos + 4),
|
|
2793
2737
|
};
|
|
2794
2738
|
node.namespace = deserializeJSXIdentifier(pos + 16);
|
|
2795
2739
|
node.name = deserializeJSXIdentifier(pos + 48);
|
|
@@ -2801,8 +2745,8 @@ function deserializeJSXMemberExpression(pos) {
|
|
|
2801
2745
|
type: "JSXMemberExpression",
|
|
2802
2746
|
object: null,
|
|
2803
2747
|
property: null,
|
|
2804
|
-
start:
|
|
2805
|
-
end:
|
|
2748
|
+
start: deserializeI32(pos),
|
|
2749
|
+
end: deserializeI32(pos + 4),
|
|
2806
2750
|
};
|
|
2807
2751
|
node.object = deserializeJSXMemberExpressionObject(pos + 16);
|
|
2808
2752
|
node.property = deserializeJSXIdentifier(pos + 32);
|
|
@@ -2838,8 +2782,8 @@ function deserializeJSXExpressionContainer(pos) {
|
|
|
2838
2782
|
let node = {
|
|
2839
2783
|
type: "JSXExpressionContainer",
|
|
2840
2784
|
expression: null,
|
|
2841
|
-
start:
|
|
2842
|
-
end:
|
|
2785
|
+
start: deserializeI32(pos),
|
|
2786
|
+
end: deserializeI32(pos + 4),
|
|
2843
2787
|
};
|
|
2844
2788
|
node.expression = deserializeJSXExpression(pos + 16);
|
|
2845
2789
|
return node;
|
|
@@ -2943,8 +2887,8 @@ function deserializeJSXExpression(pos) {
|
|
|
2943
2887
|
function deserializeJSXEmptyExpression(pos) {
|
|
2944
2888
|
return {
|
|
2945
2889
|
type: "JSXEmptyExpression",
|
|
2946
|
-
start:
|
|
2947
|
-
end:
|
|
2890
|
+
start: deserializeI32(pos),
|
|
2891
|
+
end: deserializeI32(pos + 4),
|
|
2948
2892
|
};
|
|
2949
2893
|
}
|
|
2950
2894
|
|
|
@@ -2964,8 +2908,8 @@ function deserializeJSXAttribute(pos) {
|
|
|
2964
2908
|
type: "JSXAttribute",
|
|
2965
2909
|
name: null,
|
|
2966
2910
|
value: null,
|
|
2967
|
-
start:
|
|
2968
|
-
end:
|
|
2911
|
+
start: deserializeI32(pos),
|
|
2912
|
+
end: deserializeI32(pos + 4),
|
|
2969
2913
|
};
|
|
2970
2914
|
node.name = deserializeJSXAttributeName(pos + 16);
|
|
2971
2915
|
node.value = deserializeOptionJSXAttributeValue(pos + 32);
|
|
@@ -2976,8 +2920,8 @@ function deserializeJSXSpreadAttribute(pos) {
|
|
|
2976
2920
|
let node = {
|
|
2977
2921
|
type: "JSXSpreadAttribute",
|
|
2978
2922
|
argument: null,
|
|
2979
|
-
start:
|
|
2980
|
-
end:
|
|
2923
|
+
start: deserializeI32(pos),
|
|
2924
|
+
end: deserializeI32(pos + 4),
|
|
2981
2925
|
};
|
|
2982
2926
|
node.argument = deserializeExpression(pos + 16);
|
|
2983
2927
|
return node;
|
|
@@ -3013,8 +2957,8 @@ function deserializeJSXIdentifier(pos) {
|
|
|
3013
2957
|
return {
|
|
3014
2958
|
type: "JSXIdentifier",
|
|
3015
2959
|
name: deserializeStr(pos + 16),
|
|
3016
|
-
start:
|
|
3017
|
-
end:
|
|
2960
|
+
start: deserializeI32(pos),
|
|
2961
|
+
end: deserializeI32(pos + 4),
|
|
3018
2962
|
};
|
|
3019
2963
|
}
|
|
3020
2964
|
|
|
@@ -3039,21 +2983,21 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3039
2983
|
let node = {
|
|
3040
2984
|
type: "JSXSpreadChild",
|
|
3041
2985
|
expression: null,
|
|
3042
|
-
start:
|
|
3043
|
-
end:
|
|
2986
|
+
start: deserializeI32(pos),
|
|
2987
|
+
end: deserializeI32(pos + 4),
|
|
3044
2988
|
};
|
|
3045
2989
|
node.expression = deserializeExpression(pos + 16);
|
|
3046
2990
|
return node;
|
|
3047
2991
|
}
|
|
3048
2992
|
|
|
3049
2993
|
function deserializeJSXText(pos) {
|
|
3050
|
-
let start =
|
|
3051
|
-
end =
|
|
2994
|
+
let start = deserializeI32(pos),
|
|
2995
|
+
end = deserializeI32(pos + 4);
|
|
3052
2996
|
return {
|
|
3053
2997
|
type: "JSXText",
|
|
3054
2998
|
value: deserializeStr(pos + 16),
|
|
3055
2999
|
raw:
|
|
3056
|
-
|
|
3000
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
3057
3001
|
? null
|
|
3058
3002
|
: sourceText.slice(start, end),
|
|
3059
3003
|
start,
|
|
@@ -3064,16 +3008,13 @@ function deserializeJSXText(pos) {
|
|
|
3064
3008
|
function deserializeTSThisParameter(pos) {
|
|
3065
3009
|
let node = {
|
|
3066
3010
|
type: "Identifier",
|
|
3067
|
-
decorators:
|
|
3068
|
-
name:
|
|
3069
|
-
optional:
|
|
3011
|
+
decorators: [],
|
|
3012
|
+
name: "this",
|
|
3013
|
+
optional: false,
|
|
3070
3014
|
typeAnnotation: null,
|
|
3071
|
-
start:
|
|
3072
|
-
end:
|
|
3015
|
+
start: deserializeI32(pos),
|
|
3016
|
+
end: deserializeI32(pos + 4),
|
|
3073
3017
|
};
|
|
3074
|
-
node.decorators = [];
|
|
3075
|
-
node.name = "this";
|
|
3076
|
-
node.optional = false;
|
|
3077
3018
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24);
|
|
3078
3019
|
return node;
|
|
3079
3020
|
}
|
|
@@ -3085,8 +3026,8 @@ function deserializeTSEnumDeclaration(pos) {
|
|
|
3085
3026
|
body: null,
|
|
3086
3027
|
const: deserializeBool(pos + 12),
|
|
3087
3028
|
declare: deserializeBool(pos + 13),
|
|
3088
|
-
start:
|
|
3089
|
-
end:
|
|
3029
|
+
start: deserializeI32(pos),
|
|
3030
|
+
end: deserializeI32(pos + 4),
|
|
3090
3031
|
};
|
|
3091
3032
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
3092
3033
|
node.body = deserializeTSEnumBody(pos + 48);
|
|
@@ -3097,8 +3038,8 @@ function deserializeTSEnumBody(pos) {
|
|
|
3097
3038
|
let node = {
|
|
3098
3039
|
type: "TSEnumBody",
|
|
3099
3040
|
members: null,
|
|
3100
|
-
start:
|
|
3101
|
-
end:
|
|
3041
|
+
start: deserializeI32(pos),
|
|
3042
|
+
end: deserializeI32(pos + 4),
|
|
3102
3043
|
};
|
|
3103
3044
|
node.members = deserializeVecTSEnumMember(pos + 16);
|
|
3104
3045
|
return node;
|
|
@@ -3109,13 +3050,12 @@ function deserializeTSEnumMember(pos) {
|
|
|
3109
3050
|
type: "TSEnumMember",
|
|
3110
3051
|
id: null,
|
|
3111
3052
|
initializer: null,
|
|
3112
|
-
computed:
|
|
3113
|
-
start:
|
|
3114
|
-
end:
|
|
3053
|
+
computed: deserializeU8(pos + 16) > 1,
|
|
3054
|
+
start: deserializeI32(pos),
|
|
3055
|
+
end: deserializeI32(pos + 4),
|
|
3115
3056
|
};
|
|
3116
3057
|
node.id = deserializeTSEnumMemberName(pos + 16);
|
|
3117
3058
|
node.initializer = deserializeOptionExpression(pos + 32);
|
|
3118
|
-
node.computed = deserializeU8(pos + 16) > 1;
|
|
3119
3059
|
return node;
|
|
3120
3060
|
}
|
|
3121
3061
|
|
|
@@ -3138,8 +3078,8 @@ function deserializeTSTypeAnnotation(pos) {
|
|
|
3138
3078
|
let node = {
|
|
3139
3079
|
type: "TSTypeAnnotation",
|
|
3140
3080
|
typeAnnotation: null,
|
|
3141
|
-
start:
|
|
3142
|
-
end:
|
|
3081
|
+
start: deserializeI32(pos),
|
|
3082
|
+
end: deserializeI32(pos + 4),
|
|
3143
3083
|
};
|
|
3144
3084
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3145
3085
|
return node;
|
|
@@ -3149,8 +3089,8 @@ function deserializeTSLiteralType(pos) {
|
|
|
3149
3089
|
let node = {
|
|
3150
3090
|
type: "TSLiteralType",
|
|
3151
3091
|
literal: null,
|
|
3152
|
-
start:
|
|
3153
|
-
end:
|
|
3092
|
+
start: deserializeI32(pos),
|
|
3093
|
+
end: deserializeI32(pos + 4),
|
|
3154
3094
|
};
|
|
3155
3095
|
node.literal = deserializeTSLiteral(pos + 16);
|
|
3156
3096
|
return node;
|
|
@@ -3263,8 +3203,8 @@ function deserializeTSConditionalType(pos) {
|
|
|
3263
3203
|
extendsType: null,
|
|
3264
3204
|
trueType: null,
|
|
3265
3205
|
falseType: null,
|
|
3266
|
-
start:
|
|
3267
|
-
end:
|
|
3206
|
+
start: deserializeI32(pos),
|
|
3207
|
+
end: deserializeI32(pos + 4),
|
|
3268
3208
|
};
|
|
3269
3209
|
node.checkType = deserializeTSType(pos + 16);
|
|
3270
3210
|
node.extendsType = deserializeTSType(pos + 32);
|
|
@@ -3277,8 +3217,8 @@ function deserializeTSUnionType(pos) {
|
|
|
3277
3217
|
let node = {
|
|
3278
3218
|
type: "TSUnionType",
|
|
3279
3219
|
types: null,
|
|
3280
|
-
start:
|
|
3281
|
-
end:
|
|
3220
|
+
start: deserializeI32(pos),
|
|
3221
|
+
end: deserializeI32(pos + 4),
|
|
3282
3222
|
};
|
|
3283
3223
|
node.types = deserializeVecTSType(pos + 16);
|
|
3284
3224
|
return node;
|
|
@@ -3288,8 +3228,8 @@ function deserializeTSIntersectionType(pos) {
|
|
|
3288
3228
|
let node = {
|
|
3289
3229
|
type: "TSIntersectionType",
|
|
3290
3230
|
types: null,
|
|
3291
|
-
start:
|
|
3292
|
-
end:
|
|
3231
|
+
start: deserializeI32(pos),
|
|
3232
|
+
end: deserializeI32(pos + 4),
|
|
3293
3233
|
};
|
|
3294
3234
|
node.types = deserializeVecTSType(pos + 16);
|
|
3295
3235
|
return node;
|
|
@@ -3300,8 +3240,8 @@ function deserializeTSParenthesizedType(pos) {
|
|
|
3300
3240
|
node = {
|
|
3301
3241
|
type: "TSParenthesizedType",
|
|
3302
3242
|
typeAnnotation: null,
|
|
3303
|
-
start:
|
|
3304
|
-
end:
|
|
3243
|
+
start: deserializeI32(pos),
|
|
3244
|
+
end: deserializeI32(pos + 4),
|
|
3305
3245
|
};
|
|
3306
3246
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3307
3247
|
return node;
|
|
@@ -3312,8 +3252,8 @@ function deserializeTSTypeOperator(pos) {
|
|
|
3312
3252
|
type: "TSTypeOperator",
|
|
3313
3253
|
operator: deserializeTSTypeOperatorOperator(pos + 12),
|
|
3314
3254
|
typeAnnotation: null,
|
|
3315
|
-
start:
|
|
3316
|
-
end:
|
|
3255
|
+
start: deserializeI32(pos),
|
|
3256
|
+
end: deserializeI32(pos + 4),
|
|
3317
3257
|
};
|
|
3318
3258
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3319
3259
|
return node;
|
|
@@ -3336,8 +3276,8 @@ function deserializeTSArrayType(pos) {
|
|
|
3336
3276
|
let node = {
|
|
3337
3277
|
type: "TSArrayType",
|
|
3338
3278
|
elementType: null,
|
|
3339
|
-
start:
|
|
3340
|
-
end:
|
|
3279
|
+
start: deserializeI32(pos),
|
|
3280
|
+
end: deserializeI32(pos + 4),
|
|
3341
3281
|
};
|
|
3342
3282
|
node.elementType = deserializeTSType(pos + 16);
|
|
3343
3283
|
return node;
|
|
@@ -3348,8 +3288,8 @@ function deserializeTSIndexedAccessType(pos) {
|
|
|
3348
3288
|
type: "TSIndexedAccessType",
|
|
3349
3289
|
objectType: null,
|
|
3350
3290
|
indexType: null,
|
|
3351
|
-
start:
|
|
3352
|
-
end:
|
|
3291
|
+
start: deserializeI32(pos),
|
|
3292
|
+
end: deserializeI32(pos + 4),
|
|
3353
3293
|
};
|
|
3354
3294
|
node.objectType = deserializeTSType(pos + 16);
|
|
3355
3295
|
node.indexType = deserializeTSType(pos + 32);
|
|
@@ -3360,8 +3300,8 @@ function deserializeTSTupleType(pos) {
|
|
|
3360
3300
|
let node = {
|
|
3361
3301
|
type: "TSTupleType",
|
|
3362
3302
|
elementTypes: null,
|
|
3363
|
-
start:
|
|
3364
|
-
end:
|
|
3303
|
+
start: deserializeI32(pos),
|
|
3304
|
+
end: deserializeI32(pos + 4),
|
|
3365
3305
|
};
|
|
3366
3306
|
node.elementTypes = deserializeVecTSTupleElement(pos + 16);
|
|
3367
3307
|
return node;
|
|
@@ -3373,8 +3313,8 @@ function deserializeTSNamedTupleMember(pos) {
|
|
|
3373
3313
|
label: null,
|
|
3374
3314
|
elementType: null,
|
|
3375
3315
|
optional: deserializeBool(pos + 12),
|
|
3376
|
-
start:
|
|
3377
|
-
end:
|
|
3316
|
+
start: deserializeI32(pos),
|
|
3317
|
+
end: deserializeI32(pos + 4),
|
|
3378
3318
|
};
|
|
3379
3319
|
node.label = deserializeIdentifierName(pos + 16);
|
|
3380
3320
|
node.elementType = deserializeTSTupleElement(pos + 48);
|
|
@@ -3385,8 +3325,8 @@ function deserializeTSOptionalType(pos) {
|
|
|
3385
3325
|
let node = {
|
|
3386
3326
|
type: "TSOptionalType",
|
|
3387
3327
|
typeAnnotation: null,
|
|
3388
|
-
start:
|
|
3389
|
-
end:
|
|
3328
|
+
start: deserializeI32(pos),
|
|
3329
|
+
end: deserializeI32(pos + 4),
|
|
3390
3330
|
};
|
|
3391
3331
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3392
3332
|
return node;
|
|
@@ -3396,8 +3336,8 @@ function deserializeTSRestType(pos) {
|
|
|
3396
3336
|
let node = {
|
|
3397
3337
|
type: "TSRestType",
|
|
3398
3338
|
typeAnnotation: null,
|
|
3399
|
-
start:
|
|
3400
|
-
end:
|
|
3339
|
+
start: deserializeI32(pos),
|
|
3340
|
+
end: deserializeI32(pos + 4),
|
|
3401
3341
|
};
|
|
3402
3342
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
3403
3343
|
return node;
|
|
@@ -3491,112 +3431,112 @@ function deserializeTSTupleElement(pos) {
|
|
|
3491
3431
|
function deserializeTSAnyKeyword(pos) {
|
|
3492
3432
|
return {
|
|
3493
3433
|
type: "TSAnyKeyword",
|
|
3494
|
-
start:
|
|
3495
|
-
end:
|
|
3434
|
+
start: deserializeI32(pos),
|
|
3435
|
+
end: deserializeI32(pos + 4),
|
|
3496
3436
|
};
|
|
3497
3437
|
}
|
|
3498
3438
|
|
|
3499
3439
|
function deserializeTSStringKeyword(pos) {
|
|
3500
3440
|
return {
|
|
3501
3441
|
type: "TSStringKeyword",
|
|
3502
|
-
start:
|
|
3503
|
-
end:
|
|
3442
|
+
start: deserializeI32(pos),
|
|
3443
|
+
end: deserializeI32(pos + 4),
|
|
3504
3444
|
};
|
|
3505
3445
|
}
|
|
3506
3446
|
|
|
3507
3447
|
function deserializeTSBooleanKeyword(pos) {
|
|
3508
3448
|
return {
|
|
3509
3449
|
type: "TSBooleanKeyword",
|
|
3510
|
-
start:
|
|
3511
|
-
end:
|
|
3450
|
+
start: deserializeI32(pos),
|
|
3451
|
+
end: deserializeI32(pos + 4),
|
|
3512
3452
|
};
|
|
3513
3453
|
}
|
|
3514
3454
|
|
|
3515
3455
|
function deserializeTSNumberKeyword(pos) {
|
|
3516
3456
|
return {
|
|
3517
3457
|
type: "TSNumberKeyword",
|
|
3518
|
-
start:
|
|
3519
|
-
end:
|
|
3458
|
+
start: deserializeI32(pos),
|
|
3459
|
+
end: deserializeI32(pos + 4),
|
|
3520
3460
|
};
|
|
3521
3461
|
}
|
|
3522
3462
|
|
|
3523
3463
|
function deserializeTSNeverKeyword(pos) {
|
|
3524
3464
|
return {
|
|
3525
3465
|
type: "TSNeverKeyword",
|
|
3526
|
-
start:
|
|
3527
|
-
end:
|
|
3466
|
+
start: deserializeI32(pos),
|
|
3467
|
+
end: deserializeI32(pos + 4),
|
|
3528
3468
|
};
|
|
3529
3469
|
}
|
|
3530
3470
|
|
|
3531
3471
|
function deserializeTSIntrinsicKeyword(pos) {
|
|
3532
3472
|
return {
|
|
3533
3473
|
type: "TSIntrinsicKeyword",
|
|
3534
|
-
start:
|
|
3535
|
-
end:
|
|
3474
|
+
start: deserializeI32(pos),
|
|
3475
|
+
end: deserializeI32(pos + 4),
|
|
3536
3476
|
};
|
|
3537
3477
|
}
|
|
3538
3478
|
|
|
3539
3479
|
function deserializeTSUnknownKeyword(pos) {
|
|
3540
3480
|
return {
|
|
3541
3481
|
type: "TSUnknownKeyword",
|
|
3542
|
-
start:
|
|
3543
|
-
end:
|
|
3482
|
+
start: deserializeI32(pos),
|
|
3483
|
+
end: deserializeI32(pos + 4),
|
|
3544
3484
|
};
|
|
3545
3485
|
}
|
|
3546
3486
|
|
|
3547
3487
|
function deserializeTSNullKeyword(pos) {
|
|
3548
3488
|
return {
|
|
3549
3489
|
type: "TSNullKeyword",
|
|
3550
|
-
start:
|
|
3551
|
-
end:
|
|
3490
|
+
start: deserializeI32(pos),
|
|
3491
|
+
end: deserializeI32(pos + 4),
|
|
3552
3492
|
};
|
|
3553
3493
|
}
|
|
3554
3494
|
|
|
3555
3495
|
function deserializeTSUndefinedKeyword(pos) {
|
|
3556
3496
|
return {
|
|
3557
3497
|
type: "TSUndefinedKeyword",
|
|
3558
|
-
start:
|
|
3559
|
-
end:
|
|
3498
|
+
start: deserializeI32(pos),
|
|
3499
|
+
end: deserializeI32(pos + 4),
|
|
3560
3500
|
};
|
|
3561
3501
|
}
|
|
3562
3502
|
|
|
3563
3503
|
function deserializeTSVoidKeyword(pos) {
|
|
3564
3504
|
return {
|
|
3565
3505
|
type: "TSVoidKeyword",
|
|
3566
|
-
start:
|
|
3567
|
-
end:
|
|
3506
|
+
start: deserializeI32(pos),
|
|
3507
|
+
end: deserializeI32(pos + 4),
|
|
3568
3508
|
};
|
|
3569
3509
|
}
|
|
3570
3510
|
|
|
3571
3511
|
function deserializeTSSymbolKeyword(pos) {
|
|
3572
3512
|
return {
|
|
3573
3513
|
type: "TSSymbolKeyword",
|
|
3574
|
-
start:
|
|
3575
|
-
end:
|
|
3514
|
+
start: deserializeI32(pos),
|
|
3515
|
+
end: deserializeI32(pos + 4),
|
|
3576
3516
|
};
|
|
3577
3517
|
}
|
|
3578
3518
|
|
|
3579
3519
|
function deserializeTSThisType(pos) {
|
|
3580
3520
|
return {
|
|
3581
3521
|
type: "TSThisType",
|
|
3582
|
-
start:
|
|
3583
|
-
end:
|
|
3522
|
+
start: deserializeI32(pos),
|
|
3523
|
+
end: deserializeI32(pos + 4),
|
|
3584
3524
|
};
|
|
3585
3525
|
}
|
|
3586
3526
|
|
|
3587
3527
|
function deserializeTSObjectKeyword(pos) {
|
|
3588
3528
|
return {
|
|
3589
3529
|
type: "TSObjectKeyword",
|
|
3590
|
-
start:
|
|
3591
|
-
end:
|
|
3530
|
+
start: deserializeI32(pos),
|
|
3531
|
+
end: deserializeI32(pos + 4),
|
|
3592
3532
|
};
|
|
3593
3533
|
}
|
|
3594
3534
|
|
|
3595
3535
|
function deserializeTSBigIntKeyword(pos) {
|
|
3596
3536
|
return {
|
|
3597
3537
|
type: "TSBigIntKeyword",
|
|
3598
|
-
start:
|
|
3599
|
-
end:
|
|
3538
|
+
start: deserializeI32(pos),
|
|
3539
|
+
end: deserializeI32(pos + 4),
|
|
3600
3540
|
};
|
|
3601
3541
|
}
|
|
3602
3542
|
|
|
@@ -3605,8 +3545,8 @@ function deserializeTSTypeReference(pos) {
|
|
|
3605
3545
|
type: "TSTypeReference",
|
|
3606
3546
|
typeName: null,
|
|
3607
3547
|
typeArguments: null,
|
|
3608
|
-
start:
|
|
3609
|
-
end:
|
|
3548
|
+
start: deserializeI32(pos),
|
|
3549
|
+
end: deserializeI32(pos + 4),
|
|
3610
3550
|
};
|
|
3611
3551
|
node.typeName = deserializeTSTypeName(pos + 16);
|
|
3612
3552
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -3631,8 +3571,8 @@ function deserializeTSQualifiedName(pos) {
|
|
|
3631
3571
|
type: "TSQualifiedName",
|
|
3632
3572
|
left: null,
|
|
3633
3573
|
right: null,
|
|
3634
|
-
start:
|
|
3635
|
-
end:
|
|
3574
|
+
start: deserializeI32(pos),
|
|
3575
|
+
end: deserializeI32(pos + 4),
|
|
3636
3576
|
};
|
|
3637
3577
|
node.left = deserializeTSTypeName(pos + 16);
|
|
3638
3578
|
node.right = deserializeIdentifierName(pos + 32);
|
|
@@ -3643,8 +3583,8 @@ function deserializeTSTypeParameterInstantiation(pos) {
|
|
|
3643
3583
|
let node = {
|
|
3644
3584
|
type: "TSTypeParameterInstantiation",
|
|
3645
3585
|
params: null,
|
|
3646
|
-
start:
|
|
3647
|
-
end:
|
|
3586
|
+
start: deserializeI32(pos),
|
|
3587
|
+
end: deserializeI32(pos + 4),
|
|
3648
3588
|
};
|
|
3649
3589
|
node.params = deserializeVecTSType(pos + 16);
|
|
3650
3590
|
return node;
|
|
@@ -3659,8 +3599,8 @@ function deserializeTSTypeParameter(pos) {
|
|
|
3659
3599
|
in: deserializeBool(pos + 12),
|
|
3660
3600
|
out: deserializeBool(pos + 13),
|
|
3661
3601
|
const: deserializeBool(pos + 14),
|
|
3662
|
-
start:
|
|
3663
|
-
end:
|
|
3602
|
+
start: deserializeI32(pos),
|
|
3603
|
+
end: deserializeI32(pos + 4),
|
|
3664
3604
|
};
|
|
3665
3605
|
node.name = deserializeBindingIdentifier(pos + 16);
|
|
3666
3606
|
node.constraint = deserializeOptionTSType(pos + 48);
|
|
@@ -3672,8 +3612,8 @@ function deserializeTSTypeParameterDeclaration(pos) {
|
|
|
3672
3612
|
let node = {
|
|
3673
3613
|
type: "TSTypeParameterDeclaration",
|
|
3674
3614
|
params: null,
|
|
3675
|
-
start:
|
|
3676
|
-
end:
|
|
3615
|
+
start: deserializeI32(pos),
|
|
3616
|
+
end: deserializeI32(pos + 4),
|
|
3677
3617
|
};
|
|
3678
3618
|
node.params = deserializeVecTSTypeParameter(pos + 16);
|
|
3679
3619
|
return node;
|
|
@@ -3686,8 +3626,8 @@ function deserializeTSTypeAliasDeclaration(pos) {
|
|
|
3686
3626
|
typeParameters: null,
|
|
3687
3627
|
typeAnnotation: null,
|
|
3688
3628
|
declare: deserializeBool(pos + 72),
|
|
3689
|
-
start:
|
|
3690
|
-
end:
|
|
3629
|
+
start: deserializeI32(pos),
|
|
3630
|
+
end: deserializeI32(pos + 4),
|
|
3691
3631
|
};
|
|
3692
3632
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
3693
3633
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 48);
|
|
@@ -3713,8 +3653,8 @@ function deserializeTSClassImplements(pos) {
|
|
|
3713
3653
|
type: "TSClassImplements",
|
|
3714
3654
|
expression: null,
|
|
3715
3655
|
typeArguments: null,
|
|
3716
|
-
start:
|
|
3717
|
-
end:
|
|
3656
|
+
start: deserializeI32(pos),
|
|
3657
|
+
end: deserializeI32(pos + 4),
|
|
3718
3658
|
},
|
|
3719
3659
|
expression = deserializeTSTypeName(pos + 16);
|
|
3720
3660
|
if (expression.type === "TSQualifiedName") {
|
|
@@ -3756,8 +3696,8 @@ function deserializeTSInterfaceDeclaration(pos) {
|
|
|
3756
3696
|
extends: null,
|
|
3757
3697
|
body: null,
|
|
3758
3698
|
declare: deserializeBool(pos + 88),
|
|
3759
|
-
start:
|
|
3760
|
-
end:
|
|
3699
|
+
start: deserializeI32(pos),
|
|
3700
|
+
end: deserializeI32(pos + 4),
|
|
3761
3701
|
};
|
|
3762
3702
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
3763
3703
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 48);
|
|
@@ -3770,8 +3710,8 @@ function deserializeTSInterfaceBody(pos) {
|
|
|
3770
3710
|
let node = {
|
|
3771
3711
|
type: "TSInterfaceBody",
|
|
3772
3712
|
body: null,
|
|
3773
|
-
start:
|
|
3774
|
-
end:
|
|
3713
|
+
start: deserializeI32(pos),
|
|
3714
|
+
end: deserializeI32(pos + 4),
|
|
3775
3715
|
};
|
|
3776
3716
|
node.body = deserializeVecTSSignature(pos + 16);
|
|
3777
3717
|
return node;
|
|
@@ -3786,13 +3726,12 @@ function deserializeTSPropertySignature(pos) {
|
|
|
3786
3726
|
key: null,
|
|
3787
3727
|
typeAnnotation: null,
|
|
3788
3728
|
accessibility: null,
|
|
3789
|
-
static:
|
|
3790
|
-
start:
|
|
3791
|
-
end:
|
|
3729
|
+
static: false,
|
|
3730
|
+
start: deserializeI32(pos),
|
|
3731
|
+
end: deserializeI32(pos + 4),
|
|
3792
3732
|
};
|
|
3793
3733
|
node.key = deserializePropertyKey(pos + 16);
|
|
3794
3734
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 32);
|
|
3795
|
-
node.static = false;
|
|
3796
3735
|
return node;
|
|
3797
3736
|
}
|
|
3798
3737
|
|
|
@@ -3821,8 +3760,8 @@ function deserializeTSIndexSignature(pos) {
|
|
|
3821
3760
|
readonly: deserializeBool(pos + 12),
|
|
3822
3761
|
static: deserializeBool(pos + 13),
|
|
3823
3762
|
accessibility: null,
|
|
3824
|
-
start:
|
|
3825
|
-
end:
|
|
3763
|
+
start: deserializeI32(pos),
|
|
3764
|
+
end: deserializeI32(pos + 4),
|
|
3826
3765
|
};
|
|
3827
3766
|
node.parameters = deserializeVecTSIndexSignatureName(pos + 16);
|
|
3828
3767
|
node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 40);
|
|
@@ -3835,8 +3774,8 @@ function deserializeTSCallSignatureDeclaration(pos) {
|
|
|
3835
3774
|
typeParameters: null,
|
|
3836
3775
|
params: null,
|
|
3837
3776
|
returnType: null,
|
|
3838
|
-
start:
|
|
3839
|
-
end:
|
|
3777
|
+
start: deserializeI32(pos),
|
|
3778
|
+
end: deserializeI32(pos + 4),
|
|
3840
3779
|
},
|
|
3841
3780
|
params = deserializeBoxFormalParameters(pos + 32),
|
|
3842
3781
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 24);
|
|
@@ -3871,10 +3810,10 @@ function deserializeTSMethodSignature(pos) {
|
|
|
3871
3810
|
params: null,
|
|
3872
3811
|
returnType: null,
|
|
3873
3812
|
accessibility: null,
|
|
3874
|
-
readonly:
|
|
3875
|
-
static:
|
|
3876
|
-
start:
|
|
3877
|
-
end:
|
|
3813
|
+
readonly: false,
|
|
3814
|
+
static: false,
|
|
3815
|
+
start: deserializeI32(pos),
|
|
3816
|
+
end: deserializeI32(pos + 4),
|
|
3878
3817
|
},
|
|
3879
3818
|
params = deserializeBoxFormalParameters(pos + 48),
|
|
3880
3819
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 40);
|
|
@@ -3883,8 +3822,6 @@ function deserializeTSMethodSignature(pos) {
|
|
|
3883
3822
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 32);
|
|
3884
3823
|
node.params = params;
|
|
3885
3824
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 56);
|
|
3886
|
-
node.readonly = false;
|
|
3887
|
-
node.static = false;
|
|
3888
3825
|
return node;
|
|
3889
3826
|
}
|
|
3890
3827
|
|
|
@@ -3894,8 +3831,8 @@ function deserializeTSConstructSignatureDeclaration(pos) {
|
|
|
3894
3831
|
typeParameters: null,
|
|
3895
3832
|
params: null,
|
|
3896
3833
|
returnType: null,
|
|
3897
|
-
start:
|
|
3898
|
-
end:
|
|
3834
|
+
start: deserializeI32(pos),
|
|
3835
|
+
end: deserializeI32(pos + 4),
|
|
3899
3836
|
};
|
|
3900
3837
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16);
|
|
3901
3838
|
node.params = deserializeBoxFormalParameters(pos + 24);
|
|
@@ -3906,15 +3843,13 @@ function deserializeTSConstructSignatureDeclaration(pos) {
|
|
|
3906
3843
|
function deserializeTSIndexSignatureName(pos) {
|
|
3907
3844
|
let node = {
|
|
3908
3845
|
type: "Identifier",
|
|
3909
|
-
decorators:
|
|
3846
|
+
decorators: [],
|
|
3910
3847
|
name: deserializeStr(pos + 16),
|
|
3911
|
-
optional:
|
|
3848
|
+
optional: false,
|
|
3912
3849
|
typeAnnotation: null,
|
|
3913
|
-
start:
|
|
3914
|
-
end:
|
|
3850
|
+
start: deserializeI32(pos),
|
|
3851
|
+
end: deserializeI32(pos + 4),
|
|
3915
3852
|
};
|
|
3916
|
-
node.decorators = [];
|
|
3917
|
-
node.optional = false;
|
|
3918
3853
|
node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 32);
|
|
3919
3854
|
return node;
|
|
3920
3855
|
}
|
|
@@ -3924,8 +3859,8 @@ function deserializeTSInterfaceHeritage(pos) {
|
|
|
3924
3859
|
type: "TSInterfaceHeritage",
|
|
3925
3860
|
expression: null,
|
|
3926
3861
|
typeArguments: null,
|
|
3927
|
-
start:
|
|
3928
|
-
end:
|
|
3862
|
+
start: deserializeI32(pos),
|
|
3863
|
+
end: deserializeI32(pos + 4),
|
|
3929
3864
|
};
|
|
3930
3865
|
node.expression = deserializeExpression(pos + 16);
|
|
3931
3866
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -3938,8 +3873,8 @@ function deserializeTSTypePredicate(pos) {
|
|
|
3938
3873
|
parameterName: null,
|
|
3939
3874
|
asserts: deserializeBool(pos + 12),
|
|
3940
3875
|
typeAnnotation: null,
|
|
3941
|
-
start:
|
|
3942
|
-
end:
|
|
3876
|
+
start: deserializeI32(pos),
|
|
3877
|
+
end: deserializeI32(pos + 4),
|
|
3943
3878
|
};
|
|
3944
3879
|
node.parameterName = deserializeTSTypePredicateName(pos + 16);
|
|
3945
3880
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 40);
|
|
@@ -3959,8 +3894,8 @@ function deserializeTSTypePredicateName(pos) {
|
|
|
3959
3894
|
|
|
3960
3895
|
function deserializeTSModuleDeclaration(pos) {
|
|
3961
3896
|
let kind = deserializeTSModuleDeclarationKind(pos + 88),
|
|
3962
|
-
start =
|
|
3963
|
-
end =
|
|
3897
|
+
start = deserializeI32(pos),
|
|
3898
|
+
end = deserializeI32(pos + 4),
|
|
3964
3899
|
declare = deserializeBool(pos + 89),
|
|
3965
3900
|
node,
|
|
3966
3901
|
body = deserializeOptionTSModuleDeclarationBody(pos + 72);
|
|
@@ -4064,11 +3999,11 @@ function deserializeTSGlobalDeclaration(pos) {
|
|
|
4064
3999
|
type: "TSModuleDeclaration",
|
|
4065
4000
|
id: null,
|
|
4066
4001
|
body: null,
|
|
4067
|
-
kind:
|
|
4002
|
+
kind: "global",
|
|
4068
4003
|
declare: deserializeBool(pos + 88),
|
|
4069
|
-
global:
|
|
4070
|
-
start:
|
|
4071
|
-
end:
|
|
4004
|
+
global: true,
|
|
4005
|
+
start: deserializeI32(pos),
|
|
4006
|
+
end: deserializeI32(pos + 4),
|
|
4072
4007
|
};
|
|
4073
4008
|
node.id = {
|
|
4074
4009
|
type: "Identifier",
|
|
@@ -4076,12 +4011,10 @@ function deserializeTSGlobalDeclaration(pos) {
|
|
|
4076
4011
|
name: "global",
|
|
4077
4012
|
optional: false,
|
|
4078
4013
|
typeAnnotation: null,
|
|
4079
|
-
start:
|
|
4080
|
-
end:
|
|
4014
|
+
start: deserializeI32(pos + 16),
|
|
4015
|
+
end: deserializeI32(pos + 20),
|
|
4081
4016
|
};
|
|
4082
4017
|
node.body = deserializeTSModuleBlock(pos + 24);
|
|
4083
|
-
node.kind = "global";
|
|
4084
|
-
node.global = true;
|
|
4085
4018
|
return node;
|
|
4086
4019
|
}
|
|
4087
4020
|
|
|
@@ -4089,8 +4022,8 @@ function deserializeTSModuleBlock(pos) {
|
|
|
4089
4022
|
let node = {
|
|
4090
4023
|
type: "TSModuleBlock",
|
|
4091
4024
|
body: null,
|
|
4092
|
-
start:
|
|
4093
|
-
end:
|
|
4025
|
+
start: deserializeI32(pos),
|
|
4026
|
+
end: deserializeI32(pos + 4),
|
|
4094
4027
|
},
|
|
4095
4028
|
body = deserializeVecDirective(pos + 16);
|
|
4096
4029
|
body.push(...deserializeVecStatement(pos + 40));
|
|
@@ -4102,8 +4035,8 @@ function deserializeTSTypeLiteral(pos) {
|
|
|
4102
4035
|
let node = {
|
|
4103
4036
|
type: "TSTypeLiteral",
|
|
4104
4037
|
members: null,
|
|
4105
|
-
start:
|
|
4106
|
-
end:
|
|
4038
|
+
start: deserializeI32(pos),
|
|
4039
|
+
end: deserializeI32(pos + 4),
|
|
4107
4040
|
};
|
|
4108
4041
|
node.members = deserializeVecTSSignature(pos + 16);
|
|
4109
4042
|
return node;
|
|
@@ -4113,8 +4046,8 @@ function deserializeTSInferType(pos) {
|
|
|
4113
4046
|
let node = {
|
|
4114
4047
|
type: "TSInferType",
|
|
4115
4048
|
typeParameter: null,
|
|
4116
|
-
start:
|
|
4117
|
-
end:
|
|
4049
|
+
start: deserializeI32(pos),
|
|
4050
|
+
end: deserializeI32(pos + 4),
|
|
4118
4051
|
};
|
|
4119
4052
|
node.typeParameter = deserializeBoxTSTypeParameter(pos + 16);
|
|
4120
4053
|
return node;
|
|
@@ -4125,8 +4058,8 @@ function deserializeTSTypeQuery(pos) {
|
|
|
4125
4058
|
type: "TSTypeQuery",
|
|
4126
4059
|
exprName: null,
|
|
4127
4060
|
typeArguments: null,
|
|
4128
|
-
start:
|
|
4129
|
-
end:
|
|
4061
|
+
start: deserializeI32(pos),
|
|
4062
|
+
end: deserializeI32(pos + 4),
|
|
4130
4063
|
};
|
|
4131
4064
|
node.exprName = deserializeTSTypeQueryExprName(pos + 16);
|
|
4132
4065
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -4155,8 +4088,8 @@ function deserializeTSImportType(pos) {
|
|
|
4155
4088
|
options: null,
|
|
4156
4089
|
qualifier: null,
|
|
4157
4090
|
typeArguments: null,
|
|
4158
|
-
start:
|
|
4159
|
-
end:
|
|
4091
|
+
start: deserializeI32(pos),
|
|
4092
|
+
end: deserializeI32(pos + 4),
|
|
4160
4093
|
};
|
|
4161
4094
|
node.source = deserializeStringLiteral(pos + 16);
|
|
4162
4095
|
node.options = deserializeOptionBoxObjectExpression(pos + 64);
|
|
@@ -4181,8 +4114,8 @@ function deserializeTSImportTypeQualifiedName(pos) {
|
|
|
4181
4114
|
type: "TSQualifiedName",
|
|
4182
4115
|
left: null,
|
|
4183
4116
|
right: null,
|
|
4184
|
-
start:
|
|
4185
|
-
end:
|
|
4117
|
+
start: deserializeI32(pos),
|
|
4118
|
+
end: deserializeI32(pos + 4),
|
|
4186
4119
|
};
|
|
4187
4120
|
node.left = deserializeTSImportTypeQualifier(pos + 16);
|
|
4188
4121
|
node.right = deserializeIdentifierName(pos + 32);
|
|
@@ -4195,8 +4128,8 @@ function deserializeTSFunctionType(pos) {
|
|
|
4195
4128
|
typeParameters: null,
|
|
4196
4129
|
params: null,
|
|
4197
4130
|
returnType: null,
|
|
4198
|
-
start:
|
|
4199
|
-
end:
|
|
4131
|
+
start: deserializeI32(pos),
|
|
4132
|
+
end: deserializeI32(pos + 4),
|
|
4200
4133
|
},
|
|
4201
4134
|
params = deserializeBoxFormalParameters(pos + 32),
|
|
4202
4135
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 24);
|
|
@@ -4214,8 +4147,8 @@ function deserializeTSConstructorType(pos) {
|
|
|
4214
4147
|
typeParameters: null,
|
|
4215
4148
|
params: null,
|
|
4216
4149
|
returnType: null,
|
|
4217
|
-
start:
|
|
4218
|
-
end:
|
|
4150
|
+
start: deserializeI32(pos),
|
|
4151
|
+
end: deserializeI32(pos + 4),
|
|
4219
4152
|
};
|
|
4220
4153
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16);
|
|
4221
4154
|
node.params = deserializeBoxFormalParameters(pos + 24);
|
|
@@ -4232,8 +4165,8 @@ function deserializeTSMappedType(pos) {
|
|
|
4232
4165
|
typeAnnotation: null,
|
|
4233
4166
|
optional: null,
|
|
4234
4167
|
readonly: deserializeOptionTSMappedTypeModifierOperator(pos + 97),
|
|
4235
|
-
start:
|
|
4236
|
-
end:
|
|
4168
|
+
start: deserializeI32(pos),
|
|
4169
|
+
end: deserializeI32(pos + 4),
|
|
4237
4170
|
},
|
|
4238
4171
|
optional = deserializeOptionTSMappedTypeModifierOperator(pos + 96);
|
|
4239
4172
|
optional === null && (optional = false);
|
|
@@ -4263,8 +4196,8 @@ function deserializeTSTemplateLiteralType(pos) {
|
|
|
4263
4196
|
type: "TSTemplateLiteralType",
|
|
4264
4197
|
quasis: null,
|
|
4265
4198
|
types: null,
|
|
4266
|
-
start:
|
|
4267
|
-
end:
|
|
4199
|
+
start: deserializeI32(pos),
|
|
4200
|
+
end: deserializeI32(pos + 4),
|
|
4268
4201
|
};
|
|
4269
4202
|
node.quasis = deserializeVecTemplateElement(pos + 16);
|
|
4270
4203
|
node.types = deserializeVecTSType(pos + 40);
|
|
@@ -4276,8 +4209,8 @@ function deserializeTSAsExpression(pos) {
|
|
|
4276
4209
|
type: "TSAsExpression",
|
|
4277
4210
|
expression: null,
|
|
4278
4211
|
typeAnnotation: null,
|
|
4279
|
-
start:
|
|
4280
|
-
end:
|
|
4212
|
+
start: deserializeI32(pos),
|
|
4213
|
+
end: deserializeI32(pos + 4),
|
|
4281
4214
|
};
|
|
4282
4215
|
node.expression = deserializeExpression(pos + 16);
|
|
4283
4216
|
node.typeAnnotation = deserializeTSType(pos + 32);
|
|
@@ -4289,8 +4222,8 @@ function deserializeTSSatisfiesExpression(pos) {
|
|
|
4289
4222
|
type: "TSSatisfiesExpression",
|
|
4290
4223
|
expression: null,
|
|
4291
4224
|
typeAnnotation: null,
|
|
4292
|
-
start:
|
|
4293
|
-
end:
|
|
4225
|
+
start: deserializeI32(pos),
|
|
4226
|
+
end: deserializeI32(pos + 4),
|
|
4294
4227
|
};
|
|
4295
4228
|
node.expression = deserializeExpression(pos + 16);
|
|
4296
4229
|
node.typeAnnotation = deserializeTSType(pos + 32);
|
|
@@ -4302,8 +4235,8 @@ function deserializeTSTypeAssertion(pos) {
|
|
|
4302
4235
|
type: "TSTypeAssertion",
|
|
4303
4236
|
typeAnnotation: null,
|
|
4304
4237
|
expression: null,
|
|
4305
|
-
start:
|
|
4306
|
-
end:
|
|
4238
|
+
start: deserializeI32(pos),
|
|
4239
|
+
end: deserializeI32(pos + 4),
|
|
4307
4240
|
};
|
|
4308
4241
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
4309
4242
|
node.expression = deserializeExpression(pos + 32);
|
|
@@ -4316,8 +4249,8 @@ function deserializeTSImportEqualsDeclaration(pos) {
|
|
|
4316
4249
|
id: null,
|
|
4317
4250
|
moduleReference: null,
|
|
4318
4251
|
importKind: deserializeImportOrExportKind(pos + 12),
|
|
4319
|
-
start:
|
|
4320
|
-
end:
|
|
4252
|
+
start: deserializeI32(pos),
|
|
4253
|
+
end: deserializeI32(pos + 4),
|
|
4321
4254
|
};
|
|
4322
4255
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
4323
4256
|
node.moduleReference = deserializeTSModuleReference(pos + 48);
|
|
@@ -4341,8 +4274,8 @@ function deserializeTSExternalModuleReference(pos) {
|
|
|
4341
4274
|
let node = {
|
|
4342
4275
|
type: "TSExternalModuleReference",
|
|
4343
4276
|
expression: null,
|
|
4344
|
-
start:
|
|
4345
|
-
end:
|
|
4277
|
+
start: deserializeI32(pos),
|
|
4278
|
+
end: deserializeI32(pos + 4),
|
|
4346
4279
|
};
|
|
4347
4280
|
node.expression = deserializeStringLiteral(pos + 16);
|
|
4348
4281
|
return node;
|
|
@@ -4352,8 +4285,8 @@ function deserializeTSNonNullExpression(pos) {
|
|
|
4352
4285
|
let node = {
|
|
4353
4286
|
type: "TSNonNullExpression",
|
|
4354
4287
|
expression: null,
|
|
4355
|
-
start:
|
|
4356
|
-
end:
|
|
4288
|
+
start: deserializeI32(pos),
|
|
4289
|
+
end: deserializeI32(pos + 4),
|
|
4357
4290
|
};
|
|
4358
4291
|
node.expression = deserializeExpression(pos + 16);
|
|
4359
4292
|
return node;
|
|
@@ -4363,8 +4296,8 @@ function deserializeDecorator(pos) {
|
|
|
4363
4296
|
let node = {
|
|
4364
4297
|
type: "Decorator",
|
|
4365
4298
|
expression: null,
|
|
4366
|
-
start:
|
|
4367
|
-
end:
|
|
4299
|
+
start: deserializeI32(pos),
|
|
4300
|
+
end: deserializeI32(pos + 4),
|
|
4368
4301
|
};
|
|
4369
4302
|
node.expression = deserializeExpression(pos + 16);
|
|
4370
4303
|
return node;
|
|
@@ -4374,8 +4307,8 @@ function deserializeTSExportAssignment(pos) {
|
|
|
4374
4307
|
let node = {
|
|
4375
4308
|
type: "TSExportAssignment",
|
|
4376
4309
|
expression: null,
|
|
4377
|
-
start:
|
|
4378
|
-
end:
|
|
4310
|
+
start: deserializeI32(pos),
|
|
4311
|
+
end: deserializeI32(pos + 4),
|
|
4379
4312
|
};
|
|
4380
4313
|
node.expression = deserializeExpression(pos + 16);
|
|
4381
4314
|
return node;
|
|
@@ -4385,8 +4318,8 @@ function deserializeTSNamespaceExportDeclaration(pos) {
|
|
|
4385
4318
|
let node = {
|
|
4386
4319
|
type: "TSNamespaceExportDeclaration",
|
|
4387
4320
|
id: null,
|
|
4388
|
-
start:
|
|
4389
|
-
end:
|
|
4321
|
+
start: deserializeI32(pos),
|
|
4322
|
+
end: deserializeI32(pos + 4),
|
|
4390
4323
|
};
|
|
4391
4324
|
node.id = deserializeIdentifierName(pos + 16);
|
|
4392
4325
|
return node;
|
|
@@ -4397,8 +4330,8 @@ function deserializeTSInstantiationExpression(pos) {
|
|
|
4397
4330
|
type: "TSInstantiationExpression",
|
|
4398
4331
|
expression: null,
|
|
4399
4332
|
typeArguments: null,
|
|
4400
|
-
start:
|
|
4401
|
-
end:
|
|
4333
|
+
start: deserializeI32(pos),
|
|
4334
|
+
end: deserializeI32(pos + 4),
|
|
4402
4335
|
};
|
|
4403
4336
|
node.expression = deserializeExpression(pos + 16);
|
|
4404
4337
|
node.typeArguments = deserializeBoxTSTypeParameterInstantiation(pos + 32);
|
|
@@ -4421,8 +4354,8 @@ function deserializeJSDocNullableType(pos) {
|
|
|
4421
4354
|
type: "TSJSDocNullableType",
|
|
4422
4355
|
typeAnnotation: null,
|
|
4423
4356
|
postfix: deserializeBool(pos + 12),
|
|
4424
|
-
start:
|
|
4425
|
-
end:
|
|
4357
|
+
start: deserializeI32(pos),
|
|
4358
|
+
end: deserializeI32(pos + 4),
|
|
4426
4359
|
};
|
|
4427
4360
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
4428
4361
|
return node;
|
|
@@ -4433,8 +4366,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4433
4366
|
type: "TSJSDocNonNullableType",
|
|
4434
4367
|
typeAnnotation: null,
|
|
4435
4368
|
postfix: deserializeBool(pos + 12),
|
|
4436
|
-
start:
|
|
4437
|
-
end:
|
|
4369
|
+
start: deserializeI32(pos),
|
|
4370
|
+
end: deserializeI32(pos + 4),
|
|
4438
4371
|
};
|
|
4439
4372
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
4440
4373
|
return node;
|
|
@@ -4443,8 +4376,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4443
4376
|
function deserializeJSDocUnknownType(pos) {
|
|
4444
4377
|
return {
|
|
4445
4378
|
type: "TSJSDocUnknownType",
|
|
4446
|
-
start:
|
|
4447
|
-
end:
|
|
4379
|
+
start: deserializeI32(pos),
|
|
4380
|
+
end: deserializeI32(pos + 4),
|
|
4448
4381
|
};
|
|
4449
4382
|
}
|
|
4450
4383
|
|
|
@@ -4463,8 +4396,8 @@ function deserializeCommentKind(pos) {
|
|
|
4463
4396
|
|
|
4464
4397
|
function deserializeComment(pos) {
|
|
4465
4398
|
let type = deserializeCommentKind(pos + 12),
|
|
4466
|
-
start =
|
|
4467
|
-
end =
|
|
4399
|
+
start = deserializeI32(pos),
|
|
4400
|
+
end = deserializeI32(pos + 4);
|
|
4468
4401
|
return {
|
|
4469
4402
|
type,
|
|
4470
4403
|
value: sourceText.slice(start + 2, end - (type === "Line" ? 0 : 2)),
|
|
@@ -4488,16 +4421,16 @@ function deserializeModuleKind(pos) {
|
|
|
4488
4421
|
|
|
4489
4422
|
function deserializeSpan(pos) {
|
|
4490
4423
|
return {
|
|
4491
|
-
start:
|
|
4492
|
-
end:
|
|
4424
|
+
start: deserializeI32(pos),
|
|
4425
|
+
end: deserializeI32(pos + 4),
|
|
4493
4426
|
};
|
|
4494
4427
|
}
|
|
4495
4428
|
|
|
4496
4429
|
function deserializeNameSpan(pos) {
|
|
4497
4430
|
return {
|
|
4498
4431
|
value: deserializeStr(pos + 8),
|
|
4499
|
-
start:
|
|
4500
|
-
end:
|
|
4432
|
+
start: deserializeI32(pos),
|
|
4433
|
+
end: deserializeI32(pos + 4),
|
|
4501
4434
|
};
|
|
4502
4435
|
}
|
|
4503
4436
|
|
|
@@ -4546,8 +4479,8 @@ function deserializeExportEntry(pos) {
|
|
|
4546
4479
|
exportName: deserializeExportExportName(pos + 72),
|
|
4547
4480
|
localName: deserializeExportLocalName(pos + 104),
|
|
4548
4481
|
isType: deserializeBool(pos + 136),
|
|
4549
|
-
start:
|
|
4550
|
-
end:
|
|
4482
|
+
start: deserializeI32(pos),
|
|
4483
|
+
end: deserializeI32(pos + 4),
|
|
4551
4484
|
};
|
|
4552
4485
|
}
|
|
4553
4486
|
|
|
@@ -4650,8 +4583,8 @@ function deserializeExportLocalName(pos) {
|
|
|
4650
4583
|
function deserializeDynamicImport(pos) {
|
|
4651
4584
|
return {
|
|
4652
4585
|
moduleRequest: deserializeSpan(pos + 8),
|
|
4653
|
-
start:
|
|
4654
|
-
end:
|
|
4586
|
+
start: deserializeI32(pos),
|
|
4587
|
+
end: deserializeI32(pos + 4),
|
|
4655
4588
|
};
|
|
4656
4589
|
}
|
|
4657
4590
|
|
|
@@ -4825,8 +4758,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
4825
4758
|
function deserializeErrorLabel(pos) {
|
|
4826
4759
|
return {
|
|
4827
4760
|
message: deserializeOptionStr(pos + 8),
|
|
4828
|
-
start:
|
|
4829
|
-
end:
|
|
4761
|
+
start: deserializeI32(pos),
|
|
4762
|
+
end: deserializeI32(pos + 4),
|
|
4830
4763
|
};
|
|
4831
4764
|
}
|
|
4832
4765
|
|
|
@@ -4844,24 +4777,24 @@ function deserializeStaticImport(pos) {
|
|
|
4844
4777
|
return {
|
|
4845
4778
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
4846
4779
|
entries: deserializeVecImportEntry(pos + 32),
|
|
4847
|
-
start:
|
|
4848
|
-
end:
|
|
4780
|
+
start: deserializeI32(pos),
|
|
4781
|
+
end: deserializeI32(pos + 4),
|
|
4849
4782
|
};
|
|
4850
4783
|
}
|
|
4851
4784
|
|
|
4852
4785
|
function deserializeStaticExport(pos) {
|
|
4853
4786
|
return {
|
|
4854
4787
|
entries: deserializeVecExportEntry(pos + 8),
|
|
4855
|
-
start:
|
|
4856
|
-
end:
|
|
4788
|
+
start: deserializeI32(pos),
|
|
4789
|
+
end: deserializeI32(pos + 4),
|
|
4857
4790
|
};
|
|
4858
4791
|
}
|
|
4859
4792
|
|
|
4860
4793
|
function deserializeStr(pos) {
|
|
4861
4794
|
let pos32 = pos >> 2,
|
|
4862
|
-
len =
|
|
4795
|
+
len = int32[pos32 + 2];
|
|
4863
4796
|
if (len === 0) return "";
|
|
4864
|
-
pos =
|
|
4797
|
+
pos = int32[pos32];
|
|
4865
4798
|
let end = pos + len;
|
|
4866
4799
|
if (end <= firstNonAsciiPos) return sourceTextLatin.substr(pos, len);
|
|
4867
4800
|
// Use `utf8Slice` for strings longer than 64 bytes
|
|
@@ -4888,8 +4821,8 @@ function deserializeStr(pos) {
|
|
|
4888
4821
|
function deserializeVecComment(pos) {
|
|
4889
4822
|
let arr = [],
|
|
4890
4823
|
pos32 = pos >> 2;
|
|
4891
|
-
pos =
|
|
4892
|
-
let endPos = pos +
|
|
4824
|
+
pos = int32[pos32];
|
|
4825
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4893
4826
|
for (; pos !== endPos; ) {
|
|
4894
4827
|
arr.push(deserializeComment(pos));
|
|
4895
4828
|
pos += 16;
|
|
@@ -4898,7 +4831,7 @@ function deserializeVecComment(pos) {
|
|
|
4898
4831
|
}
|
|
4899
4832
|
|
|
4900
4833
|
function deserializeOptionHashbang(pos) {
|
|
4901
|
-
return
|
|
4834
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
4902
4835
|
? null
|
|
4903
4836
|
: deserializeHashbang(pos);
|
|
4904
4837
|
}
|
|
@@ -4906,8 +4839,8 @@ function deserializeOptionHashbang(pos) {
|
|
|
4906
4839
|
function deserializeVecDirective(pos) {
|
|
4907
4840
|
let arr = [],
|
|
4908
4841
|
pos32 = pos >> 2;
|
|
4909
|
-
pos =
|
|
4910
|
-
let endPos = pos +
|
|
4842
|
+
pos = int32[pos32];
|
|
4843
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
4911
4844
|
for (; pos !== endPos; ) {
|
|
4912
4845
|
arr.push(deserializeDirective(pos));
|
|
4913
4846
|
pos += 80;
|
|
@@ -4918,8 +4851,8 @@ function deserializeVecDirective(pos) {
|
|
|
4918
4851
|
function deserializeVecStatement(pos) {
|
|
4919
4852
|
let arr = [],
|
|
4920
4853
|
pos32 = pos >> 2;
|
|
4921
|
-
pos =
|
|
4922
|
-
let endPos = pos +
|
|
4854
|
+
pos = int32[pos32];
|
|
4855
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
4923
4856
|
for (; pos !== endPos; ) {
|
|
4924
4857
|
arr.push(deserializeStatement(pos));
|
|
4925
4858
|
pos += 16;
|
|
@@ -4928,170 +4861,170 @@ function deserializeVecStatement(pos) {
|
|
|
4928
4861
|
}
|
|
4929
4862
|
|
|
4930
4863
|
function deserializeBoxBooleanLiteral(pos) {
|
|
4931
|
-
return deserializeBooleanLiteral(
|
|
4864
|
+
return deserializeBooleanLiteral(int32[pos >> 2]);
|
|
4932
4865
|
}
|
|
4933
4866
|
|
|
4934
4867
|
function deserializeBoxNullLiteral(pos) {
|
|
4935
|
-
return deserializeNullLiteral(
|
|
4868
|
+
return deserializeNullLiteral(int32[pos >> 2]);
|
|
4936
4869
|
}
|
|
4937
4870
|
|
|
4938
4871
|
function deserializeBoxNumericLiteral(pos) {
|
|
4939
|
-
return deserializeNumericLiteral(
|
|
4872
|
+
return deserializeNumericLiteral(int32[pos >> 2]);
|
|
4940
4873
|
}
|
|
4941
4874
|
|
|
4942
4875
|
function deserializeBoxBigIntLiteral(pos) {
|
|
4943
|
-
return deserializeBigIntLiteral(
|
|
4876
|
+
return deserializeBigIntLiteral(int32[pos >> 2]);
|
|
4944
4877
|
}
|
|
4945
4878
|
|
|
4946
4879
|
function deserializeBoxRegExpLiteral(pos) {
|
|
4947
|
-
return deserializeRegExpLiteral(
|
|
4880
|
+
return deserializeRegExpLiteral(int32[pos >> 2]);
|
|
4948
4881
|
}
|
|
4949
4882
|
|
|
4950
4883
|
function deserializeBoxStringLiteral(pos) {
|
|
4951
|
-
return deserializeStringLiteral(
|
|
4884
|
+
return deserializeStringLiteral(int32[pos >> 2]);
|
|
4952
4885
|
}
|
|
4953
4886
|
|
|
4954
4887
|
function deserializeBoxTemplateLiteral(pos) {
|
|
4955
|
-
return deserializeTemplateLiteral(
|
|
4888
|
+
return deserializeTemplateLiteral(int32[pos >> 2]);
|
|
4956
4889
|
}
|
|
4957
4890
|
|
|
4958
4891
|
function deserializeBoxIdentifierReference(pos) {
|
|
4959
|
-
return deserializeIdentifierReference(
|
|
4892
|
+
return deserializeIdentifierReference(int32[pos >> 2]);
|
|
4960
4893
|
}
|
|
4961
4894
|
|
|
4962
4895
|
function deserializeBoxMetaProperty(pos) {
|
|
4963
|
-
return deserializeMetaProperty(
|
|
4896
|
+
return deserializeMetaProperty(int32[pos >> 2]);
|
|
4964
4897
|
}
|
|
4965
4898
|
|
|
4966
4899
|
function deserializeBoxSuper(pos) {
|
|
4967
|
-
return deserializeSuper(
|
|
4900
|
+
return deserializeSuper(int32[pos >> 2]);
|
|
4968
4901
|
}
|
|
4969
4902
|
|
|
4970
4903
|
function deserializeBoxArrayExpression(pos) {
|
|
4971
|
-
return deserializeArrayExpression(
|
|
4904
|
+
return deserializeArrayExpression(int32[pos >> 2]);
|
|
4972
4905
|
}
|
|
4973
4906
|
|
|
4974
4907
|
function deserializeBoxArrowFunctionExpression(pos) {
|
|
4975
|
-
return deserializeArrowFunctionExpression(
|
|
4908
|
+
return deserializeArrowFunctionExpression(int32[pos >> 2]);
|
|
4976
4909
|
}
|
|
4977
4910
|
|
|
4978
4911
|
function deserializeBoxAssignmentExpression(pos) {
|
|
4979
|
-
return deserializeAssignmentExpression(
|
|
4912
|
+
return deserializeAssignmentExpression(int32[pos >> 2]);
|
|
4980
4913
|
}
|
|
4981
4914
|
|
|
4982
4915
|
function deserializeBoxAwaitExpression(pos) {
|
|
4983
|
-
return deserializeAwaitExpression(
|
|
4916
|
+
return deserializeAwaitExpression(int32[pos >> 2]);
|
|
4984
4917
|
}
|
|
4985
4918
|
|
|
4986
4919
|
function deserializeBoxBinaryExpression(pos) {
|
|
4987
|
-
return deserializeBinaryExpression(
|
|
4920
|
+
return deserializeBinaryExpression(int32[pos >> 2]);
|
|
4988
4921
|
}
|
|
4989
4922
|
|
|
4990
4923
|
function deserializeBoxCallExpression(pos) {
|
|
4991
|
-
return deserializeCallExpression(
|
|
4924
|
+
return deserializeCallExpression(int32[pos >> 2]);
|
|
4992
4925
|
}
|
|
4993
4926
|
|
|
4994
4927
|
function deserializeBoxChainExpression(pos) {
|
|
4995
|
-
return deserializeChainExpression(
|
|
4928
|
+
return deserializeChainExpression(int32[pos >> 2]);
|
|
4996
4929
|
}
|
|
4997
4930
|
|
|
4998
4931
|
function deserializeBoxClass(pos) {
|
|
4999
|
-
return deserializeClass(
|
|
4932
|
+
return deserializeClass(int32[pos >> 2]);
|
|
5000
4933
|
}
|
|
5001
4934
|
|
|
5002
4935
|
function deserializeBoxConditionalExpression(pos) {
|
|
5003
|
-
return deserializeConditionalExpression(
|
|
4936
|
+
return deserializeConditionalExpression(int32[pos >> 2]);
|
|
5004
4937
|
}
|
|
5005
4938
|
|
|
5006
4939
|
function deserializeBoxFunction(pos) {
|
|
5007
|
-
return deserializeFunction(
|
|
4940
|
+
return deserializeFunction(int32[pos >> 2]);
|
|
5008
4941
|
}
|
|
5009
4942
|
|
|
5010
4943
|
function deserializeBoxImportExpression(pos) {
|
|
5011
|
-
return deserializeImportExpression(
|
|
4944
|
+
return deserializeImportExpression(int32[pos >> 2]);
|
|
5012
4945
|
}
|
|
5013
4946
|
|
|
5014
4947
|
function deserializeBoxLogicalExpression(pos) {
|
|
5015
|
-
return deserializeLogicalExpression(
|
|
4948
|
+
return deserializeLogicalExpression(int32[pos >> 2]);
|
|
5016
4949
|
}
|
|
5017
4950
|
|
|
5018
4951
|
function deserializeBoxNewExpression(pos) {
|
|
5019
|
-
return deserializeNewExpression(
|
|
4952
|
+
return deserializeNewExpression(int32[pos >> 2]);
|
|
5020
4953
|
}
|
|
5021
4954
|
|
|
5022
4955
|
function deserializeBoxObjectExpression(pos) {
|
|
5023
|
-
return deserializeObjectExpression(
|
|
4956
|
+
return deserializeObjectExpression(int32[pos >> 2]);
|
|
5024
4957
|
}
|
|
5025
4958
|
|
|
5026
4959
|
function deserializeBoxParenthesizedExpression(pos) {
|
|
5027
|
-
return deserializeParenthesizedExpression(
|
|
4960
|
+
return deserializeParenthesizedExpression(int32[pos >> 2]);
|
|
5028
4961
|
}
|
|
5029
4962
|
|
|
5030
4963
|
function deserializeBoxSequenceExpression(pos) {
|
|
5031
|
-
return deserializeSequenceExpression(
|
|
4964
|
+
return deserializeSequenceExpression(int32[pos >> 2]);
|
|
5032
4965
|
}
|
|
5033
4966
|
|
|
5034
4967
|
function deserializeBoxTaggedTemplateExpression(pos) {
|
|
5035
|
-
return deserializeTaggedTemplateExpression(
|
|
4968
|
+
return deserializeTaggedTemplateExpression(int32[pos >> 2]);
|
|
5036
4969
|
}
|
|
5037
4970
|
|
|
5038
4971
|
function deserializeBoxThisExpression(pos) {
|
|
5039
|
-
return deserializeThisExpression(
|
|
4972
|
+
return deserializeThisExpression(int32[pos >> 2]);
|
|
5040
4973
|
}
|
|
5041
4974
|
|
|
5042
4975
|
function deserializeBoxUnaryExpression(pos) {
|
|
5043
|
-
return deserializeUnaryExpression(
|
|
4976
|
+
return deserializeUnaryExpression(int32[pos >> 2]);
|
|
5044
4977
|
}
|
|
5045
4978
|
|
|
5046
4979
|
function deserializeBoxUpdateExpression(pos) {
|
|
5047
|
-
return deserializeUpdateExpression(
|
|
4980
|
+
return deserializeUpdateExpression(int32[pos >> 2]);
|
|
5048
4981
|
}
|
|
5049
4982
|
|
|
5050
4983
|
function deserializeBoxYieldExpression(pos) {
|
|
5051
|
-
return deserializeYieldExpression(
|
|
4984
|
+
return deserializeYieldExpression(int32[pos >> 2]);
|
|
5052
4985
|
}
|
|
5053
4986
|
|
|
5054
4987
|
function deserializeBoxPrivateInExpression(pos) {
|
|
5055
|
-
return deserializePrivateInExpression(
|
|
4988
|
+
return deserializePrivateInExpression(int32[pos >> 2]);
|
|
5056
4989
|
}
|
|
5057
4990
|
|
|
5058
4991
|
function deserializeBoxJSXElement(pos) {
|
|
5059
|
-
return deserializeJSXElement(
|
|
4992
|
+
return deserializeJSXElement(int32[pos >> 2]);
|
|
5060
4993
|
}
|
|
5061
4994
|
|
|
5062
4995
|
function deserializeBoxJSXFragment(pos) {
|
|
5063
|
-
return deserializeJSXFragment(
|
|
4996
|
+
return deserializeJSXFragment(int32[pos >> 2]);
|
|
5064
4997
|
}
|
|
5065
4998
|
|
|
5066
4999
|
function deserializeBoxTSAsExpression(pos) {
|
|
5067
|
-
return deserializeTSAsExpression(
|
|
5000
|
+
return deserializeTSAsExpression(int32[pos >> 2]);
|
|
5068
5001
|
}
|
|
5069
5002
|
|
|
5070
5003
|
function deserializeBoxTSSatisfiesExpression(pos) {
|
|
5071
|
-
return deserializeTSSatisfiesExpression(
|
|
5004
|
+
return deserializeTSSatisfiesExpression(int32[pos >> 2]);
|
|
5072
5005
|
}
|
|
5073
5006
|
|
|
5074
5007
|
function deserializeBoxTSTypeAssertion(pos) {
|
|
5075
|
-
return deserializeTSTypeAssertion(
|
|
5008
|
+
return deserializeTSTypeAssertion(int32[pos >> 2]);
|
|
5076
5009
|
}
|
|
5077
5010
|
|
|
5078
5011
|
function deserializeBoxTSNonNullExpression(pos) {
|
|
5079
|
-
return deserializeTSNonNullExpression(
|
|
5012
|
+
return deserializeTSNonNullExpression(int32[pos >> 2]);
|
|
5080
5013
|
}
|
|
5081
5014
|
|
|
5082
5015
|
function deserializeBoxTSInstantiationExpression(pos) {
|
|
5083
|
-
return deserializeTSInstantiationExpression(
|
|
5016
|
+
return deserializeTSInstantiationExpression(int32[pos >> 2]);
|
|
5084
5017
|
}
|
|
5085
5018
|
|
|
5086
5019
|
function deserializeBoxV8IntrinsicExpression(pos) {
|
|
5087
|
-
return deserializeV8IntrinsicExpression(
|
|
5020
|
+
return deserializeV8IntrinsicExpression(int32[pos >> 2]);
|
|
5088
5021
|
}
|
|
5089
5022
|
|
|
5090
5023
|
function deserializeVecArrayExpressionElement(pos) {
|
|
5091
5024
|
let arr = [],
|
|
5092
5025
|
pos32 = pos >> 2;
|
|
5093
|
-
pos =
|
|
5094
|
-
let endPos = pos +
|
|
5026
|
+
pos = int32[pos32];
|
|
5027
|
+
let endPos = pos + int32[pos32 + 2] * 24;
|
|
5095
5028
|
for (; pos !== endPos; ) {
|
|
5096
5029
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
5097
5030
|
pos += 24;
|
|
@@ -5100,14 +5033,14 @@ function deserializeVecArrayExpressionElement(pos) {
|
|
|
5100
5033
|
}
|
|
5101
5034
|
|
|
5102
5035
|
function deserializeBoxSpreadElement(pos) {
|
|
5103
|
-
return deserializeSpreadElement(
|
|
5036
|
+
return deserializeSpreadElement(int32[pos >> 2]);
|
|
5104
5037
|
}
|
|
5105
5038
|
|
|
5106
5039
|
function deserializeVecObjectPropertyKind(pos) {
|
|
5107
5040
|
let arr = [],
|
|
5108
5041
|
pos32 = pos >> 2;
|
|
5109
|
-
pos =
|
|
5110
|
-
let endPos = pos +
|
|
5042
|
+
pos = int32[pos32];
|
|
5043
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5111
5044
|
for (; pos !== endPos; ) {
|
|
5112
5045
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
5113
5046
|
pos += 16;
|
|
@@ -5116,7 +5049,7 @@ function deserializeVecObjectPropertyKind(pos) {
|
|
|
5116
5049
|
}
|
|
5117
5050
|
|
|
5118
5051
|
function deserializeBoxObjectProperty(pos) {
|
|
5119
|
-
return deserializeObjectProperty(
|
|
5052
|
+
return deserializeObjectProperty(int32[pos >> 2]);
|
|
5120
5053
|
}
|
|
5121
5054
|
|
|
5122
5055
|
function deserializeBool(pos) {
|
|
@@ -5124,18 +5057,18 @@ function deserializeBool(pos) {
|
|
|
5124
5057
|
}
|
|
5125
5058
|
|
|
5126
5059
|
function deserializeBoxIdentifierName(pos) {
|
|
5127
|
-
return deserializeIdentifierName(
|
|
5060
|
+
return deserializeIdentifierName(int32[pos >> 2]);
|
|
5128
5061
|
}
|
|
5129
5062
|
|
|
5130
5063
|
function deserializeBoxPrivateIdentifier(pos) {
|
|
5131
|
-
return deserializePrivateIdentifier(
|
|
5064
|
+
return deserializePrivateIdentifier(int32[pos >> 2]);
|
|
5132
5065
|
}
|
|
5133
5066
|
|
|
5134
5067
|
function deserializeVecTemplateElement(pos) {
|
|
5135
5068
|
let arr = [],
|
|
5136
5069
|
pos32 = pos >> 2;
|
|
5137
|
-
pos =
|
|
5138
|
-
let endPos = pos +
|
|
5070
|
+
pos = int32[pos32];
|
|
5071
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5139
5072
|
for (; pos !== endPos; ) {
|
|
5140
5073
|
arr.push(deserializeTemplateElement(pos));
|
|
5141
5074
|
pos += 48;
|
|
@@ -5146,8 +5079,8 @@ function deserializeVecTemplateElement(pos) {
|
|
|
5146
5079
|
function deserializeVecExpression(pos) {
|
|
5147
5080
|
let arr = [],
|
|
5148
5081
|
pos32 = pos >> 2;
|
|
5149
|
-
pos =
|
|
5150
|
-
let endPos = pos +
|
|
5082
|
+
pos = int32[pos32];
|
|
5083
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5151
5084
|
for (; pos !== endPos; ) {
|
|
5152
5085
|
arr.push(deserializeExpression(pos));
|
|
5153
5086
|
pos += 16;
|
|
@@ -5156,36 +5089,36 @@ function deserializeVecExpression(pos) {
|
|
|
5156
5089
|
}
|
|
5157
5090
|
|
|
5158
5091
|
function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
5159
|
-
return deserializeTSTypeParameterInstantiation(
|
|
5092
|
+
return deserializeTSTypeParameterInstantiation(int32[pos >> 2]);
|
|
5160
5093
|
}
|
|
5161
5094
|
|
|
5162
5095
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5163
|
-
return
|
|
5096
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5164
5097
|
? null
|
|
5165
5098
|
: deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5166
5099
|
}
|
|
5167
5100
|
|
|
5168
5101
|
function deserializeOptionStr(pos) {
|
|
5169
|
-
return
|
|
5102
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeStr(pos);
|
|
5170
5103
|
}
|
|
5171
5104
|
|
|
5172
5105
|
function deserializeBoxComputedMemberExpression(pos) {
|
|
5173
|
-
return deserializeComputedMemberExpression(
|
|
5106
|
+
return deserializeComputedMemberExpression(int32[pos >> 2]);
|
|
5174
5107
|
}
|
|
5175
5108
|
|
|
5176
5109
|
function deserializeBoxStaticMemberExpression(pos) {
|
|
5177
|
-
return deserializeStaticMemberExpression(
|
|
5110
|
+
return deserializeStaticMemberExpression(int32[pos >> 2]);
|
|
5178
5111
|
}
|
|
5179
5112
|
|
|
5180
5113
|
function deserializeBoxPrivateFieldExpression(pos) {
|
|
5181
|
-
return deserializePrivateFieldExpression(
|
|
5114
|
+
return deserializePrivateFieldExpression(int32[pos >> 2]);
|
|
5182
5115
|
}
|
|
5183
5116
|
|
|
5184
5117
|
function deserializeVecArgument(pos) {
|
|
5185
5118
|
let arr = [],
|
|
5186
5119
|
pos32 = pos >> 2;
|
|
5187
|
-
pos =
|
|
5188
|
-
let endPos = pos +
|
|
5120
|
+
pos = int32[pos32];
|
|
5121
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5189
5122
|
for (; pos !== endPos; ) {
|
|
5190
5123
|
arr.push(deserializeArgument(pos));
|
|
5191
5124
|
pos += 16;
|
|
@@ -5194,11 +5127,11 @@ function deserializeVecArgument(pos) {
|
|
|
5194
5127
|
}
|
|
5195
5128
|
|
|
5196
5129
|
function deserializeBoxArrayAssignmentTarget(pos) {
|
|
5197
|
-
return deserializeArrayAssignmentTarget(
|
|
5130
|
+
return deserializeArrayAssignmentTarget(int32[pos >> 2]);
|
|
5198
5131
|
}
|
|
5199
5132
|
|
|
5200
5133
|
function deserializeBoxObjectAssignmentTarget(pos) {
|
|
5201
|
-
return deserializeObjectAssignmentTarget(
|
|
5134
|
+
return deserializeObjectAssignmentTarget(int32[pos >> 2]);
|
|
5202
5135
|
}
|
|
5203
5136
|
|
|
5204
5137
|
function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
@@ -5208,8 +5141,8 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5208
5141
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
5209
5142
|
let arr = [],
|
|
5210
5143
|
pos32 = pos >> 2;
|
|
5211
|
-
pos =
|
|
5212
|
-
let endPos = pos +
|
|
5144
|
+
pos = int32[pos32];
|
|
5145
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5213
5146
|
for (; pos !== endPos; ) {
|
|
5214
5147
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
5215
5148
|
pos += 16;
|
|
@@ -5218,11 +5151,11 @@ function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5218
5151
|
}
|
|
5219
5152
|
|
|
5220
5153
|
function deserializeBoxAssignmentTargetRest(pos) {
|
|
5221
|
-
return deserializeAssignmentTargetRest(
|
|
5154
|
+
return deserializeAssignmentTargetRest(int32[pos >> 2]);
|
|
5222
5155
|
}
|
|
5223
5156
|
|
|
5224
5157
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5225
|
-
return
|
|
5158
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5226
5159
|
? null
|
|
5227
5160
|
: deserializeBoxAssignmentTargetRest(pos);
|
|
5228
5161
|
}
|
|
@@ -5230,8 +5163,8 @@ function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
|
5230
5163
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
5231
5164
|
let arr = [],
|
|
5232
5165
|
pos32 = pos >> 2;
|
|
5233
|
-
pos =
|
|
5234
|
-
let endPos = pos +
|
|
5166
|
+
pos = int32[pos32];
|
|
5167
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5235
5168
|
for (; pos !== endPos; ) {
|
|
5236
5169
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
5237
5170
|
pos += 16;
|
|
@@ -5240,15 +5173,15 @@ function deserializeVecAssignmentTargetProperty(pos) {
|
|
|
5240
5173
|
}
|
|
5241
5174
|
|
|
5242
5175
|
function deserializeBoxAssignmentTargetWithDefault(pos) {
|
|
5243
|
-
return deserializeAssignmentTargetWithDefault(
|
|
5176
|
+
return deserializeAssignmentTargetWithDefault(int32[pos >> 2]);
|
|
5244
5177
|
}
|
|
5245
5178
|
|
|
5246
5179
|
function deserializeBoxAssignmentTargetPropertyIdentifier(pos) {
|
|
5247
|
-
return deserializeAssignmentTargetPropertyIdentifier(
|
|
5180
|
+
return deserializeAssignmentTargetPropertyIdentifier(int32[pos >> 2]);
|
|
5248
5181
|
}
|
|
5249
5182
|
|
|
5250
5183
|
function deserializeBoxAssignmentTargetPropertyProperty(pos) {
|
|
5251
|
-
return deserializeAssignmentTargetPropertyProperty(
|
|
5184
|
+
return deserializeAssignmentTargetPropertyProperty(int32[pos >> 2]);
|
|
5252
5185
|
}
|
|
5253
5186
|
|
|
5254
5187
|
function deserializeOptionExpression(pos) {
|
|
@@ -5256,110 +5189,110 @@ function deserializeOptionExpression(pos) {
|
|
|
5256
5189
|
}
|
|
5257
5190
|
|
|
5258
5191
|
function deserializeBoxBlockStatement(pos) {
|
|
5259
|
-
return deserializeBlockStatement(
|
|
5192
|
+
return deserializeBlockStatement(int32[pos >> 2]);
|
|
5260
5193
|
}
|
|
5261
5194
|
|
|
5262
5195
|
function deserializeBoxBreakStatement(pos) {
|
|
5263
|
-
return deserializeBreakStatement(
|
|
5196
|
+
return deserializeBreakStatement(int32[pos >> 2]);
|
|
5264
5197
|
}
|
|
5265
5198
|
|
|
5266
5199
|
function deserializeBoxContinueStatement(pos) {
|
|
5267
|
-
return deserializeContinueStatement(
|
|
5200
|
+
return deserializeContinueStatement(int32[pos >> 2]);
|
|
5268
5201
|
}
|
|
5269
5202
|
|
|
5270
5203
|
function deserializeBoxDebuggerStatement(pos) {
|
|
5271
|
-
return deserializeDebuggerStatement(
|
|
5204
|
+
return deserializeDebuggerStatement(int32[pos >> 2]);
|
|
5272
5205
|
}
|
|
5273
5206
|
|
|
5274
5207
|
function deserializeBoxDoWhileStatement(pos) {
|
|
5275
|
-
return deserializeDoWhileStatement(
|
|
5208
|
+
return deserializeDoWhileStatement(int32[pos >> 2]);
|
|
5276
5209
|
}
|
|
5277
5210
|
|
|
5278
5211
|
function deserializeBoxEmptyStatement(pos) {
|
|
5279
|
-
return deserializeEmptyStatement(
|
|
5212
|
+
return deserializeEmptyStatement(int32[pos >> 2]);
|
|
5280
5213
|
}
|
|
5281
5214
|
|
|
5282
5215
|
function deserializeBoxExpressionStatement(pos) {
|
|
5283
|
-
return deserializeExpressionStatement(
|
|
5216
|
+
return deserializeExpressionStatement(int32[pos >> 2]);
|
|
5284
5217
|
}
|
|
5285
5218
|
|
|
5286
5219
|
function deserializeBoxForInStatement(pos) {
|
|
5287
|
-
return deserializeForInStatement(
|
|
5220
|
+
return deserializeForInStatement(int32[pos >> 2]);
|
|
5288
5221
|
}
|
|
5289
5222
|
|
|
5290
5223
|
function deserializeBoxForOfStatement(pos) {
|
|
5291
|
-
return deserializeForOfStatement(
|
|
5224
|
+
return deserializeForOfStatement(int32[pos >> 2]);
|
|
5292
5225
|
}
|
|
5293
5226
|
|
|
5294
5227
|
function deserializeBoxForStatement(pos) {
|
|
5295
|
-
return deserializeForStatement(
|
|
5228
|
+
return deserializeForStatement(int32[pos >> 2]);
|
|
5296
5229
|
}
|
|
5297
5230
|
|
|
5298
5231
|
function deserializeBoxIfStatement(pos) {
|
|
5299
|
-
return deserializeIfStatement(
|
|
5232
|
+
return deserializeIfStatement(int32[pos >> 2]);
|
|
5300
5233
|
}
|
|
5301
5234
|
|
|
5302
5235
|
function deserializeBoxLabeledStatement(pos) {
|
|
5303
|
-
return deserializeLabeledStatement(
|
|
5236
|
+
return deserializeLabeledStatement(int32[pos >> 2]);
|
|
5304
5237
|
}
|
|
5305
5238
|
|
|
5306
5239
|
function deserializeBoxReturnStatement(pos) {
|
|
5307
|
-
return deserializeReturnStatement(
|
|
5240
|
+
return deserializeReturnStatement(int32[pos >> 2]);
|
|
5308
5241
|
}
|
|
5309
5242
|
|
|
5310
5243
|
function deserializeBoxSwitchStatement(pos) {
|
|
5311
|
-
return deserializeSwitchStatement(
|
|
5244
|
+
return deserializeSwitchStatement(int32[pos >> 2]);
|
|
5312
5245
|
}
|
|
5313
5246
|
|
|
5314
5247
|
function deserializeBoxThrowStatement(pos) {
|
|
5315
|
-
return deserializeThrowStatement(
|
|
5248
|
+
return deserializeThrowStatement(int32[pos >> 2]);
|
|
5316
5249
|
}
|
|
5317
5250
|
|
|
5318
5251
|
function deserializeBoxTryStatement(pos) {
|
|
5319
|
-
return deserializeTryStatement(
|
|
5252
|
+
return deserializeTryStatement(int32[pos >> 2]);
|
|
5320
5253
|
}
|
|
5321
5254
|
|
|
5322
5255
|
function deserializeBoxWhileStatement(pos) {
|
|
5323
|
-
return deserializeWhileStatement(
|
|
5256
|
+
return deserializeWhileStatement(int32[pos >> 2]);
|
|
5324
5257
|
}
|
|
5325
5258
|
|
|
5326
5259
|
function deserializeBoxWithStatement(pos) {
|
|
5327
|
-
return deserializeWithStatement(
|
|
5260
|
+
return deserializeWithStatement(int32[pos >> 2]);
|
|
5328
5261
|
}
|
|
5329
5262
|
|
|
5330
5263
|
function deserializeBoxVariableDeclaration(pos) {
|
|
5331
|
-
return deserializeVariableDeclaration(
|
|
5264
|
+
return deserializeVariableDeclaration(int32[pos >> 2]);
|
|
5332
5265
|
}
|
|
5333
5266
|
|
|
5334
5267
|
function deserializeBoxTSTypeAliasDeclaration(pos) {
|
|
5335
|
-
return deserializeTSTypeAliasDeclaration(
|
|
5268
|
+
return deserializeTSTypeAliasDeclaration(int32[pos >> 2]);
|
|
5336
5269
|
}
|
|
5337
5270
|
|
|
5338
5271
|
function deserializeBoxTSInterfaceDeclaration(pos) {
|
|
5339
|
-
return deserializeTSInterfaceDeclaration(
|
|
5272
|
+
return deserializeTSInterfaceDeclaration(int32[pos >> 2]);
|
|
5340
5273
|
}
|
|
5341
5274
|
|
|
5342
5275
|
function deserializeBoxTSEnumDeclaration(pos) {
|
|
5343
|
-
return deserializeTSEnumDeclaration(
|
|
5276
|
+
return deserializeTSEnumDeclaration(int32[pos >> 2]);
|
|
5344
5277
|
}
|
|
5345
5278
|
|
|
5346
5279
|
function deserializeBoxTSModuleDeclaration(pos) {
|
|
5347
|
-
return deserializeTSModuleDeclaration(
|
|
5280
|
+
return deserializeTSModuleDeclaration(int32[pos >> 2]);
|
|
5348
5281
|
}
|
|
5349
5282
|
|
|
5350
5283
|
function deserializeBoxTSGlobalDeclaration(pos) {
|
|
5351
|
-
return deserializeTSGlobalDeclaration(
|
|
5284
|
+
return deserializeTSGlobalDeclaration(int32[pos >> 2]);
|
|
5352
5285
|
}
|
|
5353
5286
|
|
|
5354
5287
|
function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
5355
|
-
return deserializeTSImportEqualsDeclaration(
|
|
5288
|
+
return deserializeTSImportEqualsDeclaration(int32[pos >> 2]);
|
|
5356
5289
|
}
|
|
5357
5290
|
|
|
5358
5291
|
function deserializeVecVariableDeclarator(pos) {
|
|
5359
5292
|
let arr = [],
|
|
5360
5293
|
pos32 = pos >> 2;
|
|
5361
|
-
pos =
|
|
5362
|
-
let endPos = pos +
|
|
5294
|
+
pos = int32[pos32];
|
|
5295
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
5363
5296
|
for (; pos !== endPos; ) {
|
|
5364
5297
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5365
5298
|
pos += 56;
|
|
@@ -5368,11 +5301,11 @@ function deserializeVecVariableDeclarator(pos) {
|
|
|
5368
5301
|
}
|
|
5369
5302
|
|
|
5370
5303
|
function deserializeBoxTSTypeAnnotation(pos) {
|
|
5371
|
-
return deserializeTSTypeAnnotation(
|
|
5304
|
+
return deserializeTSTypeAnnotation(int32[pos >> 2]);
|
|
5372
5305
|
}
|
|
5373
5306
|
|
|
5374
5307
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5375
|
-
return
|
|
5308
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5376
5309
|
? null
|
|
5377
5310
|
: deserializeBoxTSTypeAnnotation(pos);
|
|
5378
5311
|
}
|
|
@@ -5386,7 +5319,7 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5386
5319
|
}
|
|
5387
5320
|
|
|
5388
5321
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5389
|
-
return
|
|
5322
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
5390
5323
|
? null
|
|
5391
5324
|
: deserializeLabelIdentifier(pos);
|
|
5392
5325
|
}
|
|
@@ -5394,8 +5327,8 @@ function deserializeOptionLabelIdentifier(pos) {
|
|
|
5394
5327
|
function deserializeVecSwitchCase(pos) {
|
|
5395
5328
|
let arr = [],
|
|
5396
5329
|
pos32 = pos >> 2;
|
|
5397
|
-
pos =
|
|
5398
|
-
let endPos = pos +
|
|
5330
|
+
pos = int32[pos32];
|
|
5331
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
5399
5332
|
for (; pos !== endPos; ) {
|
|
5400
5333
|
arr.push(deserializeSwitchCase(pos));
|
|
5401
5334
|
pos += 56;
|
|
@@ -5404,17 +5337,17 @@ function deserializeVecSwitchCase(pos) {
|
|
|
5404
5337
|
}
|
|
5405
5338
|
|
|
5406
5339
|
function deserializeBoxCatchClause(pos) {
|
|
5407
|
-
return deserializeCatchClause(
|
|
5340
|
+
return deserializeCatchClause(int32[pos >> 2]);
|
|
5408
5341
|
}
|
|
5409
5342
|
|
|
5410
5343
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5411
|
-
return
|
|
5344
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5412
5345
|
? null
|
|
5413
5346
|
: deserializeBoxCatchClause(pos);
|
|
5414
5347
|
}
|
|
5415
5348
|
|
|
5416
5349
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5417
|
-
return
|
|
5350
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5418
5351
|
? null
|
|
5419
5352
|
: deserializeBoxBlockStatement(pos);
|
|
5420
5353
|
}
|
|
@@ -5424,26 +5357,26 @@ function deserializeOptionCatchParameter(pos) {
|
|
|
5424
5357
|
}
|
|
5425
5358
|
|
|
5426
5359
|
function deserializeBoxBindingIdentifier(pos) {
|
|
5427
|
-
return deserializeBindingIdentifier(
|
|
5360
|
+
return deserializeBindingIdentifier(int32[pos >> 2]);
|
|
5428
5361
|
}
|
|
5429
5362
|
|
|
5430
5363
|
function deserializeBoxObjectPattern(pos) {
|
|
5431
|
-
return deserializeObjectPattern(
|
|
5364
|
+
return deserializeObjectPattern(int32[pos >> 2]);
|
|
5432
5365
|
}
|
|
5433
5366
|
|
|
5434
5367
|
function deserializeBoxArrayPattern(pos) {
|
|
5435
|
-
return deserializeArrayPattern(
|
|
5368
|
+
return deserializeArrayPattern(int32[pos >> 2]);
|
|
5436
5369
|
}
|
|
5437
5370
|
|
|
5438
5371
|
function deserializeBoxAssignmentPattern(pos) {
|
|
5439
|
-
return deserializeAssignmentPattern(
|
|
5372
|
+
return deserializeAssignmentPattern(int32[pos >> 2]);
|
|
5440
5373
|
}
|
|
5441
5374
|
|
|
5442
5375
|
function deserializeVecBindingProperty(pos) {
|
|
5443
5376
|
let arr = [],
|
|
5444
5377
|
pos32 = pos >> 2;
|
|
5445
|
-
pos =
|
|
5446
|
-
let endPos = pos +
|
|
5378
|
+
pos = int32[pos32];
|
|
5379
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5447
5380
|
for (; pos !== endPos; ) {
|
|
5448
5381
|
arr.push(deserializeBindingProperty(pos));
|
|
5449
5382
|
pos += 48;
|
|
@@ -5452,11 +5385,11 @@ function deserializeVecBindingProperty(pos) {
|
|
|
5452
5385
|
}
|
|
5453
5386
|
|
|
5454
5387
|
function deserializeBoxBindingRestElement(pos) {
|
|
5455
|
-
return deserializeBindingRestElement(
|
|
5388
|
+
return deserializeBindingRestElement(int32[pos >> 2]);
|
|
5456
5389
|
}
|
|
5457
5390
|
|
|
5458
5391
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5459
|
-
return
|
|
5392
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5460
5393
|
? null
|
|
5461
5394
|
: deserializeBoxBindingRestElement(pos);
|
|
5462
5395
|
}
|
|
@@ -5468,8 +5401,8 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5468
5401
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5469
5402
|
let arr = [],
|
|
5470
5403
|
pos32 = pos >> 2;
|
|
5471
|
-
pos =
|
|
5472
|
-
let endPos = pos +
|
|
5404
|
+
pos = int32[pos32];
|
|
5405
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5473
5406
|
for (; pos !== endPos; ) {
|
|
5474
5407
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5475
5408
|
pos += 16;
|
|
@@ -5478,41 +5411,41 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5478
5411
|
}
|
|
5479
5412
|
|
|
5480
5413
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5481
|
-
return
|
|
5414
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
5482
5415
|
? null
|
|
5483
5416
|
: deserializeBindingIdentifier(pos);
|
|
5484
5417
|
}
|
|
5485
5418
|
|
|
5486
5419
|
function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
5487
|
-
return deserializeTSTypeParameterDeclaration(
|
|
5420
|
+
return deserializeTSTypeParameterDeclaration(int32[pos >> 2]);
|
|
5488
5421
|
}
|
|
5489
5422
|
|
|
5490
5423
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5491
|
-
return
|
|
5424
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5492
5425
|
? null
|
|
5493
5426
|
: deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5494
5427
|
}
|
|
5495
5428
|
|
|
5496
5429
|
function deserializeBoxTSThisParameter(pos) {
|
|
5497
|
-
return deserializeTSThisParameter(
|
|
5430
|
+
return deserializeTSThisParameter(int32[pos >> 2]);
|
|
5498
5431
|
}
|
|
5499
5432
|
|
|
5500
5433
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5501
|
-
return
|
|
5434
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5502
5435
|
? null
|
|
5503
5436
|
: deserializeBoxTSThisParameter(pos);
|
|
5504
5437
|
}
|
|
5505
5438
|
|
|
5506
5439
|
function deserializeBoxFormalParameters(pos) {
|
|
5507
|
-
return deserializeFormalParameters(
|
|
5440
|
+
return deserializeFormalParameters(int32[pos >> 2]);
|
|
5508
5441
|
}
|
|
5509
5442
|
|
|
5510
5443
|
function deserializeBoxFunctionBody(pos) {
|
|
5511
|
-
return deserializeFunctionBody(
|
|
5444
|
+
return deserializeFunctionBody(int32[pos >> 2]);
|
|
5512
5445
|
}
|
|
5513
5446
|
|
|
5514
5447
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5515
|
-
return
|
|
5448
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5516
5449
|
? null
|
|
5517
5450
|
: deserializeBoxFunctionBody(pos);
|
|
5518
5451
|
}
|
|
@@ -5520,8 +5453,8 @@ function deserializeOptionBoxFunctionBody(pos) {
|
|
|
5520
5453
|
function deserializeVecFormalParameter(pos) {
|
|
5521
5454
|
let arr = [],
|
|
5522
5455
|
pos32 = pos >> 2;
|
|
5523
|
-
pos =
|
|
5524
|
-
let endPos = pos +
|
|
5456
|
+
pos = int32[pos32];
|
|
5457
|
+
let endPos = pos + int32[pos32 + 2] * 72;
|
|
5525
5458
|
for (; pos !== endPos; ) {
|
|
5526
5459
|
arr.push(deserializeFormalParameter(pos));
|
|
5527
5460
|
pos += 72;
|
|
@@ -5532,8 +5465,8 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5532
5465
|
function deserializeVecDecorator(pos) {
|
|
5533
5466
|
let arr = [],
|
|
5534
5467
|
pos32 = pos >> 2;
|
|
5535
|
-
pos =
|
|
5536
|
-
let endPos = pos +
|
|
5468
|
+
pos = int32[pos32];
|
|
5469
|
+
let endPos = pos + (int32[pos32 + 2] << 5);
|
|
5537
5470
|
for (; pos !== endPos; ) {
|
|
5538
5471
|
arr.push(deserializeDecorator(pos));
|
|
5539
5472
|
pos += 32;
|
|
@@ -5542,11 +5475,11 @@ function deserializeVecDecorator(pos) {
|
|
|
5542
5475
|
}
|
|
5543
5476
|
|
|
5544
5477
|
function deserializeBoxExpression(pos) {
|
|
5545
|
-
return deserializeExpression(
|
|
5478
|
+
return deserializeExpression(int32[pos >> 2]);
|
|
5546
5479
|
}
|
|
5547
5480
|
|
|
5548
5481
|
function deserializeOptionBoxExpression(pos) {
|
|
5549
|
-
return
|
|
5482
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5550
5483
|
? null
|
|
5551
5484
|
: deserializeBoxExpression(pos);
|
|
5552
5485
|
}
|
|
@@ -5558,8 +5491,8 @@ function deserializeOptionTSAccessibility(pos) {
|
|
|
5558
5491
|
function deserializeVecTSClassImplements(pos) {
|
|
5559
5492
|
let arr = [],
|
|
5560
5493
|
pos32 = pos >> 2;
|
|
5561
|
-
pos =
|
|
5562
|
-
let endPos = pos +
|
|
5494
|
+
pos = int32[pos32];
|
|
5495
|
+
let endPos = pos + int32[pos32 + 2] * 40;
|
|
5563
5496
|
for (; pos !== endPos; ) {
|
|
5564
5497
|
arr.push(deserializeTSClassImplements(pos));
|
|
5565
5498
|
pos += 40;
|
|
@@ -5568,14 +5501,14 @@ function deserializeVecTSClassImplements(pos) {
|
|
|
5568
5501
|
}
|
|
5569
5502
|
|
|
5570
5503
|
function deserializeBoxClassBody(pos) {
|
|
5571
|
-
return deserializeClassBody(
|
|
5504
|
+
return deserializeClassBody(int32[pos >> 2]);
|
|
5572
5505
|
}
|
|
5573
5506
|
|
|
5574
5507
|
function deserializeVecClassElement(pos) {
|
|
5575
5508
|
let arr = [],
|
|
5576
5509
|
pos32 = pos >> 2;
|
|
5577
|
-
pos =
|
|
5578
|
-
let endPos = pos +
|
|
5510
|
+
pos = int32[pos32];
|
|
5511
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5579
5512
|
for (; pos !== endPos; ) {
|
|
5580
5513
|
arr.push(deserializeClassElement(pos));
|
|
5581
5514
|
pos += 16;
|
|
@@ -5584,47 +5517,47 @@ function deserializeVecClassElement(pos) {
|
|
|
5584
5517
|
}
|
|
5585
5518
|
|
|
5586
5519
|
function deserializeBoxStaticBlock(pos) {
|
|
5587
|
-
return deserializeStaticBlock(
|
|
5520
|
+
return deserializeStaticBlock(int32[pos >> 2]);
|
|
5588
5521
|
}
|
|
5589
5522
|
|
|
5590
5523
|
function deserializeBoxMethodDefinition(pos) {
|
|
5591
|
-
return deserializeMethodDefinition(
|
|
5524
|
+
return deserializeMethodDefinition(int32[pos >> 2]);
|
|
5592
5525
|
}
|
|
5593
5526
|
|
|
5594
5527
|
function deserializeBoxPropertyDefinition(pos) {
|
|
5595
|
-
return deserializePropertyDefinition(
|
|
5528
|
+
return deserializePropertyDefinition(int32[pos >> 2]);
|
|
5596
5529
|
}
|
|
5597
5530
|
|
|
5598
5531
|
function deserializeBoxAccessorProperty(pos) {
|
|
5599
|
-
return deserializeAccessorProperty(
|
|
5532
|
+
return deserializeAccessorProperty(int32[pos >> 2]);
|
|
5600
5533
|
}
|
|
5601
5534
|
|
|
5602
5535
|
function deserializeBoxTSIndexSignature(pos) {
|
|
5603
|
-
return deserializeTSIndexSignature(
|
|
5536
|
+
return deserializeTSIndexSignature(int32[pos >> 2]);
|
|
5604
5537
|
}
|
|
5605
5538
|
|
|
5606
5539
|
function deserializeBoxImportDeclaration(pos) {
|
|
5607
|
-
return deserializeImportDeclaration(
|
|
5540
|
+
return deserializeImportDeclaration(int32[pos >> 2]);
|
|
5608
5541
|
}
|
|
5609
5542
|
|
|
5610
5543
|
function deserializeBoxExportAllDeclaration(pos) {
|
|
5611
|
-
return deserializeExportAllDeclaration(
|
|
5544
|
+
return deserializeExportAllDeclaration(int32[pos >> 2]);
|
|
5612
5545
|
}
|
|
5613
5546
|
|
|
5614
5547
|
function deserializeBoxExportDefaultDeclaration(pos) {
|
|
5615
|
-
return deserializeExportDefaultDeclaration(
|
|
5548
|
+
return deserializeExportDefaultDeclaration(int32[pos >> 2]);
|
|
5616
5549
|
}
|
|
5617
5550
|
|
|
5618
5551
|
function deserializeBoxExportNamedDeclaration(pos) {
|
|
5619
|
-
return deserializeExportNamedDeclaration(
|
|
5552
|
+
return deserializeExportNamedDeclaration(int32[pos >> 2]);
|
|
5620
5553
|
}
|
|
5621
5554
|
|
|
5622
5555
|
function deserializeBoxTSExportAssignment(pos) {
|
|
5623
|
-
return deserializeTSExportAssignment(
|
|
5556
|
+
return deserializeTSExportAssignment(int32[pos >> 2]);
|
|
5624
5557
|
}
|
|
5625
5558
|
|
|
5626
5559
|
function deserializeBoxTSNamespaceExportDeclaration(pos) {
|
|
5627
|
-
return deserializeTSNamespaceExportDeclaration(
|
|
5560
|
+
return deserializeTSNamespaceExportDeclaration(int32[pos >> 2]);
|
|
5628
5561
|
}
|
|
5629
5562
|
|
|
5630
5563
|
function deserializeOptionImportPhase(pos) {
|
|
@@ -5634,8 +5567,8 @@ function deserializeOptionImportPhase(pos) {
|
|
|
5634
5567
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
5635
5568
|
let arr = [],
|
|
5636
5569
|
pos32 = pos >> 2;
|
|
5637
|
-
pos =
|
|
5638
|
-
let endPos = pos +
|
|
5570
|
+
pos = int32[pos32];
|
|
5571
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5639
5572
|
for (; pos !== endPos; ) {
|
|
5640
5573
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
5641
5574
|
pos += 16;
|
|
@@ -5644,38 +5577,38 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5644
5577
|
}
|
|
5645
5578
|
|
|
5646
5579
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5647
|
-
return
|
|
5580
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5648
5581
|
? null
|
|
5649
5582
|
: deserializeVecImportDeclarationSpecifier(pos);
|
|
5650
5583
|
}
|
|
5651
5584
|
|
|
5652
5585
|
function deserializeBoxWithClause(pos) {
|
|
5653
|
-
return deserializeWithClause(
|
|
5586
|
+
return deserializeWithClause(int32[pos >> 2]);
|
|
5654
5587
|
}
|
|
5655
5588
|
|
|
5656
5589
|
function deserializeOptionBoxWithClause(pos) {
|
|
5657
|
-
return
|
|
5590
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5658
5591
|
? null
|
|
5659
5592
|
: deserializeBoxWithClause(pos);
|
|
5660
5593
|
}
|
|
5661
5594
|
|
|
5662
5595
|
function deserializeBoxImportSpecifier(pos) {
|
|
5663
|
-
return deserializeImportSpecifier(
|
|
5596
|
+
return deserializeImportSpecifier(int32[pos >> 2]);
|
|
5664
5597
|
}
|
|
5665
5598
|
|
|
5666
5599
|
function deserializeBoxImportDefaultSpecifier(pos) {
|
|
5667
|
-
return deserializeImportDefaultSpecifier(
|
|
5600
|
+
return deserializeImportDefaultSpecifier(int32[pos >> 2]);
|
|
5668
5601
|
}
|
|
5669
5602
|
|
|
5670
5603
|
function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
5671
|
-
return deserializeImportNamespaceSpecifier(
|
|
5604
|
+
return deserializeImportNamespaceSpecifier(int32[pos >> 2]);
|
|
5672
5605
|
}
|
|
5673
5606
|
|
|
5674
5607
|
function deserializeVecImportAttribute(pos) {
|
|
5675
5608
|
let arr = [],
|
|
5676
5609
|
pos32 = pos >> 2;
|
|
5677
|
-
pos =
|
|
5678
|
-
let endPos = pos +
|
|
5610
|
+
pos = int32[pos32];
|
|
5611
|
+
let endPos = pos + int32[pos32 + 2] * 120;
|
|
5679
5612
|
for (; pos !== endPos; ) {
|
|
5680
5613
|
arr.push(deserializeImportAttribute(pos));
|
|
5681
5614
|
pos += 120;
|
|
@@ -5690,8 +5623,8 @@ function deserializeOptionDeclaration(pos) {
|
|
|
5690
5623
|
function deserializeVecExportSpecifier(pos) {
|
|
5691
5624
|
let arr = [],
|
|
5692
5625
|
pos32 = pos >> 2;
|
|
5693
|
-
pos =
|
|
5694
|
-
let endPos = pos +
|
|
5626
|
+
pos = int32[pos32];
|
|
5627
|
+
let endPos = pos + (int32[pos32 + 2] << 7);
|
|
5695
5628
|
for (; pos !== endPos; ) {
|
|
5696
5629
|
arr.push(deserializeExportSpecifier(pos));
|
|
5697
5630
|
pos += 128;
|
|
@@ -5716,14 +5649,14 @@ function deserializeU8(pos) {
|
|
|
5716
5649
|
}
|
|
5717
5650
|
|
|
5718
5651
|
function deserializeBoxJSXOpeningElement(pos) {
|
|
5719
|
-
return deserializeJSXOpeningElement(
|
|
5652
|
+
return deserializeJSXOpeningElement(int32[pos >> 2]);
|
|
5720
5653
|
}
|
|
5721
5654
|
|
|
5722
5655
|
function deserializeVecJSXChild(pos) {
|
|
5723
5656
|
let arr = [],
|
|
5724
5657
|
pos32 = pos >> 2;
|
|
5725
|
-
pos =
|
|
5726
|
-
let endPos = pos +
|
|
5658
|
+
pos = int32[pos32];
|
|
5659
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5727
5660
|
for (; pos !== endPos; ) {
|
|
5728
5661
|
arr.push(deserializeJSXChild(pos));
|
|
5729
5662
|
pos += 16;
|
|
@@ -5732,11 +5665,11 @@ function deserializeVecJSXChild(pos) {
|
|
|
5732
5665
|
}
|
|
5733
5666
|
|
|
5734
5667
|
function deserializeBoxJSXClosingElement(pos) {
|
|
5735
|
-
return deserializeJSXClosingElement(
|
|
5668
|
+
return deserializeJSXClosingElement(int32[pos >> 2]);
|
|
5736
5669
|
}
|
|
5737
5670
|
|
|
5738
5671
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5739
|
-
return
|
|
5672
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5740
5673
|
? null
|
|
5741
5674
|
: deserializeBoxJSXClosingElement(pos);
|
|
5742
5675
|
}
|
|
@@ -5744,8 +5677,8 @@ function deserializeOptionBoxJSXClosingElement(pos) {
|
|
|
5744
5677
|
function deserializeVecJSXAttributeItem(pos) {
|
|
5745
5678
|
let arr = [],
|
|
5746
5679
|
pos32 = pos >> 2;
|
|
5747
|
-
pos =
|
|
5748
|
-
let endPos = pos +
|
|
5680
|
+
pos = int32[pos32];
|
|
5681
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5749
5682
|
for (; pos !== endPos; ) {
|
|
5750
5683
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
5751
5684
|
pos += 16;
|
|
@@ -5754,23 +5687,23 @@ function deserializeVecJSXAttributeItem(pos) {
|
|
|
5754
5687
|
}
|
|
5755
5688
|
|
|
5756
5689
|
function deserializeBoxJSXIdentifier(pos) {
|
|
5757
|
-
return deserializeJSXIdentifier(
|
|
5690
|
+
return deserializeJSXIdentifier(int32[pos >> 2]);
|
|
5758
5691
|
}
|
|
5759
5692
|
|
|
5760
5693
|
function deserializeBoxJSXNamespacedName(pos) {
|
|
5761
|
-
return deserializeJSXNamespacedName(
|
|
5694
|
+
return deserializeJSXNamespacedName(int32[pos >> 2]);
|
|
5762
5695
|
}
|
|
5763
5696
|
|
|
5764
5697
|
function deserializeBoxJSXMemberExpression(pos) {
|
|
5765
|
-
return deserializeJSXMemberExpression(
|
|
5698
|
+
return deserializeJSXMemberExpression(int32[pos >> 2]);
|
|
5766
5699
|
}
|
|
5767
5700
|
|
|
5768
5701
|
function deserializeBoxJSXAttribute(pos) {
|
|
5769
|
-
return deserializeJSXAttribute(
|
|
5702
|
+
return deserializeJSXAttribute(int32[pos >> 2]);
|
|
5770
5703
|
}
|
|
5771
5704
|
|
|
5772
5705
|
function deserializeBoxJSXSpreadAttribute(pos) {
|
|
5773
|
-
return deserializeJSXSpreadAttribute(
|
|
5706
|
+
return deserializeJSXSpreadAttribute(int32[pos >> 2]);
|
|
5774
5707
|
}
|
|
5775
5708
|
|
|
5776
5709
|
function deserializeOptionJSXAttributeValue(pos) {
|
|
@@ -5778,22 +5711,22 @@ function deserializeOptionJSXAttributeValue(pos) {
|
|
|
5778
5711
|
}
|
|
5779
5712
|
|
|
5780
5713
|
function deserializeBoxJSXExpressionContainer(pos) {
|
|
5781
|
-
return deserializeJSXExpressionContainer(
|
|
5714
|
+
return deserializeJSXExpressionContainer(int32[pos >> 2]);
|
|
5782
5715
|
}
|
|
5783
5716
|
|
|
5784
5717
|
function deserializeBoxJSXText(pos) {
|
|
5785
|
-
return deserializeJSXText(
|
|
5718
|
+
return deserializeJSXText(int32[pos >> 2]);
|
|
5786
5719
|
}
|
|
5787
5720
|
|
|
5788
5721
|
function deserializeBoxJSXSpreadChild(pos) {
|
|
5789
|
-
return deserializeJSXSpreadChild(
|
|
5722
|
+
return deserializeJSXSpreadChild(int32[pos >> 2]);
|
|
5790
5723
|
}
|
|
5791
5724
|
|
|
5792
5725
|
function deserializeVecTSEnumMember(pos) {
|
|
5793
5726
|
let arr = [],
|
|
5794
5727
|
pos32 = pos >> 2;
|
|
5795
|
-
pos =
|
|
5796
|
-
let endPos = pos +
|
|
5728
|
+
pos = int32[pos32];
|
|
5729
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5797
5730
|
for (; pos !== endPos; ) {
|
|
5798
5731
|
arr.push(deserializeTSEnumMember(pos));
|
|
5799
5732
|
pos += 48;
|
|
@@ -5802,158 +5735,158 @@ function deserializeVecTSEnumMember(pos) {
|
|
|
5802
5735
|
}
|
|
5803
5736
|
|
|
5804
5737
|
function deserializeBoxTSAnyKeyword(pos) {
|
|
5805
|
-
return deserializeTSAnyKeyword(
|
|
5738
|
+
return deserializeTSAnyKeyword(int32[pos >> 2]);
|
|
5806
5739
|
}
|
|
5807
5740
|
|
|
5808
5741
|
function deserializeBoxTSBigIntKeyword(pos) {
|
|
5809
|
-
return deserializeTSBigIntKeyword(
|
|
5742
|
+
return deserializeTSBigIntKeyword(int32[pos >> 2]);
|
|
5810
5743
|
}
|
|
5811
5744
|
|
|
5812
5745
|
function deserializeBoxTSBooleanKeyword(pos) {
|
|
5813
|
-
return deserializeTSBooleanKeyword(
|
|
5746
|
+
return deserializeTSBooleanKeyword(int32[pos >> 2]);
|
|
5814
5747
|
}
|
|
5815
5748
|
|
|
5816
5749
|
function deserializeBoxTSIntrinsicKeyword(pos) {
|
|
5817
|
-
return deserializeTSIntrinsicKeyword(
|
|
5750
|
+
return deserializeTSIntrinsicKeyword(int32[pos >> 2]);
|
|
5818
5751
|
}
|
|
5819
5752
|
|
|
5820
5753
|
function deserializeBoxTSNeverKeyword(pos) {
|
|
5821
|
-
return deserializeTSNeverKeyword(
|
|
5754
|
+
return deserializeTSNeverKeyword(int32[pos >> 2]);
|
|
5822
5755
|
}
|
|
5823
5756
|
|
|
5824
5757
|
function deserializeBoxTSNullKeyword(pos) {
|
|
5825
|
-
return deserializeTSNullKeyword(
|
|
5758
|
+
return deserializeTSNullKeyword(int32[pos >> 2]);
|
|
5826
5759
|
}
|
|
5827
5760
|
|
|
5828
5761
|
function deserializeBoxTSNumberKeyword(pos) {
|
|
5829
|
-
return deserializeTSNumberKeyword(
|
|
5762
|
+
return deserializeTSNumberKeyword(int32[pos >> 2]);
|
|
5830
5763
|
}
|
|
5831
5764
|
|
|
5832
5765
|
function deserializeBoxTSObjectKeyword(pos) {
|
|
5833
|
-
return deserializeTSObjectKeyword(
|
|
5766
|
+
return deserializeTSObjectKeyword(int32[pos >> 2]);
|
|
5834
5767
|
}
|
|
5835
5768
|
|
|
5836
5769
|
function deserializeBoxTSStringKeyword(pos) {
|
|
5837
|
-
return deserializeTSStringKeyword(
|
|
5770
|
+
return deserializeTSStringKeyword(int32[pos >> 2]);
|
|
5838
5771
|
}
|
|
5839
5772
|
|
|
5840
5773
|
function deserializeBoxTSSymbolKeyword(pos) {
|
|
5841
|
-
return deserializeTSSymbolKeyword(
|
|
5774
|
+
return deserializeTSSymbolKeyword(int32[pos >> 2]);
|
|
5842
5775
|
}
|
|
5843
5776
|
|
|
5844
5777
|
function deserializeBoxTSUndefinedKeyword(pos) {
|
|
5845
|
-
return deserializeTSUndefinedKeyword(
|
|
5778
|
+
return deserializeTSUndefinedKeyword(int32[pos >> 2]);
|
|
5846
5779
|
}
|
|
5847
5780
|
|
|
5848
5781
|
function deserializeBoxTSUnknownKeyword(pos) {
|
|
5849
|
-
return deserializeTSUnknownKeyword(
|
|
5782
|
+
return deserializeTSUnknownKeyword(int32[pos >> 2]);
|
|
5850
5783
|
}
|
|
5851
5784
|
|
|
5852
5785
|
function deserializeBoxTSVoidKeyword(pos) {
|
|
5853
|
-
return deserializeTSVoidKeyword(
|
|
5786
|
+
return deserializeTSVoidKeyword(int32[pos >> 2]);
|
|
5854
5787
|
}
|
|
5855
5788
|
|
|
5856
5789
|
function deserializeBoxTSArrayType(pos) {
|
|
5857
|
-
return deserializeTSArrayType(
|
|
5790
|
+
return deserializeTSArrayType(int32[pos >> 2]);
|
|
5858
5791
|
}
|
|
5859
5792
|
|
|
5860
5793
|
function deserializeBoxTSConditionalType(pos) {
|
|
5861
|
-
return deserializeTSConditionalType(
|
|
5794
|
+
return deserializeTSConditionalType(int32[pos >> 2]);
|
|
5862
5795
|
}
|
|
5863
5796
|
|
|
5864
5797
|
function deserializeBoxTSConstructorType(pos) {
|
|
5865
|
-
return deserializeTSConstructorType(
|
|
5798
|
+
return deserializeTSConstructorType(int32[pos >> 2]);
|
|
5866
5799
|
}
|
|
5867
5800
|
|
|
5868
5801
|
function deserializeBoxTSFunctionType(pos) {
|
|
5869
|
-
return deserializeTSFunctionType(
|
|
5802
|
+
return deserializeTSFunctionType(int32[pos >> 2]);
|
|
5870
5803
|
}
|
|
5871
5804
|
|
|
5872
5805
|
function deserializeBoxTSImportType(pos) {
|
|
5873
|
-
return deserializeTSImportType(
|
|
5806
|
+
return deserializeTSImportType(int32[pos >> 2]);
|
|
5874
5807
|
}
|
|
5875
5808
|
|
|
5876
5809
|
function deserializeBoxTSIndexedAccessType(pos) {
|
|
5877
|
-
return deserializeTSIndexedAccessType(
|
|
5810
|
+
return deserializeTSIndexedAccessType(int32[pos >> 2]);
|
|
5878
5811
|
}
|
|
5879
5812
|
|
|
5880
5813
|
function deserializeBoxTSInferType(pos) {
|
|
5881
|
-
return deserializeTSInferType(
|
|
5814
|
+
return deserializeTSInferType(int32[pos >> 2]);
|
|
5882
5815
|
}
|
|
5883
5816
|
|
|
5884
5817
|
function deserializeBoxTSIntersectionType(pos) {
|
|
5885
|
-
return deserializeTSIntersectionType(
|
|
5818
|
+
return deserializeTSIntersectionType(int32[pos >> 2]);
|
|
5886
5819
|
}
|
|
5887
5820
|
|
|
5888
5821
|
function deserializeBoxTSLiteralType(pos) {
|
|
5889
|
-
return deserializeTSLiteralType(
|
|
5822
|
+
return deserializeTSLiteralType(int32[pos >> 2]);
|
|
5890
5823
|
}
|
|
5891
5824
|
|
|
5892
5825
|
function deserializeBoxTSMappedType(pos) {
|
|
5893
|
-
return deserializeTSMappedType(
|
|
5826
|
+
return deserializeTSMappedType(int32[pos >> 2]);
|
|
5894
5827
|
}
|
|
5895
5828
|
|
|
5896
5829
|
function deserializeBoxTSNamedTupleMember(pos) {
|
|
5897
|
-
return deserializeTSNamedTupleMember(
|
|
5830
|
+
return deserializeTSNamedTupleMember(int32[pos >> 2]);
|
|
5898
5831
|
}
|
|
5899
5832
|
|
|
5900
5833
|
function deserializeBoxTSTemplateLiteralType(pos) {
|
|
5901
|
-
return deserializeTSTemplateLiteralType(
|
|
5834
|
+
return deserializeTSTemplateLiteralType(int32[pos >> 2]);
|
|
5902
5835
|
}
|
|
5903
5836
|
|
|
5904
5837
|
function deserializeBoxTSThisType(pos) {
|
|
5905
|
-
return deserializeTSThisType(
|
|
5838
|
+
return deserializeTSThisType(int32[pos >> 2]);
|
|
5906
5839
|
}
|
|
5907
5840
|
|
|
5908
5841
|
function deserializeBoxTSTupleType(pos) {
|
|
5909
|
-
return deserializeTSTupleType(
|
|
5842
|
+
return deserializeTSTupleType(int32[pos >> 2]);
|
|
5910
5843
|
}
|
|
5911
5844
|
|
|
5912
5845
|
function deserializeBoxTSTypeLiteral(pos) {
|
|
5913
|
-
return deserializeTSTypeLiteral(
|
|
5846
|
+
return deserializeTSTypeLiteral(int32[pos >> 2]);
|
|
5914
5847
|
}
|
|
5915
5848
|
|
|
5916
5849
|
function deserializeBoxTSTypeOperator(pos) {
|
|
5917
|
-
return deserializeTSTypeOperator(
|
|
5850
|
+
return deserializeTSTypeOperator(int32[pos >> 2]);
|
|
5918
5851
|
}
|
|
5919
5852
|
|
|
5920
5853
|
function deserializeBoxTSTypePredicate(pos) {
|
|
5921
|
-
return deserializeTSTypePredicate(
|
|
5854
|
+
return deserializeTSTypePredicate(int32[pos >> 2]);
|
|
5922
5855
|
}
|
|
5923
5856
|
|
|
5924
5857
|
function deserializeBoxTSTypeQuery(pos) {
|
|
5925
|
-
return deserializeTSTypeQuery(
|
|
5858
|
+
return deserializeTSTypeQuery(int32[pos >> 2]);
|
|
5926
5859
|
}
|
|
5927
5860
|
|
|
5928
5861
|
function deserializeBoxTSTypeReference(pos) {
|
|
5929
|
-
return deserializeTSTypeReference(
|
|
5862
|
+
return deserializeTSTypeReference(int32[pos >> 2]);
|
|
5930
5863
|
}
|
|
5931
5864
|
|
|
5932
5865
|
function deserializeBoxTSUnionType(pos) {
|
|
5933
|
-
return deserializeTSUnionType(
|
|
5866
|
+
return deserializeTSUnionType(int32[pos >> 2]);
|
|
5934
5867
|
}
|
|
5935
5868
|
|
|
5936
5869
|
function deserializeBoxTSParenthesizedType(pos) {
|
|
5937
|
-
return deserializeTSParenthesizedType(
|
|
5870
|
+
return deserializeTSParenthesizedType(int32[pos >> 2]);
|
|
5938
5871
|
}
|
|
5939
5872
|
|
|
5940
5873
|
function deserializeBoxJSDocNullableType(pos) {
|
|
5941
|
-
return deserializeJSDocNullableType(
|
|
5874
|
+
return deserializeJSDocNullableType(int32[pos >> 2]);
|
|
5942
5875
|
}
|
|
5943
5876
|
|
|
5944
5877
|
function deserializeBoxJSDocNonNullableType(pos) {
|
|
5945
|
-
return deserializeJSDocNonNullableType(
|
|
5878
|
+
return deserializeJSDocNonNullableType(int32[pos >> 2]);
|
|
5946
5879
|
}
|
|
5947
5880
|
|
|
5948
5881
|
function deserializeBoxJSDocUnknownType(pos) {
|
|
5949
|
-
return deserializeJSDocUnknownType(
|
|
5882
|
+
return deserializeJSDocUnknownType(int32[pos >> 2]);
|
|
5950
5883
|
}
|
|
5951
5884
|
|
|
5952
5885
|
function deserializeVecTSType(pos) {
|
|
5953
5886
|
let arr = [],
|
|
5954
5887
|
pos32 = pos >> 2;
|
|
5955
|
-
pos =
|
|
5956
|
-
let endPos = pos +
|
|
5888
|
+
pos = int32[pos32];
|
|
5889
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5957
5890
|
for (; pos !== endPos; ) {
|
|
5958
5891
|
arr.push(deserializeTSType(pos));
|
|
5959
5892
|
pos += 16;
|
|
@@ -5964,8 +5897,8 @@ function deserializeVecTSType(pos) {
|
|
|
5964
5897
|
function deserializeVecTSTupleElement(pos) {
|
|
5965
5898
|
let arr = [],
|
|
5966
5899
|
pos32 = pos >> 2;
|
|
5967
|
-
pos =
|
|
5968
|
-
let endPos = pos +
|
|
5900
|
+
pos = int32[pos32];
|
|
5901
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5969
5902
|
for (; pos !== endPos; ) {
|
|
5970
5903
|
arr.push(deserializeTSTupleElement(pos));
|
|
5971
5904
|
pos += 16;
|
|
@@ -5974,15 +5907,15 @@ function deserializeVecTSTupleElement(pos) {
|
|
|
5974
5907
|
}
|
|
5975
5908
|
|
|
5976
5909
|
function deserializeBoxTSOptionalType(pos) {
|
|
5977
|
-
return deserializeTSOptionalType(
|
|
5910
|
+
return deserializeTSOptionalType(int32[pos >> 2]);
|
|
5978
5911
|
}
|
|
5979
5912
|
|
|
5980
5913
|
function deserializeBoxTSRestType(pos) {
|
|
5981
|
-
return deserializeTSRestType(
|
|
5914
|
+
return deserializeTSRestType(int32[pos >> 2]);
|
|
5982
5915
|
}
|
|
5983
5916
|
|
|
5984
5917
|
function deserializeBoxTSQualifiedName(pos) {
|
|
5985
|
-
return deserializeTSQualifiedName(
|
|
5918
|
+
return deserializeTSQualifiedName(int32[pos >> 2]);
|
|
5986
5919
|
}
|
|
5987
5920
|
|
|
5988
5921
|
function deserializeOptionTSType(pos) {
|
|
@@ -5992,8 +5925,8 @@ function deserializeOptionTSType(pos) {
|
|
|
5992
5925
|
function deserializeVecTSTypeParameter(pos) {
|
|
5993
5926
|
let arr = [],
|
|
5994
5927
|
pos32 = pos >> 2;
|
|
5995
|
-
pos =
|
|
5996
|
-
let endPos = pos +
|
|
5928
|
+
pos = int32[pos32];
|
|
5929
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
5997
5930
|
for (; pos !== endPos; ) {
|
|
5998
5931
|
arr.push(deserializeTSTypeParameter(pos));
|
|
5999
5932
|
pos += 80;
|
|
@@ -6004,8 +5937,8 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
6004
5937
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
6005
5938
|
let arr = [],
|
|
6006
5939
|
pos32 = pos >> 2;
|
|
6007
|
-
pos =
|
|
6008
|
-
let endPos = pos +
|
|
5940
|
+
pos = int32[pos32];
|
|
5941
|
+
let endPos = pos + int32[pos32 + 2] * 40;
|
|
6009
5942
|
for (; pos !== endPos; ) {
|
|
6010
5943
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
6011
5944
|
pos += 40;
|
|
@@ -6014,14 +5947,14 @@ function deserializeVecTSInterfaceHeritage(pos) {
|
|
|
6014
5947
|
}
|
|
6015
5948
|
|
|
6016
5949
|
function deserializeBoxTSInterfaceBody(pos) {
|
|
6017
|
-
return deserializeTSInterfaceBody(
|
|
5950
|
+
return deserializeTSInterfaceBody(int32[pos >> 2]);
|
|
6018
5951
|
}
|
|
6019
5952
|
|
|
6020
5953
|
function deserializeVecTSSignature(pos) {
|
|
6021
5954
|
let arr = [],
|
|
6022
5955
|
pos32 = pos >> 2;
|
|
6023
|
-
pos =
|
|
6024
|
-
let endPos = pos +
|
|
5956
|
+
pos = int32[pos32];
|
|
5957
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
6025
5958
|
for (; pos !== endPos; ) {
|
|
6026
5959
|
arr.push(deserializeTSSignature(pos));
|
|
6027
5960
|
pos += 16;
|
|
@@ -6030,26 +5963,26 @@ function deserializeVecTSSignature(pos) {
|
|
|
6030
5963
|
}
|
|
6031
5964
|
|
|
6032
5965
|
function deserializeBoxTSPropertySignature(pos) {
|
|
6033
|
-
return deserializeTSPropertySignature(
|
|
5966
|
+
return deserializeTSPropertySignature(int32[pos >> 2]);
|
|
6034
5967
|
}
|
|
6035
5968
|
|
|
6036
5969
|
function deserializeBoxTSCallSignatureDeclaration(pos) {
|
|
6037
|
-
return deserializeTSCallSignatureDeclaration(
|
|
5970
|
+
return deserializeTSCallSignatureDeclaration(int32[pos >> 2]);
|
|
6038
5971
|
}
|
|
6039
5972
|
|
|
6040
5973
|
function deserializeBoxTSConstructSignatureDeclaration(pos) {
|
|
6041
|
-
return deserializeTSConstructSignatureDeclaration(
|
|
5974
|
+
return deserializeTSConstructSignatureDeclaration(int32[pos >> 2]);
|
|
6042
5975
|
}
|
|
6043
5976
|
|
|
6044
5977
|
function deserializeBoxTSMethodSignature(pos) {
|
|
6045
|
-
return deserializeTSMethodSignature(
|
|
5978
|
+
return deserializeTSMethodSignature(int32[pos >> 2]);
|
|
6046
5979
|
}
|
|
6047
5980
|
|
|
6048
5981
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
6049
5982
|
let arr = [],
|
|
6050
5983
|
pos32 = pos >> 2;
|
|
6051
|
-
pos =
|
|
6052
|
-
let endPos = pos +
|
|
5984
|
+
pos = int32[pos32];
|
|
5985
|
+
let endPos = pos + int32[pos32 + 2] * 40;
|
|
6053
5986
|
for (; pos !== endPos; ) {
|
|
6054
5987
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
6055
5988
|
pos += 40;
|
|
@@ -6062,15 +5995,15 @@ function deserializeOptionTSModuleDeclarationBody(pos) {
|
|
|
6062
5995
|
}
|
|
6063
5996
|
|
|
6064
5997
|
function deserializeBoxTSModuleBlock(pos) {
|
|
6065
|
-
return deserializeTSModuleBlock(
|
|
5998
|
+
return deserializeTSModuleBlock(int32[pos >> 2]);
|
|
6066
5999
|
}
|
|
6067
6000
|
|
|
6068
6001
|
function deserializeBoxTSTypeParameter(pos) {
|
|
6069
|
-
return deserializeTSTypeParameter(
|
|
6002
|
+
return deserializeTSTypeParameter(int32[pos >> 2]);
|
|
6070
6003
|
}
|
|
6071
6004
|
|
|
6072
6005
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6073
|
-
return
|
|
6006
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
6074
6007
|
? null
|
|
6075
6008
|
: deserializeBoxObjectExpression(pos);
|
|
6076
6009
|
}
|
|
@@ -6080,7 +6013,7 @@ function deserializeOptionTSImportTypeQualifier(pos) {
|
|
|
6080
6013
|
}
|
|
6081
6014
|
|
|
6082
6015
|
function deserializeBoxTSImportTypeQualifiedName(pos) {
|
|
6083
|
-
return deserializeTSImportTypeQualifiedName(
|
|
6016
|
+
return deserializeTSImportTypeQualifiedName(int32[pos >> 2]);
|
|
6084
6017
|
}
|
|
6085
6018
|
|
|
6086
6019
|
function deserializeOptionTSMappedTypeModifierOperator(pos) {
|
|
@@ -6088,15 +6021,15 @@ function deserializeOptionTSMappedTypeModifierOperator(pos) {
|
|
|
6088
6021
|
}
|
|
6089
6022
|
|
|
6090
6023
|
function deserializeBoxTSExternalModuleReference(pos) {
|
|
6091
|
-
return deserializeTSExternalModuleReference(
|
|
6024
|
+
return deserializeTSExternalModuleReference(int32[pos >> 2]);
|
|
6092
6025
|
}
|
|
6093
6026
|
|
|
6094
|
-
function
|
|
6095
|
-
return
|
|
6027
|
+
function deserializeI32(pos) {
|
|
6028
|
+
return int32[pos >> 2];
|
|
6096
6029
|
}
|
|
6097
6030
|
|
|
6098
6031
|
function deserializeOptionNameSpan(pos) {
|
|
6099
|
-
return
|
|
6032
|
+
return int32[(pos >> 2) + 2] === 0 && int32[(pos >> 2) + 3] === 0
|
|
6100
6033
|
? null
|
|
6101
6034
|
: deserializeNameSpan(pos);
|
|
6102
6035
|
}
|
|
@@ -6104,8 +6037,8 @@ function deserializeOptionNameSpan(pos) {
|
|
|
6104
6037
|
function deserializeVecError(pos) {
|
|
6105
6038
|
let arr = [],
|
|
6106
6039
|
pos32 = pos >> 2;
|
|
6107
|
-
pos =
|
|
6108
|
-
let endPos = pos +
|
|
6040
|
+
pos = int32[pos32];
|
|
6041
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
6109
6042
|
for (; pos !== endPos; ) {
|
|
6110
6043
|
arr.push(deserializeError(pos));
|
|
6111
6044
|
pos += 80;
|
|
@@ -6116,8 +6049,8 @@ function deserializeVecError(pos) {
|
|
|
6116
6049
|
function deserializeVecErrorLabel(pos) {
|
|
6117
6050
|
let arr = [],
|
|
6118
6051
|
pos32 = pos >> 2;
|
|
6119
|
-
pos =
|
|
6120
|
-
let endPos = pos +
|
|
6052
|
+
pos = int32[pos32];
|
|
6053
|
+
let endPos = pos + int32[pos32 + 2] * 24;
|
|
6121
6054
|
for (; pos !== endPos; ) {
|
|
6122
6055
|
arr.push(deserializeErrorLabel(pos));
|
|
6123
6056
|
pos += 24;
|
|
@@ -6128,8 +6061,8 @@ function deserializeVecErrorLabel(pos) {
|
|
|
6128
6061
|
function deserializeVecStaticImport(pos) {
|
|
6129
6062
|
let arr = [],
|
|
6130
6063
|
pos32 = pos >> 2;
|
|
6131
|
-
pos =
|
|
6132
|
-
let endPos = pos +
|
|
6064
|
+
pos = int32[pos32];
|
|
6065
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
6133
6066
|
for (; pos !== endPos; ) {
|
|
6134
6067
|
arr.push(deserializeStaticImport(pos));
|
|
6135
6068
|
pos += 56;
|
|
@@ -6140,8 +6073,8 @@ function deserializeVecStaticImport(pos) {
|
|
|
6140
6073
|
function deserializeVecStaticExport(pos) {
|
|
6141
6074
|
let arr = [],
|
|
6142
6075
|
pos32 = pos >> 2;
|
|
6143
|
-
pos =
|
|
6144
|
-
let endPos = pos +
|
|
6076
|
+
pos = int32[pos32];
|
|
6077
|
+
let endPos = pos + (int32[pos32 + 2] << 5);
|
|
6145
6078
|
for (; pos !== endPos; ) {
|
|
6146
6079
|
arr.push(deserializeStaticExport(pos));
|
|
6147
6080
|
pos += 32;
|
|
@@ -6152,8 +6085,8 @@ function deserializeVecStaticExport(pos) {
|
|
|
6152
6085
|
function deserializeVecDynamicImport(pos) {
|
|
6153
6086
|
let arr = [],
|
|
6154
6087
|
pos32 = pos >> 2;
|
|
6155
|
-
pos =
|
|
6156
|
-
let endPos = pos +
|
|
6088
|
+
pos = int32[pos32];
|
|
6089
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
6157
6090
|
for (; pos !== endPos; ) {
|
|
6158
6091
|
arr.push(deserializeDynamicImport(pos));
|
|
6159
6092
|
pos += 16;
|
|
@@ -6164,8 +6097,8 @@ function deserializeVecDynamicImport(pos) {
|
|
|
6164
6097
|
function deserializeVecSpan(pos) {
|
|
6165
6098
|
let arr = [],
|
|
6166
6099
|
pos32 = pos >> 2;
|
|
6167
|
-
pos =
|
|
6168
|
-
let endPos = pos +
|
|
6100
|
+
pos = int32[pos32];
|
|
6101
|
+
let endPos = pos + (int32[pos32 + 2] << 3);
|
|
6169
6102
|
for (; pos !== endPos; ) {
|
|
6170
6103
|
arr.push(deserializeSpan(pos));
|
|
6171
6104
|
pos += 8;
|
|
@@ -6176,8 +6109,8 @@ function deserializeVecSpan(pos) {
|
|
|
6176
6109
|
function deserializeVecImportEntry(pos) {
|
|
6177
6110
|
let arr = [],
|
|
6178
6111
|
pos32 = pos >> 2;
|
|
6179
|
-
pos =
|
|
6180
|
-
let endPos = pos +
|
|
6112
|
+
pos = int32[pos32];
|
|
6113
|
+
let endPos = pos + int32[pos32 + 2] * 96;
|
|
6181
6114
|
for (; pos !== endPos; ) {
|
|
6182
6115
|
arr.push(deserializeImportEntry(pos));
|
|
6183
6116
|
pos += 96;
|
|
@@ -6188,8 +6121,8 @@ function deserializeVecImportEntry(pos) {
|
|
|
6188
6121
|
function deserializeVecExportEntry(pos) {
|
|
6189
6122
|
let arr = [],
|
|
6190
6123
|
pos32 = pos >> 2;
|
|
6191
|
-
pos =
|
|
6192
|
-
let endPos = pos +
|
|
6124
|
+
pos = int32[pos32];
|
|
6125
|
+
let endPos = pos + int32[pos32 + 2] * 144;
|
|
6193
6126
|
for (; pos !== endPos; ) {
|
|
6194
6127
|
arr.push(deserializeExportEntry(pos));
|
|
6195
6128
|
pos += 144;
|