oxc-parser 0.123.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 +28 -28
- package/src-js/bindings.js +52 -52
- package/src-js/generated/constants.js +3 -3
- package/src-js/generated/deserialize/js.js +829 -817
- package/src-js/generated/deserialize/js_range.js +833 -830
- package/src-js/generated/deserialize/ts.js +869 -891
- package/src-js/generated/deserialize/ts_range.js +894 -928
- 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
|
@@ -1,36 +1,51 @@
|
|
|
1
1
|
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
2
2
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer.rs`.
|
|
3
3
|
|
|
4
|
-
let uint8,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
let uint8,
|
|
5
|
+
int32,
|
|
6
|
+
float64,
|
|
7
|
+
sourceText,
|
|
8
|
+
sourceTextLatin,
|
|
9
|
+
sourceEndPos = 0,
|
|
10
|
+
firstNonAsciiPos = 0;
|
|
11
|
+
|
|
12
|
+
const { fromCharCode } = String,
|
|
13
|
+
{ utf8Slice, latin1Slice } = Buffer.prototype,
|
|
14
|
+
stringDecodeArrays = Array(65).fill(null);
|
|
15
|
+
for (let i = 0; i <= 64; i++) stringDecodeArrays[i] = Array(i).fill(0);
|
|
9
16
|
|
|
10
17
|
export function deserialize(buffer, sourceText, sourceByteLen) {
|
|
11
18
|
sourceEndPos = sourceByteLen;
|
|
12
|
-
|
|
13
|
-
resetBuffer();
|
|
14
|
-
return data;
|
|
19
|
+
return deserializeWith(buffer, sourceText, sourceByteLen, deserializeRawTransferData);
|
|
15
20
|
}
|
|
16
21
|
|
|
17
|
-
function deserializeWith(buffer, sourceTextInput, sourceByteLen,
|
|
22
|
+
function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
|
|
18
23
|
uint8 = buffer;
|
|
19
|
-
|
|
24
|
+
int32 = buffer.int32;
|
|
20
25
|
float64 = buffer.float64;
|
|
21
26
|
sourceText = sourceTextInput;
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
if (sourceText.length === sourceByteLen) {
|
|
28
|
+
firstNonAsciiPos = sourceByteLen;
|
|
29
|
+
sourceTextLatin = sourceText;
|
|
30
|
+
} else {
|
|
31
|
+
let i = 0;
|
|
32
|
+
for (; i < sourceByteLen && uint8[i] < 128; i++);
|
|
33
|
+
firstNonAsciiPos = i;
|
|
34
|
+
sourceTextLatin = latin1Slice.call(uint8, 0, sourceByteLen);
|
|
35
|
+
}
|
|
36
|
+
let data = deserialize(int32[536870900]);
|
|
37
|
+
resetBuffer();
|
|
38
|
+
return data;
|
|
24
39
|
}
|
|
25
40
|
|
|
26
41
|
export function resetBuffer() {
|
|
27
|
-
// Clear buffer and source text
|
|
28
|
-
uint8 =
|
|
42
|
+
// Clear buffer and source text strings to allow them to be garbage collected
|
|
43
|
+
uint8 = int32 = float64 = sourceText = sourceTextLatin = void 0;
|
|
29
44
|
}
|
|
30
45
|
|
|
31
46
|
function deserializeProgram(pos) {
|
|
32
|
-
let start =
|
|
33
|
-
end =
|
|
47
|
+
let start = deserializeI32(pos),
|
|
48
|
+
end = deserializeI32(pos + 4),
|
|
34
49
|
program = {
|
|
35
50
|
type: "Program",
|
|
36
51
|
body: null,
|
|
@@ -143,8 +158,8 @@ function deserializeIdentifierName(pos) {
|
|
|
143
158
|
return {
|
|
144
159
|
type: "Identifier",
|
|
145
160
|
name: deserializeStr(pos + 16),
|
|
146
|
-
start: (start =
|
|
147
|
-
end: (end =
|
|
161
|
+
start: (start = deserializeI32(pos)),
|
|
162
|
+
end: (end = deserializeI32(pos + 4)),
|
|
148
163
|
range: [start, end],
|
|
149
164
|
};
|
|
150
165
|
}
|
|
@@ -154,8 +169,8 @@ function deserializeIdentifierReference(pos) {
|
|
|
154
169
|
return {
|
|
155
170
|
type: "Identifier",
|
|
156
171
|
name: deserializeStr(pos + 16),
|
|
157
|
-
start: (start =
|
|
158
|
-
end: (end =
|
|
172
|
+
start: (start = deserializeI32(pos)),
|
|
173
|
+
end: (end = deserializeI32(pos + 4)),
|
|
159
174
|
range: [start, end],
|
|
160
175
|
};
|
|
161
176
|
}
|
|
@@ -165,8 +180,8 @@ function deserializeBindingIdentifier(pos) {
|
|
|
165
180
|
return {
|
|
166
181
|
type: "Identifier",
|
|
167
182
|
name: deserializeStr(pos + 16),
|
|
168
|
-
start: (start =
|
|
169
|
-
end: (end =
|
|
183
|
+
start: (start = deserializeI32(pos)),
|
|
184
|
+
end: (end = deserializeI32(pos + 4)),
|
|
170
185
|
range: [start, end],
|
|
171
186
|
};
|
|
172
187
|
}
|
|
@@ -176,8 +191,8 @@ function deserializeLabelIdentifier(pos) {
|
|
|
176
191
|
return {
|
|
177
192
|
type: "Identifier",
|
|
178
193
|
name: deserializeStr(pos + 16),
|
|
179
|
-
start: (start =
|
|
180
|
-
end: (end =
|
|
194
|
+
start: (start = deserializeI32(pos)),
|
|
195
|
+
end: (end = deserializeI32(pos + 4)),
|
|
181
196
|
range: [start, end],
|
|
182
197
|
};
|
|
183
198
|
}
|
|
@@ -186,8 +201,8 @@ function deserializeThisExpression(pos) {
|
|
|
186
201
|
let start, end;
|
|
187
202
|
return {
|
|
188
203
|
type: "ThisExpression",
|
|
189
|
-
start: (start =
|
|
190
|
-
end: (end =
|
|
204
|
+
start: (start = deserializeI32(pos)),
|
|
205
|
+
end: (end = deserializeI32(pos + 4)),
|
|
191
206
|
range: [start, end],
|
|
192
207
|
};
|
|
193
208
|
}
|
|
@@ -198,8 +213,8 @@ function deserializeArrayExpression(pos) {
|
|
|
198
213
|
node = {
|
|
199
214
|
type: "ArrayExpression",
|
|
200
215
|
elements: null,
|
|
201
|
-
start: (start =
|
|
202
|
-
end: (end =
|
|
216
|
+
start: (start = deserializeI32(pos)),
|
|
217
|
+
end: (end = deserializeI32(pos + 4)),
|
|
203
218
|
range: [start, end],
|
|
204
219
|
};
|
|
205
220
|
node.elements = deserializeVecArrayExpressionElement(pos + 16);
|
|
@@ -313,8 +328,8 @@ function deserializeObjectExpression(pos) {
|
|
|
313
328
|
node = {
|
|
314
329
|
type: "ObjectExpression",
|
|
315
330
|
properties: null,
|
|
316
|
-
start: (start =
|
|
317
|
-
end: (end =
|
|
331
|
+
start: (start = deserializeI32(pos)),
|
|
332
|
+
end: (end = deserializeI32(pos + 4)),
|
|
318
333
|
range: [start, end],
|
|
319
334
|
};
|
|
320
335
|
node.properties = deserializeVecObjectPropertyKind(pos + 16);
|
|
@@ -343,8 +358,8 @@ function deserializeObjectProperty(pos) {
|
|
|
343
358
|
method: deserializeBool(pos + 13),
|
|
344
359
|
shorthand: deserializeBool(pos + 14),
|
|
345
360
|
computed: deserializeBool(pos + 15),
|
|
346
|
-
start: (start =
|
|
347
|
-
end: (end =
|
|
361
|
+
start: (start = deserializeI32(pos)),
|
|
362
|
+
end: (end = deserializeI32(pos + 4)),
|
|
348
363
|
range: [start, end],
|
|
349
364
|
};
|
|
350
365
|
node.key = deserializePropertyKey(pos + 16);
|
|
@@ -469,8 +484,8 @@ function deserializeTemplateLiteral(pos) {
|
|
|
469
484
|
type: "TemplateLiteral",
|
|
470
485
|
quasis: null,
|
|
471
486
|
expressions: null,
|
|
472
|
-
start: (start =
|
|
473
|
-
end: (end =
|
|
487
|
+
start: (start = deserializeI32(pos)),
|
|
488
|
+
end: (end = deserializeI32(pos + 4)),
|
|
474
489
|
range: [start, end],
|
|
475
490
|
};
|
|
476
491
|
node.quasis = deserializeVecTemplateElement(pos + 16);
|
|
@@ -485,8 +500,8 @@ function deserializeTaggedTemplateExpression(pos) {
|
|
|
485
500
|
type: "TaggedTemplateExpression",
|
|
486
501
|
tag: null,
|
|
487
502
|
quasi: null,
|
|
488
|
-
start: (start =
|
|
489
|
-
end: (end =
|
|
503
|
+
start: (start = deserializeI32(pos)),
|
|
504
|
+
end: (end = deserializeI32(pos + 4)),
|
|
490
505
|
range: [start, end],
|
|
491
506
|
};
|
|
492
507
|
node.tag = deserializeExpression(pos + 16);
|
|
@@ -496,8 +511,8 @@ function deserializeTaggedTemplateExpression(pos) {
|
|
|
496
511
|
|
|
497
512
|
function deserializeTemplateElement(pos) {
|
|
498
513
|
let tail = deserializeBool(pos + 12),
|
|
499
|
-
start =
|
|
500
|
-
end =
|
|
514
|
+
start = deserializeI32(pos),
|
|
515
|
+
end = deserializeI32(pos + 4),
|
|
501
516
|
value = deserializeTemplateElementValue(pos + 16);
|
|
502
517
|
value.cooked !== null &&
|
|
503
518
|
deserializeBool(pos + 13) &&
|
|
@@ -529,14 +544,13 @@ function deserializeComputedMemberExpression(pos) {
|
|
|
529
544
|
object: null,
|
|
530
545
|
property: null,
|
|
531
546
|
optional: deserializeBool(pos + 12),
|
|
532
|
-
computed:
|
|
533
|
-
start: (start =
|
|
534
|
-
end: (end =
|
|
547
|
+
computed: true,
|
|
548
|
+
start: (start = deserializeI32(pos)),
|
|
549
|
+
end: (end = deserializeI32(pos + 4)),
|
|
535
550
|
range: [start, end],
|
|
536
551
|
};
|
|
537
552
|
node.object = deserializeExpression(pos + 16);
|
|
538
553
|
node.property = deserializeExpression(pos + 32);
|
|
539
|
-
node.computed = true;
|
|
540
554
|
return node;
|
|
541
555
|
}
|
|
542
556
|
|
|
@@ -548,14 +562,13 @@ function deserializeStaticMemberExpression(pos) {
|
|
|
548
562
|
object: null,
|
|
549
563
|
property: null,
|
|
550
564
|
optional: deserializeBool(pos + 12),
|
|
551
|
-
computed:
|
|
552
|
-
start: (start =
|
|
553
|
-
end: (end =
|
|
565
|
+
computed: false,
|
|
566
|
+
start: (start = deserializeI32(pos)),
|
|
567
|
+
end: (end = deserializeI32(pos + 4)),
|
|
554
568
|
range: [start, end],
|
|
555
569
|
};
|
|
556
570
|
node.object = deserializeExpression(pos + 16);
|
|
557
571
|
node.property = deserializeIdentifierName(pos + 32);
|
|
558
|
-
node.computed = false;
|
|
559
572
|
return node;
|
|
560
573
|
}
|
|
561
574
|
|
|
@@ -567,14 +580,13 @@ function deserializePrivateFieldExpression(pos) {
|
|
|
567
580
|
object: null,
|
|
568
581
|
property: null,
|
|
569
582
|
optional: deserializeBool(pos + 12),
|
|
570
|
-
computed:
|
|
571
|
-
start: (start =
|
|
572
|
-
end: (end =
|
|
583
|
+
computed: false,
|
|
584
|
+
start: (start = deserializeI32(pos)),
|
|
585
|
+
end: (end = deserializeI32(pos + 4)),
|
|
573
586
|
range: [start, end],
|
|
574
587
|
};
|
|
575
588
|
node.object = deserializeExpression(pos + 16);
|
|
576
589
|
node.property = deserializePrivateIdentifier(pos + 32);
|
|
577
|
-
node.computed = false;
|
|
578
590
|
return node;
|
|
579
591
|
}
|
|
580
592
|
|
|
@@ -586,8 +598,8 @@ function deserializeCallExpression(pos) {
|
|
|
586
598
|
callee: null,
|
|
587
599
|
arguments: null,
|
|
588
600
|
optional: deserializeBool(pos + 12),
|
|
589
|
-
start: (start =
|
|
590
|
-
end: (end =
|
|
601
|
+
start: (start = deserializeI32(pos)),
|
|
602
|
+
end: (end = deserializeI32(pos + 4)),
|
|
591
603
|
range: [start, end],
|
|
592
604
|
};
|
|
593
605
|
node.callee = deserializeExpression(pos + 16);
|
|
@@ -602,8 +614,8 @@ function deserializeNewExpression(pos) {
|
|
|
602
614
|
type: "NewExpression",
|
|
603
615
|
callee: null,
|
|
604
616
|
arguments: null,
|
|
605
|
-
start: (start =
|
|
606
|
-
end: (end =
|
|
617
|
+
start: (start = deserializeI32(pos)),
|
|
618
|
+
end: (end = deserializeI32(pos + 4)),
|
|
607
619
|
range: [start, end],
|
|
608
620
|
};
|
|
609
621
|
node.callee = deserializeExpression(pos + 16);
|
|
@@ -618,8 +630,8 @@ function deserializeMetaProperty(pos) {
|
|
|
618
630
|
type: "MetaProperty",
|
|
619
631
|
meta: null,
|
|
620
632
|
property: null,
|
|
621
|
-
start: (start =
|
|
622
|
-
end: (end =
|
|
633
|
+
start: (start = deserializeI32(pos)),
|
|
634
|
+
end: (end = deserializeI32(pos + 4)),
|
|
623
635
|
range: [start, end],
|
|
624
636
|
};
|
|
625
637
|
node.meta = deserializeIdentifierName(pos + 16);
|
|
@@ -633,8 +645,8 @@ function deserializeSpreadElement(pos) {
|
|
|
633
645
|
node = {
|
|
634
646
|
type: "SpreadElement",
|
|
635
647
|
argument: null,
|
|
636
|
-
start: (start =
|
|
637
|
-
end: (end =
|
|
648
|
+
start: (start = deserializeI32(pos)),
|
|
649
|
+
end: (end = deserializeI32(pos + 4)),
|
|
638
650
|
range: [start, end],
|
|
639
651
|
};
|
|
640
652
|
node.argument = deserializeExpression(pos + 16);
|
|
@@ -744,8 +756,8 @@ function deserializeUpdateExpression(pos) {
|
|
|
744
756
|
operator: deserializeUpdateOperator(pos + 12),
|
|
745
757
|
prefix: deserializeBool(pos + 13),
|
|
746
758
|
argument: null,
|
|
747
|
-
start: (start =
|
|
748
|
-
end: (end =
|
|
759
|
+
start: (start = deserializeI32(pos)),
|
|
760
|
+
end: (end = deserializeI32(pos + 4)),
|
|
749
761
|
range: [start, end],
|
|
750
762
|
};
|
|
751
763
|
node.argument = deserializeSimpleAssignmentTarget(pos + 16);
|
|
@@ -759,13 +771,12 @@ function deserializeUnaryExpression(pos) {
|
|
|
759
771
|
type: "UnaryExpression",
|
|
760
772
|
operator: deserializeUnaryOperator(pos + 12),
|
|
761
773
|
argument: null,
|
|
762
|
-
prefix:
|
|
763
|
-
start: (start =
|
|
764
|
-
end: (end =
|
|
774
|
+
prefix: true,
|
|
775
|
+
start: (start = deserializeI32(pos)),
|
|
776
|
+
end: (end = deserializeI32(pos + 4)),
|
|
765
777
|
range: [start, end],
|
|
766
778
|
};
|
|
767
779
|
node.argument = deserializeExpression(pos + 16);
|
|
768
|
-
node.prefix = true;
|
|
769
780
|
return node;
|
|
770
781
|
}
|
|
771
782
|
|
|
@@ -777,8 +788,8 @@ function deserializeBinaryExpression(pos) {
|
|
|
777
788
|
left: null,
|
|
778
789
|
operator: deserializeBinaryOperator(pos + 12),
|
|
779
790
|
right: null,
|
|
780
|
-
start: (start =
|
|
781
|
-
end: (end =
|
|
791
|
+
start: (start = deserializeI32(pos)),
|
|
792
|
+
end: (end = deserializeI32(pos + 4)),
|
|
782
793
|
range: [start, end],
|
|
783
794
|
};
|
|
784
795
|
node.left = deserializeExpression(pos + 16);
|
|
@@ -792,14 +803,13 @@ function deserializePrivateInExpression(pos) {
|
|
|
792
803
|
node = {
|
|
793
804
|
type: "BinaryExpression",
|
|
794
805
|
left: null,
|
|
795
|
-
operator:
|
|
806
|
+
operator: "in",
|
|
796
807
|
right: null,
|
|
797
|
-
start: (start =
|
|
798
|
-
end: (end =
|
|
808
|
+
start: (start = deserializeI32(pos)),
|
|
809
|
+
end: (end = deserializeI32(pos + 4)),
|
|
799
810
|
range: [start, end],
|
|
800
811
|
};
|
|
801
812
|
node.left = deserializePrivateIdentifier(pos + 16);
|
|
802
|
-
node.operator = "in";
|
|
803
813
|
node.right = deserializeExpression(pos + 48);
|
|
804
814
|
return node;
|
|
805
815
|
}
|
|
@@ -812,8 +822,8 @@ function deserializeLogicalExpression(pos) {
|
|
|
812
822
|
left: null,
|
|
813
823
|
operator: deserializeLogicalOperator(pos + 12),
|
|
814
824
|
right: null,
|
|
815
|
-
start: (start =
|
|
816
|
-
end: (end =
|
|
825
|
+
start: (start = deserializeI32(pos)),
|
|
826
|
+
end: (end = deserializeI32(pos + 4)),
|
|
817
827
|
range: [start, end],
|
|
818
828
|
};
|
|
819
829
|
node.left = deserializeExpression(pos + 16);
|
|
@@ -829,8 +839,8 @@ function deserializeConditionalExpression(pos) {
|
|
|
829
839
|
test: null,
|
|
830
840
|
consequent: null,
|
|
831
841
|
alternate: null,
|
|
832
|
-
start: (start =
|
|
833
|
-
end: (end =
|
|
842
|
+
start: (start = deserializeI32(pos)),
|
|
843
|
+
end: (end = deserializeI32(pos + 4)),
|
|
834
844
|
range: [start, end],
|
|
835
845
|
};
|
|
836
846
|
node.test = deserializeExpression(pos + 16);
|
|
@@ -847,8 +857,8 @@ function deserializeAssignmentExpression(pos) {
|
|
|
847
857
|
operator: deserializeAssignmentOperator(pos + 12),
|
|
848
858
|
left: null,
|
|
849
859
|
right: null,
|
|
850
|
-
start: (start =
|
|
851
|
-
end: (end =
|
|
860
|
+
start: (start = deserializeI32(pos)),
|
|
861
|
+
end: (end = deserializeI32(pos + 4)),
|
|
852
862
|
range: [start, end],
|
|
853
863
|
};
|
|
854
864
|
node.left = deserializeAssignmentTarget(pos + 16);
|
|
@@ -912,8 +922,8 @@ function deserializeArrayAssignmentTarget(pos) {
|
|
|
912
922
|
node = {
|
|
913
923
|
type: "ArrayPattern",
|
|
914
924
|
elements: null,
|
|
915
|
-
start: (start =
|
|
916
|
-
end: (end =
|
|
925
|
+
start: (start = deserializeI32(pos)),
|
|
926
|
+
end: (end = deserializeI32(pos + 4)),
|
|
917
927
|
range: [start, end],
|
|
918
928
|
},
|
|
919
929
|
elements = deserializeVecOptionAssignmentTargetMaybeDefault(pos + 16),
|
|
@@ -929,8 +939,8 @@ function deserializeObjectAssignmentTarget(pos) {
|
|
|
929
939
|
node = {
|
|
930
940
|
type: "ObjectPattern",
|
|
931
941
|
properties: null,
|
|
932
|
-
start: (start =
|
|
933
|
-
end: (end =
|
|
942
|
+
start: (start = deserializeI32(pos)),
|
|
943
|
+
end: (end = deserializeI32(pos + 4)),
|
|
934
944
|
range: [start, end],
|
|
935
945
|
},
|
|
936
946
|
properties = deserializeVecAssignmentTargetProperty(pos + 16),
|
|
@@ -946,8 +956,8 @@ function deserializeAssignmentTargetRest(pos) {
|
|
|
946
956
|
node = {
|
|
947
957
|
type: "RestElement",
|
|
948
958
|
argument: null,
|
|
949
|
-
start: (start =
|
|
950
|
-
end: (end =
|
|
959
|
+
start: (start = deserializeI32(pos)),
|
|
960
|
+
end: (end = deserializeI32(pos + 4)),
|
|
951
961
|
range: [start, end],
|
|
952
962
|
};
|
|
953
963
|
node.argument = deserializeAssignmentTarget(pos + 16);
|
|
@@ -990,8 +1000,8 @@ function deserializeAssignmentTargetWithDefault(pos) {
|
|
|
990
1000
|
type: "AssignmentPattern",
|
|
991
1001
|
left: null,
|
|
992
1002
|
right: null,
|
|
993
|
-
start: (start =
|
|
994
|
-
end: (end =
|
|
1003
|
+
start: (start = deserializeI32(pos)),
|
|
1004
|
+
end: (end = deserializeI32(pos + 4)),
|
|
995
1005
|
range: [start, end],
|
|
996
1006
|
};
|
|
997
1007
|
node.left = deserializeAssignmentTarget(pos + 16);
|
|
@@ -1011,16 +1021,16 @@ function deserializeAssignmentTargetProperty(pos) {
|
|
|
1011
1021
|
}
|
|
1012
1022
|
|
|
1013
1023
|
function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
1014
|
-
let start =
|
|
1015
|
-
end =
|
|
1024
|
+
let start = deserializeI32(pos),
|
|
1025
|
+
end = deserializeI32(pos + 4),
|
|
1016
1026
|
node = {
|
|
1017
1027
|
type: "Property",
|
|
1018
|
-
kind:
|
|
1028
|
+
kind: "init",
|
|
1019
1029
|
key: null,
|
|
1020
1030
|
value: null,
|
|
1021
|
-
method:
|
|
1022
|
-
shorthand:
|
|
1023
|
-
computed:
|
|
1031
|
+
method: false,
|
|
1032
|
+
shorthand: true,
|
|
1033
|
+
computed: false,
|
|
1024
1034
|
start,
|
|
1025
1035
|
end,
|
|
1026
1036
|
range: [start, end],
|
|
@@ -1045,12 +1055,8 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
1045
1055
|
end,
|
|
1046
1056
|
range: [start, end],
|
|
1047
1057
|
});
|
|
1048
|
-
node.kind = "init";
|
|
1049
1058
|
node.key = key;
|
|
1050
1059
|
node.value = value;
|
|
1051
|
-
node.method = false;
|
|
1052
|
-
node.shorthand = true;
|
|
1053
|
-
node.computed = false;
|
|
1054
1060
|
return node;
|
|
1055
1061
|
}
|
|
1056
1062
|
|
|
@@ -1059,21 +1065,18 @@ function deserializeAssignmentTargetPropertyProperty(pos) {
|
|
|
1059
1065
|
end,
|
|
1060
1066
|
node = {
|
|
1061
1067
|
type: "Property",
|
|
1062
|
-
kind:
|
|
1068
|
+
kind: "init",
|
|
1063
1069
|
key: null,
|
|
1064
1070
|
value: null,
|
|
1065
|
-
method:
|
|
1066
|
-
shorthand:
|
|
1071
|
+
method: false,
|
|
1072
|
+
shorthand: false,
|
|
1067
1073
|
computed: deserializeBool(pos + 12),
|
|
1068
|
-
start: (start =
|
|
1069
|
-
end: (end =
|
|
1074
|
+
start: (start = deserializeI32(pos)),
|
|
1075
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1070
1076
|
range: [start, end],
|
|
1071
1077
|
};
|
|
1072
|
-
node.kind = "init";
|
|
1073
1078
|
node.key = deserializePropertyKey(pos + 16);
|
|
1074
1079
|
node.value = deserializeAssignmentTargetMaybeDefault(pos + 32);
|
|
1075
|
-
node.method = false;
|
|
1076
|
-
node.shorthand = false;
|
|
1077
1080
|
return node;
|
|
1078
1081
|
}
|
|
1079
1082
|
|
|
@@ -1083,8 +1086,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1083
1086
|
node = {
|
|
1084
1087
|
type: "SequenceExpression",
|
|
1085
1088
|
expressions: null,
|
|
1086
|
-
start: (start =
|
|
1087
|
-
end: (end =
|
|
1089
|
+
start: (start = deserializeI32(pos)),
|
|
1090
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1088
1091
|
range: [start, end],
|
|
1089
1092
|
};
|
|
1090
1093
|
node.expressions = deserializeVecExpression(pos + 16);
|
|
@@ -1095,8 +1098,8 @@ function deserializeSuper(pos) {
|
|
|
1095
1098
|
let start, end;
|
|
1096
1099
|
return {
|
|
1097
1100
|
type: "Super",
|
|
1098
|
-
start: (start =
|
|
1099
|
-
end: (end =
|
|
1101
|
+
start: (start = deserializeI32(pos)),
|
|
1102
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1100
1103
|
range: [start, end],
|
|
1101
1104
|
};
|
|
1102
1105
|
}
|
|
@@ -1107,8 +1110,8 @@ function deserializeAwaitExpression(pos) {
|
|
|
1107
1110
|
node = {
|
|
1108
1111
|
type: "AwaitExpression",
|
|
1109
1112
|
argument: null,
|
|
1110
|
-
start: (start =
|
|
1111
|
-
end: (end =
|
|
1113
|
+
start: (start = deserializeI32(pos)),
|
|
1114
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1112
1115
|
range: [start, end],
|
|
1113
1116
|
};
|
|
1114
1117
|
node.argument = deserializeExpression(pos + 16);
|
|
@@ -1121,8 +1124,8 @@ function deserializeChainExpression(pos) {
|
|
|
1121
1124
|
node = {
|
|
1122
1125
|
type: "ChainExpression",
|
|
1123
1126
|
expression: null,
|
|
1124
|
-
start: (start =
|
|
1125
|
-
end: (end =
|
|
1127
|
+
start: (start = deserializeI32(pos)),
|
|
1128
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1126
1129
|
range: [start, end],
|
|
1127
1130
|
};
|
|
1128
1131
|
node.expression = deserializeChainElement(pos + 16);
|
|
@@ -1153,8 +1156,8 @@ function deserializeParenthesizedExpression(pos) {
|
|
|
1153
1156
|
node = {
|
|
1154
1157
|
type: "ParenthesizedExpression",
|
|
1155
1158
|
expression: null,
|
|
1156
|
-
start: (start =
|
|
1157
|
-
end: (end =
|
|
1159
|
+
start: (start = deserializeI32(pos)),
|
|
1160
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1158
1161
|
range: [start, end],
|
|
1159
1162
|
};
|
|
1160
1163
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -1242,8 +1245,8 @@ function deserializeDirective(pos) {
|
|
|
1242
1245
|
type: "ExpressionStatement",
|
|
1243
1246
|
expression: null,
|
|
1244
1247
|
directive: deserializeStr(pos + 64),
|
|
1245
|
-
start: (start =
|
|
1246
|
-
end: (end =
|
|
1248
|
+
start: (start = deserializeI32(pos)),
|
|
1249
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1247
1250
|
range: [start, end],
|
|
1248
1251
|
};
|
|
1249
1252
|
node.expression = deserializeStringLiteral(pos + 16);
|
|
@@ -1255,8 +1258,8 @@ function deserializeHashbang(pos) {
|
|
|
1255
1258
|
return {
|
|
1256
1259
|
type: "Hashbang",
|
|
1257
1260
|
value: deserializeStr(pos + 16),
|
|
1258
|
-
start: (start =
|
|
1259
|
-
end: (end =
|
|
1261
|
+
start: (start = deserializeI32(pos)),
|
|
1262
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1260
1263
|
range: [start, end],
|
|
1261
1264
|
};
|
|
1262
1265
|
}
|
|
@@ -1267,8 +1270,8 @@ function deserializeBlockStatement(pos) {
|
|
|
1267
1270
|
node = {
|
|
1268
1271
|
type: "BlockStatement",
|
|
1269
1272
|
body: null,
|
|
1270
|
-
start: (start =
|
|
1271
|
-
end: (end =
|
|
1273
|
+
start: (start = deserializeI32(pos)),
|
|
1274
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1272
1275
|
range: [start, end],
|
|
1273
1276
|
};
|
|
1274
1277
|
node.body = deserializeVecStatement(pos + 16);
|
|
@@ -1307,8 +1310,8 @@ function deserializeVariableDeclaration(pos) {
|
|
|
1307
1310
|
type: "VariableDeclaration",
|
|
1308
1311
|
kind: deserializeVariableDeclarationKind(pos + 12),
|
|
1309
1312
|
declarations: null,
|
|
1310
|
-
start: (start =
|
|
1311
|
-
end: (end =
|
|
1313
|
+
start: (start = deserializeI32(pos)),
|
|
1314
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1312
1315
|
range: [start, end],
|
|
1313
1316
|
};
|
|
1314
1317
|
node.declarations = deserializeVecVariableDeclarator(pos + 16);
|
|
@@ -1339,8 +1342,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1339
1342
|
type: "VariableDeclarator",
|
|
1340
1343
|
id: null,
|
|
1341
1344
|
init: null,
|
|
1342
|
-
start: (start =
|
|
1343
|
-
end: (end =
|
|
1345
|
+
start: (start = deserializeI32(pos)),
|
|
1346
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1344
1347
|
range: [start, end],
|
|
1345
1348
|
};
|
|
1346
1349
|
node.id = deserializeBindingPattern(pos + 16);
|
|
@@ -1352,8 +1355,8 @@ function deserializeEmptyStatement(pos) {
|
|
|
1352
1355
|
let start, end;
|
|
1353
1356
|
return {
|
|
1354
1357
|
type: "EmptyStatement",
|
|
1355
|
-
start: (start =
|
|
1356
|
-
end: (end =
|
|
1358
|
+
start: (start = deserializeI32(pos)),
|
|
1359
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1357
1360
|
range: [start, end],
|
|
1358
1361
|
};
|
|
1359
1362
|
}
|
|
@@ -1364,8 +1367,8 @@ function deserializeExpressionStatement(pos) {
|
|
|
1364
1367
|
node = {
|
|
1365
1368
|
type: "ExpressionStatement",
|
|
1366
1369
|
expression: null,
|
|
1367
|
-
start: (start =
|
|
1368
|
-
end: (end =
|
|
1370
|
+
start: (start = deserializeI32(pos)),
|
|
1371
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1369
1372
|
range: [start, end],
|
|
1370
1373
|
};
|
|
1371
1374
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -1380,8 +1383,8 @@ function deserializeIfStatement(pos) {
|
|
|
1380
1383
|
test: null,
|
|
1381
1384
|
consequent: null,
|
|
1382
1385
|
alternate: null,
|
|
1383
|
-
start: (start =
|
|
1384
|
-
end: (end =
|
|
1386
|
+
start: (start = deserializeI32(pos)),
|
|
1387
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1385
1388
|
range: [start, end],
|
|
1386
1389
|
};
|
|
1387
1390
|
node.test = deserializeExpression(pos + 16);
|
|
@@ -1397,8 +1400,8 @@ function deserializeDoWhileStatement(pos) {
|
|
|
1397
1400
|
type: "DoWhileStatement",
|
|
1398
1401
|
body: null,
|
|
1399
1402
|
test: null,
|
|
1400
|
-
start: (start =
|
|
1401
|
-
end: (end =
|
|
1403
|
+
start: (start = deserializeI32(pos)),
|
|
1404
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1402
1405
|
range: [start, end],
|
|
1403
1406
|
};
|
|
1404
1407
|
node.body = deserializeStatement(pos + 16);
|
|
@@ -1413,8 +1416,8 @@ function deserializeWhileStatement(pos) {
|
|
|
1413
1416
|
type: "WhileStatement",
|
|
1414
1417
|
test: null,
|
|
1415
1418
|
body: null,
|
|
1416
|
-
start: (start =
|
|
1417
|
-
end: (end =
|
|
1419
|
+
start: (start = deserializeI32(pos)),
|
|
1420
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1418
1421
|
range: [start, end],
|
|
1419
1422
|
};
|
|
1420
1423
|
node.test = deserializeExpression(pos + 16);
|
|
@@ -1431,8 +1434,8 @@ function deserializeForStatement(pos) {
|
|
|
1431
1434
|
test: null,
|
|
1432
1435
|
update: null,
|
|
1433
1436
|
body: null,
|
|
1434
|
-
start: (start =
|
|
1435
|
-
end: (end =
|
|
1437
|
+
start: (start = deserializeI32(pos)),
|
|
1438
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1436
1439
|
range: [start, end],
|
|
1437
1440
|
};
|
|
1438
1441
|
node.init = deserializeOptionForStatementInit(pos + 16);
|
|
@@ -1545,8 +1548,8 @@ function deserializeForInStatement(pos) {
|
|
|
1545
1548
|
left: null,
|
|
1546
1549
|
right: null,
|
|
1547
1550
|
body: null,
|
|
1548
|
-
start: (start =
|
|
1549
|
-
end: (end =
|
|
1551
|
+
start: (start = deserializeI32(pos)),
|
|
1552
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1550
1553
|
range: [start, end],
|
|
1551
1554
|
};
|
|
1552
1555
|
node.left = deserializeForStatementLeft(pos + 16);
|
|
@@ -1593,8 +1596,8 @@ function deserializeForOfStatement(pos) {
|
|
|
1593
1596
|
left: null,
|
|
1594
1597
|
right: null,
|
|
1595
1598
|
body: null,
|
|
1596
|
-
start: (start =
|
|
1597
|
-
end: (end =
|
|
1599
|
+
start: (start = deserializeI32(pos)),
|
|
1600
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1598
1601
|
range: [start, end],
|
|
1599
1602
|
};
|
|
1600
1603
|
node.left = deserializeForStatementLeft(pos + 16);
|
|
@@ -1609,8 +1612,8 @@ function deserializeContinueStatement(pos) {
|
|
|
1609
1612
|
node = {
|
|
1610
1613
|
type: "ContinueStatement",
|
|
1611
1614
|
label: null,
|
|
1612
|
-
start: (start =
|
|
1613
|
-
end: (end =
|
|
1615
|
+
start: (start = deserializeI32(pos)),
|
|
1616
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1614
1617
|
range: [start, end],
|
|
1615
1618
|
};
|
|
1616
1619
|
node.label = deserializeOptionLabelIdentifier(pos + 16);
|
|
@@ -1623,8 +1626,8 @@ function deserializeBreakStatement(pos) {
|
|
|
1623
1626
|
node = {
|
|
1624
1627
|
type: "BreakStatement",
|
|
1625
1628
|
label: null,
|
|
1626
|
-
start: (start =
|
|
1627
|
-
end: (end =
|
|
1629
|
+
start: (start = deserializeI32(pos)),
|
|
1630
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1628
1631
|
range: [start, end],
|
|
1629
1632
|
};
|
|
1630
1633
|
node.label = deserializeOptionLabelIdentifier(pos + 16);
|
|
@@ -1637,8 +1640,8 @@ function deserializeReturnStatement(pos) {
|
|
|
1637
1640
|
node = {
|
|
1638
1641
|
type: "ReturnStatement",
|
|
1639
1642
|
argument: null,
|
|
1640
|
-
start: (start =
|
|
1641
|
-
end: (end =
|
|
1643
|
+
start: (start = deserializeI32(pos)),
|
|
1644
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1642
1645
|
range: [start, end],
|
|
1643
1646
|
};
|
|
1644
1647
|
node.argument = deserializeOptionExpression(pos + 16);
|
|
@@ -1652,8 +1655,8 @@ function deserializeWithStatement(pos) {
|
|
|
1652
1655
|
type: "WithStatement",
|
|
1653
1656
|
object: null,
|
|
1654
1657
|
body: null,
|
|
1655
|
-
start: (start =
|
|
1656
|
-
end: (end =
|
|
1658
|
+
start: (start = deserializeI32(pos)),
|
|
1659
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1657
1660
|
range: [start, end],
|
|
1658
1661
|
};
|
|
1659
1662
|
node.object = deserializeExpression(pos + 16);
|
|
@@ -1668,8 +1671,8 @@ function deserializeSwitchStatement(pos) {
|
|
|
1668
1671
|
type: "SwitchStatement",
|
|
1669
1672
|
discriminant: null,
|
|
1670
1673
|
cases: null,
|
|
1671
|
-
start: (start =
|
|
1672
|
-
end: (end =
|
|
1674
|
+
start: (start = deserializeI32(pos)),
|
|
1675
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1673
1676
|
range: [start, end],
|
|
1674
1677
|
};
|
|
1675
1678
|
node.discriminant = deserializeExpression(pos + 16);
|
|
@@ -1684,8 +1687,8 @@ function deserializeSwitchCase(pos) {
|
|
|
1684
1687
|
type: "SwitchCase",
|
|
1685
1688
|
test: null,
|
|
1686
1689
|
consequent: null,
|
|
1687
|
-
start: (start =
|
|
1688
|
-
end: (end =
|
|
1690
|
+
start: (start = deserializeI32(pos)),
|
|
1691
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1689
1692
|
range: [start, end],
|
|
1690
1693
|
};
|
|
1691
1694
|
node.test = deserializeOptionExpression(pos + 16);
|
|
@@ -1700,8 +1703,8 @@ function deserializeLabeledStatement(pos) {
|
|
|
1700
1703
|
type: "LabeledStatement",
|
|
1701
1704
|
label: null,
|
|
1702
1705
|
body: null,
|
|
1703
|
-
start: (start =
|
|
1704
|
-
end: (end =
|
|
1706
|
+
start: (start = deserializeI32(pos)),
|
|
1707
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1705
1708
|
range: [start, end],
|
|
1706
1709
|
};
|
|
1707
1710
|
node.label = deserializeLabelIdentifier(pos + 16);
|
|
@@ -1715,8 +1718,8 @@ function deserializeThrowStatement(pos) {
|
|
|
1715
1718
|
node = {
|
|
1716
1719
|
type: "ThrowStatement",
|
|
1717
1720
|
argument: null,
|
|
1718
|
-
start: (start =
|
|
1719
|
-
end: (end =
|
|
1721
|
+
start: (start = deserializeI32(pos)),
|
|
1722
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1720
1723
|
range: [start, end],
|
|
1721
1724
|
};
|
|
1722
1725
|
node.argument = deserializeExpression(pos + 16);
|
|
@@ -1731,8 +1734,8 @@ function deserializeTryStatement(pos) {
|
|
|
1731
1734
|
block: null,
|
|
1732
1735
|
handler: null,
|
|
1733
1736
|
finalizer: null,
|
|
1734
|
-
start: (start =
|
|
1735
|
-
end: (end =
|
|
1737
|
+
start: (start = deserializeI32(pos)),
|
|
1738
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1736
1739
|
range: [start, end],
|
|
1737
1740
|
};
|
|
1738
1741
|
node.block = deserializeBoxBlockStatement(pos + 16);
|
|
@@ -1748,8 +1751,8 @@ function deserializeCatchClause(pos) {
|
|
|
1748
1751
|
type: "CatchClause",
|
|
1749
1752
|
param: null,
|
|
1750
1753
|
body: null,
|
|
1751
|
-
start: (start =
|
|
1752
|
-
end: (end =
|
|
1754
|
+
start: (start = deserializeI32(pos)),
|
|
1755
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1753
1756
|
range: [start, end],
|
|
1754
1757
|
};
|
|
1755
1758
|
node.param = deserializeOptionCatchParameter(pos + 16);
|
|
@@ -1765,8 +1768,8 @@ function deserializeDebuggerStatement(pos) {
|
|
|
1765
1768
|
let start, end;
|
|
1766
1769
|
return {
|
|
1767
1770
|
type: "DebuggerStatement",
|
|
1768
|
-
start: (start =
|
|
1769
|
-
end: (end =
|
|
1771
|
+
start: (start = deserializeI32(pos)),
|
|
1772
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1770
1773
|
range: [start, end],
|
|
1771
1774
|
};
|
|
1772
1775
|
}
|
|
@@ -1793,8 +1796,8 @@ function deserializeAssignmentPattern(pos) {
|
|
|
1793
1796
|
type: "AssignmentPattern",
|
|
1794
1797
|
left: null,
|
|
1795
1798
|
right: null,
|
|
1796
|
-
start: (start =
|
|
1797
|
-
end: (end =
|
|
1799
|
+
start: (start = deserializeI32(pos)),
|
|
1800
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1798
1801
|
range: [start, end],
|
|
1799
1802
|
};
|
|
1800
1803
|
node.left = deserializeBindingPattern(pos + 16);
|
|
@@ -1808,8 +1811,8 @@ function deserializeObjectPattern(pos) {
|
|
|
1808
1811
|
node = {
|
|
1809
1812
|
type: "ObjectPattern",
|
|
1810
1813
|
properties: null,
|
|
1811
|
-
start: (start =
|
|
1812
|
-
end: (end =
|
|
1814
|
+
start: (start = deserializeI32(pos)),
|
|
1815
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1813
1816
|
range: [start, end],
|
|
1814
1817
|
},
|
|
1815
1818
|
properties = deserializeVecBindingProperty(pos + 16),
|
|
@@ -1824,20 +1827,18 @@ function deserializeBindingProperty(pos) {
|
|
|
1824
1827
|
end,
|
|
1825
1828
|
node = {
|
|
1826
1829
|
type: "Property",
|
|
1827
|
-
kind:
|
|
1830
|
+
kind: "init",
|
|
1828
1831
|
key: null,
|
|
1829
1832
|
value: null,
|
|
1830
|
-
method:
|
|
1833
|
+
method: false,
|
|
1831
1834
|
shorthand: deserializeBool(pos + 12),
|
|
1832
1835
|
computed: deserializeBool(pos + 13),
|
|
1833
|
-
start: (start =
|
|
1834
|
-
end: (end =
|
|
1836
|
+
start: (start = deserializeI32(pos)),
|
|
1837
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1835
1838
|
range: [start, end],
|
|
1836
1839
|
};
|
|
1837
|
-
node.kind = "init";
|
|
1838
1840
|
node.key = deserializePropertyKey(pos + 16);
|
|
1839
1841
|
node.value = deserializeBindingPattern(pos + 32);
|
|
1840
|
-
node.method = false;
|
|
1841
1842
|
return node;
|
|
1842
1843
|
}
|
|
1843
1844
|
|
|
@@ -1847,8 +1848,8 @@ function deserializeArrayPattern(pos) {
|
|
|
1847
1848
|
node = {
|
|
1848
1849
|
type: "ArrayPattern",
|
|
1849
1850
|
elements: null,
|
|
1850
|
-
start: (start =
|
|
1851
|
-
end: (end =
|
|
1851
|
+
start: (start = deserializeI32(pos)),
|
|
1852
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1852
1853
|
range: [start, end],
|
|
1853
1854
|
},
|
|
1854
1855
|
elements = deserializeVecOptionBindingPattern(pos + 16),
|
|
@@ -1864,8 +1865,8 @@ function deserializeBindingRestElement(pos) {
|
|
|
1864
1865
|
node = {
|
|
1865
1866
|
type: "RestElement",
|
|
1866
1867
|
argument: null,
|
|
1867
|
-
start: (start =
|
|
1868
|
-
end: (end =
|
|
1868
|
+
start: (start = deserializeI32(pos)),
|
|
1869
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1869
1870
|
range: [start, end],
|
|
1870
1871
|
};
|
|
1871
1872
|
node.argument = deserializeBindingPattern(pos + 16);
|
|
@@ -1882,16 +1883,15 @@ function deserializeFunction(pos) {
|
|
|
1882
1883
|
async: deserializeBool(pos + 90),
|
|
1883
1884
|
params: null,
|
|
1884
1885
|
body: null,
|
|
1885
|
-
expression:
|
|
1886
|
-
start: (start =
|
|
1887
|
-
end: (end =
|
|
1886
|
+
expression: false,
|
|
1887
|
+
start: (start = deserializeI32(pos)),
|
|
1888
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1888
1889
|
range: [start, end],
|
|
1889
1890
|
},
|
|
1890
1891
|
params = deserializeBoxFormalParameters(pos + 64);
|
|
1891
1892
|
node.id = deserializeOptionBindingIdentifier(pos + 16);
|
|
1892
1893
|
node.params = params;
|
|
1893
1894
|
node.body = deserializeOptionBoxFunctionBody(pos + 80);
|
|
1894
|
-
node.expression = false;
|
|
1895
1895
|
return node;
|
|
1896
1896
|
}
|
|
1897
1897
|
|
|
@@ -1911,16 +1911,17 @@ function deserializeFunctionType(pos) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
1913
|
function deserializeFormalParameters(pos) {
|
|
1914
|
-
let params = deserializeVecFormalParameter(pos + 16)
|
|
1915
|
-
|
|
1916
|
-
|
|
1914
|
+
let params = deserializeVecFormalParameter(pos + 16),
|
|
1915
|
+
restFieldPos32 = (pos >> 2) + 10;
|
|
1916
|
+
if (int32[restFieldPos32] !== 0 && int32[restFieldPos32 + 1] !== 0) {
|
|
1917
|
+
pos = int32[restFieldPos32];
|
|
1917
1918
|
let start,
|
|
1918
1919
|
end,
|
|
1919
1920
|
rest = {
|
|
1920
1921
|
type: "RestElement",
|
|
1921
1922
|
argument: null,
|
|
1922
|
-
start: (start =
|
|
1923
|
-
end: (end =
|
|
1923
|
+
start: (start = deserializeI32(pos + 40)),
|
|
1924
|
+
end: (end = deserializeI32(pos + 44)),
|
|
1924
1925
|
range: [start, end],
|
|
1925
1926
|
};
|
|
1926
1927
|
rest.argument = deserializeBindingPattern(pos + 56);
|
|
@@ -1930,15 +1931,16 @@ function deserializeFormalParameters(pos) {
|
|
|
1930
1931
|
}
|
|
1931
1932
|
|
|
1932
1933
|
function deserializeFormalParameter(pos) {
|
|
1933
|
-
let param
|
|
1934
|
-
|
|
1934
|
+
let param,
|
|
1935
|
+
initializerFieldPos32 = (pos >> 2) + 16;
|
|
1936
|
+
if (int32[initializerFieldPos32] !== 0 && int32[initializerFieldPos32 + 1] !== 0) {
|
|
1935
1937
|
let start, end;
|
|
1936
1938
|
param = {
|
|
1937
1939
|
type: "AssignmentPattern",
|
|
1938
1940
|
left: null,
|
|
1939
1941
|
right: null,
|
|
1940
|
-
start: (start =
|
|
1941
|
-
end: (end =
|
|
1942
|
+
start: (start = deserializeI32(pos)),
|
|
1943
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1942
1944
|
range: [start, end],
|
|
1943
1945
|
};
|
|
1944
1946
|
param.left = deserializeBindingPattern(pos + 40);
|
|
@@ -1953,8 +1955,8 @@ function deserializeFunctionBody(pos) {
|
|
|
1953
1955
|
node = {
|
|
1954
1956
|
type: "BlockStatement",
|
|
1955
1957
|
body: null,
|
|
1956
|
-
start: (start =
|
|
1957
|
-
end: (end =
|
|
1958
|
+
start: (start = deserializeI32(pos)),
|
|
1959
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1958
1960
|
range: [start, end],
|
|
1959
1961
|
},
|
|
1960
1962
|
body = deserializeVecDirective(pos + 16);
|
|
@@ -1974,16 +1976,15 @@ function deserializeArrowFunctionExpression(pos) {
|
|
|
1974
1976
|
params: null,
|
|
1975
1977
|
body: null,
|
|
1976
1978
|
id: null,
|
|
1977
|
-
generator:
|
|
1978
|
-
start: (start =
|
|
1979
|
-
end: (end =
|
|
1979
|
+
generator: false,
|
|
1980
|
+
start: (start = deserializeI32(pos)),
|
|
1981
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1980
1982
|
range: [start, end],
|
|
1981
1983
|
},
|
|
1982
1984
|
body = deserializeBoxFunctionBody(pos + 40);
|
|
1983
1985
|
expression === true && (body = body.body[0].expression);
|
|
1984
1986
|
node.params = deserializeBoxFormalParameters(pos + 24);
|
|
1985
1987
|
node.body = body;
|
|
1986
|
-
node.generator = false;
|
|
1987
1988
|
return node;
|
|
1988
1989
|
}
|
|
1989
1990
|
|
|
@@ -1994,8 +1995,8 @@ function deserializeYieldExpression(pos) {
|
|
|
1994
1995
|
type: "YieldExpression",
|
|
1995
1996
|
delegate: deserializeBool(pos + 12),
|
|
1996
1997
|
argument: null,
|
|
1997
|
-
start: (start =
|
|
1998
|
-
end: (end =
|
|
1998
|
+
start: (start = deserializeI32(pos)),
|
|
1999
|
+
end: (end = deserializeI32(pos + 4)),
|
|
1999
2000
|
range: [start, end],
|
|
2000
2001
|
};
|
|
2001
2002
|
node.argument = deserializeOptionExpression(pos + 16);
|
|
@@ -2011,8 +2012,8 @@ function deserializeClass(pos) {
|
|
|
2011
2012
|
id: null,
|
|
2012
2013
|
superClass: null,
|
|
2013
2014
|
body: null,
|
|
2014
|
-
start: (start =
|
|
2015
|
-
end: (end =
|
|
2015
|
+
start: (start = deserializeI32(pos)),
|
|
2016
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2016
2017
|
range: [start, end],
|
|
2017
2018
|
};
|
|
2018
2019
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
@@ -2039,8 +2040,8 @@ function deserializeClassBody(pos) {
|
|
|
2039
2040
|
node = {
|
|
2040
2041
|
type: "ClassBody",
|
|
2041
2042
|
body: null,
|
|
2042
|
-
start: (start =
|
|
2043
|
-
end: (end =
|
|
2043
|
+
start: (start = deserializeI32(pos)),
|
|
2044
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2044
2045
|
range: [start, end],
|
|
2045
2046
|
};
|
|
2046
2047
|
node.body = deserializeVecClassElement(pos + 16);
|
|
@@ -2075,8 +2076,8 @@ function deserializeMethodDefinition(pos) {
|
|
|
2075
2076
|
kind: deserializeMethodDefinitionKind(pos + 13),
|
|
2076
2077
|
computed: deserializeBool(pos + 14),
|
|
2077
2078
|
static: deserializeBool(pos + 15),
|
|
2078
|
-
start: (start =
|
|
2079
|
-
end: (end =
|
|
2079
|
+
start: (start = deserializeI32(pos)),
|
|
2080
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2080
2081
|
range: [start, end],
|
|
2081
2082
|
};
|
|
2082
2083
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
@@ -2106,8 +2107,8 @@ function deserializePropertyDefinition(pos) {
|
|
|
2106
2107
|
value: null,
|
|
2107
2108
|
computed: deserializeBool(pos + 13),
|
|
2108
2109
|
static: deserializeBool(pos + 14),
|
|
2109
|
-
start: (start =
|
|
2110
|
-
end: (end =
|
|
2110
|
+
start: (start = deserializeI32(pos)),
|
|
2111
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2111
2112
|
range: [start, end],
|
|
2112
2113
|
};
|
|
2113
2114
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
@@ -2147,8 +2148,8 @@ function deserializePrivateIdentifier(pos) {
|
|
|
2147
2148
|
return {
|
|
2148
2149
|
type: "PrivateIdentifier",
|
|
2149
2150
|
name: deserializeStr(pos + 16),
|
|
2150
|
-
start: (start =
|
|
2151
|
-
end: (end =
|
|
2151
|
+
start: (start = deserializeI32(pos)),
|
|
2152
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2152
2153
|
range: [start, end],
|
|
2153
2154
|
};
|
|
2154
2155
|
}
|
|
@@ -2159,8 +2160,8 @@ function deserializeStaticBlock(pos) {
|
|
|
2159
2160
|
node = {
|
|
2160
2161
|
type: "StaticBlock",
|
|
2161
2162
|
body: null,
|
|
2162
|
-
start: (start =
|
|
2163
|
-
end: (end =
|
|
2163
|
+
start: (start = deserializeI32(pos)),
|
|
2164
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2164
2165
|
range: [start, end],
|
|
2165
2166
|
};
|
|
2166
2167
|
node.body = deserializeVecStatement(pos + 16);
|
|
@@ -2188,8 +2189,8 @@ function deserializeAccessorProperty(pos) {
|
|
|
2188
2189
|
value: null,
|
|
2189
2190
|
computed: deserializeBool(pos + 13),
|
|
2190
2191
|
static: deserializeBool(pos + 14),
|
|
2191
|
-
start: (start =
|
|
2192
|
-
end: (end =
|
|
2192
|
+
start: (start = deserializeI32(pos)),
|
|
2193
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2193
2194
|
range: [start, end],
|
|
2194
2195
|
};
|
|
2195
2196
|
node.decorators = deserializeVecDecorator(pos + 16);
|
|
@@ -2206,8 +2207,8 @@ function deserializeImportExpression(pos) {
|
|
|
2206
2207
|
source: null,
|
|
2207
2208
|
options: null,
|
|
2208
2209
|
phase: deserializeOptionImportPhase(pos + 12),
|
|
2209
|
-
start: (start =
|
|
2210
|
-
end: (end =
|
|
2210
|
+
start: (start = deserializeI32(pos)),
|
|
2211
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2211
2212
|
range: [start, end],
|
|
2212
2213
|
};
|
|
2213
2214
|
node.source = deserializeExpression(pos + 16);
|
|
@@ -2224,8 +2225,8 @@ function deserializeImportDeclaration(pos) {
|
|
|
2224
2225
|
source: null,
|
|
2225
2226
|
phase: deserializeOptionImportPhase(pos + 12),
|
|
2226
2227
|
attributes: null,
|
|
2227
|
-
start: (start =
|
|
2228
|
-
end: (end =
|
|
2228
|
+
start: (start = deserializeI32(pos)),
|
|
2229
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2229
2230
|
range: [start, end],
|
|
2230
2231
|
},
|
|
2231
2232
|
specifiers = deserializeOptionVecImportDeclarationSpecifier(pos + 16);
|
|
@@ -2268,8 +2269,8 @@ function deserializeImportSpecifier(pos) {
|
|
|
2268
2269
|
type: "ImportSpecifier",
|
|
2269
2270
|
imported: null,
|
|
2270
2271
|
local: null,
|
|
2271
|
-
start: (start =
|
|
2272
|
-
end: (end =
|
|
2272
|
+
start: (start = deserializeI32(pos)),
|
|
2273
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2273
2274
|
range: [start, end],
|
|
2274
2275
|
};
|
|
2275
2276
|
node.imported = deserializeModuleExportName(pos + 16);
|
|
@@ -2283,8 +2284,8 @@ function deserializeImportDefaultSpecifier(pos) {
|
|
|
2283
2284
|
node = {
|
|
2284
2285
|
type: "ImportDefaultSpecifier",
|
|
2285
2286
|
local: null,
|
|
2286
|
-
start: (start =
|
|
2287
|
-
end: (end =
|
|
2287
|
+
start: (start = deserializeI32(pos)),
|
|
2288
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2288
2289
|
range: [start, end],
|
|
2289
2290
|
};
|
|
2290
2291
|
node.local = deserializeBindingIdentifier(pos + 16);
|
|
@@ -2297,8 +2298,8 @@ function deserializeImportNamespaceSpecifier(pos) {
|
|
|
2297
2298
|
node = {
|
|
2298
2299
|
type: "ImportNamespaceSpecifier",
|
|
2299
2300
|
local: null,
|
|
2300
|
-
start: (start =
|
|
2301
|
-
end: (end =
|
|
2301
|
+
start: (start = deserializeI32(pos)),
|
|
2302
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2302
2303
|
range: [start, end],
|
|
2303
2304
|
};
|
|
2304
2305
|
node.local = deserializeBindingIdentifier(pos + 16);
|
|
@@ -2316,8 +2317,8 @@ function deserializeImportAttribute(pos) {
|
|
|
2316
2317
|
type: "ImportAttribute",
|
|
2317
2318
|
key: null,
|
|
2318
2319
|
value: null,
|
|
2319
|
-
start: (start =
|
|
2320
|
-
end: (end =
|
|
2320
|
+
start: (start = deserializeI32(pos)),
|
|
2321
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2321
2322
|
range: [start, end],
|
|
2322
2323
|
};
|
|
2323
2324
|
node.key = deserializeImportAttributeKey(pos + 16);
|
|
@@ -2345,8 +2346,8 @@ function deserializeExportNamedDeclaration(pos) {
|
|
|
2345
2346
|
specifiers: null,
|
|
2346
2347
|
source: null,
|
|
2347
2348
|
attributes: null,
|
|
2348
|
-
start: (start =
|
|
2349
|
-
end: (end =
|
|
2349
|
+
start: (start = deserializeI32(pos)),
|
|
2350
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2350
2351
|
range: [start, end],
|
|
2351
2352
|
},
|
|
2352
2353
|
withClause = deserializeOptionBoxWithClause(pos + 104);
|
|
@@ -2363,8 +2364,8 @@ function deserializeExportDefaultDeclaration(pos) {
|
|
|
2363
2364
|
node = {
|
|
2364
2365
|
type: "ExportDefaultDeclaration",
|
|
2365
2366
|
declaration: null,
|
|
2366
|
-
start: (start =
|
|
2367
|
-
end: (end =
|
|
2367
|
+
start: (start = deserializeI32(pos)),
|
|
2368
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2368
2369
|
range: [start, end],
|
|
2369
2370
|
};
|
|
2370
2371
|
node.declaration = deserializeExportDefaultDeclarationKind(pos + 16);
|
|
@@ -2379,8 +2380,8 @@ function deserializeExportAllDeclaration(pos) {
|
|
|
2379
2380
|
exported: null,
|
|
2380
2381
|
source: null,
|
|
2381
2382
|
attributes: null,
|
|
2382
|
-
start: (start =
|
|
2383
|
-
end: (end =
|
|
2383
|
+
start: (start = deserializeI32(pos)),
|
|
2384
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2384
2385
|
range: [start, end],
|
|
2385
2386
|
},
|
|
2386
2387
|
withClause = deserializeOptionBoxWithClause(pos + 120);
|
|
@@ -2397,8 +2398,8 @@ function deserializeExportSpecifier(pos) {
|
|
|
2397
2398
|
type: "ExportSpecifier",
|
|
2398
2399
|
local: null,
|
|
2399
2400
|
exported: null,
|
|
2400
|
-
start: (start =
|
|
2401
|
-
end: (end =
|
|
2401
|
+
start: (start = deserializeI32(pos)),
|
|
2402
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2402
2403
|
range: [start, end],
|
|
2403
2404
|
};
|
|
2404
2405
|
node.local = deserializeModuleExportName(pos + 16);
|
|
@@ -2525,8 +2526,8 @@ function deserializeV8IntrinsicExpression(pos) {
|
|
|
2525
2526
|
type: "V8IntrinsicExpression",
|
|
2526
2527
|
name: null,
|
|
2527
2528
|
arguments: null,
|
|
2528
|
-
start: (start =
|
|
2529
|
-
end: (end =
|
|
2529
|
+
start: (start = deserializeI32(pos)),
|
|
2530
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2530
2531
|
range: [start, end],
|
|
2531
2532
|
};
|
|
2532
2533
|
node.name = deserializeIdentifierName(pos + 16);
|
|
@@ -2536,8 +2537,8 @@ function deserializeV8IntrinsicExpression(pos) {
|
|
|
2536
2537
|
|
|
2537
2538
|
function deserializeBooleanLiteral(pos) {
|
|
2538
2539
|
let value = deserializeBool(pos + 12),
|
|
2539
|
-
start =
|
|
2540
|
-
end =
|
|
2540
|
+
start = deserializeI32(pos),
|
|
2541
|
+
end = deserializeI32(pos + 4),
|
|
2541
2542
|
node = {
|
|
2542
2543
|
type: "Literal",
|
|
2543
2544
|
value,
|
|
@@ -2551,41 +2552,46 @@ function deserializeBooleanLiteral(pos) {
|
|
|
2551
2552
|
}
|
|
2552
2553
|
|
|
2553
2554
|
function deserializeNullLiteral(pos) {
|
|
2554
|
-
let start =
|
|
2555
|
-
end =
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
node.raw = start === 0 && end === 0 ? null : "null";
|
|
2565
|
-
return node;
|
|
2555
|
+
let start = deserializeI32(pos),
|
|
2556
|
+
end = deserializeI32(pos + 4);
|
|
2557
|
+
return {
|
|
2558
|
+
type: "Literal",
|
|
2559
|
+
value: null,
|
|
2560
|
+
raw: start === 0 && end === 0 ? null : "null",
|
|
2561
|
+
start,
|
|
2562
|
+
end,
|
|
2563
|
+
range: [start, end],
|
|
2564
|
+
};
|
|
2566
2565
|
}
|
|
2567
2566
|
|
|
2568
2567
|
function deserializeNumericLiteral(pos) {
|
|
2569
|
-
let start,
|
|
2568
|
+
let start = deserializeI32(pos),
|
|
2569
|
+
end = deserializeI32(pos + 4);
|
|
2570
2570
|
return {
|
|
2571
2571
|
type: "Literal",
|
|
2572
2572
|
value: deserializeF64(pos + 32),
|
|
2573
|
-
raw:
|
|
2574
|
-
|
|
2575
|
-
|
|
2573
|
+
raw:
|
|
2574
|
+
int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
2575
|
+
? null
|
|
2576
|
+
: sourceText.slice(start, end),
|
|
2577
|
+
start,
|
|
2578
|
+
end,
|
|
2576
2579
|
range: [start, end],
|
|
2577
2580
|
};
|
|
2578
2581
|
}
|
|
2579
2582
|
|
|
2580
2583
|
function deserializeStringLiteral(pos) {
|
|
2581
|
-
let start,
|
|
2582
|
-
end,
|
|
2584
|
+
let start = deserializeI32(pos),
|
|
2585
|
+
end = deserializeI32(pos + 4),
|
|
2583
2586
|
node = {
|
|
2584
2587
|
type: "Literal",
|
|
2585
2588
|
value: null,
|
|
2586
|
-
raw:
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
+
raw:
|
|
2590
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
2591
|
+
? null
|
|
2592
|
+
: sourceText.slice(start, end),
|
|
2593
|
+
start,
|
|
2594
|
+
end,
|
|
2589
2595
|
range: [start, end],
|
|
2590
2596
|
},
|
|
2591
2597
|
value = deserializeStr(pos + 16);
|
|
@@ -2596,33 +2602,36 @@ function deserializeStringLiteral(pos) {
|
|
|
2596
2602
|
}
|
|
2597
2603
|
|
|
2598
2604
|
function deserializeBigIntLiteral(pos) {
|
|
2599
|
-
let start,
|
|
2600
|
-
end,
|
|
2601
|
-
node = {
|
|
2602
|
-
type: "Literal",
|
|
2603
|
-
value: null,
|
|
2604
|
-
raw: deserializeOptionStr(pos + 32),
|
|
2605
|
-
bigint: null,
|
|
2606
|
-
start: (start = deserializeU32(pos)),
|
|
2607
|
-
end: (end = deserializeU32(pos + 4)),
|
|
2608
|
-
range: [start, end],
|
|
2609
|
-
},
|
|
2605
|
+
let start = deserializeI32(pos),
|
|
2606
|
+
end = deserializeI32(pos + 4),
|
|
2610
2607
|
bigint = deserializeStr(pos + 16);
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2608
|
+
return {
|
|
2609
|
+
type: "Literal",
|
|
2610
|
+
value: BigInt(bigint),
|
|
2611
|
+
raw:
|
|
2612
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
2613
|
+
? null
|
|
2614
|
+
: sourceText.slice(start, end),
|
|
2615
|
+
bigint,
|
|
2616
|
+
start,
|
|
2617
|
+
end,
|
|
2618
|
+
range: [start, end],
|
|
2619
|
+
};
|
|
2614
2620
|
}
|
|
2615
2621
|
|
|
2616
2622
|
function deserializeRegExpLiteral(pos) {
|
|
2617
|
-
let start,
|
|
2618
|
-
end,
|
|
2623
|
+
let start = deserializeI32(pos),
|
|
2624
|
+
end = deserializeI32(pos + 4),
|
|
2619
2625
|
node = {
|
|
2620
2626
|
type: "Literal",
|
|
2621
2627
|
value: null,
|
|
2622
|
-
raw:
|
|
2628
|
+
raw:
|
|
2629
|
+
int32[(pos >> 2) + 12] === 0 && int32[(pos >> 2) + 13] === 0
|
|
2630
|
+
? null
|
|
2631
|
+
: sourceText.slice(start, end),
|
|
2623
2632
|
regex: null,
|
|
2624
|
-
start
|
|
2625
|
-
end
|
|
2633
|
+
start,
|
|
2634
|
+
end,
|
|
2626
2635
|
range: [start, end],
|
|
2627
2636
|
},
|
|
2628
2637
|
regex = deserializeRegExp(pos + 16),
|
|
@@ -2665,8 +2674,8 @@ function deserializeJSXElement(pos) {
|
|
|
2665
2674
|
openingElement: null,
|
|
2666
2675
|
children: null,
|
|
2667
2676
|
closingElement: null,
|
|
2668
|
-
start: (start =
|
|
2669
|
-
end: (end =
|
|
2677
|
+
start: (start = deserializeI32(pos)),
|
|
2678
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2670
2679
|
range: [start, end],
|
|
2671
2680
|
},
|
|
2672
2681
|
closingElement = deserializeOptionBoxJSXClosingElement(pos + 48),
|
|
@@ -2685,14 +2694,13 @@ function deserializeJSXOpeningElement(pos) {
|
|
|
2685
2694
|
type: "JSXOpeningElement",
|
|
2686
2695
|
name: null,
|
|
2687
2696
|
attributes: null,
|
|
2688
|
-
selfClosing:
|
|
2689
|
-
start: (start =
|
|
2690
|
-
end: (end =
|
|
2697
|
+
selfClosing: false,
|
|
2698
|
+
start: (start = deserializeI32(pos)),
|
|
2699
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2691
2700
|
range: [start, end],
|
|
2692
2701
|
};
|
|
2693
2702
|
node.name = deserializeJSXElementName(pos + 16);
|
|
2694
2703
|
node.attributes = deserializeVecJSXAttributeItem(pos + 40);
|
|
2695
|
-
node.selfClosing = false;
|
|
2696
2704
|
return node;
|
|
2697
2705
|
}
|
|
2698
2706
|
|
|
@@ -2702,8 +2710,8 @@ function deserializeJSXClosingElement(pos) {
|
|
|
2702
2710
|
node = {
|
|
2703
2711
|
type: "JSXClosingElement",
|
|
2704
2712
|
name: null,
|
|
2705
|
-
start: (start =
|
|
2706
|
-
end: (end =
|
|
2713
|
+
start: (start = deserializeI32(pos)),
|
|
2714
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2707
2715
|
range: [start, end],
|
|
2708
2716
|
};
|
|
2709
2717
|
node.name = deserializeJSXElementName(pos + 16);
|
|
@@ -2718,8 +2726,8 @@ function deserializeJSXFragment(pos) {
|
|
|
2718
2726
|
openingFragment: null,
|
|
2719
2727
|
children: null,
|
|
2720
2728
|
closingFragment: null,
|
|
2721
|
-
start: (start =
|
|
2722
|
-
end: (end =
|
|
2729
|
+
start: (start = deserializeI32(pos)),
|
|
2730
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2723
2731
|
range: [start, end],
|
|
2724
2732
|
};
|
|
2725
2733
|
node.openingFragment = deserializeJSXOpeningFragment(pos + 16);
|
|
@@ -2729,27 +2737,23 @@ function deserializeJSXFragment(pos) {
|
|
|
2729
2737
|
}
|
|
2730
2738
|
|
|
2731
2739
|
function deserializeJSXOpeningFragment(pos) {
|
|
2732
|
-
let start,
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
};
|
|
2742
|
-
node.attributes = [];
|
|
2743
|
-
node.selfClosing = false;
|
|
2744
|
-
return node;
|
|
2740
|
+
let start, end;
|
|
2741
|
+
return {
|
|
2742
|
+
type: "JSXOpeningFragment",
|
|
2743
|
+
attributes: [],
|
|
2744
|
+
selfClosing: false,
|
|
2745
|
+
start: (start = deserializeI32(pos)),
|
|
2746
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2747
|
+
range: [start, end],
|
|
2748
|
+
};
|
|
2745
2749
|
}
|
|
2746
2750
|
|
|
2747
2751
|
function deserializeJSXClosingFragment(pos) {
|
|
2748
2752
|
let start, end;
|
|
2749
2753
|
return {
|
|
2750
2754
|
type: "JSXClosingFragment",
|
|
2751
|
-
start: (start =
|
|
2752
|
-
end: (end =
|
|
2755
|
+
start: (start = deserializeI32(pos)),
|
|
2756
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2753
2757
|
range: [start, end],
|
|
2754
2758
|
};
|
|
2755
2759
|
}
|
|
@@ -2792,8 +2796,8 @@ function deserializeJSXNamespacedName(pos) {
|
|
|
2792
2796
|
type: "JSXNamespacedName",
|
|
2793
2797
|
namespace: null,
|
|
2794
2798
|
name: null,
|
|
2795
|
-
start: (start =
|
|
2796
|
-
end: (end =
|
|
2799
|
+
start: (start = deserializeI32(pos)),
|
|
2800
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2797
2801
|
range: [start, end],
|
|
2798
2802
|
};
|
|
2799
2803
|
node.namespace = deserializeJSXIdentifier(pos + 16);
|
|
@@ -2808,8 +2812,8 @@ function deserializeJSXMemberExpression(pos) {
|
|
|
2808
2812
|
type: "JSXMemberExpression",
|
|
2809
2813
|
object: null,
|
|
2810
2814
|
property: null,
|
|
2811
|
-
start: (start =
|
|
2812
|
-
end: (end =
|
|
2815
|
+
start: (start = deserializeI32(pos)),
|
|
2816
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2813
2817
|
range: [start, end],
|
|
2814
2818
|
};
|
|
2815
2819
|
node.object = deserializeJSXMemberExpressionObject(pos + 16);
|
|
@@ -2850,8 +2854,8 @@ function deserializeJSXExpressionContainer(pos) {
|
|
|
2850
2854
|
node = {
|
|
2851
2855
|
type: "JSXExpressionContainer",
|
|
2852
2856
|
expression: null,
|
|
2853
|
-
start: (start =
|
|
2854
|
-
end: (end =
|
|
2857
|
+
start: (start = deserializeI32(pos)),
|
|
2858
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2855
2859
|
range: [start, end],
|
|
2856
2860
|
};
|
|
2857
2861
|
node.expression = deserializeJSXExpression(pos + 16);
|
|
@@ -2957,8 +2961,8 @@ function deserializeJSXEmptyExpression(pos) {
|
|
|
2957
2961
|
let start, end;
|
|
2958
2962
|
return {
|
|
2959
2963
|
type: "JSXEmptyExpression",
|
|
2960
|
-
start: (start =
|
|
2961
|
-
end: (end =
|
|
2964
|
+
start: (start = deserializeI32(pos)),
|
|
2965
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2962
2966
|
range: [start, end],
|
|
2963
2967
|
};
|
|
2964
2968
|
}
|
|
@@ -2981,8 +2985,8 @@ function deserializeJSXAttribute(pos) {
|
|
|
2981
2985
|
type: "JSXAttribute",
|
|
2982
2986
|
name: null,
|
|
2983
2987
|
value: null,
|
|
2984
|
-
start: (start =
|
|
2985
|
-
end: (end =
|
|
2988
|
+
start: (start = deserializeI32(pos)),
|
|
2989
|
+
end: (end = deserializeI32(pos + 4)),
|
|
2986
2990
|
range: [start, end],
|
|
2987
2991
|
};
|
|
2988
2992
|
node.name = deserializeJSXAttributeName(pos + 16);
|
|
@@ -2996,8 +3000,8 @@ function deserializeJSXSpreadAttribute(pos) {
|
|
|
2996
3000
|
node = {
|
|
2997
3001
|
type: "JSXSpreadAttribute",
|
|
2998
3002
|
argument: null,
|
|
2999
|
-
start: (start =
|
|
3000
|
-
end: (end =
|
|
3003
|
+
start: (start = deserializeI32(pos)),
|
|
3004
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3001
3005
|
range: [start, end],
|
|
3002
3006
|
};
|
|
3003
3007
|
node.argument = deserializeExpression(pos + 16);
|
|
@@ -3035,8 +3039,8 @@ function deserializeJSXIdentifier(pos) {
|
|
|
3035
3039
|
return {
|
|
3036
3040
|
type: "JSXIdentifier",
|
|
3037
3041
|
name: deserializeStr(pos + 16),
|
|
3038
|
-
start: (start =
|
|
3039
|
-
end: (end =
|
|
3042
|
+
start: (start = deserializeI32(pos)),
|
|
3043
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3040
3044
|
range: [start, end],
|
|
3041
3045
|
};
|
|
3042
3046
|
}
|
|
@@ -3064,8 +3068,8 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3064
3068
|
node = {
|
|
3065
3069
|
type: "JSXSpreadChild",
|
|
3066
3070
|
expression: null,
|
|
3067
|
-
start: (start =
|
|
3068
|
-
end: (end =
|
|
3071
|
+
start: (start = deserializeI32(pos)),
|
|
3072
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3069
3073
|
range: [start, end],
|
|
3070
3074
|
};
|
|
3071
3075
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -3073,13 +3077,17 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3073
3077
|
}
|
|
3074
3078
|
|
|
3075
3079
|
function deserializeJSXText(pos) {
|
|
3076
|
-
let start,
|
|
3080
|
+
let start = deserializeI32(pos),
|
|
3081
|
+
end = deserializeI32(pos + 4);
|
|
3077
3082
|
return {
|
|
3078
3083
|
type: "JSXText",
|
|
3079
3084
|
value: deserializeStr(pos + 16),
|
|
3080
|
-
raw:
|
|
3081
|
-
|
|
3082
|
-
|
|
3085
|
+
raw:
|
|
3086
|
+
int32[(pos >> 2) + 8] === 0 && int32[(pos >> 2) + 9] === 0
|
|
3087
|
+
? null
|
|
3088
|
+
: sourceText.slice(start, end),
|
|
3089
|
+
start,
|
|
3090
|
+
end,
|
|
3083
3091
|
range: [start, end],
|
|
3084
3092
|
};
|
|
3085
3093
|
}
|
|
@@ -3089,17 +3097,14 @@ function deserializeTSThisParameter(pos) {
|
|
|
3089
3097
|
end,
|
|
3090
3098
|
node = {
|
|
3091
3099
|
type: "Identifier",
|
|
3092
|
-
decorators:
|
|
3093
|
-
name:
|
|
3094
|
-
optional:
|
|
3100
|
+
decorators: [],
|
|
3101
|
+
name: "this",
|
|
3102
|
+
optional: false,
|
|
3095
3103
|
typeAnnotation: null,
|
|
3096
|
-
start: (start =
|
|
3097
|
-
end: (end =
|
|
3104
|
+
start: (start = deserializeI32(pos)),
|
|
3105
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3098
3106
|
range: [start, end],
|
|
3099
3107
|
};
|
|
3100
|
-
node.decorators = [];
|
|
3101
|
-
node.name = "this";
|
|
3102
|
-
node.optional = false;
|
|
3103
3108
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24);
|
|
3104
3109
|
return node;
|
|
3105
3110
|
}
|
|
@@ -3113,8 +3118,8 @@ function deserializeTSEnumDeclaration(pos) {
|
|
|
3113
3118
|
body: null,
|
|
3114
3119
|
const: deserializeBool(pos + 12),
|
|
3115
3120
|
declare: deserializeBool(pos + 13),
|
|
3116
|
-
start: (start =
|
|
3117
|
-
end: (end =
|
|
3121
|
+
start: (start = deserializeI32(pos)),
|
|
3122
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3118
3123
|
range: [start, end],
|
|
3119
3124
|
};
|
|
3120
3125
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
@@ -3128,8 +3133,8 @@ function deserializeTSEnumBody(pos) {
|
|
|
3128
3133
|
node = {
|
|
3129
3134
|
type: "TSEnumBody",
|
|
3130
3135
|
members: null,
|
|
3131
|
-
start: (start =
|
|
3132
|
-
end: (end =
|
|
3136
|
+
start: (start = deserializeI32(pos)),
|
|
3137
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3133
3138
|
range: [start, end],
|
|
3134
3139
|
};
|
|
3135
3140
|
node.members = deserializeVecTSEnumMember(pos + 16);
|
|
@@ -3143,14 +3148,13 @@ function deserializeTSEnumMember(pos) {
|
|
|
3143
3148
|
type: "TSEnumMember",
|
|
3144
3149
|
id: null,
|
|
3145
3150
|
initializer: null,
|
|
3146
|
-
computed:
|
|
3147
|
-
start: (start =
|
|
3148
|
-
end: (end =
|
|
3151
|
+
computed: deserializeU8(pos + 16) > 1,
|
|
3152
|
+
start: (start = deserializeI32(pos)),
|
|
3153
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3149
3154
|
range: [start, end],
|
|
3150
3155
|
};
|
|
3151
3156
|
node.id = deserializeTSEnumMemberName(pos + 16);
|
|
3152
3157
|
node.initializer = deserializeOptionExpression(pos + 32);
|
|
3153
|
-
node.computed = deserializeU8(pos + 16) > 1;
|
|
3154
3158
|
return node;
|
|
3155
3159
|
}
|
|
3156
3160
|
|
|
@@ -3175,8 +3179,8 @@ function deserializeTSTypeAnnotation(pos) {
|
|
|
3175
3179
|
node = {
|
|
3176
3180
|
type: "TSTypeAnnotation",
|
|
3177
3181
|
typeAnnotation: null,
|
|
3178
|
-
start: (start =
|
|
3179
|
-
end: (end =
|
|
3182
|
+
start: (start = deserializeI32(pos)),
|
|
3183
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3180
3184
|
range: [start, end],
|
|
3181
3185
|
};
|
|
3182
3186
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -3189,8 +3193,8 @@ function deserializeTSLiteralType(pos) {
|
|
|
3189
3193
|
node = {
|
|
3190
3194
|
type: "TSLiteralType",
|
|
3191
3195
|
literal: null,
|
|
3192
|
-
start: (start =
|
|
3193
|
-
end: (end =
|
|
3196
|
+
start: (start = deserializeI32(pos)),
|
|
3197
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3194
3198
|
range: [start, end],
|
|
3195
3199
|
};
|
|
3196
3200
|
node.literal = deserializeTSLiteral(pos + 16);
|
|
@@ -3306,8 +3310,8 @@ function deserializeTSConditionalType(pos) {
|
|
|
3306
3310
|
extendsType: null,
|
|
3307
3311
|
trueType: null,
|
|
3308
3312
|
falseType: null,
|
|
3309
|
-
start: (start =
|
|
3310
|
-
end: (end =
|
|
3313
|
+
start: (start = deserializeI32(pos)),
|
|
3314
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3311
3315
|
range: [start, end],
|
|
3312
3316
|
};
|
|
3313
3317
|
node.checkType = deserializeTSType(pos + 16);
|
|
@@ -3323,8 +3327,8 @@ function deserializeTSUnionType(pos) {
|
|
|
3323
3327
|
node = {
|
|
3324
3328
|
type: "TSUnionType",
|
|
3325
3329
|
types: null,
|
|
3326
|
-
start: (start =
|
|
3327
|
-
end: (end =
|
|
3330
|
+
start: (start = deserializeI32(pos)),
|
|
3331
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3328
3332
|
range: [start, end],
|
|
3329
3333
|
};
|
|
3330
3334
|
node.types = deserializeVecTSType(pos + 16);
|
|
@@ -3337,8 +3341,8 @@ function deserializeTSIntersectionType(pos) {
|
|
|
3337
3341
|
node = {
|
|
3338
3342
|
type: "TSIntersectionType",
|
|
3339
3343
|
types: null,
|
|
3340
|
-
start: (start =
|
|
3341
|
-
end: (end =
|
|
3344
|
+
start: (start = deserializeI32(pos)),
|
|
3345
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3342
3346
|
range: [start, end],
|
|
3343
3347
|
};
|
|
3344
3348
|
node.types = deserializeVecTSType(pos + 16);
|
|
@@ -3352,8 +3356,8 @@ function deserializeTSParenthesizedType(pos) {
|
|
|
3352
3356
|
node = {
|
|
3353
3357
|
type: "TSParenthesizedType",
|
|
3354
3358
|
typeAnnotation: null,
|
|
3355
|
-
start: (start =
|
|
3356
|
-
end: (end =
|
|
3359
|
+
start: (start = deserializeI32(pos)),
|
|
3360
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3357
3361
|
range: [start, end],
|
|
3358
3362
|
};
|
|
3359
3363
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -3368,8 +3372,8 @@ function deserializeTSTypeOperator(pos) {
|
|
|
3368
3372
|
type: "TSTypeOperator",
|
|
3369
3373
|
operator: deserializeTSTypeOperatorOperator(pos + 12),
|
|
3370
3374
|
typeAnnotation: null,
|
|
3371
|
-
start: (start =
|
|
3372
|
-
end: (end =
|
|
3375
|
+
start: (start = deserializeI32(pos)),
|
|
3376
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3373
3377
|
range: [start, end],
|
|
3374
3378
|
};
|
|
3375
3379
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -3395,8 +3399,8 @@ function deserializeTSArrayType(pos) {
|
|
|
3395
3399
|
node = {
|
|
3396
3400
|
type: "TSArrayType",
|
|
3397
3401
|
elementType: null,
|
|
3398
|
-
start: (start =
|
|
3399
|
-
end: (end =
|
|
3402
|
+
start: (start = deserializeI32(pos)),
|
|
3403
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3400
3404
|
range: [start, end],
|
|
3401
3405
|
};
|
|
3402
3406
|
node.elementType = deserializeTSType(pos + 16);
|
|
@@ -3410,8 +3414,8 @@ function deserializeTSIndexedAccessType(pos) {
|
|
|
3410
3414
|
type: "TSIndexedAccessType",
|
|
3411
3415
|
objectType: null,
|
|
3412
3416
|
indexType: null,
|
|
3413
|
-
start: (start =
|
|
3414
|
-
end: (end =
|
|
3417
|
+
start: (start = deserializeI32(pos)),
|
|
3418
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3415
3419
|
range: [start, end],
|
|
3416
3420
|
};
|
|
3417
3421
|
node.objectType = deserializeTSType(pos + 16);
|
|
@@ -3425,8 +3429,8 @@ function deserializeTSTupleType(pos) {
|
|
|
3425
3429
|
node = {
|
|
3426
3430
|
type: "TSTupleType",
|
|
3427
3431
|
elementTypes: null,
|
|
3428
|
-
start: (start =
|
|
3429
|
-
end: (end =
|
|
3432
|
+
start: (start = deserializeI32(pos)),
|
|
3433
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3430
3434
|
range: [start, end],
|
|
3431
3435
|
};
|
|
3432
3436
|
node.elementTypes = deserializeVecTSTupleElement(pos + 16);
|
|
@@ -3441,8 +3445,8 @@ function deserializeTSNamedTupleMember(pos) {
|
|
|
3441
3445
|
label: null,
|
|
3442
3446
|
elementType: null,
|
|
3443
3447
|
optional: deserializeBool(pos + 12),
|
|
3444
|
-
start: (start =
|
|
3445
|
-
end: (end =
|
|
3448
|
+
start: (start = deserializeI32(pos)),
|
|
3449
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3446
3450
|
range: [start, end],
|
|
3447
3451
|
};
|
|
3448
3452
|
node.label = deserializeIdentifierName(pos + 16);
|
|
@@ -3456,8 +3460,8 @@ function deserializeTSOptionalType(pos) {
|
|
|
3456
3460
|
node = {
|
|
3457
3461
|
type: "TSOptionalType",
|
|
3458
3462
|
typeAnnotation: null,
|
|
3459
|
-
start: (start =
|
|
3460
|
-
end: (end =
|
|
3463
|
+
start: (start = deserializeI32(pos)),
|
|
3464
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3461
3465
|
range: [start, end],
|
|
3462
3466
|
};
|
|
3463
3467
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -3470,8 +3474,8 @@ function deserializeTSRestType(pos) {
|
|
|
3470
3474
|
node = {
|
|
3471
3475
|
type: "TSRestType",
|
|
3472
3476
|
typeAnnotation: null,
|
|
3473
|
-
start: (start =
|
|
3474
|
-
end: (end =
|
|
3477
|
+
start: (start = deserializeI32(pos)),
|
|
3478
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3475
3479
|
range: [start, end],
|
|
3476
3480
|
};
|
|
3477
3481
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -3567,8 +3571,8 @@ function deserializeTSAnyKeyword(pos) {
|
|
|
3567
3571
|
let start, end;
|
|
3568
3572
|
return {
|
|
3569
3573
|
type: "TSAnyKeyword",
|
|
3570
|
-
start: (start =
|
|
3571
|
-
end: (end =
|
|
3574
|
+
start: (start = deserializeI32(pos)),
|
|
3575
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3572
3576
|
range: [start, end],
|
|
3573
3577
|
};
|
|
3574
3578
|
}
|
|
@@ -3577,8 +3581,8 @@ function deserializeTSStringKeyword(pos) {
|
|
|
3577
3581
|
let start, end;
|
|
3578
3582
|
return {
|
|
3579
3583
|
type: "TSStringKeyword",
|
|
3580
|
-
start: (start =
|
|
3581
|
-
end: (end =
|
|
3584
|
+
start: (start = deserializeI32(pos)),
|
|
3585
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3582
3586
|
range: [start, end],
|
|
3583
3587
|
};
|
|
3584
3588
|
}
|
|
@@ -3587,8 +3591,8 @@ function deserializeTSBooleanKeyword(pos) {
|
|
|
3587
3591
|
let start, end;
|
|
3588
3592
|
return {
|
|
3589
3593
|
type: "TSBooleanKeyword",
|
|
3590
|
-
start: (start =
|
|
3591
|
-
end: (end =
|
|
3594
|
+
start: (start = deserializeI32(pos)),
|
|
3595
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3592
3596
|
range: [start, end],
|
|
3593
3597
|
};
|
|
3594
3598
|
}
|
|
@@ -3597,8 +3601,8 @@ function deserializeTSNumberKeyword(pos) {
|
|
|
3597
3601
|
let start, end;
|
|
3598
3602
|
return {
|
|
3599
3603
|
type: "TSNumberKeyword",
|
|
3600
|
-
start: (start =
|
|
3601
|
-
end: (end =
|
|
3604
|
+
start: (start = deserializeI32(pos)),
|
|
3605
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3602
3606
|
range: [start, end],
|
|
3603
3607
|
};
|
|
3604
3608
|
}
|
|
@@ -3607,8 +3611,8 @@ function deserializeTSNeverKeyword(pos) {
|
|
|
3607
3611
|
let start, end;
|
|
3608
3612
|
return {
|
|
3609
3613
|
type: "TSNeverKeyword",
|
|
3610
|
-
start: (start =
|
|
3611
|
-
end: (end =
|
|
3614
|
+
start: (start = deserializeI32(pos)),
|
|
3615
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3612
3616
|
range: [start, end],
|
|
3613
3617
|
};
|
|
3614
3618
|
}
|
|
@@ -3617,8 +3621,8 @@ function deserializeTSIntrinsicKeyword(pos) {
|
|
|
3617
3621
|
let start, end;
|
|
3618
3622
|
return {
|
|
3619
3623
|
type: "TSIntrinsicKeyword",
|
|
3620
|
-
start: (start =
|
|
3621
|
-
end: (end =
|
|
3624
|
+
start: (start = deserializeI32(pos)),
|
|
3625
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3622
3626
|
range: [start, end],
|
|
3623
3627
|
};
|
|
3624
3628
|
}
|
|
@@ -3627,8 +3631,8 @@ function deserializeTSUnknownKeyword(pos) {
|
|
|
3627
3631
|
let start, end;
|
|
3628
3632
|
return {
|
|
3629
3633
|
type: "TSUnknownKeyword",
|
|
3630
|
-
start: (start =
|
|
3631
|
-
end: (end =
|
|
3634
|
+
start: (start = deserializeI32(pos)),
|
|
3635
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3632
3636
|
range: [start, end],
|
|
3633
3637
|
};
|
|
3634
3638
|
}
|
|
@@ -3637,8 +3641,8 @@ function deserializeTSNullKeyword(pos) {
|
|
|
3637
3641
|
let start, end;
|
|
3638
3642
|
return {
|
|
3639
3643
|
type: "TSNullKeyword",
|
|
3640
|
-
start: (start =
|
|
3641
|
-
end: (end =
|
|
3644
|
+
start: (start = deserializeI32(pos)),
|
|
3645
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3642
3646
|
range: [start, end],
|
|
3643
3647
|
};
|
|
3644
3648
|
}
|
|
@@ -3647,8 +3651,8 @@ function deserializeTSUndefinedKeyword(pos) {
|
|
|
3647
3651
|
let start, end;
|
|
3648
3652
|
return {
|
|
3649
3653
|
type: "TSUndefinedKeyword",
|
|
3650
|
-
start: (start =
|
|
3651
|
-
end: (end =
|
|
3654
|
+
start: (start = deserializeI32(pos)),
|
|
3655
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3652
3656
|
range: [start, end],
|
|
3653
3657
|
};
|
|
3654
3658
|
}
|
|
@@ -3657,8 +3661,8 @@ function deserializeTSVoidKeyword(pos) {
|
|
|
3657
3661
|
let start, end;
|
|
3658
3662
|
return {
|
|
3659
3663
|
type: "TSVoidKeyword",
|
|
3660
|
-
start: (start =
|
|
3661
|
-
end: (end =
|
|
3664
|
+
start: (start = deserializeI32(pos)),
|
|
3665
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3662
3666
|
range: [start, end],
|
|
3663
3667
|
};
|
|
3664
3668
|
}
|
|
@@ -3667,8 +3671,8 @@ function deserializeTSSymbolKeyword(pos) {
|
|
|
3667
3671
|
let start, end;
|
|
3668
3672
|
return {
|
|
3669
3673
|
type: "TSSymbolKeyword",
|
|
3670
|
-
start: (start =
|
|
3671
|
-
end: (end =
|
|
3674
|
+
start: (start = deserializeI32(pos)),
|
|
3675
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3672
3676
|
range: [start, end],
|
|
3673
3677
|
};
|
|
3674
3678
|
}
|
|
@@ -3677,8 +3681,8 @@ function deserializeTSThisType(pos) {
|
|
|
3677
3681
|
let start, end;
|
|
3678
3682
|
return {
|
|
3679
3683
|
type: "TSThisType",
|
|
3680
|
-
start: (start =
|
|
3681
|
-
end: (end =
|
|
3684
|
+
start: (start = deserializeI32(pos)),
|
|
3685
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3682
3686
|
range: [start, end],
|
|
3683
3687
|
};
|
|
3684
3688
|
}
|
|
@@ -3687,8 +3691,8 @@ function deserializeTSObjectKeyword(pos) {
|
|
|
3687
3691
|
let start, end;
|
|
3688
3692
|
return {
|
|
3689
3693
|
type: "TSObjectKeyword",
|
|
3690
|
-
start: (start =
|
|
3691
|
-
end: (end =
|
|
3694
|
+
start: (start = deserializeI32(pos)),
|
|
3695
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3692
3696
|
range: [start, end],
|
|
3693
3697
|
};
|
|
3694
3698
|
}
|
|
@@ -3697,8 +3701,8 @@ function deserializeTSBigIntKeyword(pos) {
|
|
|
3697
3701
|
let start, end;
|
|
3698
3702
|
return {
|
|
3699
3703
|
type: "TSBigIntKeyword",
|
|
3700
|
-
start: (start =
|
|
3701
|
-
end: (end =
|
|
3704
|
+
start: (start = deserializeI32(pos)),
|
|
3705
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3702
3706
|
range: [start, end],
|
|
3703
3707
|
};
|
|
3704
3708
|
}
|
|
@@ -3710,8 +3714,8 @@ function deserializeTSTypeReference(pos) {
|
|
|
3710
3714
|
type: "TSTypeReference",
|
|
3711
3715
|
typeName: null,
|
|
3712
3716
|
typeArguments: null,
|
|
3713
|
-
start: (start =
|
|
3714
|
-
end: (end =
|
|
3717
|
+
start: (start = deserializeI32(pos)),
|
|
3718
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3715
3719
|
range: [start, end],
|
|
3716
3720
|
};
|
|
3717
3721
|
node.typeName = deserializeTSTypeName(pos + 16);
|
|
@@ -3739,8 +3743,8 @@ function deserializeTSQualifiedName(pos) {
|
|
|
3739
3743
|
type: "TSQualifiedName",
|
|
3740
3744
|
left: null,
|
|
3741
3745
|
right: null,
|
|
3742
|
-
start: (start =
|
|
3743
|
-
end: (end =
|
|
3746
|
+
start: (start = deserializeI32(pos)),
|
|
3747
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3744
3748
|
range: [start, end],
|
|
3745
3749
|
};
|
|
3746
3750
|
node.left = deserializeTSTypeName(pos + 16);
|
|
@@ -3754,8 +3758,8 @@ function deserializeTSTypeParameterInstantiation(pos) {
|
|
|
3754
3758
|
node = {
|
|
3755
3759
|
type: "TSTypeParameterInstantiation",
|
|
3756
3760
|
params: null,
|
|
3757
|
-
start: (start =
|
|
3758
|
-
end: (end =
|
|
3761
|
+
start: (start = deserializeI32(pos)),
|
|
3762
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3759
3763
|
range: [start, end],
|
|
3760
3764
|
};
|
|
3761
3765
|
node.params = deserializeVecTSType(pos + 16);
|
|
@@ -3773,8 +3777,8 @@ function deserializeTSTypeParameter(pos) {
|
|
|
3773
3777
|
in: deserializeBool(pos + 12),
|
|
3774
3778
|
out: deserializeBool(pos + 13),
|
|
3775
3779
|
const: deserializeBool(pos + 14),
|
|
3776
|
-
start: (start =
|
|
3777
|
-
end: (end =
|
|
3780
|
+
start: (start = deserializeI32(pos)),
|
|
3781
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3778
3782
|
range: [start, end],
|
|
3779
3783
|
};
|
|
3780
3784
|
node.name = deserializeBindingIdentifier(pos + 16);
|
|
@@ -3789,8 +3793,8 @@ function deserializeTSTypeParameterDeclaration(pos) {
|
|
|
3789
3793
|
node = {
|
|
3790
3794
|
type: "TSTypeParameterDeclaration",
|
|
3791
3795
|
params: null,
|
|
3792
|
-
start: (start =
|
|
3793
|
-
end: (end =
|
|
3796
|
+
start: (start = deserializeI32(pos)),
|
|
3797
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3794
3798
|
range: [start, end],
|
|
3795
3799
|
};
|
|
3796
3800
|
node.params = deserializeVecTSTypeParameter(pos + 16);
|
|
@@ -3806,8 +3810,8 @@ function deserializeTSTypeAliasDeclaration(pos) {
|
|
|
3806
3810
|
typeParameters: null,
|
|
3807
3811
|
typeAnnotation: null,
|
|
3808
3812
|
declare: deserializeBool(pos + 72),
|
|
3809
|
-
start: (start =
|
|
3810
|
-
end: (end =
|
|
3813
|
+
start: (start = deserializeI32(pos)),
|
|
3814
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3811
3815
|
range: [start, end],
|
|
3812
3816
|
};
|
|
3813
3817
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
@@ -3826,8 +3830,8 @@ function deserializeTSInterfaceDeclaration(pos) {
|
|
|
3826
3830
|
extends: null,
|
|
3827
3831
|
body: null,
|
|
3828
3832
|
declare: deserializeBool(pos + 88),
|
|
3829
|
-
start: (start =
|
|
3830
|
-
end: (end =
|
|
3833
|
+
start: (start = deserializeI32(pos)),
|
|
3834
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3831
3835
|
range: [start, end],
|
|
3832
3836
|
};
|
|
3833
3837
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
@@ -3843,8 +3847,8 @@ function deserializeTSInterfaceBody(pos) {
|
|
|
3843
3847
|
node = {
|
|
3844
3848
|
type: "TSInterfaceBody",
|
|
3845
3849
|
body: null,
|
|
3846
|
-
start: (start =
|
|
3847
|
-
end: (end =
|
|
3850
|
+
start: (start = deserializeI32(pos)),
|
|
3851
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3848
3852
|
range: [start, end],
|
|
3849
3853
|
};
|
|
3850
3854
|
node.body = deserializeVecTSSignature(pos + 16);
|
|
@@ -3862,14 +3866,13 @@ function deserializeTSPropertySignature(pos) {
|
|
|
3862
3866
|
key: null,
|
|
3863
3867
|
typeAnnotation: null,
|
|
3864
3868
|
accessibility: null,
|
|
3865
|
-
static:
|
|
3866
|
-
start: (start =
|
|
3867
|
-
end: (end =
|
|
3869
|
+
static: false,
|
|
3870
|
+
start: (start = deserializeI32(pos)),
|
|
3871
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3868
3872
|
range: [start, end],
|
|
3869
3873
|
};
|
|
3870
3874
|
node.key = deserializePropertyKey(pos + 16);
|
|
3871
3875
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 32);
|
|
3872
|
-
node.static = false;
|
|
3873
3876
|
return node;
|
|
3874
3877
|
}
|
|
3875
3878
|
|
|
@@ -3900,8 +3903,8 @@ function deserializeTSIndexSignature(pos) {
|
|
|
3900
3903
|
readonly: deserializeBool(pos + 12),
|
|
3901
3904
|
static: deserializeBool(pos + 13),
|
|
3902
3905
|
accessibility: null,
|
|
3903
|
-
start: (start =
|
|
3904
|
-
end: (end =
|
|
3906
|
+
start: (start = deserializeI32(pos)),
|
|
3907
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3905
3908
|
range: [start, end],
|
|
3906
3909
|
};
|
|
3907
3910
|
node.parameters = deserializeVecTSIndexSignatureName(pos + 16);
|
|
@@ -3917,8 +3920,8 @@ function deserializeTSCallSignatureDeclaration(pos) {
|
|
|
3917
3920
|
typeParameters: null,
|
|
3918
3921
|
params: null,
|
|
3919
3922
|
returnType: null,
|
|
3920
|
-
start: (start =
|
|
3921
|
-
end: (end =
|
|
3923
|
+
start: (start = deserializeI32(pos)),
|
|
3924
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3922
3925
|
range: [start, end],
|
|
3923
3926
|
},
|
|
3924
3927
|
params = deserializeBoxFormalParameters(pos + 32),
|
|
@@ -3956,10 +3959,10 @@ function deserializeTSMethodSignature(pos) {
|
|
|
3956
3959
|
params: null,
|
|
3957
3960
|
returnType: null,
|
|
3958
3961
|
accessibility: null,
|
|
3959
|
-
readonly:
|
|
3960
|
-
static:
|
|
3961
|
-
start: (start =
|
|
3962
|
-
end: (end =
|
|
3962
|
+
readonly: false,
|
|
3963
|
+
static: false,
|
|
3964
|
+
start: (start = deserializeI32(pos)),
|
|
3965
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3963
3966
|
range: [start, end],
|
|
3964
3967
|
},
|
|
3965
3968
|
params = deserializeBoxFormalParameters(pos + 48),
|
|
@@ -3969,8 +3972,6 @@ function deserializeTSMethodSignature(pos) {
|
|
|
3969
3972
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 32);
|
|
3970
3973
|
node.params = params;
|
|
3971
3974
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 56);
|
|
3972
|
-
node.readonly = false;
|
|
3973
|
-
node.static = false;
|
|
3974
3975
|
return node;
|
|
3975
3976
|
}
|
|
3976
3977
|
|
|
@@ -3982,8 +3983,8 @@ function deserializeTSConstructSignatureDeclaration(pos) {
|
|
|
3982
3983
|
typeParameters: null,
|
|
3983
3984
|
params: null,
|
|
3984
3985
|
returnType: null,
|
|
3985
|
-
start: (start =
|
|
3986
|
-
end: (end =
|
|
3986
|
+
start: (start = deserializeI32(pos)),
|
|
3987
|
+
end: (end = deserializeI32(pos + 4)),
|
|
3987
3988
|
range: [start, end],
|
|
3988
3989
|
};
|
|
3989
3990
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16);
|
|
@@ -3997,16 +3998,14 @@ function deserializeTSIndexSignatureName(pos) {
|
|
|
3997
3998
|
end,
|
|
3998
3999
|
node = {
|
|
3999
4000
|
type: "Identifier",
|
|
4000
|
-
decorators:
|
|
4001
|
+
decorators: [],
|
|
4001
4002
|
name: deserializeStr(pos + 16),
|
|
4002
|
-
optional:
|
|
4003
|
+
optional: false,
|
|
4003
4004
|
typeAnnotation: null,
|
|
4004
|
-
start: (start =
|
|
4005
|
-
end: (end =
|
|
4005
|
+
start: (start = deserializeI32(pos)),
|
|
4006
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4006
4007
|
range: [start, end],
|
|
4007
4008
|
};
|
|
4008
|
-
node.decorators = [];
|
|
4009
|
-
node.optional = false;
|
|
4010
4009
|
node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 32);
|
|
4011
4010
|
return node;
|
|
4012
4011
|
}
|
|
@@ -4018,8 +4017,8 @@ function deserializeTSInterfaceHeritage(pos) {
|
|
|
4018
4017
|
type: "TSInterfaceHeritage",
|
|
4019
4018
|
expression: null,
|
|
4020
4019
|
typeArguments: null,
|
|
4021
|
-
start: (start =
|
|
4022
|
-
end: (end =
|
|
4020
|
+
start: (start = deserializeI32(pos)),
|
|
4021
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4023
4022
|
range: [start, end],
|
|
4024
4023
|
};
|
|
4025
4024
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -4035,8 +4034,8 @@ function deserializeTSTypePredicate(pos) {
|
|
|
4035
4034
|
parameterName: null,
|
|
4036
4035
|
asserts: deserializeBool(pos + 12),
|
|
4037
4036
|
typeAnnotation: null,
|
|
4038
|
-
start: (start =
|
|
4039
|
-
end: (end =
|
|
4037
|
+
start: (start = deserializeI32(pos)),
|
|
4038
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4040
4039
|
range: [start, end],
|
|
4041
4040
|
};
|
|
4042
4041
|
node.parameterName = deserializeTSTypePredicateName(pos + 16);
|
|
@@ -4057,8 +4056,8 @@ function deserializeTSTypePredicateName(pos) {
|
|
|
4057
4056
|
|
|
4058
4057
|
function deserializeTSModuleDeclaration(pos) {
|
|
4059
4058
|
let kind = deserializeTSModuleDeclarationKind(pos + 88),
|
|
4060
|
-
start =
|
|
4061
|
-
end =
|
|
4059
|
+
start = deserializeI32(pos),
|
|
4060
|
+
end = deserializeI32(pos + 4),
|
|
4062
4061
|
declare = deserializeBool(pos + 89),
|
|
4063
4062
|
node,
|
|
4064
4063
|
body = deserializeOptionTSModuleDeclarationBody(pos + 72);
|
|
@@ -4170,11 +4169,11 @@ function deserializeTSGlobalDeclaration(pos) {
|
|
|
4170
4169
|
type: "TSModuleDeclaration",
|
|
4171
4170
|
id: null,
|
|
4172
4171
|
body: null,
|
|
4173
|
-
kind:
|
|
4172
|
+
kind: "global",
|
|
4174
4173
|
declare: deserializeBool(pos + 88),
|
|
4175
|
-
global:
|
|
4176
|
-
start: (start =
|
|
4177
|
-
end: (end =
|
|
4174
|
+
global: true,
|
|
4175
|
+
start: (start = deserializeI32(pos)),
|
|
4176
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4178
4177
|
range: [start, end],
|
|
4179
4178
|
},
|
|
4180
4179
|
keywordStart,
|
|
@@ -4182,13 +4181,11 @@ function deserializeTSGlobalDeclaration(pos) {
|
|
|
4182
4181
|
node.id = {
|
|
4183
4182
|
type: "Identifier",
|
|
4184
4183
|
name: "global",
|
|
4185
|
-
start: (keywordStart =
|
|
4186
|
-
end: (keywordEnd =
|
|
4184
|
+
start: (keywordStart = deserializeI32(pos + 16)),
|
|
4185
|
+
end: (keywordEnd = deserializeI32(pos + 20)),
|
|
4187
4186
|
range: [keywordStart, keywordEnd],
|
|
4188
4187
|
};
|
|
4189
4188
|
node.body = deserializeTSModuleBlock(pos + 24);
|
|
4190
|
-
node.kind = "global";
|
|
4191
|
-
node.global = true;
|
|
4192
4189
|
return node;
|
|
4193
4190
|
}
|
|
4194
4191
|
|
|
@@ -4198,8 +4195,8 @@ function deserializeTSModuleBlock(pos) {
|
|
|
4198
4195
|
node = {
|
|
4199
4196
|
type: "TSModuleBlock",
|
|
4200
4197
|
body: null,
|
|
4201
|
-
start: (start =
|
|
4202
|
-
end: (end =
|
|
4198
|
+
start: (start = deserializeI32(pos)),
|
|
4199
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4203
4200
|
range: [start, end],
|
|
4204
4201
|
},
|
|
4205
4202
|
body = deserializeVecDirective(pos + 16);
|
|
@@ -4214,8 +4211,8 @@ function deserializeTSTypeLiteral(pos) {
|
|
|
4214
4211
|
node = {
|
|
4215
4212
|
type: "TSTypeLiteral",
|
|
4216
4213
|
members: null,
|
|
4217
|
-
start: (start =
|
|
4218
|
-
end: (end =
|
|
4214
|
+
start: (start = deserializeI32(pos)),
|
|
4215
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4219
4216
|
range: [start, end],
|
|
4220
4217
|
};
|
|
4221
4218
|
node.members = deserializeVecTSSignature(pos + 16);
|
|
@@ -4228,8 +4225,8 @@ function deserializeTSInferType(pos) {
|
|
|
4228
4225
|
node = {
|
|
4229
4226
|
type: "TSInferType",
|
|
4230
4227
|
typeParameter: null,
|
|
4231
|
-
start: (start =
|
|
4232
|
-
end: (end =
|
|
4228
|
+
start: (start = deserializeI32(pos)),
|
|
4229
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4233
4230
|
range: [start, end],
|
|
4234
4231
|
};
|
|
4235
4232
|
node.typeParameter = deserializeBoxTSTypeParameter(pos + 16);
|
|
@@ -4243,8 +4240,8 @@ function deserializeTSTypeQuery(pos) {
|
|
|
4243
4240
|
type: "TSTypeQuery",
|
|
4244
4241
|
exprName: null,
|
|
4245
4242
|
typeArguments: null,
|
|
4246
|
-
start: (start =
|
|
4247
|
-
end: (end =
|
|
4243
|
+
start: (start = deserializeI32(pos)),
|
|
4244
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4248
4245
|
range: [start, end],
|
|
4249
4246
|
};
|
|
4250
4247
|
node.exprName = deserializeTSTypeQueryExprName(pos + 16);
|
|
@@ -4276,8 +4273,8 @@ function deserializeTSImportType(pos) {
|
|
|
4276
4273
|
options: null,
|
|
4277
4274
|
qualifier: null,
|
|
4278
4275
|
typeArguments: null,
|
|
4279
|
-
start: (start =
|
|
4280
|
-
end: (end =
|
|
4276
|
+
start: (start = deserializeI32(pos)),
|
|
4277
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4281
4278
|
range: [start, end],
|
|
4282
4279
|
};
|
|
4283
4280
|
node.source = deserializeStringLiteral(pos + 16);
|
|
@@ -4305,8 +4302,8 @@ function deserializeTSImportTypeQualifiedName(pos) {
|
|
|
4305
4302
|
type: "TSQualifiedName",
|
|
4306
4303
|
left: null,
|
|
4307
4304
|
right: null,
|
|
4308
|
-
start: (start =
|
|
4309
|
-
end: (end =
|
|
4305
|
+
start: (start = deserializeI32(pos)),
|
|
4306
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4310
4307
|
range: [start, end],
|
|
4311
4308
|
};
|
|
4312
4309
|
node.left = deserializeTSImportTypeQualifier(pos + 16);
|
|
@@ -4322,8 +4319,8 @@ function deserializeTSFunctionType(pos) {
|
|
|
4322
4319
|
typeParameters: null,
|
|
4323
4320
|
params: null,
|
|
4324
4321
|
returnType: null,
|
|
4325
|
-
start: (start =
|
|
4326
|
-
end: (end =
|
|
4322
|
+
start: (start = deserializeI32(pos)),
|
|
4323
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4327
4324
|
range: [start, end],
|
|
4328
4325
|
},
|
|
4329
4326
|
params = deserializeBoxFormalParameters(pos + 32),
|
|
@@ -4344,8 +4341,8 @@ function deserializeTSConstructorType(pos) {
|
|
|
4344
4341
|
typeParameters: null,
|
|
4345
4342
|
params: null,
|
|
4346
4343
|
returnType: null,
|
|
4347
|
-
start: (start =
|
|
4348
|
-
end: (end =
|
|
4344
|
+
start: (start = deserializeI32(pos)),
|
|
4345
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4349
4346
|
range: [start, end],
|
|
4350
4347
|
};
|
|
4351
4348
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 16);
|
|
@@ -4365,8 +4362,8 @@ function deserializeTSMappedType(pos) {
|
|
|
4365
4362
|
typeAnnotation: null,
|
|
4366
4363
|
optional: null,
|
|
4367
4364
|
readonly: deserializeOptionTSMappedTypeModifierOperator(pos + 97),
|
|
4368
|
-
start: (start =
|
|
4369
|
-
end: (end =
|
|
4365
|
+
start: (start = deserializeI32(pos)),
|
|
4366
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4370
4367
|
range: [start, end],
|
|
4371
4368
|
},
|
|
4372
4369
|
optional = deserializeOptionTSMappedTypeModifierOperator(pos + 96);
|
|
@@ -4399,8 +4396,8 @@ function deserializeTSTemplateLiteralType(pos) {
|
|
|
4399
4396
|
type: "TSTemplateLiteralType",
|
|
4400
4397
|
quasis: null,
|
|
4401
4398
|
types: null,
|
|
4402
|
-
start: (start =
|
|
4403
|
-
end: (end =
|
|
4399
|
+
start: (start = deserializeI32(pos)),
|
|
4400
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4404
4401
|
range: [start, end],
|
|
4405
4402
|
};
|
|
4406
4403
|
node.quasis = deserializeVecTemplateElement(pos + 16);
|
|
@@ -4415,8 +4412,8 @@ function deserializeTSAsExpression(pos) {
|
|
|
4415
4412
|
type: "TSAsExpression",
|
|
4416
4413
|
expression: null,
|
|
4417
4414
|
typeAnnotation: null,
|
|
4418
|
-
start: (start =
|
|
4419
|
-
end: (end =
|
|
4415
|
+
start: (start = deserializeI32(pos)),
|
|
4416
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4420
4417
|
range: [start, end],
|
|
4421
4418
|
};
|
|
4422
4419
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -4431,8 +4428,8 @@ function deserializeTSSatisfiesExpression(pos) {
|
|
|
4431
4428
|
type: "TSSatisfiesExpression",
|
|
4432
4429
|
expression: null,
|
|
4433
4430
|
typeAnnotation: null,
|
|
4434
|
-
start: (start =
|
|
4435
|
-
end: (end =
|
|
4431
|
+
start: (start = deserializeI32(pos)),
|
|
4432
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4436
4433
|
range: [start, end],
|
|
4437
4434
|
};
|
|
4438
4435
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -4447,8 +4444,8 @@ function deserializeTSTypeAssertion(pos) {
|
|
|
4447
4444
|
type: "TSTypeAssertion",
|
|
4448
4445
|
typeAnnotation: null,
|
|
4449
4446
|
expression: null,
|
|
4450
|
-
start: (start =
|
|
4451
|
-
end: (end =
|
|
4447
|
+
start: (start = deserializeI32(pos)),
|
|
4448
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4452
4449
|
range: [start, end],
|
|
4453
4450
|
};
|
|
4454
4451
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -4464,8 +4461,8 @@ function deserializeTSImportEqualsDeclaration(pos) {
|
|
|
4464
4461
|
id: null,
|
|
4465
4462
|
moduleReference: null,
|
|
4466
4463
|
importKind: deserializeImportOrExportKind(pos + 12),
|
|
4467
|
-
start: (start =
|
|
4468
|
-
end: (end =
|
|
4464
|
+
start: (start = deserializeI32(pos)),
|
|
4465
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4469
4466
|
range: [start, end],
|
|
4470
4467
|
};
|
|
4471
4468
|
node.id = deserializeBindingIdentifier(pos + 16);
|
|
@@ -4492,8 +4489,8 @@ function deserializeTSExternalModuleReference(pos) {
|
|
|
4492
4489
|
node = {
|
|
4493
4490
|
type: "TSExternalModuleReference",
|
|
4494
4491
|
expression: null,
|
|
4495
|
-
start: (start =
|
|
4496
|
-
end: (end =
|
|
4492
|
+
start: (start = deserializeI32(pos)),
|
|
4493
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4497
4494
|
range: [start, end],
|
|
4498
4495
|
};
|
|
4499
4496
|
node.expression = deserializeStringLiteral(pos + 16);
|
|
@@ -4506,8 +4503,8 @@ function deserializeTSNonNullExpression(pos) {
|
|
|
4506
4503
|
node = {
|
|
4507
4504
|
type: "TSNonNullExpression",
|
|
4508
4505
|
expression: null,
|
|
4509
|
-
start: (start =
|
|
4510
|
-
end: (end =
|
|
4506
|
+
start: (start = deserializeI32(pos)),
|
|
4507
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4511
4508
|
range: [start, end],
|
|
4512
4509
|
};
|
|
4513
4510
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -4520,8 +4517,8 @@ function deserializeDecorator(pos) {
|
|
|
4520
4517
|
node = {
|
|
4521
4518
|
type: "Decorator",
|
|
4522
4519
|
expression: null,
|
|
4523
|
-
start: (start =
|
|
4524
|
-
end: (end =
|
|
4520
|
+
start: (start = deserializeI32(pos)),
|
|
4521
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4525
4522
|
range: [start, end],
|
|
4526
4523
|
};
|
|
4527
4524
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -4534,8 +4531,8 @@ function deserializeTSExportAssignment(pos) {
|
|
|
4534
4531
|
node = {
|
|
4535
4532
|
type: "TSExportAssignment",
|
|
4536
4533
|
expression: null,
|
|
4537
|
-
start: (start =
|
|
4538
|
-
end: (end =
|
|
4534
|
+
start: (start = deserializeI32(pos)),
|
|
4535
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4539
4536
|
range: [start, end],
|
|
4540
4537
|
};
|
|
4541
4538
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -4548,8 +4545,8 @@ function deserializeTSNamespaceExportDeclaration(pos) {
|
|
|
4548
4545
|
node = {
|
|
4549
4546
|
type: "TSNamespaceExportDeclaration",
|
|
4550
4547
|
id: null,
|
|
4551
|
-
start: (start =
|
|
4552
|
-
end: (end =
|
|
4548
|
+
start: (start = deserializeI32(pos)),
|
|
4549
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4553
4550
|
range: [start, end],
|
|
4554
4551
|
};
|
|
4555
4552
|
node.id = deserializeIdentifierName(pos + 16);
|
|
@@ -4563,8 +4560,8 @@ function deserializeTSInstantiationExpression(pos) {
|
|
|
4563
4560
|
type: "TSInstantiationExpression",
|
|
4564
4561
|
expression: null,
|
|
4565
4562
|
typeArguments: null,
|
|
4566
|
-
start: (start =
|
|
4567
|
-
end: (end =
|
|
4563
|
+
start: (start = deserializeI32(pos)),
|
|
4564
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4568
4565
|
range: [start, end],
|
|
4569
4566
|
};
|
|
4570
4567
|
node.expression = deserializeExpression(pos + 16);
|
|
@@ -4590,8 +4587,8 @@ function deserializeJSDocNullableType(pos) {
|
|
|
4590
4587
|
type: "TSJSDocNullableType",
|
|
4591
4588
|
typeAnnotation: null,
|
|
4592
4589
|
postfix: deserializeBool(pos + 12),
|
|
4593
|
-
start: (start =
|
|
4594
|
-
end: (end =
|
|
4590
|
+
start: (start = deserializeI32(pos)),
|
|
4591
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4595
4592
|
range: [start, end],
|
|
4596
4593
|
};
|
|
4597
4594
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -4605,8 +4602,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4605
4602
|
type: "TSJSDocNonNullableType",
|
|
4606
4603
|
typeAnnotation: null,
|
|
4607
4604
|
postfix: deserializeBool(pos + 12),
|
|
4608
|
-
start: (start =
|
|
4609
|
-
end: (end =
|
|
4605
|
+
start: (start = deserializeI32(pos)),
|
|
4606
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4610
4607
|
range: [start, end],
|
|
4611
4608
|
};
|
|
4612
4609
|
node.typeAnnotation = deserializeTSType(pos + 16);
|
|
@@ -4617,8 +4614,8 @@ function deserializeJSDocUnknownType(pos) {
|
|
|
4617
4614
|
let start, end;
|
|
4618
4615
|
return {
|
|
4619
4616
|
type: "TSJSDocUnknownType",
|
|
4620
|
-
start: (start =
|
|
4621
|
-
end: (end =
|
|
4617
|
+
start: (start = deserializeI32(pos)),
|
|
4618
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4622
4619
|
range: [start, end],
|
|
4623
4620
|
};
|
|
4624
4621
|
}
|
|
@@ -4638,8 +4635,8 @@ function deserializeCommentKind(pos) {
|
|
|
4638
4635
|
|
|
4639
4636
|
function deserializeComment(pos) {
|
|
4640
4637
|
let type = deserializeCommentKind(pos + 12),
|
|
4641
|
-
start =
|
|
4642
|
-
end =
|
|
4638
|
+
start = deserializeI32(pos),
|
|
4639
|
+
end = deserializeI32(pos + 4);
|
|
4643
4640
|
return {
|
|
4644
4641
|
type,
|
|
4645
4642
|
value: sourceText.slice(start + 2, end - (type === "Line" ? 0 : 2)),
|
|
@@ -4664,8 +4661,8 @@ function deserializeModuleKind(pos) {
|
|
|
4664
4661
|
|
|
4665
4662
|
function deserializeSpan(pos) {
|
|
4666
4663
|
return {
|
|
4667
|
-
start:
|
|
4668
|
-
end:
|
|
4664
|
+
start: deserializeI32(pos),
|
|
4665
|
+
end: deserializeI32(pos + 4),
|
|
4669
4666
|
};
|
|
4670
4667
|
}
|
|
4671
4668
|
|
|
@@ -4673,8 +4670,8 @@ function deserializeNameSpan(pos) {
|
|
|
4673
4670
|
let start, end;
|
|
4674
4671
|
return {
|
|
4675
4672
|
value: deserializeStr(pos + 8),
|
|
4676
|
-
start: (start =
|
|
4677
|
-
end: (end =
|
|
4673
|
+
start: (start = deserializeI32(pos)),
|
|
4674
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4678
4675
|
range: [start, end],
|
|
4679
4676
|
};
|
|
4680
4677
|
}
|
|
@@ -4728,8 +4725,8 @@ function deserializeExportEntry(pos) {
|
|
|
4728
4725
|
exportName: deserializeExportExportName(pos + 72),
|
|
4729
4726
|
localName: deserializeExportLocalName(pos + 104),
|
|
4730
4727
|
isType: deserializeBool(pos + 136),
|
|
4731
|
-
start: (start =
|
|
4732
|
-
end: (end =
|
|
4728
|
+
start: (start = deserializeI32(pos)),
|
|
4729
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4733
4730
|
range: [start, end],
|
|
4734
4731
|
};
|
|
4735
4732
|
}
|
|
@@ -4844,8 +4841,8 @@ function deserializeDynamicImport(pos) {
|
|
|
4844
4841
|
let start, end;
|
|
4845
4842
|
return {
|
|
4846
4843
|
moduleRequest: deserializeSpan(pos + 8),
|
|
4847
|
-
start: (start =
|
|
4848
|
-
end: (end =
|
|
4844
|
+
start: (start = deserializeI32(pos)),
|
|
4845
|
+
end: (end = deserializeI32(pos + 4)),
|
|
4849
4846
|
range: [start, end],
|
|
4850
4847
|
};
|
|
4851
4848
|
}
|
|
@@ -5021,8 +5018,8 @@ function deserializeErrorLabel(pos) {
|
|
|
5021
5018
|
let start, end;
|
|
5022
5019
|
return {
|
|
5023
5020
|
message: deserializeOptionStr(pos + 8),
|
|
5024
|
-
start: (start =
|
|
5025
|
-
end: (end =
|
|
5021
|
+
start: (start = deserializeI32(pos)),
|
|
5022
|
+
end: (end = deserializeI32(pos + 4)),
|
|
5026
5023
|
range: [start, end],
|
|
5027
5024
|
};
|
|
5028
5025
|
}
|
|
@@ -5042,8 +5039,8 @@ function deserializeStaticImport(pos) {
|
|
|
5042
5039
|
return {
|
|
5043
5040
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
5044
5041
|
entries: deserializeVecImportEntry(pos + 32),
|
|
5045
|
-
start: (start =
|
|
5046
|
-
end: (end =
|
|
5042
|
+
start: (start = deserializeI32(pos)),
|
|
5043
|
+
end: (end = deserializeI32(pos + 4)),
|
|
5047
5044
|
range: [start, end],
|
|
5048
5045
|
};
|
|
5049
5046
|
}
|
|
@@ -5052,41 +5049,45 @@ function deserializeStaticExport(pos) {
|
|
|
5052
5049
|
let start, end;
|
|
5053
5050
|
return {
|
|
5054
5051
|
entries: deserializeVecExportEntry(pos + 8),
|
|
5055
|
-
start: (start =
|
|
5056
|
-
end: (end =
|
|
5052
|
+
start: (start = deserializeI32(pos)),
|
|
5053
|
+
end: (end = deserializeI32(pos + 4)),
|
|
5057
5054
|
range: [start, end],
|
|
5058
5055
|
};
|
|
5059
5056
|
}
|
|
5060
5057
|
|
|
5061
5058
|
function deserializeStr(pos) {
|
|
5062
5059
|
let pos32 = pos >> 2,
|
|
5063
|
-
len =
|
|
5060
|
+
len = int32[pos32 + 2];
|
|
5064
5061
|
if (len === 0) return "";
|
|
5065
|
-
pos =
|
|
5066
|
-
if (sourceIsAscii && pos < sourceEndPos) return sourceText.substr(pos, len);
|
|
5067
|
-
// Longer strings use `TextDecoder`
|
|
5068
|
-
// TODO: Find best switch-over point
|
|
5062
|
+
pos = int32[pos32];
|
|
5069
5063
|
let end = pos + len;
|
|
5070
|
-
if (
|
|
5071
|
-
//
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5064
|
+
if (end <= firstNonAsciiPos) return sourceTextLatin.substr(pos, len);
|
|
5065
|
+
// Use `utf8Slice` for strings longer than 64 bytes
|
|
5066
|
+
if (len > 64) return utf8Slice.call(uint8, pos, end);
|
|
5067
|
+
if (pos < sourceEndPos) {
|
|
5068
|
+
// Check if all bytes are ASCII, use `utf8Slice` if not
|
|
5069
|
+
for (let i = pos; i < end; i++) if (uint8[i] >= 128) return utf8Slice.call(uint8, pos, end);
|
|
5070
|
+
// String is all ASCII, so slice from `sourceTextLatin`
|
|
5071
|
+
return sourceTextLatin.substr(pos, len);
|
|
5072
|
+
}
|
|
5073
|
+
// String is not in source region - use `fromCharCode.apply` with a temp array of correct length.
|
|
5074
|
+
// Copy bytes into temp array.
|
|
5075
|
+
// If any byte is non-ASCII, use `utf8Slice`.
|
|
5076
|
+
let arr = stringDecodeArrays[len];
|
|
5077
|
+
for (let i = 0; i < len; i++) {
|
|
5078
|
+
let b = uint8[pos + i];
|
|
5079
|
+
if (b >= 128) return utf8Slice.call(uint8, pos, end);
|
|
5080
|
+
arr[i] = b;
|
|
5081
|
+
}
|
|
5082
|
+
// Call `fromCharCode` with temp array
|
|
5083
|
+
return fromCharCode.apply(null, arr);
|
|
5083
5084
|
}
|
|
5084
5085
|
|
|
5085
5086
|
function deserializeVecComment(pos) {
|
|
5086
5087
|
let arr = [],
|
|
5087
5088
|
pos32 = pos >> 2;
|
|
5088
|
-
pos =
|
|
5089
|
-
let endPos = pos +
|
|
5089
|
+
pos = int32[pos32];
|
|
5090
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5090
5091
|
for (; pos !== endPos; ) {
|
|
5091
5092
|
arr.push(deserializeComment(pos));
|
|
5092
5093
|
pos += 16;
|
|
@@ -5095,15 +5096,16 @@ function deserializeVecComment(pos) {
|
|
|
5095
5096
|
}
|
|
5096
5097
|
|
|
5097
5098
|
function deserializeOptionHashbang(pos) {
|
|
5098
|
-
|
|
5099
|
-
|
|
5099
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
5100
|
+
? null
|
|
5101
|
+
: deserializeHashbang(pos);
|
|
5100
5102
|
}
|
|
5101
5103
|
|
|
5102
5104
|
function deserializeVecDirective(pos) {
|
|
5103
5105
|
let arr = [],
|
|
5104
5106
|
pos32 = pos >> 2;
|
|
5105
|
-
pos =
|
|
5106
|
-
let endPos = pos +
|
|
5107
|
+
pos = int32[pos32];
|
|
5108
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
5107
5109
|
for (; pos !== endPos; ) {
|
|
5108
5110
|
arr.push(deserializeDirective(pos));
|
|
5109
5111
|
pos += 80;
|
|
@@ -5114,8 +5116,8 @@ function deserializeVecDirective(pos) {
|
|
|
5114
5116
|
function deserializeVecStatement(pos) {
|
|
5115
5117
|
let arr = [],
|
|
5116
5118
|
pos32 = pos >> 2;
|
|
5117
|
-
pos =
|
|
5118
|
-
let endPos = pos +
|
|
5119
|
+
pos = int32[pos32];
|
|
5120
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5119
5121
|
for (; pos !== endPos; ) {
|
|
5120
5122
|
arr.push(deserializeStatement(pos));
|
|
5121
5123
|
pos += 16;
|
|
@@ -5124,170 +5126,170 @@ function deserializeVecStatement(pos) {
|
|
|
5124
5126
|
}
|
|
5125
5127
|
|
|
5126
5128
|
function deserializeBoxBooleanLiteral(pos) {
|
|
5127
|
-
return deserializeBooleanLiteral(
|
|
5129
|
+
return deserializeBooleanLiteral(int32[pos >> 2]);
|
|
5128
5130
|
}
|
|
5129
5131
|
|
|
5130
5132
|
function deserializeBoxNullLiteral(pos) {
|
|
5131
|
-
return deserializeNullLiteral(
|
|
5133
|
+
return deserializeNullLiteral(int32[pos >> 2]);
|
|
5132
5134
|
}
|
|
5133
5135
|
|
|
5134
5136
|
function deserializeBoxNumericLiteral(pos) {
|
|
5135
|
-
return deserializeNumericLiteral(
|
|
5137
|
+
return deserializeNumericLiteral(int32[pos >> 2]);
|
|
5136
5138
|
}
|
|
5137
5139
|
|
|
5138
5140
|
function deserializeBoxBigIntLiteral(pos) {
|
|
5139
|
-
return deserializeBigIntLiteral(
|
|
5141
|
+
return deserializeBigIntLiteral(int32[pos >> 2]);
|
|
5140
5142
|
}
|
|
5141
5143
|
|
|
5142
5144
|
function deserializeBoxRegExpLiteral(pos) {
|
|
5143
|
-
return deserializeRegExpLiteral(
|
|
5145
|
+
return deserializeRegExpLiteral(int32[pos >> 2]);
|
|
5144
5146
|
}
|
|
5145
5147
|
|
|
5146
5148
|
function deserializeBoxStringLiteral(pos) {
|
|
5147
|
-
return deserializeStringLiteral(
|
|
5149
|
+
return deserializeStringLiteral(int32[pos >> 2]);
|
|
5148
5150
|
}
|
|
5149
5151
|
|
|
5150
5152
|
function deserializeBoxTemplateLiteral(pos) {
|
|
5151
|
-
return deserializeTemplateLiteral(
|
|
5153
|
+
return deserializeTemplateLiteral(int32[pos >> 2]);
|
|
5152
5154
|
}
|
|
5153
5155
|
|
|
5154
5156
|
function deserializeBoxIdentifierReference(pos) {
|
|
5155
|
-
return deserializeIdentifierReference(
|
|
5157
|
+
return deserializeIdentifierReference(int32[pos >> 2]);
|
|
5156
5158
|
}
|
|
5157
5159
|
|
|
5158
5160
|
function deserializeBoxMetaProperty(pos) {
|
|
5159
|
-
return deserializeMetaProperty(
|
|
5161
|
+
return deserializeMetaProperty(int32[pos >> 2]);
|
|
5160
5162
|
}
|
|
5161
5163
|
|
|
5162
5164
|
function deserializeBoxSuper(pos) {
|
|
5163
|
-
return deserializeSuper(
|
|
5165
|
+
return deserializeSuper(int32[pos >> 2]);
|
|
5164
5166
|
}
|
|
5165
5167
|
|
|
5166
5168
|
function deserializeBoxArrayExpression(pos) {
|
|
5167
|
-
return deserializeArrayExpression(
|
|
5169
|
+
return deserializeArrayExpression(int32[pos >> 2]);
|
|
5168
5170
|
}
|
|
5169
5171
|
|
|
5170
5172
|
function deserializeBoxArrowFunctionExpression(pos) {
|
|
5171
|
-
return deserializeArrowFunctionExpression(
|
|
5173
|
+
return deserializeArrowFunctionExpression(int32[pos >> 2]);
|
|
5172
5174
|
}
|
|
5173
5175
|
|
|
5174
5176
|
function deserializeBoxAssignmentExpression(pos) {
|
|
5175
|
-
return deserializeAssignmentExpression(
|
|
5177
|
+
return deserializeAssignmentExpression(int32[pos >> 2]);
|
|
5176
5178
|
}
|
|
5177
5179
|
|
|
5178
5180
|
function deserializeBoxAwaitExpression(pos) {
|
|
5179
|
-
return deserializeAwaitExpression(
|
|
5181
|
+
return deserializeAwaitExpression(int32[pos >> 2]);
|
|
5180
5182
|
}
|
|
5181
5183
|
|
|
5182
5184
|
function deserializeBoxBinaryExpression(pos) {
|
|
5183
|
-
return deserializeBinaryExpression(
|
|
5185
|
+
return deserializeBinaryExpression(int32[pos >> 2]);
|
|
5184
5186
|
}
|
|
5185
5187
|
|
|
5186
5188
|
function deserializeBoxCallExpression(pos) {
|
|
5187
|
-
return deserializeCallExpression(
|
|
5189
|
+
return deserializeCallExpression(int32[pos >> 2]);
|
|
5188
5190
|
}
|
|
5189
5191
|
|
|
5190
5192
|
function deserializeBoxChainExpression(pos) {
|
|
5191
|
-
return deserializeChainExpression(
|
|
5193
|
+
return deserializeChainExpression(int32[pos >> 2]);
|
|
5192
5194
|
}
|
|
5193
5195
|
|
|
5194
5196
|
function deserializeBoxClass(pos) {
|
|
5195
|
-
return deserializeClass(
|
|
5197
|
+
return deserializeClass(int32[pos >> 2]);
|
|
5196
5198
|
}
|
|
5197
5199
|
|
|
5198
5200
|
function deserializeBoxConditionalExpression(pos) {
|
|
5199
|
-
return deserializeConditionalExpression(
|
|
5201
|
+
return deserializeConditionalExpression(int32[pos >> 2]);
|
|
5200
5202
|
}
|
|
5201
5203
|
|
|
5202
5204
|
function deserializeBoxFunction(pos) {
|
|
5203
|
-
return deserializeFunction(
|
|
5205
|
+
return deserializeFunction(int32[pos >> 2]);
|
|
5204
5206
|
}
|
|
5205
5207
|
|
|
5206
5208
|
function deserializeBoxImportExpression(pos) {
|
|
5207
|
-
return deserializeImportExpression(
|
|
5209
|
+
return deserializeImportExpression(int32[pos >> 2]);
|
|
5208
5210
|
}
|
|
5209
5211
|
|
|
5210
5212
|
function deserializeBoxLogicalExpression(pos) {
|
|
5211
|
-
return deserializeLogicalExpression(
|
|
5213
|
+
return deserializeLogicalExpression(int32[pos >> 2]);
|
|
5212
5214
|
}
|
|
5213
5215
|
|
|
5214
5216
|
function deserializeBoxNewExpression(pos) {
|
|
5215
|
-
return deserializeNewExpression(
|
|
5217
|
+
return deserializeNewExpression(int32[pos >> 2]);
|
|
5216
5218
|
}
|
|
5217
5219
|
|
|
5218
5220
|
function deserializeBoxObjectExpression(pos) {
|
|
5219
|
-
return deserializeObjectExpression(
|
|
5221
|
+
return deserializeObjectExpression(int32[pos >> 2]);
|
|
5220
5222
|
}
|
|
5221
5223
|
|
|
5222
5224
|
function deserializeBoxParenthesizedExpression(pos) {
|
|
5223
|
-
return deserializeParenthesizedExpression(
|
|
5225
|
+
return deserializeParenthesizedExpression(int32[pos >> 2]);
|
|
5224
5226
|
}
|
|
5225
5227
|
|
|
5226
5228
|
function deserializeBoxSequenceExpression(pos) {
|
|
5227
|
-
return deserializeSequenceExpression(
|
|
5229
|
+
return deserializeSequenceExpression(int32[pos >> 2]);
|
|
5228
5230
|
}
|
|
5229
5231
|
|
|
5230
5232
|
function deserializeBoxTaggedTemplateExpression(pos) {
|
|
5231
|
-
return deserializeTaggedTemplateExpression(
|
|
5233
|
+
return deserializeTaggedTemplateExpression(int32[pos >> 2]);
|
|
5232
5234
|
}
|
|
5233
5235
|
|
|
5234
5236
|
function deserializeBoxThisExpression(pos) {
|
|
5235
|
-
return deserializeThisExpression(
|
|
5237
|
+
return deserializeThisExpression(int32[pos >> 2]);
|
|
5236
5238
|
}
|
|
5237
5239
|
|
|
5238
5240
|
function deserializeBoxUnaryExpression(pos) {
|
|
5239
|
-
return deserializeUnaryExpression(
|
|
5241
|
+
return deserializeUnaryExpression(int32[pos >> 2]);
|
|
5240
5242
|
}
|
|
5241
5243
|
|
|
5242
5244
|
function deserializeBoxUpdateExpression(pos) {
|
|
5243
|
-
return deserializeUpdateExpression(
|
|
5245
|
+
return deserializeUpdateExpression(int32[pos >> 2]);
|
|
5244
5246
|
}
|
|
5245
5247
|
|
|
5246
5248
|
function deserializeBoxYieldExpression(pos) {
|
|
5247
|
-
return deserializeYieldExpression(
|
|
5249
|
+
return deserializeYieldExpression(int32[pos >> 2]);
|
|
5248
5250
|
}
|
|
5249
5251
|
|
|
5250
5252
|
function deserializeBoxPrivateInExpression(pos) {
|
|
5251
|
-
return deserializePrivateInExpression(
|
|
5253
|
+
return deserializePrivateInExpression(int32[pos >> 2]);
|
|
5252
5254
|
}
|
|
5253
5255
|
|
|
5254
5256
|
function deserializeBoxJSXElement(pos) {
|
|
5255
|
-
return deserializeJSXElement(
|
|
5257
|
+
return deserializeJSXElement(int32[pos >> 2]);
|
|
5256
5258
|
}
|
|
5257
5259
|
|
|
5258
5260
|
function deserializeBoxJSXFragment(pos) {
|
|
5259
|
-
return deserializeJSXFragment(
|
|
5261
|
+
return deserializeJSXFragment(int32[pos >> 2]);
|
|
5260
5262
|
}
|
|
5261
5263
|
|
|
5262
5264
|
function deserializeBoxTSAsExpression(pos) {
|
|
5263
|
-
return deserializeTSAsExpression(
|
|
5265
|
+
return deserializeTSAsExpression(int32[pos >> 2]);
|
|
5264
5266
|
}
|
|
5265
5267
|
|
|
5266
5268
|
function deserializeBoxTSSatisfiesExpression(pos) {
|
|
5267
|
-
return deserializeTSSatisfiesExpression(
|
|
5269
|
+
return deserializeTSSatisfiesExpression(int32[pos >> 2]);
|
|
5268
5270
|
}
|
|
5269
5271
|
|
|
5270
5272
|
function deserializeBoxTSTypeAssertion(pos) {
|
|
5271
|
-
return deserializeTSTypeAssertion(
|
|
5273
|
+
return deserializeTSTypeAssertion(int32[pos >> 2]);
|
|
5272
5274
|
}
|
|
5273
5275
|
|
|
5274
5276
|
function deserializeBoxTSNonNullExpression(pos) {
|
|
5275
|
-
return deserializeTSNonNullExpression(
|
|
5277
|
+
return deserializeTSNonNullExpression(int32[pos >> 2]);
|
|
5276
5278
|
}
|
|
5277
5279
|
|
|
5278
5280
|
function deserializeBoxTSInstantiationExpression(pos) {
|
|
5279
|
-
return deserializeTSInstantiationExpression(
|
|
5281
|
+
return deserializeTSInstantiationExpression(int32[pos >> 2]);
|
|
5280
5282
|
}
|
|
5281
5283
|
|
|
5282
5284
|
function deserializeBoxV8IntrinsicExpression(pos) {
|
|
5283
|
-
return deserializeV8IntrinsicExpression(
|
|
5285
|
+
return deserializeV8IntrinsicExpression(int32[pos >> 2]);
|
|
5284
5286
|
}
|
|
5285
5287
|
|
|
5286
5288
|
function deserializeVecArrayExpressionElement(pos) {
|
|
5287
5289
|
let arr = [],
|
|
5288
5290
|
pos32 = pos >> 2;
|
|
5289
|
-
pos =
|
|
5290
|
-
let endPos = pos +
|
|
5291
|
+
pos = int32[pos32];
|
|
5292
|
+
let endPos = pos + int32[pos32 + 2] * 24;
|
|
5291
5293
|
for (; pos !== endPos; ) {
|
|
5292
5294
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
5293
5295
|
pos += 24;
|
|
@@ -5296,14 +5298,14 @@ function deserializeVecArrayExpressionElement(pos) {
|
|
|
5296
5298
|
}
|
|
5297
5299
|
|
|
5298
5300
|
function deserializeBoxSpreadElement(pos) {
|
|
5299
|
-
return deserializeSpreadElement(
|
|
5301
|
+
return deserializeSpreadElement(int32[pos >> 2]);
|
|
5300
5302
|
}
|
|
5301
5303
|
|
|
5302
5304
|
function deserializeVecObjectPropertyKind(pos) {
|
|
5303
5305
|
let arr = [],
|
|
5304
5306
|
pos32 = pos >> 2;
|
|
5305
|
-
pos =
|
|
5306
|
-
let endPos = pos +
|
|
5307
|
+
pos = int32[pos32];
|
|
5308
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5307
5309
|
for (; pos !== endPos; ) {
|
|
5308
5310
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
5309
5311
|
pos += 16;
|
|
@@ -5312,7 +5314,7 @@ function deserializeVecObjectPropertyKind(pos) {
|
|
|
5312
5314
|
}
|
|
5313
5315
|
|
|
5314
5316
|
function deserializeBoxObjectProperty(pos) {
|
|
5315
|
-
return deserializeObjectProperty(
|
|
5317
|
+
return deserializeObjectProperty(int32[pos >> 2]);
|
|
5316
5318
|
}
|
|
5317
5319
|
|
|
5318
5320
|
function deserializeBool(pos) {
|
|
@@ -5320,18 +5322,18 @@ function deserializeBool(pos) {
|
|
|
5320
5322
|
}
|
|
5321
5323
|
|
|
5322
5324
|
function deserializeBoxIdentifierName(pos) {
|
|
5323
|
-
return deserializeIdentifierName(
|
|
5325
|
+
return deserializeIdentifierName(int32[pos >> 2]);
|
|
5324
5326
|
}
|
|
5325
5327
|
|
|
5326
5328
|
function deserializeBoxPrivateIdentifier(pos) {
|
|
5327
|
-
return deserializePrivateIdentifier(
|
|
5329
|
+
return deserializePrivateIdentifier(int32[pos >> 2]);
|
|
5328
5330
|
}
|
|
5329
5331
|
|
|
5330
5332
|
function deserializeVecTemplateElement(pos) {
|
|
5331
5333
|
let arr = [],
|
|
5332
5334
|
pos32 = pos >> 2;
|
|
5333
|
-
pos =
|
|
5334
|
-
let endPos = pos +
|
|
5335
|
+
pos = int32[pos32];
|
|
5336
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5335
5337
|
for (; pos !== endPos; ) {
|
|
5336
5338
|
arr.push(deserializeTemplateElement(pos));
|
|
5337
5339
|
pos += 48;
|
|
@@ -5342,8 +5344,8 @@ function deserializeVecTemplateElement(pos) {
|
|
|
5342
5344
|
function deserializeVecExpression(pos) {
|
|
5343
5345
|
let arr = [],
|
|
5344
5346
|
pos32 = pos >> 2;
|
|
5345
|
-
pos =
|
|
5346
|
-
let endPos = pos +
|
|
5347
|
+
pos = int32[pos32];
|
|
5348
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5347
5349
|
for (; pos !== endPos; ) {
|
|
5348
5350
|
arr.push(deserializeExpression(pos));
|
|
5349
5351
|
pos += 16;
|
|
@@ -5352,36 +5354,36 @@ function deserializeVecExpression(pos) {
|
|
|
5352
5354
|
}
|
|
5353
5355
|
|
|
5354
5356
|
function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
5355
|
-
return deserializeTSTypeParameterInstantiation(
|
|
5357
|
+
return deserializeTSTypeParameterInstantiation(int32[pos >> 2]);
|
|
5356
5358
|
}
|
|
5357
5359
|
|
|
5358
5360
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5362
|
+
? null
|
|
5363
|
+
: deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5361
5364
|
}
|
|
5362
5365
|
|
|
5363
5366
|
function deserializeOptionStr(pos) {
|
|
5364
|
-
|
|
5365
|
-
return deserializeStr(pos);
|
|
5367
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0 ? null : deserializeStr(pos);
|
|
5366
5368
|
}
|
|
5367
5369
|
|
|
5368
5370
|
function deserializeBoxComputedMemberExpression(pos) {
|
|
5369
|
-
return deserializeComputedMemberExpression(
|
|
5371
|
+
return deserializeComputedMemberExpression(int32[pos >> 2]);
|
|
5370
5372
|
}
|
|
5371
5373
|
|
|
5372
5374
|
function deserializeBoxStaticMemberExpression(pos) {
|
|
5373
|
-
return deserializeStaticMemberExpression(
|
|
5375
|
+
return deserializeStaticMemberExpression(int32[pos >> 2]);
|
|
5374
5376
|
}
|
|
5375
5377
|
|
|
5376
5378
|
function deserializeBoxPrivateFieldExpression(pos) {
|
|
5377
|
-
return deserializePrivateFieldExpression(
|
|
5379
|
+
return deserializePrivateFieldExpression(int32[pos >> 2]);
|
|
5378
5380
|
}
|
|
5379
5381
|
|
|
5380
5382
|
function deserializeVecArgument(pos) {
|
|
5381
5383
|
let arr = [],
|
|
5382
5384
|
pos32 = pos >> 2;
|
|
5383
|
-
pos =
|
|
5384
|
-
let endPos = pos +
|
|
5385
|
+
pos = int32[pos32];
|
|
5386
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5385
5387
|
for (; pos !== endPos; ) {
|
|
5386
5388
|
arr.push(deserializeArgument(pos));
|
|
5387
5389
|
pos += 16;
|
|
@@ -5390,23 +5392,22 @@ function deserializeVecArgument(pos) {
|
|
|
5390
5392
|
}
|
|
5391
5393
|
|
|
5392
5394
|
function deserializeBoxArrayAssignmentTarget(pos) {
|
|
5393
|
-
return deserializeArrayAssignmentTarget(
|
|
5395
|
+
return deserializeArrayAssignmentTarget(int32[pos >> 2]);
|
|
5394
5396
|
}
|
|
5395
5397
|
|
|
5396
5398
|
function deserializeBoxObjectAssignmentTarget(pos) {
|
|
5397
|
-
return deserializeObjectAssignmentTarget(
|
|
5399
|
+
return deserializeObjectAssignmentTarget(int32[pos >> 2]);
|
|
5398
5400
|
}
|
|
5399
5401
|
|
|
5400
5402
|
function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
5401
|
-
|
|
5402
|
-
return deserializeAssignmentTargetMaybeDefault(pos);
|
|
5403
|
+
return uint8[pos] === 51 ? null : deserializeAssignmentTargetMaybeDefault(pos);
|
|
5403
5404
|
}
|
|
5404
5405
|
|
|
5405
5406
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
5406
5407
|
let arr = [],
|
|
5407
5408
|
pos32 = pos >> 2;
|
|
5408
|
-
pos =
|
|
5409
|
-
let endPos = pos +
|
|
5409
|
+
pos = int32[pos32];
|
|
5410
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5410
5411
|
for (; pos !== endPos; ) {
|
|
5411
5412
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
5412
5413
|
pos += 16;
|
|
@@ -5415,19 +5416,20 @@ function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5415
5416
|
}
|
|
5416
5417
|
|
|
5417
5418
|
function deserializeBoxAssignmentTargetRest(pos) {
|
|
5418
|
-
return deserializeAssignmentTargetRest(
|
|
5419
|
+
return deserializeAssignmentTargetRest(int32[pos >> 2]);
|
|
5419
5420
|
}
|
|
5420
5421
|
|
|
5421
5422
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5422
|
-
|
|
5423
|
-
|
|
5423
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5424
|
+
? null
|
|
5425
|
+
: deserializeBoxAssignmentTargetRest(pos);
|
|
5424
5426
|
}
|
|
5425
5427
|
|
|
5426
5428
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
5427
5429
|
let arr = [],
|
|
5428
5430
|
pos32 = pos >> 2;
|
|
5429
|
-
pos =
|
|
5430
|
-
let endPos = pos +
|
|
5431
|
+
pos = int32[pos32];
|
|
5432
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5431
5433
|
for (; pos !== endPos; ) {
|
|
5432
5434
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
5433
5435
|
pos += 16;
|
|
@@ -5436,127 +5438,126 @@ function deserializeVecAssignmentTargetProperty(pos) {
|
|
|
5436
5438
|
}
|
|
5437
5439
|
|
|
5438
5440
|
function deserializeBoxAssignmentTargetWithDefault(pos) {
|
|
5439
|
-
return deserializeAssignmentTargetWithDefault(
|
|
5441
|
+
return deserializeAssignmentTargetWithDefault(int32[pos >> 2]);
|
|
5440
5442
|
}
|
|
5441
5443
|
|
|
5442
5444
|
function deserializeBoxAssignmentTargetPropertyIdentifier(pos) {
|
|
5443
|
-
return deserializeAssignmentTargetPropertyIdentifier(
|
|
5445
|
+
return deserializeAssignmentTargetPropertyIdentifier(int32[pos >> 2]);
|
|
5444
5446
|
}
|
|
5445
5447
|
|
|
5446
5448
|
function deserializeBoxAssignmentTargetPropertyProperty(pos) {
|
|
5447
|
-
return deserializeAssignmentTargetPropertyProperty(
|
|
5449
|
+
return deserializeAssignmentTargetPropertyProperty(int32[pos >> 2]);
|
|
5448
5450
|
}
|
|
5449
5451
|
|
|
5450
5452
|
function deserializeOptionExpression(pos) {
|
|
5451
|
-
|
|
5452
|
-
return deserializeExpression(pos);
|
|
5453
|
+
return uint8[pos] === 51 ? null : deserializeExpression(pos);
|
|
5453
5454
|
}
|
|
5454
5455
|
|
|
5455
5456
|
function deserializeBoxBlockStatement(pos) {
|
|
5456
|
-
return deserializeBlockStatement(
|
|
5457
|
+
return deserializeBlockStatement(int32[pos >> 2]);
|
|
5457
5458
|
}
|
|
5458
5459
|
|
|
5459
5460
|
function deserializeBoxBreakStatement(pos) {
|
|
5460
|
-
return deserializeBreakStatement(
|
|
5461
|
+
return deserializeBreakStatement(int32[pos >> 2]);
|
|
5461
5462
|
}
|
|
5462
5463
|
|
|
5463
5464
|
function deserializeBoxContinueStatement(pos) {
|
|
5464
|
-
return deserializeContinueStatement(
|
|
5465
|
+
return deserializeContinueStatement(int32[pos >> 2]);
|
|
5465
5466
|
}
|
|
5466
5467
|
|
|
5467
5468
|
function deserializeBoxDebuggerStatement(pos) {
|
|
5468
|
-
return deserializeDebuggerStatement(
|
|
5469
|
+
return deserializeDebuggerStatement(int32[pos >> 2]);
|
|
5469
5470
|
}
|
|
5470
5471
|
|
|
5471
5472
|
function deserializeBoxDoWhileStatement(pos) {
|
|
5472
|
-
return deserializeDoWhileStatement(
|
|
5473
|
+
return deserializeDoWhileStatement(int32[pos >> 2]);
|
|
5473
5474
|
}
|
|
5474
5475
|
|
|
5475
5476
|
function deserializeBoxEmptyStatement(pos) {
|
|
5476
|
-
return deserializeEmptyStatement(
|
|
5477
|
+
return deserializeEmptyStatement(int32[pos >> 2]);
|
|
5477
5478
|
}
|
|
5478
5479
|
|
|
5479
5480
|
function deserializeBoxExpressionStatement(pos) {
|
|
5480
|
-
return deserializeExpressionStatement(
|
|
5481
|
+
return deserializeExpressionStatement(int32[pos >> 2]);
|
|
5481
5482
|
}
|
|
5482
5483
|
|
|
5483
5484
|
function deserializeBoxForInStatement(pos) {
|
|
5484
|
-
return deserializeForInStatement(
|
|
5485
|
+
return deserializeForInStatement(int32[pos >> 2]);
|
|
5485
5486
|
}
|
|
5486
5487
|
|
|
5487
5488
|
function deserializeBoxForOfStatement(pos) {
|
|
5488
|
-
return deserializeForOfStatement(
|
|
5489
|
+
return deserializeForOfStatement(int32[pos >> 2]);
|
|
5489
5490
|
}
|
|
5490
5491
|
|
|
5491
5492
|
function deserializeBoxForStatement(pos) {
|
|
5492
|
-
return deserializeForStatement(
|
|
5493
|
+
return deserializeForStatement(int32[pos >> 2]);
|
|
5493
5494
|
}
|
|
5494
5495
|
|
|
5495
5496
|
function deserializeBoxIfStatement(pos) {
|
|
5496
|
-
return deserializeIfStatement(
|
|
5497
|
+
return deserializeIfStatement(int32[pos >> 2]);
|
|
5497
5498
|
}
|
|
5498
5499
|
|
|
5499
5500
|
function deserializeBoxLabeledStatement(pos) {
|
|
5500
|
-
return deserializeLabeledStatement(
|
|
5501
|
+
return deserializeLabeledStatement(int32[pos >> 2]);
|
|
5501
5502
|
}
|
|
5502
5503
|
|
|
5503
5504
|
function deserializeBoxReturnStatement(pos) {
|
|
5504
|
-
return deserializeReturnStatement(
|
|
5505
|
+
return deserializeReturnStatement(int32[pos >> 2]);
|
|
5505
5506
|
}
|
|
5506
5507
|
|
|
5507
5508
|
function deserializeBoxSwitchStatement(pos) {
|
|
5508
|
-
return deserializeSwitchStatement(
|
|
5509
|
+
return deserializeSwitchStatement(int32[pos >> 2]);
|
|
5509
5510
|
}
|
|
5510
5511
|
|
|
5511
5512
|
function deserializeBoxThrowStatement(pos) {
|
|
5512
|
-
return deserializeThrowStatement(
|
|
5513
|
+
return deserializeThrowStatement(int32[pos >> 2]);
|
|
5513
5514
|
}
|
|
5514
5515
|
|
|
5515
5516
|
function deserializeBoxTryStatement(pos) {
|
|
5516
|
-
return deserializeTryStatement(
|
|
5517
|
+
return deserializeTryStatement(int32[pos >> 2]);
|
|
5517
5518
|
}
|
|
5518
5519
|
|
|
5519
5520
|
function deserializeBoxWhileStatement(pos) {
|
|
5520
|
-
return deserializeWhileStatement(
|
|
5521
|
+
return deserializeWhileStatement(int32[pos >> 2]);
|
|
5521
5522
|
}
|
|
5522
5523
|
|
|
5523
5524
|
function deserializeBoxWithStatement(pos) {
|
|
5524
|
-
return deserializeWithStatement(
|
|
5525
|
+
return deserializeWithStatement(int32[pos >> 2]);
|
|
5525
5526
|
}
|
|
5526
5527
|
|
|
5527
5528
|
function deserializeBoxVariableDeclaration(pos) {
|
|
5528
|
-
return deserializeVariableDeclaration(
|
|
5529
|
+
return deserializeVariableDeclaration(int32[pos >> 2]);
|
|
5529
5530
|
}
|
|
5530
5531
|
|
|
5531
5532
|
function deserializeBoxTSTypeAliasDeclaration(pos) {
|
|
5532
|
-
return deserializeTSTypeAliasDeclaration(
|
|
5533
|
+
return deserializeTSTypeAliasDeclaration(int32[pos >> 2]);
|
|
5533
5534
|
}
|
|
5534
5535
|
|
|
5535
5536
|
function deserializeBoxTSInterfaceDeclaration(pos) {
|
|
5536
|
-
return deserializeTSInterfaceDeclaration(
|
|
5537
|
+
return deserializeTSInterfaceDeclaration(int32[pos >> 2]);
|
|
5537
5538
|
}
|
|
5538
5539
|
|
|
5539
5540
|
function deserializeBoxTSEnumDeclaration(pos) {
|
|
5540
|
-
return deserializeTSEnumDeclaration(
|
|
5541
|
+
return deserializeTSEnumDeclaration(int32[pos >> 2]);
|
|
5541
5542
|
}
|
|
5542
5543
|
|
|
5543
5544
|
function deserializeBoxTSModuleDeclaration(pos) {
|
|
5544
|
-
return deserializeTSModuleDeclaration(
|
|
5545
|
+
return deserializeTSModuleDeclaration(int32[pos >> 2]);
|
|
5545
5546
|
}
|
|
5546
5547
|
|
|
5547
5548
|
function deserializeBoxTSGlobalDeclaration(pos) {
|
|
5548
|
-
return deserializeTSGlobalDeclaration(
|
|
5549
|
+
return deserializeTSGlobalDeclaration(int32[pos >> 2]);
|
|
5549
5550
|
}
|
|
5550
5551
|
|
|
5551
5552
|
function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
5552
|
-
return deserializeTSImportEqualsDeclaration(
|
|
5553
|
+
return deserializeTSImportEqualsDeclaration(int32[pos >> 2]);
|
|
5553
5554
|
}
|
|
5554
5555
|
|
|
5555
5556
|
function deserializeVecVariableDeclarator(pos) {
|
|
5556
5557
|
let arr = [],
|
|
5557
5558
|
pos32 = pos >> 2;
|
|
5558
|
-
pos =
|
|
5559
|
-
let endPos = pos +
|
|
5559
|
+
pos = int32[pos32];
|
|
5560
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
5560
5561
|
for (; pos !== endPos; ) {
|
|
5561
5562
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5562
5563
|
pos += 56;
|
|
@@ -5565,34 +5566,34 @@ function deserializeVecVariableDeclarator(pos) {
|
|
|
5565
5566
|
}
|
|
5566
5567
|
|
|
5567
5568
|
function deserializeBoxTSTypeAnnotation(pos) {
|
|
5568
|
-
return deserializeTSTypeAnnotation(
|
|
5569
|
+
return deserializeTSTypeAnnotation(int32[pos >> 2]);
|
|
5569
5570
|
}
|
|
5570
5571
|
|
|
5571
5572
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5572
|
-
|
|
5573
|
-
|
|
5573
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5574
|
+
? null
|
|
5575
|
+
: deserializeBoxTSTypeAnnotation(pos);
|
|
5574
5576
|
}
|
|
5575
5577
|
|
|
5576
5578
|
function deserializeOptionStatement(pos) {
|
|
5577
|
-
|
|
5578
|
-
return deserializeStatement(pos);
|
|
5579
|
+
return uint8[pos] === 70 ? null : deserializeStatement(pos);
|
|
5579
5580
|
}
|
|
5580
5581
|
|
|
5581
5582
|
function deserializeOptionForStatementInit(pos) {
|
|
5582
|
-
|
|
5583
|
-
return deserializeForStatementInit(pos);
|
|
5583
|
+
return uint8[pos] === 65 ? null : deserializeForStatementInit(pos);
|
|
5584
5584
|
}
|
|
5585
5585
|
|
|
5586
5586
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5587
|
-
|
|
5588
|
-
|
|
5587
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
5588
|
+
? null
|
|
5589
|
+
: deserializeLabelIdentifier(pos);
|
|
5589
5590
|
}
|
|
5590
5591
|
|
|
5591
5592
|
function deserializeVecSwitchCase(pos) {
|
|
5592
5593
|
let arr = [],
|
|
5593
5594
|
pos32 = pos >> 2;
|
|
5594
|
-
pos =
|
|
5595
|
-
let endPos = pos +
|
|
5595
|
+
pos = int32[pos32];
|
|
5596
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
5596
5597
|
for (; pos !== endPos; ) {
|
|
5597
5598
|
arr.push(deserializeSwitchCase(pos));
|
|
5598
5599
|
pos += 56;
|
|
@@ -5601,45 +5602,46 @@ function deserializeVecSwitchCase(pos) {
|
|
|
5601
5602
|
}
|
|
5602
5603
|
|
|
5603
5604
|
function deserializeBoxCatchClause(pos) {
|
|
5604
|
-
return deserializeCatchClause(
|
|
5605
|
+
return deserializeCatchClause(int32[pos >> 2]);
|
|
5605
5606
|
}
|
|
5606
5607
|
|
|
5607
5608
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5608
|
-
|
|
5609
|
-
|
|
5609
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5610
|
+
? null
|
|
5611
|
+
: deserializeBoxCatchClause(pos);
|
|
5610
5612
|
}
|
|
5611
5613
|
|
|
5612
5614
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5616
|
+
? null
|
|
5617
|
+
: deserializeBoxBlockStatement(pos);
|
|
5615
5618
|
}
|
|
5616
5619
|
|
|
5617
5620
|
function deserializeOptionCatchParameter(pos) {
|
|
5618
|
-
|
|
5619
|
-
return deserializeCatchParameter(pos);
|
|
5621
|
+
return uint8[pos + 16] === 4 ? null : deserializeCatchParameter(pos);
|
|
5620
5622
|
}
|
|
5621
5623
|
|
|
5622
5624
|
function deserializeBoxBindingIdentifier(pos) {
|
|
5623
|
-
return deserializeBindingIdentifier(
|
|
5625
|
+
return deserializeBindingIdentifier(int32[pos >> 2]);
|
|
5624
5626
|
}
|
|
5625
5627
|
|
|
5626
5628
|
function deserializeBoxObjectPattern(pos) {
|
|
5627
|
-
return deserializeObjectPattern(
|
|
5629
|
+
return deserializeObjectPattern(int32[pos >> 2]);
|
|
5628
5630
|
}
|
|
5629
5631
|
|
|
5630
5632
|
function deserializeBoxArrayPattern(pos) {
|
|
5631
|
-
return deserializeArrayPattern(
|
|
5633
|
+
return deserializeArrayPattern(int32[pos >> 2]);
|
|
5632
5634
|
}
|
|
5633
5635
|
|
|
5634
5636
|
function deserializeBoxAssignmentPattern(pos) {
|
|
5635
|
-
return deserializeAssignmentPattern(
|
|
5637
|
+
return deserializeAssignmentPattern(int32[pos >> 2]);
|
|
5636
5638
|
}
|
|
5637
5639
|
|
|
5638
5640
|
function deserializeVecBindingProperty(pos) {
|
|
5639
5641
|
let arr = [],
|
|
5640
5642
|
pos32 = pos >> 2;
|
|
5641
|
-
pos =
|
|
5642
|
-
let endPos = pos +
|
|
5643
|
+
pos = int32[pos32];
|
|
5644
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5643
5645
|
for (; pos !== endPos; ) {
|
|
5644
5646
|
arr.push(deserializeBindingProperty(pos));
|
|
5645
5647
|
pos += 48;
|
|
@@ -5648,24 +5650,24 @@ function deserializeVecBindingProperty(pos) {
|
|
|
5648
5650
|
}
|
|
5649
5651
|
|
|
5650
5652
|
function deserializeBoxBindingRestElement(pos) {
|
|
5651
|
-
return deserializeBindingRestElement(
|
|
5653
|
+
return deserializeBindingRestElement(int32[pos >> 2]);
|
|
5652
5654
|
}
|
|
5653
5655
|
|
|
5654
5656
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5658
|
+
? null
|
|
5659
|
+
: deserializeBoxBindingRestElement(pos);
|
|
5657
5660
|
}
|
|
5658
5661
|
|
|
5659
5662
|
function deserializeOptionBindingPattern(pos) {
|
|
5660
|
-
|
|
5661
|
-
return deserializeBindingPattern(pos);
|
|
5663
|
+
return uint8[pos] === 4 ? null : deserializeBindingPattern(pos);
|
|
5662
5664
|
}
|
|
5663
5665
|
|
|
5664
5666
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5665
5667
|
let arr = [],
|
|
5666
5668
|
pos32 = pos >> 2;
|
|
5667
|
-
pos =
|
|
5668
|
-
let endPos = pos +
|
|
5669
|
+
pos = int32[pos32];
|
|
5670
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5669
5671
|
for (; pos !== endPos; ) {
|
|
5670
5672
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5671
5673
|
pos += 16;
|
|
@@ -5674,46 +5676,50 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5674
5676
|
}
|
|
5675
5677
|
|
|
5676
5678
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
+
return int32[(pos >> 2) + 4] === 0 && int32[(pos >> 2) + 5] === 0
|
|
5680
|
+
? null
|
|
5681
|
+
: deserializeBindingIdentifier(pos);
|
|
5679
5682
|
}
|
|
5680
5683
|
|
|
5681
5684
|
function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
5682
|
-
return deserializeTSTypeParameterDeclaration(
|
|
5685
|
+
return deserializeTSTypeParameterDeclaration(int32[pos >> 2]);
|
|
5683
5686
|
}
|
|
5684
5687
|
|
|
5685
5688
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5686
|
-
|
|
5687
|
-
|
|
5689
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5690
|
+
? null
|
|
5691
|
+
: deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5688
5692
|
}
|
|
5689
5693
|
|
|
5690
5694
|
function deserializeBoxTSThisParameter(pos) {
|
|
5691
|
-
return deserializeTSThisParameter(
|
|
5695
|
+
return deserializeTSThisParameter(int32[pos >> 2]);
|
|
5692
5696
|
}
|
|
5693
5697
|
|
|
5694
5698
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5695
|
-
|
|
5696
|
-
|
|
5699
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5700
|
+
? null
|
|
5701
|
+
: deserializeBoxTSThisParameter(pos);
|
|
5697
5702
|
}
|
|
5698
5703
|
|
|
5699
5704
|
function deserializeBoxFormalParameters(pos) {
|
|
5700
|
-
return deserializeFormalParameters(
|
|
5705
|
+
return deserializeFormalParameters(int32[pos >> 2]);
|
|
5701
5706
|
}
|
|
5702
5707
|
|
|
5703
5708
|
function deserializeBoxFunctionBody(pos) {
|
|
5704
|
-
return deserializeFunctionBody(
|
|
5709
|
+
return deserializeFunctionBody(int32[pos >> 2]);
|
|
5705
5710
|
}
|
|
5706
5711
|
|
|
5707
5712
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5708
|
-
|
|
5709
|
-
|
|
5713
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5714
|
+
? null
|
|
5715
|
+
: deserializeBoxFunctionBody(pos);
|
|
5710
5716
|
}
|
|
5711
5717
|
|
|
5712
5718
|
function deserializeVecFormalParameter(pos) {
|
|
5713
5719
|
let arr = [],
|
|
5714
5720
|
pos32 = pos >> 2;
|
|
5715
|
-
pos =
|
|
5716
|
-
let endPos = pos +
|
|
5721
|
+
pos = int32[pos32];
|
|
5722
|
+
let endPos = pos + int32[pos32 + 2] * 72;
|
|
5717
5723
|
for (; pos !== endPos; ) {
|
|
5718
5724
|
arr.push(deserializeFormalParameter(pos));
|
|
5719
5725
|
pos += 72;
|
|
@@ -5724,8 +5730,8 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5724
5730
|
function deserializeVecDecorator(pos) {
|
|
5725
5731
|
let arr = [],
|
|
5726
5732
|
pos32 = pos >> 2;
|
|
5727
|
-
pos =
|
|
5728
|
-
let endPos = pos +
|
|
5733
|
+
pos = int32[pos32];
|
|
5734
|
+
let endPos = pos + (int32[pos32 + 2] << 5);
|
|
5729
5735
|
for (; pos !== endPos; ) {
|
|
5730
5736
|
arr.push(deserializeDecorator(pos));
|
|
5731
5737
|
pos += 32;
|
|
@@ -5734,23 +5740,24 @@ function deserializeVecDecorator(pos) {
|
|
|
5734
5740
|
}
|
|
5735
5741
|
|
|
5736
5742
|
function deserializeBoxExpression(pos) {
|
|
5737
|
-
return deserializeExpression(
|
|
5743
|
+
return deserializeExpression(int32[pos >> 2]);
|
|
5738
5744
|
}
|
|
5739
5745
|
|
|
5740
5746
|
function deserializeOptionBoxExpression(pos) {
|
|
5741
|
-
|
|
5742
|
-
|
|
5747
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5748
|
+
? null
|
|
5749
|
+
: deserializeBoxExpression(pos);
|
|
5743
5750
|
}
|
|
5744
5751
|
|
|
5745
5752
|
function deserializeBoxClassBody(pos) {
|
|
5746
|
-
return deserializeClassBody(
|
|
5753
|
+
return deserializeClassBody(int32[pos >> 2]);
|
|
5747
5754
|
}
|
|
5748
5755
|
|
|
5749
5756
|
function deserializeVecClassElement(pos) {
|
|
5750
5757
|
let arr = [],
|
|
5751
5758
|
pos32 = pos >> 2;
|
|
5752
|
-
pos =
|
|
5753
|
-
let endPos = pos +
|
|
5759
|
+
pos = int32[pos32];
|
|
5760
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5754
5761
|
for (; pos !== endPos; ) {
|
|
5755
5762
|
arr.push(deserializeClassElement(pos));
|
|
5756
5763
|
pos += 16;
|
|
@@ -5759,59 +5766,58 @@ function deserializeVecClassElement(pos) {
|
|
|
5759
5766
|
}
|
|
5760
5767
|
|
|
5761
5768
|
function deserializeBoxStaticBlock(pos) {
|
|
5762
|
-
return deserializeStaticBlock(
|
|
5769
|
+
return deserializeStaticBlock(int32[pos >> 2]);
|
|
5763
5770
|
}
|
|
5764
5771
|
|
|
5765
5772
|
function deserializeBoxMethodDefinition(pos) {
|
|
5766
|
-
return deserializeMethodDefinition(
|
|
5773
|
+
return deserializeMethodDefinition(int32[pos >> 2]);
|
|
5767
5774
|
}
|
|
5768
5775
|
|
|
5769
5776
|
function deserializeBoxPropertyDefinition(pos) {
|
|
5770
|
-
return deserializePropertyDefinition(
|
|
5777
|
+
return deserializePropertyDefinition(int32[pos >> 2]);
|
|
5771
5778
|
}
|
|
5772
5779
|
|
|
5773
5780
|
function deserializeBoxAccessorProperty(pos) {
|
|
5774
|
-
return deserializeAccessorProperty(
|
|
5781
|
+
return deserializeAccessorProperty(int32[pos >> 2]);
|
|
5775
5782
|
}
|
|
5776
5783
|
|
|
5777
5784
|
function deserializeBoxTSIndexSignature(pos) {
|
|
5778
|
-
return deserializeTSIndexSignature(
|
|
5785
|
+
return deserializeTSIndexSignature(int32[pos >> 2]);
|
|
5779
5786
|
}
|
|
5780
5787
|
|
|
5781
5788
|
function deserializeBoxImportDeclaration(pos) {
|
|
5782
|
-
return deserializeImportDeclaration(
|
|
5789
|
+
return deserializeImportDeclaration(int32[pos >> 2]);
|
|
5783
5790
|
}
|
|
5784
5791
|
|
|
5785
5792
|
function deserializeBoxExportAllDeclaration(pos) {
|
|
5786
|
-
return deserializeExportAllDeclaration(
|
|
5793
|
+
return deserializeExportAllDeclaration(int32[pos >> 2]);
|
|
5787
5794
|
}
|
|
5788
5795
|
|
|
5789
5796
|
function deserializeBoxExportDefaultDeclaration(pos) {
|
|
5790
|
-
return deserializeExportDefaultDeclaration(
|
|
5797
|
+
return deserializeExportDefaultDeclaration(int32[pos >> 2]);
|
|
5791
5798
|
}
|
|
5792
5799
|
|
|
5793
5800
|
function deserializeBoxExportNamedDeclaration(pos) {
|
|
5794
|
-
return deserializeExportNamedDeclaration(
|
|
5801
|
+
return deserializeExportNamedDeclaration(int32[pos >> 2]);
|
|
5795
5802
|
}
|
|
5796
5803
|
|
|
5797
5804
|
function deserializeBoxTSExportAssignment(pos) {
|
|
5798
|
-
return deserializeTSExportAssignment(
|
|
5805
|
+
return deserializeTSExportAssignment(int32[pos >> 2]);
|
|
5799
5806
|
}
|
|
5800
5807
|
|
|
5801
5808
|
function deserializeBoxTSNamespaceExportDeclaration(pos) {
|
|
5802
|
-
return deserializeTSNamespaceExportDeclaration(
|
|
5809
|
+
return deserializeTSNamespaceExportDeclaration(int32[pos >> 2]);
|
|
5803
5810
|
}
|
|
5804
5811
|
|
|
5805
5812
|
function deserializeOptionImportPhase(pos) {
|
|
5806
|
-
|
|
5807
|
-
return deserializeImportPhase(pos);
|
|
5813
|
+
return uint8[pos] === 2 ? null : deserializeImportPhase(pos);
|
|
5808
5814
|
}
|
|
5809
5815
|
|
|
5810
5816
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
5811
5817
|
let arr = [],
|
|
5812
5818
|
pos32 = pos >> 2;
|
|
5813
|
-
pos =
|
|
5814
|
-
let endPos = pos +
|
|
5819
|
+
pos = int32[pos32];
|
|
5820
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5815
5821
|
for (; pos !== endPos; ) {
|
|
5816
5822
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
5817
5823
|
pos += 16;
|
|
@@ -5820,36 +5826,38 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5820
5826
|
}
|
|
5821
5827
|
|
|
5822
5828
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5823
|
-
|
|
5824
|
-
|
|
5829
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5830
|
+
? null
|
|
5831
|
+
: deserializeVecImportDeclarationSpecifier(pos);
|
|
5825
5832
|
}
|
|
5826
5833
|
|
|
5827
5834
|
function deserializeBoxWithClause(pos) {
|
|
5828
|
-
return deserializeWithClause(
|
|
5835
|
+
return deserializeWithClause(int32[pos >> 2]);
|
|
5829
5836
|
}
|
|
5830
5837
|
|
|
5831
5838
|
function deserializeOptionBoxWithClause(pos) {
|
|
5832
|
-
|
|
5833
|
-
|
|
5839
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5840
|
+
? null
|
|
5841
|
+
: deserializeBoxWithClause(pos);
|
|
5834
5842
|
}
|
|
5835
5843
|
|
|
5836
5844
|
function deserializeBoxImportSpecifier(pos) {
|
|
5837
|
-
return deserializeImportSpecifier(
|
|
5845
|
+
return deserializeImportSpecifier(int32[pos >> 2]);
|
|
5838
5846
|
}
|
|
5839
5847
|
|
|
5840
5848
|
function deserializeBoxImportDefaultSpecifier(pos) {
|
|
5841
|
-
return deserializeImportDefaultSpecifier(
|
|
5849
|
+
return deserializeImportDefaultSpecifier(int32[pos >> 2]);
|
|
5842
5850
|
}
|
|
5843
5851
|
|
|
5844
5852
|
function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
5845
|
-
return deserializeImportNamespaceSpecifier(
|
|
5853
|
+
return deserializeImportNamespaceSpecifier(int32[pos >> 2]);
|
|
5846
5854
|
}
|
|
5847
5855
|
|
|
5848
5856
|
function deserializeVecImportAttribute(pos) {
|
|
5849
5857
|
let arr = [],
|
|
5850
5858
|
pos32 = pos >> 2;
|
|
5851
|
-
pos =
|
|
5852
|
-
let endPos = pos +
|
|
5859
|
+
pos = int32[pos32];
|
|
5860
|
+
let endPos = pos + int32[pos32 + 2] * 120;
|
|
5853
5861
|
for (; pos !== endPos; ) {
|
|
5854
5862
|
arr.push(deserializeImportAttribute(pos));
|
|
5855
5863
|
pos += 120;
|
|
@@ -5858,15 +5866,14 @@ function deserializeVecImportAttribute(pos) {
|
|
|
5858
5866
|
}
|
|
5859
5867
|
|
|
5860
5868
|
function deserializeOptionDeclaration(pos) {
|
|
5861
|
-
|
|
5862
|
-
return deserializeDeclaration(pos);
|
|
5869
|
+
return uint8[pos] === 31 ? null : deserializeDeclaration(pos);
|
|
5863
5870
|
}
|
|
5864
5871
|
|
|
5865
5872
|
function deserializeVecExportSpecifier(pos) {
|
|
5866
5873
|
let arr = [],
|
|
5867
5874
|
pos32 = pos >> 2;
|
|
5868
|
-
pos =
|
|
5869
|
-
let endPos = pos +
|
|
5875
|
+
pos = int32[pos32];
|
|
5876
|
+
let endPos = pos + (int32[pos32 + 2] << 7);
|
|
5870
5877
|
for (; pos !== endPos; ) {
|
|
5871
5878
|
arr.push(deserializeExportSpecifier(pos));
|
|
5872
5879
|
pos += 128;
|
|
@@ -5875,13 +5882,11 @@ function deserializeVecExportSpecifier(pos) {
|
|
|
5875
5882
|
}
|
|
5876
5883
|
|
|
5877
5884
|
function deserializeOptionStringLiteral(pos) {
|
|
5878
|
-
|
|
5879
|
-
return deserializeStringLiteral(pos);
|
|
5885
|
+
return uint8[pos + 12] === 2 ? null : deserializeStringLiteral(pos);
|
|
5880
5886
|
}
|
|
5881
5887
|
|
|
5882
5888
|
function deserializeOptionModuleExportName(pos) {
|
|
5883
|
-
|
|
5884
|
-
return deserializeModuleExportName(pos);
|
|
5889
|
+
return uint8[pos] === 3 ? null : deserializeModuleExportName(pos);
|
|
5885
5890
|
}
|
|
5886
5891
|
|
|
5887
5892
|
function deserializeF64(pos) {
|
|
@@ -5893,14 +5898,14 @@ function deserializeU8(pos) {
|
|
|
5893
5898
|
}
|
|
5894
5899
|
|
|
5895
5900
|
function deserializeBoxJSXOpeningElement(pos) {
|
|
5896
|
-
return deserializeJSXOpeningElement(
|
|
5901
|
+
return deserializeJSXOpeningElement(int32[pos >> 2]);
|
|
5897
5902
|
}
|
|
5898
5903
|
|
|
5899
5904
|
function deserializeVecJSXChild(pos) {
|
|
5900
5905
|
let arr = [],
|
|
5901
5906
|
pos32 = pos >> 2;
|
|
5902
|
-
pos =
|
|
5903
|
-
let endPos = pos +
|
|
5907
|
+
pos = int32[pos32];
|
|
5908
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5904
5909
|
for (; pos !== endPos; ) {
|
|
5905
5910
|
arr.push(deserializeJSXChild(pos));
|
|
5906
5911
|
pos += 16;
|
|
@@ -5909,19 +5914,20 @@ function deserializeVecJSXChild(pos) {
|
|
|
5909
5914
|
}
|
|
5910
5915
|
|
|
5911
5916
|
function deserializeBoxJSXClosingElement(pos) {
|
|
5912
|
-
return deserializeJSXClosingElement(
|
|
5917
|
+
return deserializeJSXClosingElement(int32[pos >> 2]);
|
|
5913
5918
|
}
|
|
5914
5919
|
|
|
5915
5920
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5916
|
-
|
|
5917
|
-
|
|
5921
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
5922
|
+
? null
|
|
5923
|
+
: deserializeBoxJSXClosingElement(pos);
|
|
5918
5924
|
}
|
|
5919
5925
|
|
|
5920
5926
|
function deserializeVecJSXAttributeItem(pos) {
|
|
5921
5927
|
let arr = [],
|
|
5922
5928
|
pos32 = pos >> 2;
|
|
5923
|
-
pos =
|
|
5924
|
-
let endPos = pos +
|
|
5929
|
+
pos = int32[pos32];
|
|
5930
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
5925
5931
|
for (; pos !== endPos; ) {
|
|
5926
5932
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
5927
5933
|
pos += 16;
|
|
@@ -5930,47 +5936,46 @@ function deserializeVecJSXAttributeItem(pos) {
|
|
|
5930
5936
|
}
|
|
5931
5937
|
|
|
5932
5938
|
function deserializeBoxJSXIdentifier(pos) {
|
|
5933
|
-
return deserializeJSXIdentifier(
|
|
5939
|
+
return deserializeJSXIdentifier(int32[pos >> 2]);
|
|
5934
5940
|
}
|
|
5935
5941
|
|
|
5936
5942
|
function deserializeBoxJSXNamespacedName(pos) {
|
|
5937
|
-
return deserializeJSXNamespacedName(
|
|
5943
|
+
return deserializeJSXNamespacedName(int32[pos >> 2]);
|
|
5938
5944
|
}
|
|
5939
5945
|
|
|
5940
5946
|
function deserializeBoxJSXMemberExpression(pos) {
|
|
5941
|
-
return deserializeJSXMemberExpression(
|
|
5947
|
+
return deserializeJSXMemberExpression(int32[pos >> 2]);
|
|
5942
5948
|
}
|
|
5943
5949
|
|
|
5944
5950
|
function deserializeBoxJSXAttribute(pos) {
|
|
5945
|
-
return deserializeJSXAttribute(
|
|
5951
|
+
return deserializeJSXAttribute(int32[pos >> 2]);
|
|
5946
5952
|
}
|
|
5947
5953
|
|
|
5948
5954
|
function deserializeBoxJSXSpreadAttribute(pos) {
|
|
5949
|
-
return deserializeJSXSpreadAttribute(
|
|
5955
|
+
return deserializeJSXSpreadAttribute(int32[pos >> 2]);
|
|
5950
5956
|
}
|
|
5951
5957
|
|
|
5952
5958
|
function deserializeOptionJSXAttributeValue(pos) {
|
|
5953
|
-
|
|
5954
|
-
return deserializeJSXAttributeValue(pos);
|
|
5959
|
+
return uint8[pos] === 4 ? null : deserializeJSXAttributeValue(pos);
|
|
5955
5960
|
}
|
|
5956
5961
|
|
|
5957
5962
|
function deserializeBoxJSXExpressionContainer(pos) {
|
|
5958
|
-
return deserializeJSXExpressionContainer(
|
|
5963
|
+
return deserializeJSXExpressionContainer(int32[pos >> 2]);
|
|
5959
5964
|
}
|
|
5960
5965
|
|
|
5961
5966
|
function deserializeBoxJSXText(pos) {
|
|
5962
|
-
return deserializeJSXText(
|
|
5967
|
+
return deserializeJSXText(int32[pos >> 2]);
|
|
5963
5968
|
}
|
|
5964
5969
|
|
|
5965
5970
|
function deserializeBoxJSXSpreadChild(pos) {
|
|
5966
|
-
return deserializeJSXSpreadChild(
|
|
5971
|
+
return deserializeJSXSpreadChild(int32[pos >> 2]);
|
|
5967
5972
|
}
|
|
5968
5973
|
|
|
5969
5974
|
function deserializeVecTSEnumMember(pos) {
|
|
5970
5975
|
let arr = [],
|
|
5971
5976
|
pos32 = pos >> 2;
|
|
5972
|
-
pos =
|
|
5973
|
-
let endPos = pos +
|
|
5977
|
+
pos = int32[pos32];
|
|
5978
|
+
let endPos = pos + int32[pos32 + 2] * 48;
|
|
5974
5979
|
for (; pos !== endPos; ) {
|
|
5975
5980
|
arr.push(deserializeTSEnumMember(pos));
|
|
5976
5981
|
pos += 48;
|
|
@@ -5979,158 +5984,158 @@ function deserializeVecTSEnumMember(pos) {
|
|
|
5979
5984
|
}
|
|
5980
5985
|
|
|
5981
5986
|
function deserializeBoxTSAnyKeyword(pos) {
|
|
5982
|
-
return deserializeTSAnyKeyword(
|
|
5987
|
+
return deserializeTSAnyKeyword(int32[pos >> 2]);
|
|
5983
5988
|
}
|
|
5984
5989
|
|
|
5985
5990
|
function deserializeBoxTSBigIntKeyword(pos) {
|
|
5986
|
-
return deserializeTSBigIntKeyword(
|
|
5991
|
+
return deserializeTSBigIntKeyword(int32[pos >> 2]);
|
|
5987
5992
|
}
|
|
5988
5993
|
|
|
5989
5994
|
function deserializeBoxTSBooleanKeyword(pos) {
|
|
5990
|
-
return deserializeTSBooleanKeyword(
|
|
5995
|
+
return deserializeTSBooleanKeyword(int32[pos >> 2]);
|
|
5991
5996
|
}
|
|
5992
5997
|
|
|
5993
5998
|
function deserializeBoxTSIntrinsicKeyword(pos) {
|
|
5994
|
-
return deserializeTSIntrinsicKeyword(
|
|
5999
|
+
return deserializeTSIntrinsicKeyword(int32[pos >> 2]);
|
|
5995
6000
|
}
|
|
5996
6001
|
|
|
5997
6002
|
function deserializeBoxTSNeverKeyword(pos) {
|
|
5998
|
-
return deserializeTSNeverKeyword(
|
|
6003
|
+
return deserializeTSNeverKeyword(int32[pos >> 2]);
|
|
5999
6004
|
}
|
|
6000
6005
|
|
|
6001
6006
|
function deserializeBoxTSNullKeyword(pos) {
|
|
6002
|
-
return deserializeTSNullKeyword(
|
|
6007
|
+
return deserializeTSNullKeyword(int32[pos >> 2]);
|
|
6003
6008
|
}
|
|
6004
6009
|
|
|
6005
6010
|
function deserializeBoxTSNumberKeyword(pos) {
|
|
6006
|
-
return deserializeTSNumberKeyword(
|
|
6011
|
+
return deserializeTSNumberKeyword(int32[pos >> 2]);
|
|
6007
6012
|
}
|
|
6008
6013
|
|
|
6009
6014
|
function deserializeBoxTSObjectKeyword(pos) {
|
|
6010
|
-
return deserializeTSObjectKeyword(
|
|
6015
|
+
return deserializeTSObjectKeyword(int32[pos >> 2]);
|
|
6011
6016
|
}
|
|
6012
6017
|
|
|
6013
6018
|
function deserializeBoxTSStringKeyword(pos) {
|
|
6014
|
-
return deserializeTSStringKeyword(
|
|
6019
|
+
return deserializeTSStringKeyword(int32[pos >> 2]);
|
|
6015
6020
|
}
|
|
6016
6021
|
|
|
6017
6022
|
function deserializeBoxTSSymbolKeyword(pos) {
|
|
6018
|
-
return deserializeTSSymbolKeyword(
|
|
6023
|
+
return deserializeTSSymbolKeyword(int32[pos >> 2]);
|
|
6019
6024
|
}
|
|
6020
6025
|
|
|
6021
6026
|
function deserializeBoxTSUndefinedKeyword(pos) {
|
|
6022
|
-
return deserializeTSUndefinedKeyword(
|
|
6027
|
+
return deserializeTSUndefinedKeyword(int32[pos >> 2]);
|
|
6023
6028
|
}
|
|
6024
6029
|
|
|
6025
6030
|
function deserializeBoxTSUnknownKeyword(pos) {
|
|
6026
|
-
return deserializeTSUnknownKeyword(
|
|
6031
|
+
return deserializeTSUnknownKeyword(int32[pos >> 2]);
|
|
6027
6032
|
}
|
|
6028
6033
|
|
|
6029
6034
|
function deserializeBoxTSVoidKeyword(pos) {
|
|
6030
|
-
return deserializeTSVoidKeyword(
|
|
6035
|
+
return deserializeTSVoidKeyword(int32[pos >> 2]);
|
|
6031
6036
|
}
|
|
6032
6037
|
|
|
6033
6038
|
function deserializeBoxTSArrayType(pos) {
|
|
6034
|
-
return deserializeTSArrayType(
|
|
6039
|
+
return deserializeTSArrayType(int32[pos >> 2]);
|
|
6035
6040
|
}
|
|
6036
6041
|
|
|
6037
6042
|
function deserializeBoxTSConditionalType(pos) {
|
|
6038
|
-
return deserializeTSConditionalType(
|
|
6043
|
+
return deserializeTSConditionalType(int32[pos >> 2]);
|
|
6039
6044
|
}
|
|
6040
6045
|
|
|
6041
6046
|
function deserializeBoxTSConstructorType(pos) {
|
|
6042
|
-
return deserializeTSConstructorType(
|
|
6047
|
+
return deserializeTSConstructorType(int32[pos >> 2]);
|
|
6043
6048
|
}
|
|
6044
6049
|
|
|
6045
6050
|
function deserializeBoxTSFunctionType(pos) {
|
|
6046
|
-
return deserializeTSFunctionType(
|
|
6051
|
+
return deserializeTSFunctionType(int32[pos >> 2]);
|
|
6047
6052
|
}
|
|
6048
6053
|
|
|
6049
6054
|
function deserializeBoxTSImportType(pos) {
|
|
6050
|
-
return deserializeTSImportType(
|
|
6055
|
+
return deserializeTSImportType(int32[pos >> 2]);
|
|
6051
6056
|
}
|
|
6052
6057
|
|
|
6053
6058
|
function deserializeBoxTSIndexedAccessType(pos) {
|
|
6054
|
-
return deserializeTSIndexedAccessType(
|
|
6059
|
+
return deserializeTSIndexedAccessType(int32[pos >> 2]);
|
|
6055
6060
|
}
|
|
6056
6061
|
|
|
6057
6062
|
function deserializeBoxTSInferType(pos) {
|
|
6058
|
-
return deserializeTSInferType(
|
|
6063
|
+
return deserializeTSInferType(int32[pos >> 2]);
|
|
6059
6064
|
}
|
|
6060
6065
|
|
|
6061
6066
|
function deserializeBoxTSIntersectionType(pos) {
|
|
6062
|
-
return deserializeTSIntersectionType(
|
|
6067
|
+
return deserializeTSIntersectionType(int32[pos >> 2]);
|
|
6063
6068
|
}
|
|
6064
6069
|
|
|
6065
6070
|
function deserializeBoxTSLiteralType(pos) {
|
|
6066
|
-
return deserializeTSLiteralType(
|
|
6071
|
+
return deserializeTSLiteralType(int32[pos >> 2]);
|
|
6067
6072
|
}
|
|
6068
6073
|
|
|
6069
6074
|
function deserializeBoxTSMappedType(pos) {
|
|
6070
|
-
return deserializeTSMappedType(
|
|
6075
|
+
return deserializeTSMappedType(int32[pos >> 2]);
|
|
6071
6076
|
}
|
|
6072
6077
|
|
|
6073
6078
|
function deserializeBoxTSNamedTupleMember(pos) {
|
|
6074
|
-
return deserializeTSNamedTupleMember(
|
|
6079
|
+
return deserializeTSNamedTupleMember(int32[pos >> 2]);
|
|
6075
6080
|
}
|
|
6076
6081
|
|
|
6077
6082
|
function deserializeBoxTSTemplateLiteralType(pos) {
|
|
6078
|
-
return deserializeTSTemplateLiteralType(
|
|
6083
|
+
return deserializeTSTemplateLiteralType(int32[pos >> 2]);
|
|
6079
6084
|
}
|
|
6080
6085
|
|
|
6081
6086
|
function deserializeBoxTSThisType(pos) {
|
|
6082
|
-
return deserializeTSThisType(
|
|
6087
|
+
return deserializeTSThisType(int32[pos >> 2]);
|
|
6083
6088
|
}
|
|
6084
6089
|
|
|
6085
6090
|
function deserializeBoxTSTupleType(pos) {
|
|
6086
|
-
return deserializeTSTupleType(
|
|
6091
|
+
return deserializeTSTupleType(int32[pos >> 2]);
|
|
6087
6092
|
}
|
|
6088
6093
|
|
|
6089
6094
|
function deserializeBoxTSTypeLiteral(pos) {
|
|
6090
|
-
return deserializeTSTypeLiteral(
|
|
6095
|
+
return deserializeTSTypeLiteral(int32[pos >> 2]);
|
|
6091
6096
|
}
|
|
6092
6097
|
|
|
6093
6098
|
function deserializeBoxTSTypeOperator(pos) {
|
|
6094
|
-
return deserializeTSTypeOperator(
|
|
6099
|
+
return deserializeTSTypeOperator(int32[pos >> 2]);
|
|
6095
6100
|
}
|
|
6096
6101
|
|
|
6097
6102
|
function deserializeBoxTSTypePredicate(pos) {
|
|
6098
|
-
return deserializeTSTypePredicate(
|
|
6103
|
+
return deserializeTSTypePredicate(int32[pos >> 2]);
|
|
6099
6104
|
}
|
|
6100
6105
|
|
|
6101
6106
|
function deserializeBoxTSTypeQuery(pos) {
|
|
6102
|
-
return deserializeTSTypeQuery(
|
|
6107
|
+
return deserializeTSTypeQuery(int32[pos >> 2]);
|
|
6103
6108
|
}
|
|
6104
6109
|
|
|
6105
6110
|
function deserializeBoxTSTypeReference(pos) {
|
|
6106
|
-
return deserializeTSTypeReference(
|
|
6111
|
+
return deserializeTSTypeReference(int32[pos >> 2]);
|
|
6107
6112
|
}
|
|
6108
6113
|
|
|
6109
6114
|
function deserializeBoxTSUnionType(pos) {
|
|
6110
|
-
return deserializeTSUnionType(
|
|
6115
|
+
return deserializeTSUnionType(int32[pos >> 2]);
|
|
6111
6116
|
}
|
|
6112
6117
|
|
|
6113
6118
|
function deserializeBoxTSParenthesizedType(pos) {
|
|
6114
|
-
return deserializeTSParenthesizedType(
|
|
6119
|
+
return deserializeTSParenthesizedType(int32[pos >> 2]);
|
|
6115
6120
|
}
|
|
6116
6121
|
|
|
6117
6122
|
function deserializeBoxJSDocNullableType(pos) {
|
|
6118
|
-
return deserializeJSDocNullableType(
|
|
6123
|
+
return deserializeJSDocNullableType(int32[pos >> 2]);
|
|
6119
6124
|
}
|
|
6120
6125
|
|
|
6121
6126
|
function deserializeBoxJSDocNonNullableType(pos) {
|
|
6122
|
-
return deserializeJSDocNonNullableType(
|
|
6127
|
+
return deserializeJSDocNonNullableType(int32[pos >> 2]);
|
|
6123
6128
|
}
|
|
6124
6129
|
|
|
6125
6130
|
function deserializeBoxJSDocUnknownType(pos) {
|
|
6126
|
-
return deserializeJSDocUnknownType(
|
|
6131
|
+
return deserializeJSDocUnknownType(int32[pos >> 2]);
|
|
6127
6132
|
}
|
|
6128
6133
|
|
|
6129
6134
|
function deserializeVecTSType(pos) {
|
|
6130
6135
|
let arr = [],
|
|
6131
6136
|
pos32 = pos >> 2;
|
|
6132
|
-
pos =
|
|
6133
|
-
let endPos = pos +
|
|
6137
|
+
pos = int32[pos32];
|
|
6138
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
6134
6139
|
for (; pos !== endPos; ) {
|
|
6135
6140
|
arr.push(deserializeTSType(pos));
|
|
6136
6141
|
pos += 16;
|
|
@@ -6141,8 +6146,8 @@ function deserializeVecTSType(pos) {
|
|
|
6141
6146
|
function deserializeVecTSTupleElement(pos) {
|
|
6142
6147
|
let arr = [],
|
|
6143
6148
|
pos32 = pos >> 2;
|
|
6144
|
-
pos =
|
|
6145
|
-
let endPos = pos +
|
|
6149
|
+
pos = int32[pos32];
|
|
6150
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
6146
6151
|
for (; pos !== endPos; ) {
|
|
6147
6152
|
arr.push(deserializeTSTupleElement(pos));
|
|
6148
6153
|
pos += 16;
|
|
@@ -6151,27 +6156,26 @@ function deserializeVecTSTupleElement(pos) {
|
|
|
6151
6156
|
}
|
|
6152
6157
|
|
|
6153
6158
|
function deserializeBoxTSOptionalType(pos) {
|
|
6154
|
-
return deserializeTSOptionalType(
|
|
6159
|
+
return deserializeTSOptionalType(int32[pos >> 2]);
|
|
6155
6160
|
}
|
|
6156
6161
|
|
|
6157
6162
|
function deserializeBoxTSRestType(pos) {
|
|
6158
|
-
return deserializeTSRestType(
|
|
6163
|
+
return deserializeTSRestType(int32[pos >> 2]);
|
|
6159
6164
|
}
|
|
6160
6165
|
|
|
6161
6166
|
function deserializeBoxTSQualifiedName(pos) {
|
|
6162
|
-
return deserializeTSQualifiedName(
|
|
6167
|
+
return deserializeTSQualifiedName(int32[pos >> 2]);
|
|
6163
6168
|
}
|
|
6164
6169
|
|
|
6165
6170
|
function deserializeOptionTSType(pos) {
|
|
6166
|
-
|
|
6167
|
-
return deserializeTSType(pos);
|
|
6171
|
+
return uint8[pos] === 38 ? null : deserializeTSType(pos);
|
|
6168
6172
|
}
|
|
6169
6173
|
|
|
6170
6174
|
function deserializeVecTSTypeParameter(pos) {
|
|
6171
6175
|
let arr = [],
|
|
6172
6176
|
pos32 = pos >> 2;
|
|
6173
|
-
pos =
|
|
6174
|
-
let endPos = pos +
|
|
6177
|
+
pos = int32[pos32];
|
|
6178
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
6175
6179
|
for (; pos !== endPos; ) {
|
|
6176
6180
|
arr.push(deserializeTSTypeParameter(pos));
|
|
6177
6181
|
pos += 80;
|
|
@@ -6182,8 +6186,8 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
6182
6186
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
6183
6187
|
let arr = [],
|
|
6184
6188
|
pos32 = pos >> 2;
|
|
6185
|
-
pos =
|
|
6186
|
-
let endPos = pos +
|
|
6189
|
+
pos = int32[pos32];
|
|
6190
|
+
let endPos = pos + int32[pos32 + 2] * 40;
|
|
6187
6191
|
for (; pos !== endPos; ) {
|
|
6188
6192
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
6189
6193
|
pos += 40;
|
|
@@ -6192,14 +6196,14 @@ function deserializeVecTSInterfaceHeritage(pos) {
|
|
|
6192
6196
|
}
|
|
6193
6197
|
|
|
6194
6198
|
function deserializeBoxTSInterfaceBody(pos) {
|
|
6195
|
-
return deserializeTSInterfaceBody(
|
|
6199
|
+
return deserializeTSInterfaceBody(int32[pos >> 2]);
|
|
6196
6200
|
}
|
|
6197
6201
|
|
|
6198
6202
|
function deserializeVecTSSignature(pos) {
|
|
6199
6203
|
let arr = [],
|
|
6200
6204
|
pos32 = pos >> 2;
|
|
6201
|
-
pos =
|
|
6202
|
-
let endPos = pos +
|
|
6205
|
+
pos = int32[pos32];
|
|
6206
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
6203
6207
|
for (; pos !== endPos; ) {
|
|
6204
6208
|
arr.push(deserializeTSSignature(pos));
|
|
6205
6209
|
pos += 16;
|
|
@@ -6208,26 +6212,26 @@ function deserializeVecTSSignature(pos) {
|
|
|
6208
6212
|
}
|
|
6209
6213
|
|
|
6210
6214
|
function deserializeBoxTSPropertySignature(pos) {
|
|
6211
|
-
return deserializeTSPropertySignature(
|
|
6215
|
+
return deserializeTSPropertySignature(int32[pos >> 2]);
|
|
6212
6216
|
}
|
|
6213
6217
|
|
|
6214
6218
|
function deserializeBoxTSCallSignatureDeclaration(pos) {
|
|
6215
|
-
return deserializeTSCallSignatureDeclaration(
|
|
6219
|
+
return deserializeTSCallSignatureDeclaration(int32[pos >> 2]);
|
|
6216
6220
|
}
|
|
6217
6221
|
|
|
6218
6222
|
function deserializeBoxTSConstructSignatureDeclaration(pos) {
|
|
6219
|
-
return deserializeTSConstructSignatureDeclaration(
|
|
6223
|
+
return deserializeTSConstructSignatureDeclaration(int32[pos >> 2]);
|
|
6220
6224
|
}
|
|
6221
6225
|
|
|
6222
6226
|
function deserializeBoxTSMethodSignature(pos) {
|
|
6223
|
-
return deserializeTSMethodSignature(
|
|
6227
|
+
return deserializeTSMethodSignature(int32[pos >> 2]);
|
|
6224
6228
|
}
|
|
6225
6229
|
|
|
6226
6230
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
6227
6231
|
let arr = [],
|
|
6228
6232
|
pos32 = pos >> 2;
|
|
6229
|
-
pos =
|
|
6230
|
-
let endPos = pos +
|
|
6233
|
+
pos = int32[pos32];
|
|
6234
|
+
let endPos = pos + int32[pos32 + 2] * 40;
|
|
6231
6235
|
for (; pos !== endPos; ) {
|
|
6232
6236
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
6233
6237
|
pos += 40;
|
|
@@ -6236,55 +6240,54 @@ function deserializeVecTSIndexSignatureName(pos) {
|
|
|
6236
6240
|
}
|
|
6237
6241
|
|
|
6238
6242
|
function deserializeOptionTSModuleDeclarationBody(pos) {
|
|
6239
|
-
|
|
6240
|
-
return deserializeTSModuleDeclarationBody(pos);
|
|
6243
|
+
return uint8[pos] === 2 ? null : deserializeTSModuleDeclarationBody(pos);
|
|
6241
6244
|
}
|
|
6242
6245
|
|
|
6243
6246
|
function deserializeBoxTSModuleBlock(pos) {
|
|
6244
|
-
return deserializeTSModuleBlock(
|
|
6247
|
+
return deserializeTSModuleBlock(int32[pos >> 2]);
|
|
6245
6248
|
}
|
|
6246
6249
|
|
|
6247
6250
|
function deserializeBoxTSTypeParameter(pos) {
|
|
6248
|
-
return deserializeTSTypeParameter(
|
|
6251
|
+
return deserializeTSTypeParameter(int32[pos >> 2]);
|
|
6249
6252
|
}
|
|
6250
6253
|
|
|
6251
6254
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6252
|
-
|
|
6253
|
-
|
|
6255
|
+
return int32[pos >> 2] === 0 && int32[(pos >> 2) + 1] === 0
|
|
6256
|
+
? null
|
|
6257
|
+
: deserializeBoxObjectExpression(pos);
|
|
6254
6258
|
}
|
|
6255
6259
|
|
|
6256
6260
|
function deserializeOptionTSImportTypeQualifier(pos) {
|
|
6257
|
-
|
|
6258
|
-
return deserializeTSImportTypeQualifier(pos);
|
|
6261
|
+
return uint8[pos] === 2 ? null : deserializeTSImportTypeQualifier(pos);
|
|
6259
6262
|
}
|
|
6260
6263
|
|
|
6261
6264
|
function deserializeBoxTSImportTypeQualifiedName(pos) {
|
|
6262
|
-
return deserializeTSImportTypeQualifiedName(
|
|
6265
|
+
return deserializeTSImportTypeQualifiedName(int32[pos >> 2]);
|
|
6263
6266
|
}
|
|
6264
6267
|
|
|
6265
6268
|
function deserializeOptionTSMappedTypeModifierOperator(pos) {
|
|
6266
|
-
|
|
6267
|
-
return deserializeTSMappedTypeModifierOperator(pos);
|
|
6269
|
+
return uint8[pos] === 3 ? null : deserializeTSMappedTypeModifierOperator(pos);
|
|
6268
6270
|
}
|
|
6269
6271
|
|
|
6270
6272
|
function deserializeBoxTSExternalModuleReference(pos) {
|
|
6271
|
-
return deserializeTSExternalModuleReference(
|
|
6273
|
+
return deserializeTSExternalModuleReference(int32[pos >> 2]);
|
|
6272
6274
|
}
|
|
6273
6275
|
|
|
6274
|
-
function
|
|
6275
|
-
return
|
|
6276
|
+
function deserializeI32(pos) {
|
|
6277
|
+
return int32[pos >> 2];
|
|
6276
6278
|
}
|
|
6277
6279
|
|
|
6278
6280
|
function deserializeOptionNameSpan(pos) {
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
+
return int32[(pos >> 2) + 2] === 0 && int32[(pos >> 2) + 3] === 0
|
|
6282
|
+
? null
|
|
6283
|
+
: deserializeNameSpan(pos);
|
|
6281
6284
|
}
|
|
6282
6285
|
|
|
6283
6286
|
function deserializeVecError(pos) {
|
|
6284
6287
|
let arr = [],
|
|
6285
6288
|
pos32 = pos >> 2;
|
|
6286
|
-
pos =
|
|
6287
|
-
let endPos = pos +
|
|
6289
|
+
pos = int32[pos32];
|
|
6290
|
+
let endPos = pos + int32[pos32 + 2] * 80;
|
|
6288
6291
|
for (; pos !== endPos; ) {
|
|
6289
6292
|
arr.push(deserializeError(pos));
|
|
6290
6293
|
pos += 80;
|
|
@@ -6295,8 +6298,8 @@ function deserializeVecError(pos) {
|
|
|
6295
6298
|
function deserializeVecErrorLabel(pos) {
|
|
6296
6299
|
let arr = [],
|
|
6297
6300
|
pos32 = pos >> 2;
|
|
6298
|
-
pos =
|
|
6299
|
-
let endPos = pos +
|
|
6301
|
+
pos = int32[pos32];
|
|
6302
|
+
let endPos = pos + int32[pos32 + 2] * 24;
|
|
6300
6303
|
for (; pos !== endPos; ) {
|
|
6301
6304
|
arr.push(deserializeErrorLabel(pos));
|
|
6302
6305
|
pos += 24;
|
|
@@ -6307,8 +6310,8 @@ function deserializeVecErrorLabel(pos) {
|
|
|
6307
6310
|
function deserializeVecStaticImport(pos) {
|
|
6308
6311
|
let arr = [],
|
|
6309
6312
|
pos32 = pos >> 2;
|
|
6310
|
-
pos =
|
|
6311
|
-
let endPos = pos +
|
|
6313
|
+
pos = int32[pos32];
|
|
6314
|
+
let endPos = pos + int32[pos32 + 2] * 56;
|
|
6312
6315
|
for (; pos !== endPos; ) {
|
|
6313
6316
|
arr.push(deserializeStaticImport(pos));
|
|
6314
6317
|
pos += 56;
|
|
@@ -6319,8 +6322,8 @@ function deserializeVecStaticImport(pos) {
|
|
|
6319
6322
|
function deserializeVecStaticExport(pos) {
|
|
6320
6323
|
let arr = [],
|
|
6321
6324
|
pos32 = pos >> 2;
|
|
6322
|
-
pos =
|
|
6323
|
-
let endPos = pos +
|
|
6325
|
+
pos = int32[pos32];
|
|
6326
|
+
let endPos = pos + (int32[pos32 + 2] << 5);
|
|
6324
6327
|
for (; pos !== endPos; ) {
|
|
6325
6328
|
arr.push(deserializeStaticExport(pos));
|
|
6326
6329
|
pos += 32;
|
|
@@ -6331,8 +6334,8 @@ function deserializeVecStaticExport(pos) {
|
|
|
6331
6334
|
function deserializeVecDynamicImport(pos) {
|
|
6332
6335
|
let arr = [],
|
|
6333
6336
|
pos32 = pos >> 2;
|
|
6334
|
-
pos =
|
|
6335
|
-
let endPos = pos +
|
|
6337
|
+
pos = int32[pos32];
|
|
6338
|
+
let endPos = pos + (int32[pos32 + 2] << 4);
|
|
6336
6339
|
for (; pos !== endPos; ) {
|
|
6337
6340
|
arr.push(deserializeDynamicImport(pos));
|
|
6338
6341
|
pos += 16;
|
|
@@ -6343,8 +6346,8 @@ function deserializeVecDynamicImport(pos) {
|
|
|
6343
6346
|
function deserializeVecSpan(pos) {
|
|
6344
6347
|
let arr = [],
|
|
6345
6348
|
pos32 = pos >> 2;
|
|
6346
|
-
pos =
|
|
6347
|
-
let endPos = pos +
|
|
6349
|
+
pos = int32[pos32];
|
|
6350
|
+
let endPos = pos + (int32[pos32 + 2] << 3);
|
|
6348
6351
|
for (; pos !== endPos; ) {
|
|
6349
6352
|
arr.push(deserializeSpan(pos));
|
|
6350
6353
|
pos += 8;
|
|
@@ -6355,8 +6358,8 @@ function deserializeVecSpan(pos) {
|
|
|
6355
6358
|
function deserializeVecImportEntry(pos) {
|
|
6356
6359
|
let arr = [],
|
|
6357
6360
|
pos32 = pos >> 2;
|
|
6358
|
-
pos =
|
|
6359
|
-
let endPos = pos +
|
|
6361
|
+
pos = int32[pos32];
|
|
6362
|
+
let endPos = pos + int32[pos32 + 2] * 96;
|
|
6360
6363
|
for (; pos !== endPos; ) {
|
|
6361
6364
|
arr.push(deserializeImportEntry(pos));
|
|
6362
6365
|
pos += 96;
|
|
@@ -6367,8 +6370,8 @@ function deserializeVecImportEntry(pos) {
|
|
|
6367
6370
|
function deserializeVecExportEntry(pos) {
|
|
6368
6371
|
let arr = [],
|
|
6369
6372
|
pos32 = pos >> 2;
|
|
6370
|
-
pos =
|
|
6371
|
-
let endPos = pos +
|
|
6373
|
+
pos = int32[pos32];
|
|
6374
|
+
let endPos = pos + int32[pos32 + 2] * 144;
|
|
6372
6375
|
for (; pos !== endPos; ) {
|
|
6373
6376
|
arr.push(deserializeExportEntry(pos));
|
|
6374
6377
|
pos += 144;
|