oxc-parser 0.94.0 → 0.96.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/generated/deserialize/js.js +871 -1038
- package/generated/deserialize/js_range.js +250 -176
- package/generated/deserialize/ts.js +859 -1020
- package/generated/deserialize/ts_range.js +260 -188
- package/generated/lazy/constructors.js +119 -347
- package/generated/lazy/walk.js +581 -312
- package/generated/visit/walk.js +280 -140
- package/package.json +24 -23
- package/src-js/bindings.js +68 -50
- package/src-js/raw-transfer/common.js +2 -1
- package/src-js/raw-transfer/eager.js +1 -1
- package/src-js/raw-transfer/lazy.js +2 -3
- package/src-js/raw-transfer/node-array.js +3 -2
- package/src-js/raw-transfer/supported.js +1 -1
- package/src-js/raw-transfer/visitor.js +3 -3
- package/src-js/visit/index.js +4 -1
- package/src-js/visit/visitor.js +3 -4
- package/src-js/webcontainer-fallback.cjs +1 -3
- package/src-js/wrap.js +1 -1
- /package/generated/lazy/{types.js → type_ids.js} +0 -0
- /package/generated/visit/{types.js → type_ids.js} +0 -0
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer.rs`.
|
|
3
3
|
|
|
4
4
|
let uint8, uint32, float64, sourceText, sourceIsAscii, sourceByteLen;
|
|
5
|
+
|
|
5
6
|
const textDecoder = new TextDecoder('utf-8', { ignoreBOM: true }),
|
|
6
7
|
decodeStr = textDecoder.decode.bind(textDecoder),
|
|
7
8
|
{ fromCodePoint } = String;
|
|
8
9
|
|
|
9
10
|
export function deserialize(buffer, sourceText, sourceByteLen) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export function deserializeProgramOnly(buffer, sourceText, sourceByteLen, getLoc) {
|
|
14
|
-
return deserializeWith(buffer, sourceText, sourceByteLen, getLoc, deserializeProgram);
|
|
11
|
+
let data = deserializeWith(buffer, sourceText, sourceByteLen, null, deserializeRawTransferData);
|
|
12
|
+
resetBuffer();
|
|
13
|
+
return data;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
function deserializeWith(buffer, sourceTextInput, sourceByteLenInput, getLocInput, deserialize) {
|
|
@@ -21,13 +20,12 @@ function deserializeWith(buffer, sourceTextInput, sourceByteLenInput, getLocInpu
|
|
|
21
20
|
sourceText = sourceTextInput;
|
|
22
21
|
sourceByteLen = sourceByteLenInput;
|
|
23
22
|
sourceIsAscii = sourceText.length === sourceByteLen;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return data;
|
|
23
|
+
return deserialize(uint32[536870902]);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function resetBuffer() {
|
|
27
|
+
// Clear buffer and source text string to allow them to be garbage collected
|
|
28
|
+
uint8 = uint32 = float64 = sourceText = void 0;
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
function deserializeProgram(pos) {
|
|
@@ -41,7 +39,7 @@ function deserializeProgram(pos) {
|
|
|
41
39
|
end,
|
|
42
40
|
};
|
|
43
41
|
program.hashbang = deserializeOptionHashbang(pos + 48);
|
|
44
|
-
let body = program.body = deserializeVecDirective(pos + 72);
|
|
42
|
+
let body = (program.body = deserializeVecDirective(pos + 72));
|
|
45
43
|
body.push(...deserializeVecStatement(pos + 96));
|
|
46
44
|
{
|
|
47
45
|
let start;
|
|
@@ -227,23 +225,20 @@ function deserializeLabelIdentifier(pos) {
|
|
|
227
225
|
}
|
|
228
226
|
|
|
229
227
|
function deserializeThisExpression(pos) {
|
|
230
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
231
228
|
return {
|
|
232
229
|
type: 'ThisExpression',
|
|
233
|
-
start,
|
|
234
|
-
end,
|
|
230
|
+
start: deserializeU32(pos),
|
|
231
|
+
end: deserializeU32(pos + 4),
|
|
235
232
|
};
|
|
236
233
|
}
|
|
237
234
|
|
|
238
235
|
function deserializeArrayExpression(pos) {
|
|
239
|
-
let
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
end,
|
|
246
|
-
};
|
|
236
|
+
let node = {
|
|
237
|
+
type: 'ArrayExpression',
|
|
238
|
+
elements: null,
|
|
239
|
+
start: deserializeU32(pos),
|
|
240
|
+
end: deserializeU32(pos + 4),
|
|
241
|
+
};
|
|
247
242
|
node.elements = deserializeVecArrayExpressionElement(pos + 8);
|
|
248
243
|
return node;
|
|
249
244
|
}
|
|
@@ -350,14 +345,12 @@ function deserializeElision(pos) {
|
|
|
350
345
|
}
|
|
351
346
|
|
|
352
347
|
function deserializeObjectExpression(pos) {
|
|
353
|
-
let
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
end,
|
|
360
|
-
};
|
|
348
|
+
let node = {
|
|
349
|
+
type: 'ObjectExpression',
|
|
350
|
+
properties: null,
|
|
351
|
+
start: deserializeU32(pos),
|
|
352
|
+
end: deserializeU32(pos + 4),
|
|
353
|
+
};
|
|
361
354
|
node.properties = deserializeVecObjectPropertyKind(pos + 8);
|
|
362
355
|
return node;
|
|
363
356
|
}
|
|
@@ -505,31 +498,27 @@ function deserializePropertyKind(pos) {
|
|
|
505
498
|
}
|
|
506
499
|
|
|
507
500
|
function deserializeTemplateLiteral(pos) {
|
|
508
|
-
let
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
end,
|
|
516
|
-
};
|
|
501
|
+
let node = {
|
|
502
|
+
type: 'TemplateLiteral',
|
|
503
|
+
quasis: null,
|
|
504
|
+
expressions: null,
|
|
505
|
+
start: deserializeU32(pos),
|
|
506
|
+
end: deserializeU32(pos + 4),
|
|
507
|
+
};
|
|
517
508
|
node.quasis = deserializeVecTemplateElement(pos + 8);
|
|
518
509
|
node.expressions = deserializeVecExpression(pos + 32);
|
|
519
510
|
return node;
|
|
520
511
|
}
|
|
521
512
|
|
|
522
513
|
function deserializeTaggedTemplateExpression(pos) {
|
|
523
|
-
let
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
end,
|
|
532
|
-
};
|
|
514
|
+
let node = {
|
|
515
|
+
type: 'TaggedTemplateExpression',
|
|
516
|
+
tag: null,
|
|
517
|
+
typeArguments: null,
|
|
518
|
+
quasi: null,
|
|
519
|
+
start: deserializeU32(pos),
|
|
520
|
+
end: deserializeU32(pos + 4),
|
|
521
|
+
};
|
|
533
522
|
node.tag = deserializeExpression(pos + 8);
|
|
534
523
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 24);
|
|
535
524
|
node.quasi = deserializeTemplateLiteral(pos + 32);
|
|
@@ -541,7 +530,8 @@ function deserializeTemplateElement(pos) {
|
|
|
541
530
|
start = deserializeU32(pos) - 1,
|
|
542
531
|
end = deserializeU32(pos + 4) + 2 - tail,
|
|
543
532
|
value = deserializeTemplateElementValue(pos + 8);
|
|
544
|
-
value.cooked !== null &&
|
|
533
|
+
value.cooked !== null &&
|
|
534
|
+
deserializeBool(pos + 41) &&
|
|
545
535
|
(value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))));
|
|
546
536
|
return {
|
|
547
537
|
type: 'TemplateElement',
|
|
@@ -632,16 +622,14 @@ function deserializeCallExpression(pos) {
|
|
|
632
622
|
}
|
|
633
623
|
|
|
634
624
|
function deserializeNewExpression(pos) {
|
|
635
|
-
let
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
end,
|
|
644
|
-
};
|
|
625
|
+
let node = {
|
|
626
|
+
type: 'NewExpression',
|
|
627
|
+
callee: null,
|
|
628
|
+
typeArguments: null,
|
|
629
|
+
arguments: null,
|
|
630
|
+
start: deserializeU32(pos),
|
|
631
|
+
end: deserializeU32(pos + 4),
|
|
632
|
+
};
|
|
645
633
|
node.callee = deserializeExpression(pos + 8);
|
|
646
634
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 24);
|
|
647
635
|
node.arguments = deserializeVecArgument(pos + 32);
|
|
@@ -649,29 +637,25 @@ function deserializeNewExpression(pos) {
|
|
|
649
637
|
}
|
|
650
638
|
|
|
651
639
|
function deserializeMetaProperty(pos) {
|
|
652
|
-
let
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
end,
|
|
660
|
-
};
|
|
640
|
+
let node = {
|
|
641
|
+
type: 'MetaProperty',
|
|
642
|
+
meta: null,
|
|
643
|
+
property: null,
|
|
644
|
+
start: deserializeU32(pos),
|
|
645
|
+
end: deserializeU32(pos + 4),
|
|
646
|
+
};
|
|
661
647
|
node.meta = deserializeIdentifierName(pos + 8);
|
|
662
648
|
node.property = deserializeIdentifierName(pos + 32);
|
|
663
649
|
return node;
|
|
664
650
|
}
|
|
665
651
|
|
|
666
652
|
function deserializeSpreadElement(pos) {
|
|
667
|
-
let
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
end,
|
|
674
|
-
};
|
|
653
|
+
let node = {
|
|
654
|
+
type: 'SpreadElement',
|
|
655
|
+
argument: null,
|
|
656
|
+
start: deserializeU32(pos),
|
|
657
|
+
end: deserializeU32(pos + 4),
|
|
658
|
+
};
|
|
675
659
|
node.argument = deserializeExpression(pos + 8);
|
|
676
660
|
return node;
|
|
677
661
|
}
|
|
@@ -819,16 +803,14 @@ function deserializeBinaryExpression(pos) {
|
|
|
819
803
|
}
|
|
820
804
|
|
|
821
805
|
function deserializePrivateInExpression(pos) {
|
|
822
|
-
let
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
end,
|
|
831
|
-
};
|
|
806
|
+
let node = {
|
|
807
|
+
type: 'BinaryExpression',
|
|
808
|
+
left: null,
|
|
809
|
+
operator: null,
|
|
810
|
+
right: null,
|
|
811
|
+
start: deserializeU32(pos),
|
|
812
|
+
end: deserializeU32(pos + 4),
|
|
813
|
+
};
|
|
832
814
|
node.left = deserializePrivateIdentifier(pos + 8);
|
|
833
815
|
node.operator = 'in';
|
|
834
816
|
node.right = deserializeExpression(pos + 32);
|
|
@@ -852,16 +834,14 @@ function deserializeLogicalExpression(pos) {
|
|
|
852
834
|
}
|
|
853
835
|
|
|
854
836
|
function deserializeConditionalExpression(pos) {
|
|
855
|
-
let
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
end,
|
|
864
|
-
};
|
|
837
|
+
let node = {
|
|
838
|
+
type: 'ConditionalExpression',
|
|
839
|
+
test: null,
|
|
840
|
+
consequent: null,
|
|
841
|
+
alternate: null,
|
|
842
|
+
start: deserializeU32(pos),
|
|
843
|
+
end: deserializeU32(pos + 4),
|
|
844
|
+
};
|
|
865
845
|
node.test = deserializeExpression(pos + 8);
|
|
866
846
|
node.consequent = deserializeExpression(pos + 24);
|
|
867
847
|
node.alternate = deserializeExpression(pos + 40);
|
|
@@ -935,16 +915,14 @@ function deserializeSimpleAssignmentTarget(pos) {
|
|
|
935
915
|
}
|
|
936
916
|
|
|
937
917
|
function deserializeArrayAssignmentTarget(pos) {
|
|
938
|
-
let
|
|
939
|
-
end = deserializeU32(pos + 4),
|
|
940
|
-
node = {
|
|
918
|
+
let node = {
|
|
941
919
|
type: 'ArrayPattern',
|
|
942
920
|
decorators: null,
|
|
943
921
|
elements: null,
|
|
944
922
|
optional: null,
|
|
945
923
|
typeAnnotation: null,
|
|
946
|
-
start,
|
|
947
|
-
end,
|
|
924
|
+
start: deserializeU32(pos),
|
|
925
|
+
end: deserializeU32(pos + 4),
|
|
948
926
|
},
|
|
949
927
|
elements = deserializeVecOptionAssignmentTargetMaybeDefault(pos + 8),
|
|
950
928
|
rest = deserializeOptionBoxAssignmentTargetRest(pos + 32);
|
|
@@ -957,16 +935,14 @@ function deserializeArrayAssignmentTarget(pos) {
|
|
|
957
935
|
}
|
|
958
936
|
|
|
959
937
|
function deserializeObjectAssignmentTarget(pos) {
|
|
960
|
-
let
|
|
961
|
-
end = deserializeU32(pos + 4),
|
|
962
|
-
node = {
|
|
938
|
+
let node = {
|
|
963
939
|
type: 'ObjectPattern',
|
|
964
940
|
decorators: null,
|
|
965
941
|
properties: null,
|
|
966
942
|
optional: null,
|
|
967
943
|
typeAnnotation: null,
|
|
968
|
-
start,
|
|
969
|
-
end,
|
|
944
|
+
start: deserializeU32(pos),
|
|
945
|
+
end: deserializeU32(pos + 4),
|
|
970
946
|
},
|
|
971
947
|
properties = deserializeVecAssignmentTargetProperty(pos + 8),
|
|
972
948
|
rest = deserializeOptionBoxAssignmentTargetRest(pos + 32);
|
|
@@ -979,18 +955,16 @@ function deserializeObjectAssignmentTarget(pos) {
|
|
|
979
955
|
}
|
|
980
956
|
|
|
981
957
|
function deserializeAssignmentTargetRest(pos) {
|
|
982
|
-
let
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
end,
|
|
993
|
-
};
|
|
958
|
+
let node = {
|
|
959
|
+
type: 'RestElement',
|
|
960
|
+
decorators: null,
|
|
961
|
+
argument: null,
|
|
962
|
+
optional: null,
|
|
963
|
+
typeAnnotation: null,
|
|
964
|
+
value: null,
|
|
965
|
+
start: deserializeU32(pos),
|
|
966
|
+
end: deserializeU32(pos + 4),
|
|
967
|
+
};
|
|
994
968
|
node.decorators = [];
|
|
995
969
|
node.argument = deserializeAssignmentTarget(pos + 8);
|
|
996
970
|
node.optional = false;
|
|
@@ -1029,18 +1003,16 @@ function deserializeAssignmentTargetMaybeDefault(pos) {
|
|
|
1029
1003
|
}
|
|
1030
1004
|
|
|
1031
1005
|
function deserializeAssignmentTargetWithDefault(pos) {
|
|
1032
|
-
let
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
end,
|
|
1043
|
-
};
|
|
1006
|
+
let node = {
|
|
1007
|
+
type: 'AssignmentPattern',
|
|
1008
|
+
decorators: null,
|
|
1009
|
+
left: null,
|
|
1010
|
+
right: null,
|
|
1011
|
+
optional: null,
|
|
1012
|
+
typeAnnotation: null,
|
|
1013
|
+
start: deserializeU32(pos),
|
|
1014
|
+
end: deserializeU32(pos + 4),
|
|
1015
|
+
};
|
|
1044
1016
|
node.decorators = [];
|
|
1045
1017
|
node.left = deserializeAssignmentTarget(pos + 8);
|
|
1046
1018
|
node.right = deserializeExpression(pos + 24);
|
|
@@ -1078,16 +1050,17 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
1078
1050
|
key = deserializeIdentifierReference(pos + 8),
|
|
1079
1051
|
init = deserializeOptionExpression(pos + 40),
|
|
1080
1052
|
value = { ...key };
|
|
1081
|
-
init !== null &&
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1053
|
+
init !== null &&
|
|
1054
|
+
(value = {
|
|
1055
|
+
type: 'AssignmentPattern',
|
|
1056
|
+
decorators: [],
|
|
1057
|
+
left: value,
|
|
1058
|
+
right: init,
|
|
1059
|
+
optional: false,
|
|
1060
|
+
typeAnnotation: null,
|
|
1061
|
+
start,
|
|
1062
|
+
end,
|
|
1063
|
+
});
|
|
1091
1064
|
node.kind = 'init';
|
|
1092
1065
|
node.key = key;
|
|
1093
1066
|
node.value = value;
|
|
@@ -1123,49 +1096,42 @@ function deserializeAssignmentTargetPropertyProperty(pos) {
|
|
|
1123
1096
|
}
|
|
1124
1097
|
|
|
1125
1098
|
function deserializeSequenceExpression(pos) {
|
|
1126
|
-
let
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
end,
|
|
1133
|
-
};
|
|
1099
|
+
let node = {
|
|
1100
|
+
type: 'SequenceExpression',
|
|
1101
|
+
expressions: null,
|
|
1102
|
+
start: deserializeU32(pos),
|
|
1103
|
+
end: deserializeU32(pos + 4),
|
|
1104
|
+
};
|
|
1134
1105
|
node.expressions = deserializeVecExpression(pos + 8);
|
|
1135
1106
|
return node;
|
|
1136
1107
|
}
|
|
1137
1108
|
|
|
1138
1109
|
function deserializeSuper(pos) {
|
|
1139
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
1140
1110
|
return {
|
|
1141
1111
|
type: 'Super',
|
|
1142
|
-
start,
|
|
1143
|
-
end,
|
|
1112
|
+
start: deserializeU32(pos),
|
|
1113
|
+
end: deserializeU32(pos + 4),
|
|
1144
1114
|
};
|
|
1145
1115
|
}
|
|
1146
1116
|
|
|
1147
1117
|
function deserializeAwaitExpression(pos) {
|
|
1148
|
-
let
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
end,
|
|
1155
|
-
};
|
|
1118
|
+
let node = {
|
|
1119
|
+
type: 'AwaitExpression',
|
|
1120
|
+
argument: null,
|
|
1121
|
+
start: deserializeU32(pos),
|
|
1122
|
+
end: deserializeU32(pos + 4),
|
|
1123
|
+
};
|
|
1156
1124
|
node.argument = deserializeExpression(pos + 8);
|
|
1157
1125
|
return node;
|
|
1158
1126
|
}
|
|
1159
1127
|
|
|
1160
1128
|
function deserializeChainExpression(pos) {
|
|
1161
|
-
let
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
end,
|
|
1168
|
-
};
|
|
1129
|
+
let node = {
|
|
1130
|
+
type: 'ChainExpression',
|
|
1131
|
+
expression: null,
|
|
1132
|
+
start: deserializeU32(pos),
|
|
1133
|
+
end: deserializeU32(pos + 4),
|
|
1134
|
+
};
|
|
1169
1135
|
node.expression = deserializeChainElement(pos + 8);
|
|
1170
1136
|
return node;
|
|
1171
1137
|
}
|
|
@@ -1285,7 +1251,8 @@ function deserializeDirective(pos) {
|
|
|
1285
1251
|
}
|
|
1286
1252
|
|
|
1287
1253
|
function deserializeHashbang(pos) {
|
|
1288
|
-
let start = deserializeU32(pos),
|
|
1254
|
+
let start = deserializeU32(pos),
|
|
1255
|
+
end = deserializeU32(pos + 4);
|
|
1289
1256
|
return {
|
|
1290
1257
|
type: 'Hashbang',
|
|
1291
1258
|
value: deserializeStr(pos + 8),
|
|
@@ -1295,14 +1262,12 @@ function deserializeHashbang(pos) {
|
|
|
1295
1262
|
}
|
|
1296
1263
|
|
|
1297
1264
|
function deserializeBlockStatement(pos) {
|
|
1298
|
-
let
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
end,
|
|
1305
|
-
};
|
|
1265
|
+
let node = {
|
|
1266
|
+
type: 'BlockStatement',
|
|
1267
|
+
body: null,
|
|
1268
|
+
start: deserializeU32(pos),
|
|
1269
|
+
end: deserializeU32(pos + 4),
|
|
1270
|
+
};
|
|
1306
1271
|
node.body = deserializeVecStatement(pos + 8);
|
|
1307
1272
|
return node;
|
|
1308
1273
|
}
|
|
@@ -1379,40 +1344,35 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1379
1344
|
}
|
|
1380
1345
|
|
|
1381
1346
|
function deserializeEmptyStatement(pos) {
|
|
1382
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
1383
1347
|
return {
|
|
1384
1348
|
type: 'EmptyStatement',
|
|
1385
|
-
start,
|
|
1386
|
-
end,
|
|
1349
|
+
start: deserializeU32(pos),
|
|
1350
|
+
end: deserializeU32(pos + 4),
|
|
1387
1351
|
};
|
|
1388
1352
|
}
|
|
1389
1353
|
|
|
1390
1354
|
function deserializeExpressionStatement(pos) {
|
|
1391
|
-
let
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
end,
|
|
1399
|
-
};
|
|
1355
|
+
let node = {
|
|
1356
|
+
type: 'ExpressionStatement',
|
|
1357
|
+
expression: null,
|
|
1358
|
+
directive: null,
|
|
1359
|
+
start: deserializeU32(pos),
|
|
1360
|
+
end: deserializeU32(pos + 4),
|
|
1361
|
+
};
|
|
1400
1362
|
node.expression = deserializeExpression(pos + 8);
|
|
1401
1363
|
node.directive = null;
|
|
1402
1364
|
return node;
|
|
1403
1365
|
}
|
|
1404
1366
|
|
|
1405
1367
|
function deserializeIfStatement(pos) {
|
|
1406
|
-
let
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
end,
|
|
1415
|
-
};
|
|
1368
|
+
let node = {
|
|
1369
|
+
type: 'IfStatement',
|
|
1370
|
+
test: null,
|
|
1371
|
+
consequent: null,
|
|
1372
|
+
alternate: null,
|
|
1373
|
+
start: deserializeU32(pos),
|
|
1374
|
+
end: deserializeU32(pos + 4),
|
|
1375
|
+
};
|
|
1416
1376
|
node.test = deserializeExpression(pos + 8);
|
|
1417
1377
|
node.consequent = deserializeStatement(pos + 24);
|
|
1418
1378
|
node.alternate = deserializeOptionStatement(pos + 40);
|
|
@@ -1420,47 +1380,41 @@ function deserializeIfStatement(pos) {
|
|
|
1420
1380
|
}
|
|
1421
1381
|
|
|
1422
1382
|
function deserializeDoWhileStatement(pos) {
|
|
1423
|
-
let
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
end,
|
|
1431
|
-
};
|
|
1383
|
+
let node = {
|
|
1384
|
+
type: 'DoWhileStatement',
|
|
1385
|
+
body: null,
|
|
1386
|
+
test: null,
|
|
1387
|
+
start: deserializeU32(pos),
|
|
1388
|
+
end: deserializeU32(pos + 4),
|
|
1389
|
+
};
|
|
1432
1390
|
node.body = deserializeStatement(pos + 8);
|
|
1433
1391
|
node.test = deserializeExpression(pos + 24);
|
|
1434
1392
|
return node;
|
|
1435
1393
|
}
|
|
1436
1394
|
|
|
1437
1395
|
function deserializeWhileStatement(pos) {
|
|
1438
|
-
let
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
end,
|
|
1446
|
-
};
|
|
1396
|
+
let node = {
|
|
1397
|
+
type: 'WhileStatement',
|
|
1398
|
+
test: null,
|
|
1399
|
+
body: null,
|
|
1400
|
+
start: deserializeU32(pos),
|
|
1401
|
+
end: deserializeU32(pos + 4),
|
|
1402
|
+
};
|
|
1447
1403
|
node.test = deserializeExpression(pos + 8);
|
|
1448
1404
|
node.body = deserializeStatement(pos + 24);
|
|
1449
1405
|
return node;
|
|
1450
1406
|
}
|
|
1451
1407
|
|
|
1452
1408
|
function deserializeForStatement(pos) {
|
|
1453
|
-
let
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
end,
|
|
1463
|
-
};
|
|
1409
|
+
let node = {
|
|
1410
|
+
type: 'ForStatement',
|
|
1411
|
+
init: null,
|
|
1412
|
+
test: null,
|
|
1413
|
+
update: null,
|
|
1414
|
+
body: null,
|
|
1415
|
+
start: deserializeU32(pos),
|
|
1416
|
+
end: deserializeU32(pos + 4),
|
|
1417
|
+
};
|
|
1464
1418
|
node.init = deserializeOptionForStatementInit(pos + 8);
|
|
1465
1419
|
node.test = deserializeOptionExpression(pos + 24);
|
|
1466
1420
|
node.update = deserializeOptionExpression(pos + 40);
|
|
@@ -1564,16 +1518,14 @@ function deserializeForStatementInit(pos) {
|
|
|
1564
1518
|
}
|
|
1565
1519
|
|
|
1566
1520
|
function deserializeForInStatement(pos) {
|
|
1567
|
-
let
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
end,
|
|
1576
|
-
};
|
|
1521
|
+
let node = {
|
|
1522
|
+
type: 'ForInStatement',
|
|
1523
|
+
left: null,
|
|
1524
|
+
right: null,
|
|
1525
|
+
body: null,
|
|
1526
|
+
start: deserializeU32(pos),
|
|
1527
|
+
end: deserializeU32(pos + 4),
|
|
1528
|
+
};
|
|
1577
1529
|
node.left = deserializeForStatementLeft(pos + 8);
|
|
1578
1530
|
node.right = deserializeExpression(pos + 24);
|
|
1579
1531
|
node.body = deserializeStatement(pos + 40);
|
|
@@ -1628,128 +1580,110 @@ function deserializeForOfStatement(pos) {
|
|
|
1628
1580
|
}
|
|
1629
1581
|
|
|
1630
1582
|
function deserializeContinueStatement(pos) {
|
|
1631
|
-
let
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
end,
|
|
1638
|
-
};
|
|
1583
|
+
let node = {
|
|
1584
|
+
type: 'ContinueStatement',
|
|
1585
|
+
label: null,
|
|
1586
|
+
start: deserializeU32(pos),
|
|
1587
|
+
end: deserializeU32(pos + 4),
|
|
1588
|
+
};
|
|
1639
1589
|
node.label = deserializeOptionLabelIdentifier(pos + 8);
|
|
1640
1590
|
return node;
|
|
1641
1591
|
}
|
|
1642
1592
|
|
|
1643
1593
|
function deserializeBreakStatement(pos) {
|
|
1644
|
-
let
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
end,
|
|
1651
|
-
};
|
|
1594
|
+
let node = {
|
|
1595
|
+
type: 'BreakStatement',
|
|
1596
|
+
label: null,
|
|
1597
|
+
start: deserializeU32(pos),
|
|
1598
|
+
end: deserializeU32(pos + 4),
|
|
1599
|
+
};
|
|
1652
1600
|
node.label = deserializeOptionLabelIdentifier(pos + 8);
|
|
1653
1601
|
return node;
|
|
1654
1602
|
}
|
|
1655
1603
|
|
|
1656
1604
|
function deserializeReturnStatement(pos) {
|
|
1657
|
-
let
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
end,
|
|
1664
|
-
};
|
|
1605
|
+
let node = {
|
|
1606
|
+
type: 'ReturnStatement',
|
|
1607
|
+
argument: null,
|
|
1608
|
+
start: deserializeU32(pos),
|
|
1609
|
+
end: deserializeU32(pos + 4),
|
|
1610
|
+
};
|
|
1665
1611
|
node.argument = deserializeOptionExpression(pos + 8);
|
|
1666
1612
|
return node;
|
|
1667
1613
|
}
|
|
1668
1614
|
|
|
1669
1615
|
function deserializeWithStatement(pos) {
|
|
1670
|
-
let
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
end,
|
|
1678
|
-
};
|
|
1616
|
+
let node = {
|
|
1617
|
+
type: 'WithStatement',
|
|
1618
|
+
object: null,
|
|
1619
|
+
body: null,
|
|
1620
|
+
start: deserializeU32(pos),
|
|
1621
|
+
end: deserializeU32(pos + 4),
|
|
1622
|
+
};
|
|
1679
1623
|
node.object = deserializeExpression(pos + 8);
|
|
1680
1624
|
node.body = deserializeStatement(pos + 24);
|
|
1681
1625
|
return node;
|
|
1682
1626
|
}
|
|
1683
1627
|
|
|
1684
1628
|
function deserializeSwitchStatement(pos) {
|
|
1685
|
-
let
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
end,
|
|
1693
|
-
};
|
|
1629
|
+
let node = {
|
|
1630
|
+
type: 'SwitchStatement',
|
|
1631
|
+
discriminant: null,
|
|
1632
|
+
cases: null,
|
|
1633
|
+
start: deserializeU32(pos),
|
|
1634
|
+
end: deserializeU32(pos + 4),
|
|
1635
|
+
};
|
|
1694
1636
|
node.discriminant = deserializeExpression(pos + 8);
|
|
1695
1637
|
node.cases = deserializeVecSwitchCase(pos + 24);
|
|
1696
1638
|
return node;
|
|
1697
1639
|
}
|
|
1698
1640
|
|
|
1699
1641
|
function deserializeSwitchCase(pos) {
|
|
1700
|
-
let
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
end,
|
|
1708
|
-
};
|
|
1642
|
+
let node = {
|
|
1643
|
+
type: 'SwitchCase',
|
|
1644
|
+
test: null,
|
|
1645
|
+
consequent: null,
|
|
1646
|
+
start: deserializeU32(pos),
|
|
1647
|
+
end: deserializeU32(pos + 4),
|
|
1648
|
+
};
|
|
1709
1649
|
node.test = deserializeOptionExpression(pos + 8);
|
|
1710
1650
|
node.consequent = deserializeVecStatement(pos + 24);
|
|
1711
1651
|
return node;
|
|
1712
1652
|
}
|
|
1713
1653
|
|
|
1714
1654
|
function deserializeLabeledStatement(pos) {
|
|
1715
|
-
let
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
end,
|
|
1723
|
-
};
|
|
1655
|
+
let node = {
|
|
1656
|
+
type: 'LabeledStatement',
|
|
1657
|
+
label: null,
|
|
1658
|
+
body: null,
|
|
1659
|
+
start: deserializeU32(pos),
|
|
1660
|
+
end: deserializeU32(pos + 4),
|
|
1661
|
+
};
|
|
1724
1662
|
node.label = deserializeLabelIdentifier(pos + 8);
|
|
1725
1663
|
node.body = deserializeStatement(pos + 32);
|
|
1726
1664
|
return node;
|
|
1727
1665
|
}
|
|
1728
1666
|
|
|
1729
1667
|
function deserializeThrowStatement(pos) {
|
|
1730
|
-
let
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
end,
|
|
1737
|
-
};
|
|
1668
|
+
let node = {
|
|
1669
|
+
type: 'ThrowStatement',
|
|
1670
|
+
argument: null,
|
|
1671
|
+
start: deserializeU32(pos),
|
|
1672
|
+
end: deserializeU32(pos + 4),
|
|
1673
|
+
};
|
|
1738
1674
|
node.argument = deserializeExpression(pos + 8);
|
|
1739
1675
|
return node;
|
|
1740
1676
|
}
|
|
1741
1677
|
|
|
1742
1678
|
function deserializeTryStatement(pos) {
|
|
1743
|
-
let
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
end,
|
|
1752
|
-
};
|
|
1679
|
+
let node = {
|
|
1680
|
+
type: 'TryStatement',
|
|
1681
|
+
block: null,
|
|
1682
|
+
handler: null,
|
|
1683
|
+
finalizer: null,
|
|
1684
|
+
start: deserializeU32(pos),
|
|
1685
|
+
end: deserializeU32(pos + 4),
|
|
1686
|
+
};
|
|
1753
1687
|
node.block = deserializeBoxBlockStatement(pos + 8);
|
|
1754
1688
|
node.handler = deserializeOptionBoxCatchClause(pos + 16);
|
|
1755
1689
|
node.finalizer = deserializeOptionBoxBlockStatement(pos + 24);
|
|
@@ -1757,15 +1691,13 @@ function deserializeTryStatement(pos) {
|
|
|
1757
1691
|
}
|
|
1758
1692
|
|
|
1759
1693
|
function deserializeCatchClause(pos) {
|
|
1760
|
-
let
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
end,
|
|
1768
|
-
};
|
|
1694
|
+
let node = {
|
|
1695
|
+
type: 'CatchClause',
|
|
1696
|
+
param: null,
|
|
1697
|
+
body: null,
|
|
1698
|
+
start: deserializeU32(pos),
|
|
1699
|
+
end: deserializeU32(pos + 4),
|
|
1700
|
+
};
|
|
1769
1701
|
node.param = deserializeOptionCatchParameter(pos + 8);
|
|
1770
1702
|
node.body = deserializeBoxBlockStatement(pos + 48);
|
|
1771
1703
|
return node;
|
|
@@ -1776,11 +1708,10 @@ function deserializeCatchParameter(pos) {
|
|
|
1776
1708
|
}
|
|
1777
1709
|
|
|
1778
1710
|
function deserializeDebuggerStatement(pos) {
|
|
1779
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
1780
1711
|
return {
|
|
1781
1712
|
type: 'DebuggerStatement',
|
|
1782
|
-
start,
|
|
1783
|
-
end,
|
|
1713
|
+
start: deserializeU32(pos),
|
|
1714
|
+
end: deserializeU32(pos + 4),
|
|
1784
1715
|
};
|
|
1785
1716
|
}
|
|
1786
1717
|
|
|
@@ -1807,18 +1738,16 @@ function deserializeBindingPatternKind(pos) {
|
|
|
1807
1738
|
}
|
|
1808
1739
|
|
|
1809
1740
|
function deserializeAssignmentPattern(pos) {
|
|
1810
|
-
let
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
end,
|
|
1821
|
-
};
|
|
1741
|
+
let node = {
|
|
1742
|
+
type: 'AssignmentPattern',
|
|
1743
|
+
decorators: null,
|
|
1744
|
+
left: null,
|
|
1745
|
+
right: null,
|
|
1746
|
+
optional: null,
|
|
1747
|
+
typeAnnotation: null,
|
|
1748
|
+
start: deserializeU32(pos),
|
|
1749
|
+
end: deserializeU32(pos + 4),
|
|
1750
|
+
};
|
|
1822
1751
|
node.decorators = [];
|
|
1823
1752
|
node.left = deserializeBindingPattern(pos + 8);
|
|
1824
1753
|
node.right = deserializeExpression(pos + 40);
|
|
@@ -1828,16 +1757,14 @@ function deserializeAssignmentPattern(pos) {
|
|
|
1828
1757
|
}
|
|
1829
1758
|
|
|
1830
1759
|
function deserializeObjectPattern(pos) {
|
|
1831
|
-
let
|
|
1832
|
-
end = deserializeU32(pos + 4),
|
|
1833
|
-
node = {
|
|
1760
|
+
let node = {
|
|
1834
1761
|
type: 'ObjectPattern',
|
|
1835
1762
|
decorators: null,
|
|
1836
1763
|
properties: null,
|
|
1837
1764
|
optional: null,
|
|
1838
1765
|
typeAnnotation: null,
|
|
1839
|
-
start,
|
|
1840
|
-
end,
|
|
1766
|
+
start: deserializeU32(pos),
|
|
1767
|
+
end: deserializeU32(pos + 4),
|
|
1841
1768
|
},
|
|
1842
1769
|
properties = deserializeVecBindingProperty(pos + 8),
|
|
1843
1770
|
rest = deserializeOptionBoxBindingRestElement(pos + 32);
|
|
@@ -1873,16 +1800,14 @@ function deserializeBindingProperty(pos) {
|
|
|
1873
1800
|
}
|
|
1874
1801
|
|
|
1875
1802
|
function deserializeArrayPattern(pos) {
|
|
1876
|
-
let
|
|
1877
|
-
end = deserializeU32(pos + 4),
|
|
1878
|
-
node = {
|
|
1803
|
+
let node = {
|
|
1879
1804
|
type: 'ArrayPattern',
|
|
1880
1805
|
decorators: null,
|
|
1881
1806
|
elements: null,
|
|
1882
1807
|
optional: null,
|
|
1883
1808
|
typeAnnotation: null,
|
|
1884
|
-
start,
|
|
1885
|
-
end,
|
|
1809
|
+
start: deserializeU32(pos),
|
|
1810
|
+
end: deserializeU32(pos + 4),
|
|
1886
1811
|
},
|
|
1887
1812
|
elements = deserializeVecOptionBindingPattern(pos + 8),
|
|
1888
1813
|
rest = deserializeOptionBoxBindingRestElement(pos + 32);
|
|
@@ -1895,18 +1820,16 @@ function deserializeArrayPattern(pos) {
|
|
|
1895
1820
|
}
|
|
1896
1821
|
|
|
1897
1822
|
function deserializeBindingRestElement(pos) {
|
|
1898
|
-
let
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
end,
|
|
1909
|
-
};
|
|
1823
|
+
let node = {
|
|
1824
|
+
type: 'RestElement',
|
|
1825
|
+
decorators: null,
|
|
1826
|
+
argument: null,
|
|
1827
|
+
optional: null,
|
|
1828
|
+
typeAnnotation: null,
|
|
1829
|
+
value: null,
|
|
1830
|
+
start: deserializeU32(pos),
|
|
1831
|
+
end: deserializeU32(pos + 4),
|
|
1832
|
+
};
|
|
1910
1833
|
node.decorators = [];
|
|
1911
1834
|
node.argument = deserializeBindingPattern(pos + 8);
|
|
1912
1835
|
node.optional = false;
|
|
@@ -1963,8 +1886,8 @@ function deserializeFunctionType(pos) {
|
|
|
1963
1886
|
|
|
1964
1887
|
function deserializeFormalParameters(pos) {
|
|
1965
1888
|
let params = deserializeVecFormalParameter(pos + 8);
|
|
1966
|
-
if (uint32[pos + 32 >> 2] !== 0 && uint32[pos + 36 >> 2] !== 0) {
|
|
1967
|
-
pos = uint32[pos + 32 >> 2];
|
|
1889
|
+
if (uint32[(pos + 32) >> 2] !== 0 && uint32[(pos + 36) >> 2] !== 0) {
|
|
1890
|
+
pos = uint32[(pos + 32) >> 2];
|
|
1968
1891
|
let rest = {
|
|
1969
1892
|
type: 'RestElement',
|
|
1970
1893
|
decorators: [],
|
|
@@ -2013,13 +1936,11 @@ function deserializeFormalParameter(pos) {
|
|
|
2013
1936
|
}
|
|
2014
1937
|
|
|
2015
1938
|
function deserializeFunctionBody(pos) {
|
|
2016
|
-
let
|
|
2017
|
-
end = deserializeU32(pos + 4),
|
|
2018
|
-
node = {
|
|
1939
|
+
let node = {
|
|
2019
1940
|
type: 'BlockStatement',
|
|
2020
1941
|
body: null,
|
|
2021
|
-
start,
|
|
2022
|
-
end,
|
|
1942
|
+
start: deserializeU32(pos),
|
|
1943
|
+
end: deserializeU32(pos + 4),
|
|
2023
1944
|
},
|
|
2024
1945
|
body = deserializeVecDirective(pos + 8);
|
|
2025
1946
|
body.push(...deserializeVecStatement(pos + 32));
|
|
@@ -2108,14 +2029,12 @@ function deserializeClassType(pos) {
|
|
|
2108
2029
|
}
|
|
2109
2030
|
|
|
2110
2031
|
function deserializeClassBody(pos) {
|
|
2111
|
-
let
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
end,
|
|
2118
|
-
};
|
|
2032
|
+
let node = {
|
|
2033
|
+
type: 'ClassBody',
|
|
2034
|
+
body: null,
|
|
2035
|
+
start: deserializeU32(pos),
|
|
2036
|
+
end: deserializeU32(pos + 4),
|
|
2037
|
+
};
|
|
2119
2038
|
node.body = deserializeVecClassElement(pos + 8);
|
|
2120
2039
|
return node;
|
|
2121
2040
|
}
|
|
@@ -2225,7 +2144,8 @@ function deserializeMethodDefinitionKind(pos) {
|
|
|
2225
2144
|
}
|
|
2226
2145
|
|
|
2227
2146
|
function deserializePrivateIdentifier(pos) {
|
|
2228
|
-
let start = deserializeU32(pos),
|
|
2147
|
+
let start = deserializeU32(pos),
|
|
2148
|
+
end = deserializeU32(pos + 4);
|
|
2229
2149
|
return {
|
|
2230
2150
|
type: 'PrivateIdentifier',
|
|
2231
2151
|
name: deserializeStr(pos + 8),
|
|
@@ -2235,14 +2155,12 @@ function deserializePrivateIdentifier(pos) {
|
|
|
2235
2155
|
}
|
|
2236
2156
|
|
|
2237
2157
|
function deserializeStaticBlock(pos) {
|
|
2238
|
-
let
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
end,
|
|
2245
|
-
};
|
|
2158
|
+
let node = {
|
|
2159
|
+
type: 'StaticBlock',
|
|
2160
|
+
body: null,
|
|
2161
|
+
start: deserializeU32(pos),
|
|
2162
|
+
end: deserializeU32(pos + 4),
|
|
2163
|
+
};
|
|
2246
2164
|
node.body = deserializeVecStatement(pos + 8);
|
|
2247
2165
|
return node;
|
|
2248
2166
|
}
|
|
@@ -2367,27 +2285,23 @@ function deserializeImportSpecifier(pos) {
|
|
|
2367
2285
|
}
|
|
2368
2286
|
|
|
2369
2287
|
function deserializeImportDefaultSpecifier(pos) {
|
|
2370
|
-
let
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
end,
|
|
2377
|
-
};
|
|
2288
|
+
let node = {
|
|
2289
|
+
type: 'ImportDefaultSpecifier',
|
|
2290
|
+
local: null,
|
|
2291
|
+
start: deserializeU32(pos),
|
|
2292
|
+
end: deserializeU32(pos + 4),
|
|
2293
|
+
};
|
|
2378
2294
|
node.local = deserializeBindingIdentifier(pos + 8);
|
|
2379
2295
|
return node;
|
|
2380
2296
|
}
|
|
2381
2297
|
|
|
2382
2298
|
function deserializeImportNamespaceSpecifier(pos) {
|
|
2383
|
-
let
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
end,
|
|
2390
|
-
};
|
|
2299
|
+
let node = {
|
|
2300
|
+
type: 'ImportNamespaceSpecifier',
|
|
2301
|
+
local: null,
|
|
2302
|
+
start: deserializeU32(pos),
|
|
2303
|
+
end: deserializeU32(pos + 4),
|
|
2304
|
+
};
|
|
2391
2305
|
node.local = deserializeBindingIdentifier(pos + 8);
|
|
2392
2306
|
return node;
|
|
2393
2307
|
}
|
|
@@ -2397,15 +2311,13 @@ function deserializeWithClause(pos) {
|
|
|
2397
2311
|
}
|
|
2398
2312
|
|
|
2399
2313
|
function deserializeImportAttribute(pos) {
|
|
2400
|
-
let
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
end,
|
|
2408
|
-
};
|
|
2314
|
+
let node = {
|
|
2315
|
+
type: 'ImportAttribute',
|
|
2316
|
+
key: null,
|
|
2317
|
+
value: null,
|
|
2318
|
+
start: deserializeU32(pos),
|
|
2319
|
+
end: deserializeU32(pos + 4),
|
|
2320
|
+
};
|
|
2409
2321
|
node.key = deserializeImportAttributeKey(pos + 8);
|
|
2410
2322
|
node.value = deserializeStringLiteral(pos + 64);
|
|
2411
2323
|
return node;
|
|
@@ -2444,15 +2356,13 @@ function deserializeExportNamedDeclaration(pos) {
|
|
|
2444
2356
|
}
|
|
2445
2357
|
|
|
2446
2358
|
function deserializeExportDefaultDeclaration(pos) {
|
|
2447
|
-
let
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
end,
|
|
2455
|
-
};
|
|
2359
|
+
let node = {
|
|
2360
|
+
type: 'ExportDefaultDeclaration',
|
|
2361
|
+
declaration: null,
|
|
2362
|
+
exportKind: null,
|
|
2363
|
+
start: deserializeU32(pos),
|
|
2364
|
+
end: deserializeU32(pos + 4),
|
|
2365
|
+
};
|
|
2456
2366
|
node.declaration = deserializeExportDefaultDeclarationKind(pos + 8);
|
|
2457
2367
|
node.exportKind = 'value';
|
|
2458
2368
|
return node;
|
|
@@ -2606,15 +2516,13 @@ function deserializeModuleExportName(pos) {
|
|
|
2606
2516
|
}
|
|
2607
2517
|
|
|
2608
2518
|
function deserializeV8IntrinsicExpression(pos) {
|
|
2609
|
-
let
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
end,
|
|
2617
|
-
};
|
|
2519
|
+
let node = {
|
|
2520
|
+
type: 'V8IntrinsicExpression',
|
|
2521
|
+
name: null,
|
|
2522
|
+
arguments: null,
|
|
2523
|
+
start: deserializeU32(pos),
|
|
2524
|
+
end: deserializeU32(pos + 4),
|
|
2525
|
+
};
|
|
2618
2526
|
node.name = deserializeIdentifierName(pos + 8);
|
|
2619
2527
|
node.arguments = deserializeVecArgument(pos + 32);
|
|
2620
2528
|
return node;
|
|
@@ -2651,7 +2559,8 @@ function deserializeNullLiteral(pos) {
|
|
|
2651
2559
|
}
|
|
2652
2560
|
|
|
2653
2561
|
function deserializeNumericLiteral(pos) {
|
|
2654
|
-
let start = deserializeU32(pos),
|
|
2562
|
+
let start = deserializeU32(pos),
|
|
2563
|
+
end = deserializeU32(pos + 4);
|
|
2655
2564
|
return {
|
|
2656
2565
|
type: 'Literal',
|
|
2657
2566
|
value: deserializeF64(pos + 8),
|
|
@@ -2724,7 +2633,8 @@ function deserializeRegExp(pos) {
|
|
|
2724
2633
|
}
|
|
2725
2634
|
|
|
2726
2635
|
function deserializeRegExpFlags(pos) {
|
|
2727
|
-
let flagBits = deserializeU8(pos),
|
|
2636
|
+
let flagBits = deserializeU8(pos),
|
|
2637
|
+
flags = '';
|
|
2728
2638
|
// Alphabetical order
|
|
2729
2639
|
flagBits & 64 && (flags += 'd');
|
|
2730
2640
|
flagBits & 1 && (flags += 'g');
|
|
@@ -2738,15 +2648,13 @@ function deserializeRegExpFlags(pos) {
|
|
|
2738
2648
|
}
|
|
2739
2649
|
|
|
2740
2650
|
function deserializeJSXElement(pos) {
|
|
2741
|
-
let
|
|
2742
|
-
end = deserializeU32(pos + 4),
|
|
2743
|
-
node = {
|
|
2651
|
+
let node = {
|
|
2744
2652
|
type: 'JSXElement',
|
|
2745
2653
|
openingElement: null,
|
|
2746
2654
|
children: null,
|
|
2747
2655
|
closingElement: null,
|
|
2748
|
-
start,
|
|
2749
|
-
end,
|
|
2656
|
+
start: deserializeU32(pos),
|
|
2657
|
+
end: deserializeU32(pos + 4),
|
|
2750
2658
|
},
|
|
2751
2659
|
closingElement = deserializeOptionBoxJSXClosingElement(pos + 40),
|
|
2752
2660
|
openingElement = deserializeBoxJSXOpeningElement(pos + 8);
|
|
@@ -2758,17 +2666,15 @@ function deserializeJSXElement(pos) {
|
|
|
2758
2666
|
}
|
|
2759
2667
|
|
|
2760
2668
|
function deserializeJSXOpeningElement(pos) {
|
|
2761
|
-
let
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
end,
|
|
2771
|
-
};
|
|
2669
|
+
let node = {
|
|
2670
|
+
type: 'JSXOpeningElement',
|
|
2671
|
+
name: null,
|
|
2672
|
+
typeArguments: null,
|
|
2673
|
+
attributes: null,
|
|
2674
|
+
selfClosing: null,
|
|
2675
|
+
start: deserializeU32(pos),
|
|
2676
|
+
end: deserializeU32(pos + 4),
|
|
2677
|
+
};
|
|
2772
2678
|
node.name = deserializeJSXElementName(pos + 8);
|
|
2773
2679
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 24);
|
|
2774
2680
|
node.attributes = deserializeVecJSXAttributeItem(pos + 32);
|
|
@@ -2777,29 +2683,25 @@ function deserializeJSXOpeningElement(pos) {
|
|
|
2777
2683
|
}
|
|
2778
2684
|
|
|
2779
2685
|
function deserializeJSXClosingElement(pos) {
|
|
2780
|
-
let
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
end,
|
|
2787
|
-
};
|
|
2686
|
+
let node = {
|
|
2687
|
+
type: 'JSXClosingElement',
|
|
2688
|
+
name: null,
|
|
2689
|
+
start: deserializeU32(pos),
|
|
2690
|
+
end: deserializeU32(pos + 4),
|
|
2691
|
+
};
|
|
2788
2692
|
node.name = deserializeJSXElementName(pos + 8);
|
|
2789
2693
|
return node;
|
|
2790
2694
|
}
|
|
2791
2695
|
|
|
2792
2696
|
function deserializeJSXFragment(pos) {
|
|
2793
|
-
let
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
end,
|
|
2802
|
-
};
|
|
2697
|
+
let node = {
|
|
2698
|
+
type: 'JSXFragment',
|
|
2699
|
+
openingFragment: null,
|
|
2700
|
+
children: null,
|
|
2701
|
+
closingFragment: null,
|
|
2702
|
+
start: deserializeU32(pos),
|
|
2703
|
+
end: deserializeU32(pos + 4),
|
|
2704
|
+
};
|
|
2803
2705
|
node.openingFragment = deserializeJSXOpeningFragment(pos + 8);
|
|
2804
2706
|
node.children = deserializeVecJSXChild(pos + 16);
|
|
2805
2707
|
node.closingFragment = deserializeJSXClosingFragment(pos + 40);
|
|
@@ -2807,20 +2709,18 @@ function deserializeJSXFragment(pos) {
|
|
|
2807
2709
|
}
|
|
2808
2710
|
|
|
2809
2711
|
function deserializeJSXOpeningFragment(pos) {
|
|
2810
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
2811
2712
|
return {
|
|
2812
2713
|
type: 'JSXOpeningFragment',
|
|
2813
|
-
start,
|
|
2814
|
-
end,
|
|
2714
|
+
start: deserializeU32(pos),
|
|
2715
|
+
end: deserializeU32(pos + 4),
|
|
2815
2716
|
};
|
|
2816
2717
|
}
|
|
2817
2718
|
|
|
2818
2719
|
function deserializeJSXClosingFragment(pos) {
|
|
2819
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
2820
2720
|
return {
|
|
2821
2721
|
type: 'JSXClosingFragment',
|
|
2822
|
-
start,
|
|
2823
|
-
end,
|
|
2722
|
+
start: deserializeU32(pos),
|
|
2723
|
+
end: deserializeU32(pos + 4),
|
|
2824
2724
|
};
|
|
2825
2725
|
}
|
|
2826
2726
|
|
|
@@ -2854,30 +2754,26 @@ function deserializeJSXElementName(pos) {
|
|
|
2854
2754
|
}
|
|
2855
2755
|
|
|
2856
2756
|
function deserializeJSXNamespacedName(pos) {
|
|
2857
|
-
let
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
end,
|
|
2865
|
-
};
|
|
2757
|
+
let node = {
|
|
2758
|
+
type: 'JSXNamespacedName',
|
|
2759
|
+
namespace: null,
|
|
2760
|
+
name: null,
|
|
2761
|
+
start: deserializeU32(pos),
|
|
2762
|
+
end: deserializeU32(pos + 4),
|
|
2763
|
+
};
|
|
2866
2764
|
node.namespace = deserializeJSXIdentifier(pos + 8);
|
|
2867
2765
|
node.name = deserializeJSXIdentifier(pos + 32);
|
|
2868
2766
|
return node;
|
|
2869
2767
|
}
|
|
2870
2768
|
|
|
2871
2769
|
function deserializeJSXMemberExpression(pos) {
|
|
2872
|
-
let
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
end,
|
|
2880
|
-
};
|
|
2770
|
+
let node = {
|
|
2771
|
+
type: 'JSXMemberExpression',
|
|
2772
|
+
object: null,
|
|
2773
|
+
property: null,
|
|
2774
|
+
start: deserializeU32(pos),
|
|
2775
|
+
end: deserializeU32(pos + 4),
|
|
2776
|
+
};
|
|
2881
2777
|
node.object = deserializeJSXMemberExpressionObject(pos + 8);
|
|
2882
2778
|
node.property = deserializeJSXIdentifier(pos + 24);
|
|
2883
2779
|
return node;
|
|
@@ -2909,14 +2805,12 @@ function deserializeJSXMemberExpressionObject(pos) {
|
|
|
2909
2805
|
}
|
|
2910
2806
|
|
|
2911
2807
|
function deserializeJSXExpressionContainer(pos) {
|
|
2912
|
-
let
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
end,
|
|
2919
|
-
};
|
|
2808
|
+
let node = {
|
|
2809
|
+
type: 'JSXExpressionContainer',
|
|
2810
|
+
expression: null,
|
|
2811
|
+
start: deserializeU32(pos),
|
|
2812
|
+
end: deserializeU32(pos + 4),
|
|
2813
|
+
};
|
|
2920
2814
|
node.expression = deserializeJSXExpression(pos + 8);
|
|
2921
2815
|
return node;
|
|
2922
2816
|
}
|
|
@@ -3017,11 +2911,10 @@ function deserializeJSXExpression(pos) {
|
|
|
3017
2911
|
}
|
|
3018
2912
|
|
|
3019
2913
|
function deserializeJSXEmptyExpression(pos) {
|
|
3020
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3021
2914
|
return {
|
|
3022
2915
|
type: 'JSXEmptyExpression',
|
|
3023
|
-
start,
|
|
3024
|
-
end,
|
|
2916
|
+
start: deserializeU32(pos),
|
|
2917
|
+
end: deserializeU32(pos + 4),
|
|
3025
2918
|
};
|
|
3026
2919
|
}
|
|
3027
2920
|
|
|
@@ -3037,29 +2930,25 @@ function deserializeJSXAttributeItem(pos) {
|
|
|
3037
2930
|
}
|
|
3038
2931
|
|
|
3039
2932
|
function deserializeJSXAttribute(pos) {
|
|
3040
|
-
let
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
end,
|
|
3048
|
-
};
|
|
2933
|
+
let node = {
|
|
2934
|
+
type: 'JSXAttribute',
|
|
2935
|
+
name: null,
|
|
2936
|
+
value: null,
|
|
2937
|
+
start: deserializeU32(pos),
|
|
2938
|
+
end: deserializeU32(pos + 4),
|
|
2939
|
+
};
|
|
3049
2940
|
node.name = deserializeJSXAttributeName(pos + 8);
|
|
3050
2941
|
node.value = deserializeOptionJSXAttributeValue(pos + 24);
|
|
3051
2942
|
return node;
|
|
3052
2943
|
}
|
|
3053
2944
|
|
|
3054
2945
|
function deserializeJSXSpreadAttribute(pos) {
|
|
3055
|
-
let
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
end,
|
|
3062
|
-
};
|
|
2946
|
+
let node = {
|
|
2947
|
+
type: 'JSXSpreadAttribute',
|
|
2948
|
+
argument: null,
|
|
2949
|
+
start: deserializeU32(pos),
|
|
2950
|
+
end: deserializeU32(pos + 4),
|
|
2951
|
+
};
|
|
3063
2952
|
node.argument = deserializeExpression(pos + 8);
|
|
3064
2953
|
return node;
|
|
3065
2954
|
}
|
|
@@ -3091,7 +2980,8 @@ function deserializeJSXAttributeValue(pos) {
|
|
|
3091
2980
|
}
|
|
3092
2981
|
|
|
3093
2982
|
function deserializeJSXIdentifier(pos) {
|
|
3094
|
-
let start = deserializeU32(pos),
|
|
2983
|
+
let start = deserializeU32(pos),
|
|
2984
|
+
end = deserializeU32(pos + 4);
|
|
3095
2985
|
return {
|
|
3096
2986
|
type: 'JSXIdentifier',
|
|
3097
2987
|
name: deserializeStr(pos + 8),
|
|
@@ -3118,20 +3008,19 @@ function deserializeJSXChild(pos) {
|
|
|
3118
3008
|
}
|
|
3119
3009
|
|
|
3120
3010
|
function deserializeJSXSpreadChild(pos) {
|
|
3121
|
-
let
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
end,
|
|
3128
|
-
};
|
|
3011
|
+
let node = {
|
|
3012
|
+
type: 'JSXSpreadChild',
|
|
3013
|
+
expression: null,
|
|
3014
|
+
start: deserializeU32(pos),
|
|
3015
|
+
end: deserializeU32(pos + 4),
|
|
3016
|
+
};
|
|
3129
3017
|
node.expression = deserializeExpression(pos + 8);
|
|
3130
3018
|
return node;
|
|
3131
3019
|
}
|
|
3132
3020
|
|
|
3133
3021
|
function deserializeJSXText(pos) {
|
|
3134
|
-
let start = deserializeU32(pos),
|
|
3022
|
+
let start = deserializeU32(pos),
|
|
3023
|
+
end = deserializeU32(pos + 4);
|
|
3135
3024
|
return {
|
|
3136
3025
|
type: 'JSXText',
|
|
3137
3026
|
value: deserializeStr(pos + 8),
|
|
@@ -3142,17 +3031,15 @@ function deserializeJSXText(pos) {
|
|
|
3142
3031
|
}
|
|
3143
3032
|
|
|
3144
3033
|
function deserializeTSThisParameter(pos) {
|
|
3145
|
-
let
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
end,
|
|
3155
|
-
};
|
|
3034
|
+
let node = {
|
|
3035
|
+
type: 'Identifier',
|
|
3036
|
+
decorators: null,
|
|
3037
|
+
name: null,
|
|
3038
|
+
optional: null,
|
|
3039
|
+
typeAnnotation: null,
|
|
3040
|
+
start: deserializeU32(pos),
|
|
3041
|
+
end: deserializeU32(pos + 4),
|
|
3042
|
+
};
|
|
3156
3043
|
node.decorators = [];
|
|
3157
3044
|
node.name = 'this';
|
|
3158
3045
|
node.optional = false;
|
|
@@ -3178,29 +3065,25 @@ function deserializeTSEnumDeclaration(pos) {
|
|
|
3178
3065
|
}
|
|
3179
3066
|
|
|
3180
3067
|
function deserializeTSEnumBody(pos) {
|
|
3181
|
-
let
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
end,
|
|
3188
|
-
};
|
|
3068
|
+
let node = {
|
|
3069
|
+
type: 'TSEnumBody',
|
|
3070
|
+
members: null,
|
|
3071
|
+
start: deserializeU32(pos),
|
|
3072
|
+
end: deserializeU32(pos + 4),
|
|
3073
|
+
};
|
|
3189
3074
|
node.members = deserializeVecTSEnumMember(pos + 8);
|
|
3190
3075
|
return node;
|
|
3191
3076
|
}
|
|
3192
3077
|
|
|
3193
3078
|
function deserializeTSEnumMember(pos) {
|
|
3194
|
-
let
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
end,
|
|
3203
|
-
};
|
|
3079
|
+
let node = {
|
|
3080
|
+
type: 'TSEnumMember',
|
|
3081
|
+
id: null,
|
|
3082
|
+
initializer: null,
|
|
3083
|
+
computed: null,
|
|
3084
|
+
start: deserializeU32(pos),
|
|
3085
|
+
end: deserializeU32(pos + 4),
|
|
3086
|
+
};
|
|
3204
3087
|
node.id = deserializeTSEnumMemberName(pos + 8);
|
|
3205
3088
|
node.initializer = deserializeOptionExpression(pos + 24);
|
|
3206
3089
|
node.computed = deserializeU8(pos + 8) > 1;
|
|
@@ -3223,27 +3106,23 @@ function deserializeTSEnumMemberName(pos) {
|
|
|
3223
3106
|
}
|
|
3224
3107
|
|
|
3225
3108
|
function deserializeTSTypeAnnotation(pos) {
|
|
3226
|
-
let
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
end,
|
|
3233
|
-
};
|
|
3109
|
+
let node = {
|
|
3110
|
+
type: 'TSTypeAnnotation',
|
|
3111
|
+
typeAnnotation: null,
|
|
3112
|
+
start: deserializeU32(pos),
|
|
3113
|
+
end: deserializeU32(pos + 4),
|
|
3114
|
+
};
|
|
3234
3115
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
3235
3116
|
return node;
|
|
3236
3117
|
}
|
|
3237
3118
|
|
|
3238
3119
|
function deserializeTSLiteralType(pos) {
|
|
3239
|
-
let
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
end,
|
|
3246
|
-
};
|
|
3120
|
+
let node = {
|
|
3121
|
+
type: 'TSLiteralType',
|
|
3122
|
+
literal: null,
|
|
3123
|
+
start: deserializeU32(pos),
|
|
3124
|
+
end: deserializeU32(pos + 4),
|
|
3125
|
+
};
|
|
3247
3126
|
node.literal = deserializeTSLiteral(pos + 8);
|
|
3248
3127
|
return node;
|
|
3249
3128
|
}
|
|
@@ -3349,17 +3228,15 @@ function deserializeTSType(pos) {
|
|
|
3349
3228
|
}
|
|
3350
3229
|
|
|
3351
3230
|
function deserializeTSConditionalType(pos) {
|
|
3352
|
-
let
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
end,
|
|
3362
|
-
};
|
|
3231
|
+
let node = {
|
|
3232
|
+
type: 'TSConditionalType',
|
|
3233
|
+
checkType: null,
|
|
3234
|
+
extendsType: null,
|
|
3235
|
+
trueType: null,
|
|
3236
|
+
falseType: null,
|
|
3237
|
+
start: deserializeU32(pos),
|
|
3238
|
+
end: deserializeU32(pos + 4),
|
|
3239
|
+
};
|
|
3363
3240
|
node.checkType = deserializeTSType(pos + 8);
|
|
3364
3241
|
node.extendsType = deserializeTSType(pos + 24);
|
|
3365
3242
|
node.trueType = deserializeTSType(pos + 40);
|
|
@@ -3368,27 +3245,23 @@ function deserializeTSConditionalType(pos) {
|
|
|
3368
3245
|
}
|
|
3369
3246
|
|
|
3370
3247
|
function deserializeTSUnionType(pos) {
|
|
3371
|
-
let
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
end,
|
|
3378
|
-
};
|
|
3248
|
+
let node = {
|
|
3249
|
+
type: 'TSUnionType',
|
|
3250
|
+
types: null,
|
|
3251
|
+
start: deserializeU32(pos),
|
|
3252
|
+
end: deserializeU32(pos + 4),
|
|
3253
|
+
};
|
|
3379
3254
|
node.types = deserializeVecTSType(pos + 8);
|
|
3380
3255
|
return node;
|
|
3381
3256
|
}
|
|
3382
3257
|
|
|
3383
3258
|
function deserializeTSIntersectionType(pos) {
|
|
3384
|
-
let
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
end,
|
|
3391
|
-
};
|
|
3259
|
+
let node = {
|
|
3260
|
+
type: 'TSIntersectionType',
|
|
3261
|
+
types: null,
|
|
3262
|
+
start: deserializeU32(pos),
|
|
3263
|
+
end: deserializeU32(pos + 4),
|
|
3264
|
+
};
|
|
3392
3265
|
node.types = deserializeVecTSType(pos + 8);
|
|
3393
3266
|
return node;
|
|
3394
3267
|
}
|
|
@@ -3433,42 +3306,36 @@ function deserializeTSTypeOperatorOperator(pos) {
|
|
|
3433
3306
|
}
|
|
3434
3307
|
|
|
3435
3308
|
function deserializeTSArrayType(pos) {
|
|
3436
|
-
let
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
end,
|
|
3443
|
-
};
|
|
3309
|
+
let node = {
|
|
3310
|
+
type: 'TSArrayType',
|
|
3311
|
+
elementType: null,
|
|
3312
|
+
start: deserializeU32(pos),
|
|
3313
|
+
end: deserializeU32(pos + 4),
|
|
3314
|
+
};
|
|
3444
3315
|
node.elementType = deserializeTSType(pos + 8);
|
|
3445
3316
|
return node;
|
|
3446
3317
|
}
|
|
3447
3318
|
|
|
3448
3319
|
function deserializeTSIndexedAccessType(pos) {
|
|
3449
|
-
let
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
end,
|
|
3457
|
-
};
|
|
3320
|
+
let node = {
|
|
3321
|
+
type: 'TSIndexedAccessType',
|
|
3322
|
+
objectType: null,
|
|
3323
|
+
indexType: null,
|
|
3324
|
+
start: deserializeU32(pos),
|
|
3325
|
+
end: deserializeU32(pos + 4),
|
|
3326
|
+
};
|
|
3458
3327
|
node.objectType = deserializeTSType(pos + 8);
|
|
3459
3328
|
node.indexType = deserializeTSType(pos + 24);
|
|
3460
3329
|
return node;
|
|
3461
3330
|
}
|
|
3462
3331
|
|
|
3463
3332
|
function deserializeTSTupleType(pos) {
|
|
3464
|
-
let
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
end,
|
|
3471
|
-
};
|
|
3333
|
+
let node = {
|
|
3334
|
+
type: 'TSTupleType',
|
|
3335
|
+
elementTypes: null,
|
|
3336
|
+
start: deserializeU32(pos),
|
|
3337
|
+
end: deserializeU32(pos + 4),
|
|
3338
|
+
};
|
|
3472
3339
|
node.elementTypes = deserializeVecTSTupleElement(pos + 8);
|
|
3473
3340
|
return node;
|
|
3474
3341
|
}
|
|
@@ -3490,27 +3357,23 @@ function deserializeTSNamedTupleMember(pos) {
|
|
|
3490
3357
|
}
|
|
3491
3358
|
|
|
3492
3359
|
function deserializeTSOptionalType(pos) {
|
|
3493
|
-
let
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
end,
|
|
3500
|
-
};
|
|
3360
|
+
let node = {
|
|
3361
|
+
type: 'TSOptionalType',
|
|
3362
|
+
typeAnnotation: null,
|
|
3363
|
+
start: deserializeU32(pos),
|
|
3364
|
+
end: deserializeU32(pos + 4),
|
|
3365
|
+
};
|
|
3501
3366
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
3502
3367
|
return node;
|
|
3503
3368
|
}
|
|
3504
3369
|
|
|
3505
3370
|
function deserializeTSRestType(pos) {
|
|
3506
|
-
let
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
end,
|
|
3513
|
-
};
|
|
3371
|
+
let node = {
|
|
3372
|
+
type: 'TSRestType',
|
|
3373
|
+
typeAnnotation: null,
|
|
3374
|
+
start: deserializeU32(pos),
|
|
3375
|
+
end: deserializeU32(pos + 4),
|
|
3376
|
+
};
|
|
3514
3377
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
3515
3378
|
return node;
|
|
3516
3379
|
}
|
|
@@ -3601,141 +3464,125 @@ function deserializeTSTupleElement(pos) {
|
|
|
3601
3464
|
}
|
|
3602
3465
|
|
|
3603
3466
|
function deserializeTSAnyKeyword(pos) {
|
|
3604
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3605
3467
|
return {
|
|
3606
3468
|
type: 'TSAnyKeyword',
|
|
3607
|
-
start,
|
|
3608
|
-
end,
|
|
3469
|
+
start: deserializeU32(pos),
|
|
3470
|
+
end: deserializeU32(pos + 4),
|
|
3609
3471
|
};
|
|
3610
3472
|
}
|
|
3611
3473
|
|
|
3612
3474
|
function deserializeTSStringKeyword(pos) {
|
|
3613
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3614
3475
|
return {
|
|
3615
3476
|
type: 'TSStringKeyword',
|
|
3616
|
-
start,
|
|
3617
|
-
end,
|
|
3477
|
+
start: deserializeU32(pos),
|
|
3478
|
+
end: deserializeU32(pos + 4),
|
|
3618
3479
|
};
|
|
3619
3480
|
}
|
|
3620
3481
|
|
|
3621
3482
|
function deserializeTSBooleanKeyword(pos) {
|
|
3622
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3623
3483
|
return {
|
|
3624
3484
|
type: 'TSBooleanKeyword',
|
|
3625
|
-
start,
|
|
3626
|
-
end,
|
|
3485
|
+
start: deserializeU32(pos),
|
|
3486
|
+
end: deserializeU32(pos + 4),
|
|
3627
3487
|
};
|
|
3628
3488
|
}
|
|
3629
3489
|
|
|
3630
3490
|
function deserializeTSNumberKeyword(pos) {
|
|
3631
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3632
3491
|
return {
|
|
3633
3492
|
type: 'TSNumberKeyword',
|
|
3634
|
-
start,
|
|
3635
|
-
end,
|
|
3493
|
+
start: deserializeU32(pos),
|
|
3494
|
+
end: deserializeU32(pos + 4),
|
|
3636
3495
|
};
|
|
3637
3496
|
}
|
|
3638
3497
|
|
|
3639
3498
|
function deserializeTSNeverKeyword(pos) {
|
|
3640
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3641
3499
|
return {
|
|
3642
3500
|
type: 'TSNeverKeyword',
|
|
3643
|
-
start,
|
|
3644
|
-
end,
|
|
3501
|
+
start: deserializeU32(pos),
|
|
3502
|
+
end: deserializeU32(pos + 4),
|
|
3645
3503
|
};
|
|
3646
3504
|
}
|
|
3647
3505
|
|
|
3648
3506
|
function deserializeTSIntrinsicKeyword(pos) {
|
|
3649
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3650
3507
|
return {
|
|
3651
3508
|
type: 'TSIntrinsicKeyword',
|
|
3652
|
-
start,
|
|
3653
|
-
end,
|
|
3509
|
+
start: deserializeU32(pos),
|
|
3510
|
+
end: deserializeU32(pos + 4),
|
|
3654
3511
|
};
|
|
3655
3512
|
}
|
|
3656
3513
|
|
|
3657
3514
|
function deserializeTSUnknownKeyword(pos) {
|
|
3658
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3659
3515
|
return {
|
|
3660
3516
|
type: 'TSUnknownKeyword',
|
|
3661
|
-
start,
|
|
3662
|
-
end,
|
|
3517
|
+
start: deserializeU32(pos),
|
|
3518
|
+
end: deserializeU32(pos + 4),
|
|
3663
3519
|
};
|
|
3664
3520
|
}
|
|
3665
3521
|
|
|
3666
3522
|
function deserializeTSNullKeyword(pos) {
|
|
3667
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3668
3523
|
return {
|
|
3669
3524
|
type: 'TSNullKeyword',
|
|
3670
|
-
start,
|
|
3671
|
-
end,
|
|
3525
|
+
start: deserializeU32(pos),
|
|
3526
|
+
end: deserializeU32(pos + 4),
|
|
3672
3527
|
};
|
|
3673
3528
|
}
|
|
3674
3529
|
|
|
3675
3530
|
function deserializeTSUndefinedKeyword(pos) {
|
|
3676
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3677
3531
|
return {
|
|
3678
3532
|
type: 'TSUndefinedKeyword',
|
|
3679
|
-
start,
|
|
3680
|
-
end,
|
|
3533
|
+
start: deserializeU32(pos),
|
|
3534
|
+
end: deserializeU32(pos + 4),
|
|
3681
3535
|
};
|
|
3682
3536
|
}
|
|
3683
3537
|
|
|
3684
3538
|
function deserializeTSVoidKeyword(pos) {
|
|
3685
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3686
3539
|
return {
|
|
3687
3540
|
type: 'TSVoidKeyword',
|
|
3688
|
-
start,
|
|
3689
|
-
end,
|
|
3541
|
+
start: deserializeU32(pos),
|
|
3542
|
+
end: deserializeU32(pos + 4),
|
|
3690
3543
|
};
|
|
3691
3544
|
}
|
|
3692
3545
|
|
|
3693
3546
|
function deserializeTSSymbolKeyword(pos) {
|
|
3694
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3695
3547
|
return {
|
|
3696
3548
|
type: 'TSSymbolKeyword',
|
|
3697
|
-
start,
|
|
3698
|
-
end,
|
|
3549
|
+
start: deserializeU32(pos),
|
|
3550
|
+
end: deserializeU32(pos + 4),
|
|
3699
3551
|
};
|
|
3700
3552
|
}
|
|
3701
3553
|
|
|
3702
3554
|
function deserializeTSThisType(pos) {
|
|
3703
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3704
3555
|
return {
|
|
3705
3556
|
type: 'TSThisType',
|
|
3706
|
-
start,
|
|
3707
|
-
end,
|
|
3557
|
+
start: deserializeU32(pos),
|
|
3558
|
+
end: deserializeU32(pos + 4),
|
|
3708
3559
|
};
|
|
3709
3560
|
}
|
|
3710
3561
|
|
|
3711
3562
|
function deserializeTSObjectKeyword(pos) {
|
|
3712
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3713
3563
|
return {
|
|
3714
3564
|
type: 'TSObjectKeyword',
|
|
3715
|
-
start,
|
|
3716
|
-
end,
|
|
3565
|
+
start: deserializeU32(pos),
|
|
3566
|
+
end: deserializeU32(pos + 4),
|
|
3717
3567
|
};
|
|
3718
3568
|
}
|
|
3719
3569
|
|
|
3720
3570
|
function deserializeTSBigIntKeyword(pos) {
|
|
3721
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
3722
3571
|
return {
|
|
3723
3572
|
type: 'TSBigIntKeyword',
|
|
3724
|
-
start,
|
|
3725
|
-
end,
|
|
3573
|
+
start: deserializeU32(pos),
|
|
3574
|
+
end: deserializeU32(pos + 4),
|
|
3726
3575
|
};
|
|
3727
3576
|
}
|
|
3728
3577
|
|
|
3729
3578
|
function deserializeTSTypeReference(pos) {
|
|
3730
|
-
let
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
end,
|
|
3738
|
-
};
|
|
3579
|
+
let node = {
|
|
3580
|
+
type: 'TSTypeReference',
|
|
3581
|
+
typeName: null,
|
|
3582
|
+
typeArguments: null,
|
|
3583
|
+
start: deserializeU32(pos),
|
|
3584
|
+
end: deserializeU32(pos + 4),
|
|
3585
|
+
};
|
|
3739
3586
|
node.typeName = deserializeTSTypeName(pos + 8);
|
|
3740
3587
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 24);
|
|
3741
3588
|
return node;
|
|
@@ -3755,29 +3602,25 @@ function deserializeTSTypeName(pos) {
|
|
|
3755
3602
|
}
|
|
3756
3603
|
|
|
3757
3604
|
function deserializeTSQualifiedName(pos) {
|
|
3758
|
-
let
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
end,
|
|
3766
|
-
};
|
|
3605
|
+
let node = {
|
|
3606
|
+
type: 'TSQualifiedName',
|
|
3607
|
+
left: null,
|
|
3608
|
+
right: null,
|
|
3609
|
+
start: deserializeU32(pos),
|
|
3610
|
+
end: deserializeU32(pos + 4),
|
|
3611
|
+
};
|
|
3767
3612
|
node.left = deserializeTSTypeName(pos + 8);
|
|
3768
3613
|
node.right = deserializeIdentifierName(pos + 24);
|
|
3769
3614
|
return node;
|
|
3770
3615
|
}
|
|
3771
3616
|
|
|
3772
3617
|
function deserializeTSTypeParameterInstantiation(pos) {
|
|
3773
|
-
let
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
end,
|
|
3780
|
-
};
|
|
3618
|
+
let node = {
|
|
3619
|
+
type: 'TSTypeParameterInstantiation',
|
|
3620
|
+
params: null,
|
|
3621
|
+
start: deserializeU32(pos),
|
|
3622
|
+
end: deserializeU32(pos + 4),
|
|
3623
|
+
};
|
|
3781
3624
|
node.params = deserializeVecTSType(pos + 8);
|
|
3782
3625
|
return node;
|
|
3783
3626
|
}
|
|
@@ -3799,18 +3642,16 @@ function deserializeTSTypeParameter(pos) {
|
|
|
3799
3642
|
node.name = deserializeBindingIdentifier(pos + 8);
|
|
3800
3643
|
node.constraint = deserializeOptionTSType(pos + 40);
|
|
3801
3644
|
node.default = deserializeOptionTSType(pos + 56);
|
|
3802
|
-
return node;
|
|
3803
|
-
}
|
|
3804
|
-
|
|
3805
|
-
function deserializeTSTypeParameterDeclaration(pos) {
|
|
3806
|
-
let
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
end,
|
|
3813
|
-
};
|
|
3645
|
+
return node;
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
function deserializeTSTypeParameterDeclaration(pos) {
|
|
3649
|
+
let node = {
|
|
3650
|
+
type: 'TSTypeParameterDeclaration',
|
|
3651
|
+
params: null,
|
|
3652
|
+
start: deserializeU32(pos),
|
|
3653
|
+
end: deserializeU32(pos + 4),
|
|
3654
|
+
};
|
|
3814
3655
|
node.params = deserializeVecTSTypeParameter(pos + 8);
|
|
3815
3656
|
return node;
|
|
3816
3657
|
}
|
|
@@ -3847,20 +3688,18 @@ function deserializeTSAccessibility(pos) {
|
|
|
3847
3688
|
}
|
|
3848
3689
|
|
|
3849
3690
|
function deserializeTSClassImplements(pos) {
|
|
3850
|
-
let
|
|
3851
|
-
end = deserializeU32(pos + 4),
|
|
3852
|
-
node = {
|
|
3691
|
+
let node = {
|
|
3853
3692
|
type: 'TSClassImplements',
|
|
3854
3693
|
expression: null,
|
|
3855
3694
|
typeArguments: null,
|
|
3856
|
-
start,
|
|
3857
|
-
end,
|
|
3695
|
+
start: deserializeU32(pos),
|
|
3696
|
+
end: deserializeU32(pos + 4),
|
|
3858
3697
|
},
|
|
3859
3698
|
expression = deserializeTSTypeName(pos + 8);
|
|
3860
3699
|
if (expression.type === 'TSQualifiedName') {
|
|
3861
3700
|
let object = expression.left,
|
|
3862
3701
|
{ right } = expression,
|
|
3863
|
-
previous = expression = {
|
|
3702
|
+
previous = (expression = {
|
|
3864
3703
|
type: 'MemberExpression',
|
|
3865
3704
|
object,
|
|
3866
3705
|
property: right,
|
|
@@ -3868,8 +3707,8 @@ function deserializeTSClassImplements(pos) {
|
|
|
3868
3707
|
computed: false,
|
|
3869
3708
|
start: expression.start,
|
|
3870
3709
|
end: expression.end,
|
|
3871
|
-
};
|
|
3872
|
-
for (; object.type === 'TSQualifiedName';) {
|
|
3710
|
+
});
|
|
3711
|
+
for (; object.type === 'TSQualifiedName'; ) {
|
|
3873
3712
|
let { left, right } = object;
|
|
3874
3713
|
previous = previous.object = {
|
|
3875
3714
|
type: 'MemberExpression',
|
|
@@ -3909,14 +3748,12 @@ function deserializeTSInterfaceDeclaration(pos) {
|
|
|
3909
3748
|
}
|
|
3910
3749
|
|
|
3911
3750
|
function deserializeTSInterfaceBody(pos) {
|
|
3912
|
-
let
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
end,
|
|
3919
|
-
};
|
|
3751
|
+
let node = {
|
|
3752
|
+
type: 'TSInterfaceBody',
|
|
3753
|
+
body: null,
|
|
3754
|
+
start: deserializeU32(pos),
|
|
3755
|
+
end: deserializeU32(pos + 4),
|
|
3756
|
+
};
|
|
3920
3757
|
node.body = deserializeVecTSSignature(pos + 8);
|
|
3921
3758
|
return node;
|
|
3922
3759
|
}
|
|
@@ -3980,15 +3817,13 @@ function deserializeTSIndexSignature(pos) {
|
|
|
3980
3817
|
}
|
|
3981
3818
|
|
|
3982
3819
|
function deserializeTSCallSignatureDeclaration(pos) {
|
|
3983
|
-
let
|
|
3984
|
-
end = deserializeU32(pos + 4),
|
|
3985
|
-
node = {
|
|
3820
|
+
let node = {
|
|
3986
3821
|
type: 'TSCallSignatureDeclaration',
|
|
3987
3822
|
typeParameters: null,
|
|
3988
3823
|
params: null,
|
|
3989
3824
|
returnType: null,
|
|
3990
|
-
start,
|
|
3991
|
-
end,
|
|
3825
|
+
start: deserializeU32(pos),
|
|
3826
|
+
end: deserializeU32(pos + 4),
|
|
3992
3827
|
},
|
|
3993
3828
|
params = deserializeBoxFormalParameters(pos + 24),
|
|
3994
3829
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 16);
|
|
@@ -4044,16 +3879,14 @@ function deserializeTSMethodSignature(pos) {
|
|
|
4044
3879
|
}
|
|
4045
3880
|
|
|
4046
3881
|
function deserializeTSConstructSignatureDeclaration(pos) {
|
|
4047
|
-
let
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
end,
|
|
4056
|
-
};
|
|
3882
|
+
let node = {
|
|
3883
|
+
type: 'TSConstructSignatureDeclaration',
|
|
3884
|
+
typeParameters: null,
|
|
3885
|
+
params: null,
|
|
3886
|
+
returnType: null,
|
|
3887
|
+
start: deserializeU32(pos),
|
|
3888
|
+
end: deserializeU32(pos + 4),
|
|
3889
|
+
};
|
|
4057
3890
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 8);
|
|
4058
3891
|
node.params = deserializeBoxFormalParameters(pos + 16);
|
|
4059
3892
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 24);
|
|
@@ -4079,15 +3912,13 @@ function deserializeTSIndexSignatureName(pos) {
|
|
|
4079
3912
|
}
|
|
4080
3913
|
|
|
4081
3914
|
function deserializeTSInterfaceHeritage(pos) {
|
|
4082
|
-
let
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
end,
|
|
4090
|
-
};
|
|
3915
|
+
let node = {
|
|
3916
|
+
type: 'TSInterfaceHeritage',
|
|
3917
|
+
expression: null,
|
|
3918
|
+
typeArguments: null,
|
|
3919
|
+
start: deserializeU32(pos),
|
|
3920
|
+
end: deserializeU32(pos + 4),
|
|
3921
|
+
};
|
|
4091
3922
|
node.expression = deserializeExpression(pos + 8);
|
|
4092
3923
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 24);
|
|
4093
3924
|
return node;
|
|
@@ -4154,7 +3985,7 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4154
3985
|
if (body.type === 'TSModuleBlock') node.id = id;
|
|
4155
3986
|
else {
|
|
4156
3987
|
let innerId = body.id;
|
|
4157
|
-
if (innerId.type === 'Identifier')
|
|
3988
|
+
if (innerId.type === 'Identifier')
|
|
4158
3989
|
node.id = {
|
|
4159
3990
|
type: 'TSQualifiedName',
|
|
4160
3991
|
left: id,
|
|
@@ -4162,7 +3993,7 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4162
3993
|
start: id.start,
|
|
4163
3994
|
end: innerId.end,
|
|
4164
3995
|
};
|
|
4165
|
-
|
|
3996
|
+
else {
|
|
4166
3997
|
// Replace `left` of innermost `TSQualifiedName` with a nested `TSQualifiedName` with `id` of
|
|
4167
3998
|
// this module on left, and previous `left` of innermost `TSQualifiedName` on right
|
|
4168
3999
|
node.id = innerId;
|
|
@@ -4226,13 +4057,11 @@ function deserializeTSModuleDeclarationBody(pos) {
|
|
|
4226
4057
|
}
|
|
4227
4058
|
|
|
4228
4059
|
function deserializeTSModuleBlock(pos) {
|
|
4229
|
-
let
|
|
4230
|
-
end = deserializeU32(pos + 4),
|
|
4231
|
-
node = {
|
|
4060
|
+
let node = {
|
|
4232
4061
|
type: 'TSModuleBlock',
|
|
4233
4062
|
body: null,
|
|
4234
|
-
start,
|
|
4235
|
-
end,
|
|
4063
|
+
start: deserializeU32(pos),
|
|
4064
|
+
end: deserializeU32(pos + 4),
|
|
4236
4065
|
},
|
|
4237
4066
|
body = deserializeVecDirective(pos + 8);
|
|
4238
4067
|
body.push(...deserializeVecStatement(pos + 32));
|
|
@@ -4241,41 +4070,35 @@ function deserializeTSModuleBlock(pos) {
|
|
|
4241
4070
|
}
|
|
4242
4071
|
|
|
4243
4072
|
function deserializeTSTypeLiteral(pos) {
|
|
4244
|
-
let
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
end,
|
|
4251
|
-
};
|
|
4073
|
+
let node = {
|
|
4074
|
+
type: 'TSTypeLiteral',
|
|
4075
|
+
members: null,
|
|
4076
|
+
start: deserializeU32(pos),
|
|
4077
|
+
end: deserializeU32(pos + 4),
|
|
4078
|
+
};
|
|
4252
4079
|
node.members = deserializeVecTSSignature(pos + 8);
|
|
4253
4080
|
return node;
|
|
4254
4081
|
}
|
|
4255
4082
|
|
|
4256
4083
|
function deserializeTSInferType(pos) {
|
|
4257
|
-
let
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
end,
|
|
4264
|
-
};
|
|
4084
|
+
let node = {
|
|
4085
|
+
type: 'TSInferType',
|
|
4086
|
+
typeParameter: null,
|
|
4087
|
+
start: deserializeU32(pos),
|
|
4088
|
+
end: deserializeU32(pos + 4),
|
|
4089
|
+
};
|
|
4265
4090
|
node.typeParameter = deserializeBoxTSTypeParameter(pos + 8);
|
|
4266
4091
|
return node;
|
|
4267
4092
|
}
|
|
4268
4093
|
|
|
4269
4094
|
function deserializeTSTypeQuery(pos) {
|
|
4270
|
-
let
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
end,
|
|
4278
|
-
};
|
|
4095
|
+
let node = {
|
|
4096
|
+
type: 'TSTypeQuery',
|
|
4097
|
+
exprName: null,
|
|
4098
|
+
typeArguments: null,
|
|
4099
|
+
start: deserializeU32(pos),
|
|
4100
|
+
end: deserializeU32(pos + 4),
|
|
4101
|
+
};
|
|
4279
4102
|
node.exprName = deserializeTSTypeQueryExprName(pos + 8);
|
|
4280
4103
|
node.typeArguments = deserializeOptionBoxTSTypeParameterInstantiation(pos + 24);
|
|
4281
4104
|
return node;
|
|
@@ -4297,17 +4120,15 @@ function deserializeTSTypeQueryExprName(pos) {
|
|
|
4297
4120
|
}
|
|
4298
4121
|
|
|
4299
4122
|
function deserializeTSImportType(pos) {
|
|
4300
|
-
let
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
end,
|
|
4310
|
-
};
|
|
4123
|
+
let node = {
|
|
4124
|
+
type: 'TSImportType',
|
|
4125
|
+
argument: null,
|
|
4126
|
+
options: null,
|
|
4127
|
+
qualifier: null,
|
|
4128
|
+
typeArguments: null,
|
|
4129
|
+
start: deserializeU32(pos),
|
|
4130
|
+
end: deserializeU32(pos + 4),
|
|
4131
|
+
};
|
|
4311
4132
|
node.argument = deserializeTSType(pos + 8);
|
|
4312
4133
|
node.options = deserializeOptionBoxObjectExpression(pos + 24);
|
|
4313
4134
|
node.qualifier = deserializeOptionTSImportTypeQualifier(pos + 32);
|
|
@@ -4327,30 +4148,26 @@ function deserializeTSImportTypeQualifier(pos) {
|
|
|
4327
4148
|
}
|
|
4328
4149
|
|
|
4329
4150
|
function deserializeTSImportTypeQualifiedName(pos) {
|
|
4330
|
-
let
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
end,
|
|
4338
|
-
};
|
|
4151
|
+
let node = {
|
|
4152
|
+
type: 'TSQualifiedName',
|
|
4153
|
+
left: null,
|
|
4154
|
+
right: null,
|
|
4155
|
+
start: deserializeU32(pos),
|
|
4156
|
+
end: deserializeU32(pos + 4),
|
|
4157
|
+
};
|
|
4339
4158
|
node.left = deserializeTSImportTypeQualifier(pos + 8);
|
|
4340
4159
|
node.right = deserializeIdentifierName(pos + 24);
|
|
4341
4160
|
return node;
|
|
4342
4161
|
}
|
|
4343
4162
|
|
|
4344
4163
|
function deserializeTSFunctionType(pos) {
|
|
4345
|
-
let
|
|
4346
|
-
end = deserializeU32(pos + 4),
|
|
4347
|
-
node = {
|
|
4164
|
+
let node = {
|
|
4348
4165
|
type: 'TSFunctionType',
|
|
4349
4166
|
typeParameters: null,
|
|
4350
4167
|
params: null,
|
|
4351
4168
|
returnType: null,
|
|
4352
|
-
start,
|
|
4353
|
-
end,
|
|
4169
|
+
start: deserializeU32(pos),
|
|
4170
|
+
end: deserializeU32(pos + 4),
|
|
4354
4171
|
},
|
|
4355
4172
|
params = deserializeBoxFormalParameters(pos + 24),
|
|
4356
4173
|
thisParam = deserializeOptionBoxTSThisParameter(pos + 16);
|
|
@@ -4366,7 +4183,7 @@ function deserializeTSConstructorType(pos) {
|
|
|
4366
4183
|
end = deserializeU32(pos + 4),
|
|
4367
4184
|
node = {
|
|
4368
4185
|
type: 'TSConstructorType',
|
|
4369
|
-
abstract: deserializeBool(pos +
|
|
4186
|
+
abstract: deserializeBool(pos + 36),
|
|
4370
4187
|
typeParameters: null,
|
|
4371
4188
|
params: null,
|
|
4372
4189
|
returnType: null,
|
|
@@ -4420,60 +4237,52 @@ function deserializeTSMappedTypeModifierOperator(pos) {
|
|
|
4420
4237
|
}
|
|
4421
4238
|
|
|
4422
4239
|
function deserializeTSTemplateLiteralType(pos) {
|
|
4423
|
-
let
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
end,
|
|
4431
|
-
};
|
|
4240
|
+
let node = {
|
|
4241
|
+
type: 'TSTemplateLiteralType',
|
|
4242
|
+
quasis: null,
|
|
4243
|
+
types: null,
|
|
4244
|
+
start: deserializeU32(pos),
|
|
4245
|
+
end: deserializeU32(pos + 4),
|
|
4246
|
+
};
|
|
4432
4247
|
node.quasis = deserializeVecTemplateElement(pos + 8);
|
|
4433
4248
|
node.types = deserializeVecTSType(pos + 32);
|
|
4434
4249
|
return node;
|
|
4435
4250
|
}
|
|
4436
4251
|
|
|
4437
4252
|
function deserializeTSAsExpression(pos) {
|
|
4438
|
-
let
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
end,
|
|
4446
|
-
};
|
|
4253
|
+
let node = {
|
|
4254
|
+
type: 'TSAsExpression',
|
|
4255
|
+
expression: null,
|
|
4256
|
+
typeAnnotation: null,
|
|
4257
|
+
start: deserializeU32(pos),
|
|
4258
|
+
end: deserializeU32(pos + 4),
|
|
4259
|
+
};
|
|
4447
4260
|
node.expression = deserializeExpression(pos + 8);
|
|
4448
4261
|
node.typeAnnotation = deserializeTSType(pos + 24);
|
|
4449
4262
|
return node;
|
|
4450
4263
|
}
|
|
4451
4264
|
|
|
4452
4265
|
function deserializeTSSatisfiesExpression(pos) {
|
|
4453
|
-
let
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
end,
|
|
4461
|
-
};
|
|
4266
|
+
let node = {
|
|
4267
|
+
type: 'TSSatisfiesExpression',
|
|
4268
|
+
expression: null,
|
|
4269
|
+
typeAnnotation: null,
|
|
4270
|
+
start: deserializeU32(pos),
|
|
4271
|
+
end: deserializeU32(pos + 4),
|
|
4272
|
+
};
|
|
4462
4273
|
node.expression = deserializeExpression(pos + 8);
|
|
4463
4274
|
node.typeAnnotation = deserializeTSType(pos + 24);
|
|
4464
4275
|
return node;
|
|
4465
4276
|
}
|
|
4466
4277
|
|
|
4467
4278
|
function deserializeTSTypeAssertion(pos) {
|
|
4468
|
-
let
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
end,
|
|
4476
|
-
};
|
|
4279
|
+
let node = {
|
|
4280
|
+
type: 'TSTypeAssertion',
|
|
4281
|
+
typeAnnotation: null,
|
|
4282
|
+
expression: null,
|
|
4283
|
+
start: deserializeU32(pos),
|
|
4284
|
+
end: deserializeU32(pos + 4),
|
|
4285
|
+
};
|
|
4477
4286
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
4478
4287
|
node.expression = deserializeExpression(pos + 24);
|
|
4479
4288
|
return node;
|
|
@@ -4511,80 +4320,68 @@ function deserializeTSModuleReference(pos) {
|
|
|
4511
4320
|
}
|
|
4512
4321
|
|
|
4513
4322
|
function deserializeTSExternalModuleReference(pos) {
|
|
4514
|
-
let
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
end,
|
|
4521
|
-
};
|
|
4323
|
+
let node = {
|
|
4324
|
+
type: 'TSExternalModuleReference',
|
|
4325
|
+
expression: null,
|
|
4326
|
+
start: deserializeU32(pos),
|
|
4327
|
+
end: deserializeU32(pos + 4),
|
|
4328
|
+
};
|
|
4522
4329
|
node.expression = deserializeStringLiteral(pos + 8);
|
|
4523
4330
|
return node;
|
|
4524
4331
|
}
|
|
4525
4332
|
|
|
4526
4333
|
function deserializeTSNonNullExpression(pos) {
|
|
4527
|
-
let
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
end,
|
|
4534
|
-
};
|
|
4334
|
+
let node = {
|
|
4335
|
+
type: 'TSNonNullExpression',
|
|
4336
|
+
expression: null,
|
|
4337
|
+
start: deserializeU32(pos),
|
|
4338
|
+
end: deserializeU32(pos + 4),
|
|
4339
|
+
};
|
|
4535
4340
|
node.expression = deserializeExpression(pos + 8);
|
|
4536
4341
|
return node;
|
|
4537
4342
|
}
|
|
4538
4343
|
|
|
4539
4344
|
function deserializeDecorator(pos) {
|
|
4540
|
-
let
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
end,
|
|
4547
|
-
};
|
|
4345
|
+
let node = {
|
|
4346
|
+
type: 'Decorator',
|
|
4347
|
+
expression: null,
|
|
4348
|
+
start: deserializeU32(pos),
|
|
4349
|
+
end: deserializeU32(pos + 4),
|
|
4350
|
+
};
|
|
4548
4351
|
node.expression = deserializeExpression(pos + 8);
|
|
4549
4352
|
return node;
|
|
4550
4353
|
}
|
|
4551
4354
|
|
|
4552
4355
|
function deserializeTSExportAssignment(pos) {
|
|
4553
|
-
let
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
end,
|
|
4560
|
-
};
|
|
4356
|
+
let node = {
|
|
4357
|
+
type: 'TSExportAssignment',
|
|
4358
|
+
expression: null,
|
|
4359
|
+
start: deserializeU32(pos),
|
|
4360
|
+
end: deserializeU32(pos + 4),
|
|
4361
|
+
};
|
|
4561
4362
|
node.expression = deserializeExpression(pos + 8);
|
|
4562
4363
|
return node;
|
|
4563
4364
|
}
|
|
4564
4365
|
|
|
4565
4366
|
function deserializeTSNamespaceExportDeclaration(pos) {
|
|
4566
|
-
let
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
end,
|
|
4573
|
-
};
|
|
4367
|
+
let node = {
|
|
4368
|
+
type: 'TSNamespaceExportDeclaration',
|
|
4369
|
+
id: null,
|
|
4370
|
+
start: deserializeU32(pos),
|
|
4371
|
+
end: deserializeU32(pos + 4),
|
|
4372
|
+
};
|
|
4574
4373
|
node.id = deserializeIdentifierName(pos + 8);
|
|
4575
4374
|
return node;
|
|
4576
4375
|
}
|
|
4577
4376
|
|
|
4578
4377
|
function deserializeTSInstantiationExpression(pos) {
|
|
4579
|
-
let
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
end,
|
|
4587
|
-
};
|
|
4378
|
+
let node = {
|
|
4379
|
+
type: 'TSInstantiationExpression',
|
|
4380
|
+
expression: null,
|
|
4381
|
+
typeArguments: null,
|
|
4382
|
+
start: deserializeU32(pos),
|
|
4383
|
+
end: deserializeU32(pos + 4),
|
|
4384
|
+
};
|
|
4588
4385
|
node.expression = deserializeExpression(pos + 8);
|
|
4589
4386
|
node.typeArguments = deserializeBoxTSTypeParameterInstantiation(pos + 24);
|
|
4590
4387
|
return node;
|
|
@@ -4630,11 +4427,10 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4630
4427
|
}
|
|
4631
4428
|
|
|
4632
4429
|
function deserializeJSDocUnknownType(pos) {
|
|
4633
|
-
let start = deserializeU32(pos), end = deserializeU32(pos + 4);
|
|
4634
4430
|
return {
|
|
4635
4431
|
type: 'TSJSDocUnknownType',
|
|
4636
|
-
start,
|
|
4637
|
-
end,
|
|
4432
|
+
start: deserializeU32(pos),
|
|
4433
|
+
end: deserializeU32(pos + 4),
|
|
4638
4434
|
};
|
|
4639
4435
|
}
|
|
4640
4436
|
|
|
@@ -4652,20 +4448,18 @@ function deserializeCommentKind(pos) {
|
|
|
4652
4448
|
function deserializeComment(pos) {
|
|
4653
4449
|
let type = deserializeCommentKind(pos + 12),
|
|
4654
4450
|
start = deserializeU32(pos),
|
|
4655
|
-
end = deserializeU32(pos + 4)
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
endCut = type === 'Line' ? 0 : 2;
|
|
4663
|
-
node.value = sourceText.slice(start + 2, end - endCut);
|
|
4664
|
-
return node;
|
|
4451
|
+
end = deserializeU32(pos + 4);
|
|
4452
|
+
return {
|
|
4453
|
+
type,
|
|
4454
|
+
value: sourceText.slice(start + 2, end - (type === 'Line' ? 0 : 2)),
|
|
4455
|
+
start,
|
|
4456
|
+
end,
|
|
4457
|
+
};
|
|
4665
4458
|
}
|
|
4666
4459
|
|
|
4667
4460
|
function deserializeNameSpan(pos) {
|
|
4668
|
-
let start = deserializeU32(pos),
|
|
4461
|
+
let start = deserializeU32(pos),
|
|
4462
|
+
end = deserializeU32(pos + 4);
|
|
4669
4463
|
return {
|
|
4670
4464
|
value: deserializeStr(pos + 8),
|
|
4671
4465
|
start,
|
|
@@ -4712,7 +4506,8 @@ function deserializeImportImportName(pos) {
|
|
|
4712
4506
|
}
|
|
4713
4507
|
|
|
4714
4508
|
function deserializeExportEntry(pos) {
|
|
4715
|
-
let start = deserializeU32(pos),
|
|
4509
|
+
let start = deserializeU32(pos),
|
|
4510
|
+
end = deserializeU32(pos + 4);
|
|
4716
4511
|
return {
|
|
4717
4512
|
moduleRequest: deserializeOptionNameSpan(pos + 16),
|
|
4718
4513
|
importName: deserializeExportImportName(pos + 40),
|
|
@@ -4821,7 +4616,8 @@ function deserializeExportLocalName(pos) {
|
|
|
4821
4616
|
}
|
|
4822
4617
|
|
|
4823
4618
|
function deserializeDynamicImport(pos) {
|
|
4824
|
-
let start = deserializeU32(pos),
|
|
4619
|
+
let start = deserializeU32(pos),
|
|
4620
|
+
end = deserializeU32(pos + 4);
|
|
4825
4621
|
return {
|
|
4826
4622
|
moduleRequest: deserializeSpan(pos + 8),
|
|
4827
4623
|
start,
|
|
@@ -5015,7 +4811,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
5015
4811
|
}
|
|
5016
4812
|
|
|
5017
4813
|
function deserializeErrorLabel(pos) {
|
|
5018
|
-
let start = deserializeU32(pos),
|
|
4814
|
+
let start = deserializeU32(pos),
|
|
4815
|
+
end = deserializeU32(pos + 4);
|
|
5019
4816
|
return {
|
|
5020
4817
|
message: deserializeOptionStr(pos + 8),
|
|
5021
4818
|
start,
|
|
@@ -5034,7 +4831,8 @@ function deserializeEcmaScriptModule(pos) {
|
|
|
5034
4831
|
}
|
|
5035
4832
|
|
|
5036
4833
|
function deserializeStaticImport(pos) {
|
|
5037
|
-
let start = deserializeU32(pos),
|
|
4834
|
+
let start = deserializeU32(pos),
|
|
4835
|
+
end = deserializeU32(pos + 4);
|
|
5038
4836
|
return {
|
|
5039
4837
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
5040
4838
|
entries: deserializeVecImportEntry(pos + 32),
|
|
@@ -5044,7 +4842,8 @@ function deserializeStaticImport(pos) {
|
|
|
5044
4842
|
}
|
|
5045
4843
|
|
|
5046
4844
|
function deserializeStaticExport(pos) {
|
|
5047
|
-
let start = deserializeU32(pos),
|
|
4845
|
+
let start = deserializeU32(pos),
|
|
4846
|
+
end = deserializeU32(pos + 4);
|
|
5048
4847
|
return {
|
|
5049
4848
|
entries: deserializeVecExportEntry(pos + 8),
|
|
5050
4849
|
start,
|
|
@@ -5061,7 +4860,8 @@ function deserializeU8(pos) {
|
|
|
5061
4860
|
}
|
|
5062
4861
|
|
|
5063
4862
|
function deserializeStr(pos) {
|
|
5064
|
-
let pos32 = pos >> 2,
|
|
4863
|
+
let pos32 = pos >> 2,
|
|
4864
|
+
len = uint32[pos32 + 2];
|
|
5065
4865
|
if (len === 0) return '';
|
|
5066
4866
|
pos = uint32[pos32];
|
|
5067
4867
|
if (sourceIsAscii && pos < sourceByteLen) return sourceText.substr(pos, len);
|
|
@@ -5070,7 +4870,8 @@ function deserializeStr(pos) {
|
|
|
5070
4870
|
let end = pos + len;
|
|
5071
4871
|
if (len > 50) return decodeStr(uint8.subarray(pos, end));
|
|
5072
4872
|
// Shorter strings decode by hand to avoid native call
|
|
5073
|
-
let out = '',
|
|
4873
|
+
let out = '',
|
|
4874
|
+
c;
|
|
5074
4875
|
do {
|
|
5075
4876
|
c = uint8[pos++];
|
|
5076
4877
|
if (c < 128) out += fromCodePoint(c);
|
|
@@ -5083,10 +4884,11 @@ function deserializeStr(pos) {
|
|
|
5083
4884
|
}
|
|
5084
4885
|
|
|
5085
4886
|
function deserializeVecComment(pos) {
|
|
5086
|
-
let arr = [],
|
|
4887
|
+
let arr = [],
|
|
4888
|
+
pos32 = pos >> 2;
|
|
5087
4889
|
pos = uint32[pos32];
|
|
5088
4890
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5089
|
-
for (; pos !== endPos;) {
|
|
4891
|
+
for (; pos !== endPos; ) {
|
|
5090
4892
|
arr.push(deserializeComment(pos));
|
|
5091
4893
|
pos += 16;
|
|
5092
4894
|
}
|
|
@@ -5094,15 +4896,16 @@ function deserializeVecComment(pos) {
|
|
|
5094
4896
|
}
|
|
5095
4897
|
|
|
5096
4898
|
function deserializeOptionHashbang(pos) {
|
|
5097
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
4899
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5098
4900
|
return deserializeHashbang(pos);
|
|
5099
4901
|
}
|
|
5100
4902
|
|
|
5101
4903
|
function deserializeVecDirective(pos) {
|
|
5102
|
-
let arr = [],
|
|
4904
|
+
let arr = [],
|
|
4905
|
+
pos32 = pos >> 2;
|
|
5103
4906
|
pos = uint32[pos32];
|
|
5104
4907
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5105
|
-
for (; pos !== endPos;) {
|
|
4908
|
+
for (; pos !== endPos; ) {
|
|
5106
4909
|
arr.push(deserializeDirective(pos));
|
|
5107
4910
|
pos += 72;
|
|
5108
4911
|
}
|
|
@@ -5110,10 +4913,11 @@ function deserializeVecDirective(pos) {
|
|
|
5110
4913
|
}
|
|
5111
4914
|
|
|
5112
4915
|
function deserializeVecStatement(pos) {
|
|
5113
|
-
let arr = [],
|
|
4916
|
+
let arr = [],
|
|
4917
|
+
pos32 = pos >> 2;
|
|
5114
4918
|
pos = uint32[pos32];
|
|
5115
4919
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5116
|
-
for (; pos !== endPos;) {
|
|
4920
|
+
for (; pos !== endPos; ) {
|
|
5117
4921
|
arr.push(deserializeStatement(pos));
|
|
5118
4922
|
pos += 16;
|
|
5119
4923
|
}
|
|
@@ -5281,10 +5085,11 @@ function deserializeBoxV8IntrinsicExpression(pos) {
|
|
|
5281
5085
|
}
|
|
5282
5086
|
|
|
5283
5087
|
function deserializeVecArrayExpressionElement(pos) {
|
|
5284
|
-
let arr = [],
|
|
5088
|
+
let arr = [],
|
|
5089
|
+
pos32 = pos >> 2;
|
|
5285
5090
|
pos = uint32[pos32];
|
|
5286
5091
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5287
|
-
for (; pos !== endPos;) {
|
|
5092
|
+
for (; pos !== endPos; ) {
|
|
5288
5093
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
5289
5094
|
pos += 16;
|
|
5290
5095
|
}
|
|
@@ -5296,10 +5101,11 @@ function deserializeBoxSpreadElement(pos) {
|
|
|
5296
5101
|
}
|
|
5297
5102
|
|
|
5298
5103
|
function deserializeVecObjectPropertyKind(pos) {
|
|
5299
|
-
let arr = [],
|
|
5104
|
+
let arr = [],
|
|
5105
|
+
pos32 = pos >> 2;
|
|
5300
5106
|
pos = uint32[pos32];
|
|
5301
5107
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5302
|
-
for (; pos !== endPos;) {
|
|
5108
|
+
for (; pos !== endPos; ) {
|
|
5303
5109
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
5304
5110
|
pos += 16;
|
|
5305
5111
|
}
|
|
@@ -5323,10 +5129,11 @@ function deserializeBoxPrivateIdentifier(pos) {
|
|
|
5323
5129
|
}
|
|
5324
5130
|
|
|
5325
5131
|
function deserializeVecTemplateElement(pos) {
|
|
5326
|
-
let arr = [],
|
|
5132
|
+
let arr = [],
|
|
5133
|
+
pos32 = pos >> 2;
|
|
5327
5134
|
pos = uint32[pos32];
|
|
5328
5135
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5329
|
-
for (; pos !== endPos;) {
|
|
5136
|
+
for (; pos !== endPos; ) {
|
|
5330
5137
|
arr.push(deserializeTemplateElement(pos));
|
|
5331
5138
|
pos += 48;
|
|
5332
5139
|
}
|
|
@@ -5334,10 +5141,11 @@ function deserializeVecTemplateElement(pos) {
|
|
|
5334
5141
|
}
|
|
5335
5142
|
|
|
5336
5143
|
function deserializeVecExpression(pos) {
|
|
5337
|
-
let arr = [],
|
|
5144
|
+
let arr = [],
|
|
5145
|
+
pos32 = pos >> 2;
|
|
5338
5146
|
pos = uint32[pos32];
|
|
5339
5147
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5340
|
-
for (; pos !== endPos;) {
|
|
5148
|
+
for (; pos !== endPos; ) {
|
|
5341
5149
|
arr.push(deserializeExpression(pos));
|
|
5342
5150
|
pos += 16;
|
|
5343
5151
|
}
|
|
@@ -5349,12 +5157,12 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
5349
5157
|
}
|
|
5350
5158
|
|
|
5351
5159
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5352
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5160
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5353
5161
|
return deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5354
5162
|
}
|
|
5355
5163
|
|
|
5356
5164
|
function deserializeOptionStr(pos) {
|
|
5357
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5165
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5358
5166
|
return deserializeStr(pos);
|
|
5359
5167
|
}
|
|
5360
5168
|
|
|
@@ -5371,10 +5179,11 @@ function deserializeBoxPrivateFieldExpression(pos) {
|
|
|
5371
5179
|
}
|
|
5372
5180
|
|
|
5373
5181
|
function deserializeVecArgument(pos) {
|
|
5374
|
-
let arr = [],
|
|
5182
|
+
let arr = [],
|
|
5183
|
+
pos32 = pos >> 2;
|
|
5375
5184
|
pos = uint32[pos32];
|
|
5376
5185
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5377
|
-
for (; pos !== endPos;) {
|
|
5186
|
+
for (; pos !== endPos; ) {
|
|
5378
5187
|
arr.push(deserializeArgument(pos));
|
|
5379
5188
|
pos += 16;
|
|
5380
5189
|
}
|
|
@@ -5395,10 +5204,11 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5395
5204
|
}
|
|
5396
5205
|
|
|
5397
5206
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
5398
|
-
let arr = [],
|
|
5207
|
+
let arr = [],
|
|
5208
|
+
pos32 = pos >> 2;
|
|
5399
5209
|
pos = uint32[pos32];
|
|
5400
5210
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5401
|
-
for (; pos !== endPos;) {
|
|
5211
|
+
for (; pos !== endPos; ) {
|
|
5402
5212
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
5403
5213
|
pos += 16;
|
|
5404
5214
|
}
|
|
@@ -5410,15 +5220,16 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
5410
5220
|
}
|
|
5411
5221
|
|
|
5412
5222
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5413
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5223
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5414
5224
|
return deserializeBoxAssignmentTargetRest(pos);
|
|
5415
5225
|
}
|
|
5416
5226
|
|
|
5417
5227
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
5418
|
-
let arr = [],
|
|
5228
|
+
let arr = [],
|
|
5229
|
+
pos32 = pos >> 2;
|
|
5419
5230
|
pos = uint32[pos32];
|
|
5420
5231
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5421
|
-
for (; pos !== endPos;) {
|
|
5232
|
+
for (; pos !== endPos; ) {
|
|
5422
5233
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
5423
5234
|
pos += 16;
|
|
5424
5235
|
}
|
|
@@ -5539,10 +5350,11 @@ function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
|
5539
5350
|
}
|
|
5540
5351
|
|
|
5541
5352
|
function deserializeVecVariableDeclarator(pos) {
|
|
5542
|
-
let arr = [],
|
|
5353
|
+
let arr = [],
|
|
5354
|
+
pos32 = pos >> 2;
|
|
5543
5355
|
pos = uint32[pos32];
|
|
5544
5356
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5545
|
-
for (; pos !== endPos;) {
|
|
5357
|
+
for (; pos !== endPos; ) {
|
|
5546
5358
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5547
5359
|
pos += 64;
|
|
5548
5360
|
}
|
|
@@ -5560,15 +5372,16 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5560
5372
|
}
|
|
5561
5373
|
|
|
5562
5374
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5563
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5375
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5564
5376
|
return deserializeLabelIdentifier(pos);
|
|
5565
5377
|
}
|
|
5566
5378
|
|
|
5567
5379
|
function deserializeVecSwitchCase(pos) {
|
|
5568
|
-
let arr = [],
|
|
5380
|
+
let arr = [],
|
|
5381
|
+
pos32 = pos >> 2;
|
|
5569
5382
|
pos = uint32[pos32];
|
|
5570
5383
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5571
|
-
for (; pos !== endPos;) {
|
|
5384
|
+
for (; pos !== endPos; ) {
|
|
5572
5385
|
arr.push(deserializeSwitchCase(pos));
|
|
5573
5386
|
pos += 48;
|
|
5574
5387
|
}
|
|
@@ -5580,12 +5393,12 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5580
5393
|
}
|
|
5581
5394
|
|
|
5582
5395
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5583
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5396
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5584
5397
|
return deserializeBoxCatchClause(pos);
|
|
5585
5398
|
}
|
|
5586
5399
|
|
|
5587
5400
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5588
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5401
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5589
5402
|
return deserializeBoxBlockStatement(pos);
|
|
5590
5403
|
}
|
|
5591
5404
|
|
|
@@ -5599,7 +5412,7 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5599
5412
|
}
|
|
5600
5413
|
|
|
5601
5414
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5602
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5415
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5603
5416
|
return deserializeBoxTSTypeAnnotation(pos);
|
|
5604
5417
|
}
|
|
5605
5418
|
|
|
@@ -5620,10 +5433,11 @@ function deserializeBoxAssignmentPattern(pos) {
|
|
|
5620
5433
|
}
|
|
5621
5434
|
|
|
5622
5435
|
function deserializeVecBindingProperty(pos) {
|
|
5623
|
-
let arr = [],
|
|
5436
|
+
let arr = [],
|
|
5437
|
+
pos32 = pos >> 2;
|
|
5624
5438
|
pos = uint32[pos32];
|
|
5625
5439
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5626
|
-
for (; pos !== endPos;) {
|
|
5440
|
+
for (; pos !== endPos; ) {
|
|
5627
5441
|
arr.push(deserializeBindingProperty(pos));
|
|
5628
5442
|
pos += 64;
|
|
5629
5443
|
}
|
|
@@ -5635,7 +5449,7 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5635
5449
|
}
|
|
5636
5450
|
|
|
5637
5451
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5638
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5452
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5639
5453
|
return deserializeBoxBindingRestElement(pos);
|
|
5640
5454
|
}
|
|
5641
5455
|
|
|
@@ -5645,10 +5459,11 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5645
5459
|
}
|
|
5646
5460
|
|
|
5647
5461
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5648
|
-
let arr = [],
|
|
5462
|
+
let arr = [],
|
|
5463
|
+
pos32 = pos >> 2;
|
|
5649
5464
|
pos = uint32[pos32];
|
|
5650
5465
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5651
|
-
for (; pos !== endPos;) {
|
|
5466
|
+
for (; pos !== endPos; ) {
|
|
5652
5467
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5653
5468
|
pos += 32;
|
|
5654
5469
|
}
|
|
@@ -5656,7 +5471,7 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5656
5471
|
}
|
|
5657
5472
|
|
|
5658
5473
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5659
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5474
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5660
5475
|
return deserializeBindingIdentifier(pos);
|
|
5661
5476
|
}
|
|
5662
5477
|
|
|
@@ -5665,7 +5480,7 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5665
5480
|
}
|
|
5666
5481
|
|
|
5667
5482
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5668
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5483
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5669
5484
|
return deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5670
5485
|
}
|
|
5671
5486
|
|
|
@@ -5674,7 +5489,7 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5674
5489
|
}
|
|
5675
5490
|
|
|
5676
5491
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5677
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5492
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5678
5493
|
return deserializeBoxTSThisParameter(pos);
|
|
5679
5494
|
}
|
|
5680
5495
|
|
|
@@ -5687,15 +5502,16 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5687
5502
|
}
|
|
5688
5503
|
|
|
5689
5504
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5690
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5505
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5691
5506
|
return deserializeBoxFunctionBody(pos);
|
|
5692
5507
|
}
|
|
5693
5508
|
|
|
5694
5509
|
function deserializeVecFormalParameter(pos) {
|
|
5695
|
-
let arr = [],
|
|
5510
|
+
let arr = [],
|
|
5511
|
+
pos32 = pos >> 2;
|
|
5696
5512
|
pos = uint32[pos32];
|
|
5697
5513
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5698
|
-
for (; pos !== endPos;) {
|
|
5514
|
+
for (; pos !== endPos; ) {
|
|
5699
5515
|
arr.push(deserializeFormalParameter(pos));
|
|
5700
5516
|
pos += 72;
|
|
5701
5517
|
}
|
|
@@ -5703,10 +5519,11 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5703
5519
|
}
|
|
5704
5520
|
|
|
5705
5521
|
function deserializeVecDecorator(pos) {
|
|
5706
|
-
let arr = [],
|
|
5522
|
+
let arr = [],
|
|
5523
|
+
pos32 = pos >> 2;
|
|
5707
5524
|
pos = uint32[pos32];
|
|
5708
5525
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
5709
|
-
for (; pos !== endPos;) {
|
|
5526
|
+
for (; pos !== endPos; ) {
|
|
5710
5527
|
arr.push(deserializeDecorator(pos));
|
|
5711
5528
|
pos += 24;
|
|
5712
5529
|
}
|
|
@@ -5719,10 +5536,11 @@ function deserializeOptionTSAccessibility(pos) {
|
|
|
5719
5536
|
}
|
|
5720
5537
|
|
|
5721
5538
|
function deserializeVecTSClassImplements(pos) {
|
|
5722
|
-
let arr = [],
|
|
5539
|
+
let arr = [],
|
|
5540
|
+
pos32 = pos >> 2;
|
|
5723
5541
|
pos = uint32[pos32];
|
|
5724
5542
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5725
|
-
for (; pos !== endPos;) {
|
|
5543
|
+
for (; pos !== endPos; ) {
|
|
5726
5544
|
arr.push(deserializeTSClassImplements(pos));
|
|
5727
5545
|
pos += 32;
|
|
5728
5546
|
}
|
|
@@ -5734,10 +5552,11 @@ function deserializeBoxClassBody(pos) {
|
|
|
5734
5552
|
}
|
|
5735
5553
|
|
|
5736
5554
|
function deserializeVecClassElement(pos) {
|
|
5737
|
-
let arr = [],
|
|
5555
|
+
let arr = [],
|
|
5556
|
+
pos32 = pos >> 2;
|
|
5738
5557
|
pos = uint32[pos32];
|
|
5739
5558
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5740
|
-
for (; pos !== endPos;) {
|
|
5559
|
+
for (; pos !== endPos; ) {
|
|
5741
5560
|
arr.push(deserializeClassElement(pos));
|
|
5742
5561
|
pos += 16;
|
|
5743
5562
|
}
|
|
@@ -5794,10 +5613,11 @@ function deserializeOptionImportPhase(pos) {
|
|
|
5794
5613
|
}
|
|
5795
5614
|
|
|
5796
5615
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
5797
|
-
let arr = [],
|
|
5616
|
+
let arr = [],
|
|
5617
|
+
pos32 = pos >> 2;
|
|
5798
5618
|
pos = uint32[pos32];
|
|
5799
5619
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5800
|
-
for (; pos !== endPos;) {
|
|
5620
|
+
for (; pos !== endPos; ) {
|
|
5801
5621
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
5802
5622
|
pos += 16;
|
|
5803
5623
|
}
|
|
@@ -5805,7 +5625,7 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5805
5625
|
}
|
|
5806
5626
|
|
|
5807
5627
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5808
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5628
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5809
5629
|
return deserializeVecImportDeclarationSpecifier(pos);
|
|
5810
5630
|
}
|
|
5811
5631
|
|
|
@@ -5814,7 +5634,7 @@ function deserializeBoxWithClause(pos) {
|
|
|
5814
5634
|
}
|
|
5815
5635
|
|
|
5816
5636
|
function deserializeOptionBoxWithClause(pos) {
|
|
5817
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5637
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5818
5638
|
return deserializeBoxWithClause(pos);
|
|
5819
5639
|
}
|
|
5820
5640
|
|
|
@@ -5831,10 +5651,11 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
|
5831
5651
|
}
|
|
5832
5652
|
|
|
5833
5653
|
function deserializeVecImportAttribute(pos) {
|
|
5834
|
-
let arr = [],
|
|
5654
|
+
let arr = [],
|
|
5655
|
+
pos32 = pos >> 2;
|
|
5835
5656
|
pos = uint32[pos32];
|
|
5836
5657
|
let endPos = pos + uint32[pos32 + 2] * 112;
|
|
5837
|
-
for (; pos !== endPos;) {
|
|
5658
|
+
for (; pos !== endPos; ) {
|
|
5838
5659
|
arr.push(deserializeImportAttribute(pos));
|
|
5839
5660
|
pos += 112;
|
|
5840
5661
|
}
|
|
@@ -5847,10 +5668,11 @@ function deserializeOptionDeclaration(pos) {
|
|
|
5847
5668
|
}
|
|
5848
5669
|
|
|
5849
5670
|
function deserializeVecExportSpecifier(pos) {
|
|
5850
|
-
let arr = [],
|
|
5671
|
+
let arr = [],
|
|
5672
|
+
pos32 = pos >> 2;
|
|
5851
5673
|
pos = uint32[pos32];
|
|
5852
5674
|
let endPos = pos + uint32[pos32 + 2] * 128;
|
|
5853
|
-
for (; pos !== endPos;) {
|
|
5675
|
+
for (; pos !== endPos; ) {
|
|
5854
5676
|
arr.push(deserializeExportSpecifier(pos));
|
|
5855
5677
|
pos += 128;
|
|
5856
5678
|
}
|
|
@@ -5876,10 +5698,11 @@ function deserializeBoxJSXOpeningElement(pos) {
|
|
|
5876
5698
|
}
|
|
5877
5699
|
|
|
5878
5700
|
function deserializeVecJSXChild(pos) {
|
|
5879
|
-
let arr = [],
|
|
5701
|
+
let arr = [],
|
|
5702
|
+
pos32 = pos >> 2;
|
|
5880
5703
|
pos = uint32[pos32];
|
|
5881
5704
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5882
|
-
for (; pos !== endPos;) {
|
|
5705
|
+
for (; pos !== endPos; ) {
|
|
5883
5706
|
arr.push(deserializeJSXChild(pos));
|
|
5884
5707
|
pos += 16;
|
|
5885
5708
|
}
|
|
@@ -5891,15 +5714,16 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
5891
5714
|
}
|
|
5892
5715
|
|
|
5893
5716
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5894
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5717
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5895
5718
|
return deserializeBoxJSXClosingElement(pos);
|
|
5896
5719
|
}
|
|
5897
5720
|
|
|
5898
5721
|
function deserializeVecJSXAttributeItem(pos) {
|
|
5899
|
-
let arr = [],
|
|
5722
|
+
let arr = [],
|
|
5723
|
+
pos32 = pos >> 2;
|
|
5900
5724
|
pos = uint32[pos32];
|
|
5901
5725
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5902
|
-
for (; pos !== endPos;) {
|
|
5726
|
+
for (; pos !== endPos; ) {
|
|
5903
5727
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
5904
5728
|
pos += 16;
|
|
5905
5729
|
}
|
|
@@ -5944,10 +5768,11 @@ function deserializeBoxJSXSpreadChild(pos) {
|
|
|
5944
5768
|
}
|
|
5945
5769
|
|
|
5946
5770
|
function deserializeVecTSEnumMember(pos) {
|
|
5947
|
-
let arr = [],
|
|
5771
|
+
let arr = [],
|
|
5772
|
+
pos32 = pos >> 2;
|
|
5948
5773
|
pos = uint32[pos32];
|
|
5949
5774
|
let endPos = pos + uint32[pos32 + 2] * 40;
|
|
5950
|
-
for (; pos !== endPos;) {
|
|
5775
|
+
for (; pos !== endPos; ) {
|
|
5951
5776
|
arr.push(deserializeTSEnumMember(pos));
|
|
5952
5777
|
pos += 40;
|
|
5953
5778
|
}
|
|
@@ -6103,10 +5928,11 @@ function deserializeBoxJSDocUnknownType(pos) {
|
|
|
6103
5928
|
}
|
|
6104
5929
|
|
|
6105
5930
|
function deserializeVecTSType(pos) {
|
|
6106
|
-
let arr = [],
|
|
5931
|
+
let arr = [],
|
|
5932
|
+
pos32 = pos >> 2;
|
|
6107
5933
|
pos = uint32[pos32];
|
|
6108
5934
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6109
|
-
for (; pos !== endPos;) {
|
|
5935
|
+
for (; pos !== endPos; ) {
|
|
6110
5936
|
arr.push(deserializeTSType(pos));
|
|
6111
5937
|
pos += 16;
|
|
6112
5938
|
}
|
|
@@ -6114,10 +5940,11 @@ function deserializeVecTSType(pos) {
|
|
|
6114
5940
|
}
|
|
6115
5941
|
|
|
6116
5942
|
function deserializeVecTSTupleElement(pos) {
|
|
6117
|
-
let arr = [],
|
|
5943
|
+
let arr = [],
|
|
5944
|
+
pos32 = pos >> 2;
|
|
6118
5945
|
pos = uint32[pos32];
|
|
6119
5946
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6120
|
-
for (; pos !== endPos;) {
|
|
5947
|
+
for (; pos !== endPos; ) {
|
|
6121
5948
|
arr.push(deserializeTSTupleElement(pos));
|
|
6122
5949
|
pos += 16;
|
|
6123
5950
|
}
|
|
@@ -6142,10 +5969,11 @@ function deserializeOptionTSType(pos) {
|
|
|
6142
5969
|
}
|
|
6143
5970
|
|
|
6144
5971
|
function deserializeVecTSTypeParameter(pos) {
|
|
6145
|
-
let arr = [],
|
|
5972
|
+
let arr = [],
|
|
5973
|
+
pos32 = pos >> 2;
|
|
6146
5974
|
pos = uint32[pos32];
|
|
6147
5975
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6148
|
-
for (; pos !== endPos;) {
|
|
5976
|
+
for (; pos !== endPos; ) {
|
|
6149
5977
|
arr.push(deserializeTSTypeParameter(pos));
|
|
6150
5978
|
pos += 80;
|
|
6151
5979
|
}
|
|
@@ -6153,10 +5981,11 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
6153
5981
|
}
|
|
6154
5982
|
|
|
6155
5983
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
6156
|
-
let arr = [],
|
|
5984
|
+
let arr = [],
|
|
5985
|
+
pos32 = pos >> 2;
|
|
6157
5986
|
pos = uint32[pos32];
|
|
6158
5987
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6159
|
-
for (; pos !== endPos;) {
|
|
5988
|
+
for (; pos !== endPos; ) {
|
|
6160
5989
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
6161
5990
|
pos += 32;
|
|
6162
5991
|
}
|
|
@@ -6168,10 +5997,11 @@ function deserializeBoxTSInterfaceBody(pos) {
|
|
|
6168
5997
|
}
|
|
6169
5998
|
|
|
6170
5999
|
function deserializeVecTSSignature(pos) {
|
|
6171
|
-
let arr = [],
|
|
6000
|
+
let arr = [],
|
|
6001
|
+
pos32 = pos >> 2;
|
|
6172
6002
|
pos = uint32[pos32];
|
|
6173
6003
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6174
|
-
for (; pos !== endPos;) {
|
|
6004
|
+
for (; pos !== endPos; ) {
|
|
6175
6005
|
arr.push(deserializeTSSignature(pos));
|
|
6176
6006
|
pos += 16;
|
|
6177
6007
|
}
|
|
@@ -6195,10 +6025,11 @@ function deserializeBoxTSMethodSignature(pos) {
|
|
|
6195
6025
|
}
|
|
6196
6026
|
|
|
6197
6027
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
6198
|
-
let arr = [],
|
|
6028
|
+
let arr = [],
|
|
6029
|
+
pos32 = pos >> 2;
|
|
6199
6030
|
pos = uint32[pos32];
|
|
6200
6031
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6201
|
-
for (; pos !== endPos;) {
|
|
6032
|
+
for (; pos !== endPos; ) {
|
|
6202
6033
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
6203
6034
|
pos += 32;
|
|
6204
6035
|
}
|
|
@@ -6219,7 +6050,7 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
6219
6050
|
}
|
|
6220
6051
|
|
|
6221
6052
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6222
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6053
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6223
6054
|
return deserializeBoxObjectExpression(pos);
|
|
6224
6055
|
}
|
|
6225
6056
|
|
|
@@ -6242,15 +6073,16 @@ function deserializeBoxTSExternalModuleReference(pos) {
|
|
|
6242
6073
|
}
|
|
6243
6074
|
|
|
6244
6075
|
function deserializeOptionNameSpan(pos) {
|
|
6245
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
6076
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
6246
6077
|
return deserializeNameSpan(pos);
|
|
6247
6078
|
}
|
|
6248
6079
|
|
|
6249
6080
|
function deserializeVecError(pos) {
|
|
6250
|
-
let arr = [],
|
|
6081
|
+
let arr = [],
|
|
6082
|
+
pos32 = pos >> 2;
|
|
6251
6083
|
pos = uint32[pos32];
|
|
6252
6084
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6253
|
-
for (; pos !== endPos;) {
|
|
6085
|
+
for (; pos !== endPos; ) {
|
|
6254
6086
|
arr.push(deserializeError(pos));
|
|
6255
6087
|
pos += 80;
|
|
6256
6088
|
}
|
|
@@ -6258,10 +6090,11 @@ function deserializeVecError(pos) {
|
|
|
6258
6090
|
}
|
|
6259
6091
|
|
|
6260
6092
|
function deserializeVecErrorLabel(pos) {
|
|
6261
|
-
let arr = [],
|
|
6093
|
+
let arr = [],
|
|
6094
|
+
pos32 = pos >> 2;
|
|
6262
6095
|
pos = uint32[pos32];
|
|
6263
6096
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
6264
|
-
for (; pos !== endPos;) {
|
|
6097
|
+
for (; pos !== endPos; ) {
|
|
6265
6098
|
arr.push(deserializeErrorLabel(pos));
|
|
6266
6099
|
pos += 24;
|
|
6267
6100
|
}
|
|
@@ -6269,10 +6102,11 @@ function deserializeVecErrorLabel(pos) {
|
|
|
6269
6102
|
}
|
|
6270
6103
|
|
|
6271
6104
|
function deserializeVecStaticImport(pos) {
|
|
6272
|
-
let arr = [],
|
|
6105
|
+
let arr = [],
|
|
6106
|
+
pos32 = pos >> 2;
|
|
6273
6107
|
pos = uint32[pos32];
|
|
6274
6108
|
let endPos = pos + uint32[pos32 + 2] * 56;
|
|
6275
|
-
for (; pos !== endPos;) {
|
|
6109
|
+
for (; pos !== endPos; ) {
|
|
6276
6110
|
arr.push(deserializeStaticImport(pos));
|
|
6277
6111
|
pos += 56;
|
|
6278
6112
|
}
|
|
@@ -6280,10 +6114,11 @@ function deserializeVecStaticImport(pos) {
|
|
|
6280
6114
|
}
|
|
6281
6115
|
|
|
6282
6116
|
function deserializeVecStaticExport(pos) {
|
|
6283
|
-
let arr = [],
|
|
6117
|
+
let arr = [],
|
|
6118
|
+
pos32 = pos >> 2;
|
|
6284
6119
|
pos = uint32[pos32];
|
|
6285
6120
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6286
|
-
for (; pos !== endPos;) {
|
|
6121
|
+
for (; pos !== endPos; ) {
|
|
6287
6122
|
arr.push(deserializeStaticExport(pos));
|
|
6288
6123
|
pos += 32;
|
|
6289
6124
|
}
|
|
@@ -6291,10 +6126,11 @@ function deserializeVecStaticExport(pos) {
|
|
|
6291
6126
|
}
|
|
6292
6127
|
|
|
6293
6128
|
function deserializeVecDynamicImport(pos) {
|
|
6294
|
-
let arr = [],
|
|
6129
|
+
let arr = [],
|
|
6130
|
+
pos32 = pos >> 2;
|
|
6295
6131
|
pos = uint32[pos32];
|
|
6296
6132
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6297
|
-
for (; pos !== endPos;) {
|
|
6133
|
+
for (; pos !== endPos; ) {
|
|
6298
6134
|
arr.push(deserializeDynamicImport(pos));
|
|
6299
6135
|
pos += 16;
|
|
6300
6136
|
}
|
|
@@ -6302,10 +6138,11 @@ function deserializeVecDynamicImport(pos) {
|
|
|
6302
6138
|
}
|
|
6303
6139
|
|
|
6304
6140
|
function deserializeVecSpan(pos) {
|
|
6305
|
-
let arr = [],
|
|
6141
|
+
let arr = [],
|
|
6142
|
+
pos32 = pos >> 2;
|
|
6306
6143
|
pos = uint32[pos32];
|
|
6307
6144
|
let endPos = pos + uint32[pos32 + 2] * 8;
|
|
6308
|
-
for (; pos !== endPos;) {
|
|
6145
|
+
for (; pos !== endPos; ) {
|
|
6309
6146
|
arr.push(deserializeSpan(pos));
|
|
6310
6147
|
pos += 8;
|
|
6311
6148
|
}
|
|
@@ -6313,10 +6150,11 @@ function deserializeVecSpan(pos) {
|
|
|
6313
6150
|
}
|
|
6314
6151
|
|
|
6315
6152
|
function deserializeVecImportEntry(pos) {
|
|
6316
|
-
let arr = [],
|
|
6153
|
+
let arr = [],
|
|
6154
|
+
pos32 = pos >> 2;
|
|
6317
6155
|
pos = uint32[pos32];
|
|
6318
6156
|
let endPos = pos + uint32[pos32 + 2] * 96;
|
|
6319
|
-
for (; pos !== endPos;) {
|
|
6157
|
+
for (; pos !== endPos; ) {
|
|
6320
6158
|
arr.push(deserializeImportEntry(pos));
|
|
6321
6159
|
pos += 96;
|
|
6322
6160
|
}
|
|
@@ -6324,10 +6162,11 @@ function deserializeVecImportEntry(pos) {
|
|
|
6324
6162
|
}
|
|
6325
6163
|
|
|
6326
6164
|
function deserializeVecExportEntry(pos) {
|
|
6327
|
-
let arr = [],
|
|
6165
|
+
let arr = [],
|
|
6166
|
+
pos32 = pos >> 2;
|
|
6328
6167
|
pos = uint32[pos32];
|
|
6329
6168
|
let endPos = pos + uint32[pos32 + 2] * 144;
|
|
6330
|
-
for (; pos !== endPos;) {
|
|
6169
|
+
for (; pos !== endPos; ) {
|
|
6331
6170
|
arr.push(deserializeExportEntry(pos));
|
|
6332
6171
|
pos += 144;
|
|
6333
6172
|
}
|