oxc-parser 0.95.0 → 0.97.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 +203 -152
- package/generated/deserialize/js_range.js +259 -183
- package/generated/deserialize/ts.js +208 -172
- package/generated/deserialize/ts_range.js +272 -210
- package/generated/lazy/constructors.js +119 -347
- package/generated/lazy/walk.js +581 -312
- package/generated/visit/walk.js +279 -140
- package/package.json +20 -19
- package/src-js/bindings.js +53 -53
- 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 +2 -2
- package/src-js/raw-transfer/supported.js +1 -1
- package/src-js/raw-transfer/visitor.js +2 -2
- package/src-js/visit/index.js +4 -1
- package/src-js/visit/visitor.js +1 -1
- package/src-js/webcontainer-fallback.cjs +1 -3
- package/src-js/wrap.js +1 -1
|
@@ -8,11 +8,9 @@ const textDecoder = new TextDecoder('utf-8', { ignoreBOM: true }),
|
|
|
8
8
|
{ fromCodePoint } = String;
|
|
9
9
|
|
|
10
10
|
export function deserialize(buffer, sourceText, sourceByteLen) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export function deserializeProgramOnly(buffer, sourceText, sourceByteLen, getLoc) {
|
|
15
|
-
return deserializeWith(buffer, sourceText, sourceByteLen, getLoc, deserializeProgram);
|
|
11
|
+
let data = deserializeWith(buffer, sourceText, sourceByteLen, null, deserializeRawTransferData);
|
|
12
|
+
resetBuffer();
|
|
13
|
+
return data;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
function deserializeWith(buffer, sourceTextInput, sourceByteLenInput, getLocInput, deserialize) {
|
|
@@ -22,13 +20,12 @@ function deserializeWith(buffer, sourceTextInput, sourceByteLenInput, getLocInpu
|
|
|
22
20
|
sourceText = sourceTextInput;
|
|
23
21
|
sourceByteLen = sourceByteLenInput;
|
|
24
22
|
sourceIsAscii = sourceText.length === sourceByteLen;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
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;
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
function deserializeProgram(pos) {
|
|
@@ -142,7 +139,8 @@ function deserializeExpression(pos) {
|
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
function deserializeIdentifierName(pos) {
|
|
145
|
-
let start = deserializeU32(pos),
|
|
142
|
+
let start = deserializeU32(pos),
|
|
143
|
+
end = deserializeU32(pos + 4);
|
|
146
144
|
return {
|
|
147
145
|
type: 'Identifier',
|
|
148
146
|
name: deserializeStr(pos + 8),
|
|
@@ -153,7 +151,8 @@ function deserializeIdentifierName(pos) {
|
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
function deserializeIdentifierReference(pos) {
|
|
156
|
-
let start = deserializeU32(pos),
|
|
154
|
+
let start = deserializeU32(pos),
|
|
155
|
+
end = deserializeU32(pos + 4);
|
|
157
156
|
return {
|
|
158
157
|
type: 'Identifier',
|
|
159
158
|
name: deserializeStr(pos + 8),
|
|
@@ -164,7 +163,8 @@ function deserializeIdentifierReference(pos) {
|
|
|
164
163
|
}
|
|
165
164
|
|
|
166
165
|
function deserializeBindingIdentifier(pos) {
|
|
167
|
-
let start = deserializeU32(pos),
|
|
166
|
+
let start = deserializeU32(pos),
|
|
167
|
+
end = deserializeU32(pos + 4);
|
|
168
168
|
return {
|
|
169
169
|
type: 'Identifier',
|
|
170
170
|
name: deserializeStr(pos + 8),
|
|
@@ -175,7 +175,8 @@ function deserializeBindingIdentifier(pos) {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
function deserializeLabelIdentifier(pos) {
|
|
178
|
-
let start = deserializeU32(pos),
|
|
178
|
+
let start = deserializeU32(pos),
|
|
179
|
+
end = deserializeU32(pos + 4);
|
|
179
180
|
return {
|
|
180
181
|
type: 'Identifier',
|
|
181
182
|
name: deserializeStr(pos + 8),
|
|
@@ -186,7 +187,8 @@ function deserializeLabelIdentifier(pos) {
|
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
function deserializeThisExpression(pos) {
|
|
189
|
-
let start = deserializeU32(pos),
|
|
190
|
+
let start = deserializeU32(pos),
|
|
191
|
+
end = deserializeU32(pos + 4);
|
|
190
192
|
return {
|
|
191
193
|
type: 'ThisExpression',
|
|
192
194
|
start,
|
|
@@ -502,7 +504,8 @@ function deserializeTemplateElement(pos) {
|
|
|
502
504
|
start = deserializeU32(pos),
|
|
503
505
|
end = deserializeU32(pos + 4),
|
|
504
506
|
value = deserializeTemplateElementValue(pos + 8);
|
|
505
|
-
value.cooked !== null &&
|
|
507
|
+
value.cooked !== null &&
|
|
508
|
+
deserializeBool(pos + 41) &&
|
|
506
509
|
(value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))));
|
|
507
510
|
return {
|
|
508
511
|
type: 'TemplateElement',
|
|
@@ -1026,16 +1029,25 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
1026
1029
|
range: [start, end],
|
|
1027
1030
|
},
|
|
1028
1031
|
key = deserializeIdentifierReference(pos + 8),
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1032
|
+
keyStart,
|
|
1033
|
+
keyEnd,
|
|
1034
|
+
value = {
|
|
1035
|
+
type: 'Identifier',
|
|
1036
|
+
name: key.name,
|
|
1037
|
+
start: (keyStart = key.start),
|
|
1038
|
+
end: (keyEnd = key.end),
|
|
1039
|
+
range: [keyStart, keyEnd],
|
|
1040
|
+
},
|
|
1041
|
+
init = deserializeOptionExpression(pos + 40);
|
|
1042
|
+
init !== null &&
|
|
1043
|
+
(value = {
|
|
1044
|
+
type: 'AssignmentPattern',
|
|
1045
|
+
left: value,
|
|
1046
|
+
right: init,
|
|
1047
|
+
start,
|
|
1048
|
+
end,
|
|
1049
|
+
range: [start, end],
|
|
1050
|
+
});
|
|
1039
1051
|
node.kind = 'init';
|
|
1040
1052
|
node.key = key;
|
|
1041
1053
|
node.value = value;
|
|
@@ -1083,7 +1095,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1083
1095
|
}
|
|
1084
1096
|
|
|
1085
1097
|
function deserializeSuper(pos) {
|
|
1086
|
-
let start = deserializeU32(pos),
|
|
1098
|
+
let start = deserializeU32(pos),
|
|
1099
|
+
end = deserializeU32(pos + 4);
|
|
1087
1100
|
return {
|
|
1088
1101
|
type: 'Super',
|
|
1089
1102
|
start,
|
|
@@ -1144,8 +1157,8 @@ function deserializeParenthesizedExpression(pos) {
|
|
|
1144
1157
|
node = {
|
|
1145
1158
|
type: 'ParenthesizedExpression',
|
|
1146
1159
|
expression: null,
|
|
1147
|
-
start: start = deserializeU32(pos),
|
|
1148
|
-
end: end = deserializeU32(pos + 4),
|
|
1160
|
+
start: (start = deserializeU32(pos)),
|
|
1161
|
+
end: (end = deserializeU32(pos + 4)),
|
|
1149
1162
|
range: [start, end],
|
|
1150
1163
|
};
|
|
1151
1164
|
node.expression = deserializeExpression(pos + 8);
|
|
@@ -1240,7 +1253,8 @@ function deserializeDirective(pos) {
|
|
|
1240
1253
|
}
|
|
1241
1254
|
|
|
1242
1255
|
function deserializeHashbang(pos) {
|
|
1243
|
-
let start = deserializeU32(pos),
|
|
1256
|
+
let start = deserializeU32(pos),
|
|
1257
|
+
end = deserializeU32(pos + 4);
|
|
1244
1258
|
return {
|
|
1245
1259
|
type: 'Hashbang',
|
|
1246
1260
|
value: deserializeStr(pos + 8),
|
|
@@ -1336,7 +1350,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1336
1350
|
}
|
|
1337
1351
|
|
|
1338
1352
|
function deserializeEmptyStatement(pos) {
|
|
1339
|
-
let start = deserializeU32(pos),
|
|
1353
|
+
let start = deserializeU32(pos),
|
|
1354
|
+
end = deserializeU32(pos + 4);
|
|
1340
1355
|
return {
|
|
1341
1356
|
type: 'EmptyStatement',
|
|
1342
1357
|
start,
|
|
@@ -1749,7 +1764,8 @@ function deserializeCatchParameter(pos) {
|
|
|
1749
1764
|
}
|
|
1750
1765
|
|
|
1751
1766
|
function deserializeDebuggerStatement(pos) {
|
|
1752
|
-
let start = deserializeU32(pos),
|
|
1767
|
+
let start = deserializeU32(pos),
|
|
1768
|
+
end = deserializeU32(pos + 4);
|
|
1753
1769
|
return {
|
|
1754
1770
|
type: 'DebuggerStatement',
|
|
1755
1771
|
start,
|
|
@@ -1903,15 +1919,15 @@ function deserializeFunctionType(pos) {
|
|
|
1903
1919
|
|
|
1904
1920
|
function deserializeFormalParameters(pos) {
|
|
1905
1921
|
let params = deserializeVecFormalParameter(pos + 8);
|
|
1906
|
-
if (uint32[pos + 32 >> 2] !== 0 && uint32[pos + 36 >> 2] !== 0) {
|
|
1907
|
-
pos = uint32[pos + 32 >> 2];
|
|
1922
|
+
if (uint32[(pos + 32) >> 2] !== 0 && uint32[(pos + 36) >> 2] !== 0) {
|
|
1923
|
+
pos = uint32[(pos + 32) >> 2];
|
|
1908
1924
|
let start,
|
|
1909
1925
|
end,
|
|
1910
1926
|
rest = {
|
|
1911
1927
|
type: 'RestElement',
|
|
1912
1928
|
argument: null,
|
|
1913
|
-
start: start = deserializeU32(pos),
|
|
1914
|
-
end: end = deserializeU32(pos + 4),
|
|
1929
|
+
start: (start = deserializeU32(pos)),
|
|
1930
|
+
end: (end = deserializeU32(pos + 4)),
|
|
1915
1931
|
range: [start, end],
|
|
1916
1932
|
};
|
|
1917
1933
|
rest.argument = deserializeBindingPatternKind(pos + 8);
|
|
@@ -1962,7 +1978,6 @@ function deserializeArrowFunctionExpression(pos) {
|
|
|
1962
1978
|
expression === true && (body = body.body[0].expression);
|
|
1963
1979
|
node.params = deserializeBoxFormalParameters(pos + 16);
|
|
1964
1980
|
node.body = body;
|
|
1965
|
-
node.id = null;
|
|
1966
1981
|
node.generator = false;
|
|
1967
1982
|
return node;
|
|
1968
1983
|
}
|
|
@@ -2123,7 +2138,8 @@ function deserializeMethodDefinitionKind(pos) {
|
|
|
2123
2138
|
}
|
|
2124
2139
|
|
|
2125
2140
|
function deserializePrivateIdentifier(pos) {
|
|
2126
|
-
let start = deserializeU32(pos),
|
|
2141
|
+
let start = deserializeU32(pos),
|
|
2142
|
+
end = deserializeU32(pos + 4);
|
|
2127
2143
|
return {
|
|
2128
2144
|
type: 'PrivateIdentifier',
|
|
2129
2145
|
name: deserializeStr(pos + 8),
|
|
@@ -2541,13 +2557,13 @@ function deserializeNullLiteral(pos) {
|
|
|
2541
2557
|
end,
|
|
2542
2558
|
range: [start, end],
|
|
2543
2559
|
};
|
|
2544
|
-
node.value = null;
|
|
2545
2560
|
node.raw = start === 0 && end === 0 ? null : 'null';
|
|
2546
2561
|
return node;
|
|
2547
2562
|
}
|
|
2548
2563
|
|
|
2549
2564
|
function deserializeNumericLiteral(pos) {
|
|
2550
|
-
let start = deserializeU32(pos),
|
|
2565
|
+
let start = deserializeU32(pos),
|
|
2566
|
+
end = deserializeU32(pos + 4);
|
|
2551
2567
|
return {
|
|
2552
2568
|
type: 'Literal',
|
|
2553
2569
|
value: deserializeF64(pos + 8),
|
|
@@ -2624,7 +2640,8 @@ function deserializeRegExp(pos) {
|
|
|
2624
2640
|
}
|
|
2625
2641
|
|
|
2626
2642
|
function deserializeRegExpFlags(pos) {
|
|
2627
|
-
let flagBits = deserializeU8(pos),
|
|
2643
|
+
let flagBits = deserializeU8(pos),
|
|
2644
|
+
flags = '';
|
|
2628
2645
|
// Alphabetical order
|
|
2629
2646
|
flagBits & 64 && (flags += 'd');
|
|
2630
2647
|
flagBits & 1 && (flags += 'g');
|
|
@@ -2725,7 +2742,8 @@ function deserializeJSXOpeningFragment(pos) {
|
|
|
2725
2742
|
}
|
|
2726
2743
|
|
|
2727
2744
|
function deserializeJSXClosingFragment(pos) {
|
|
2728
|
-
let start = deserializeU32(pos),
|
|
2745
|
+
let start = deserializeU32(pos),
|
|
2746
|
+
end = deserializeU32(pos + 4);
|
|
2729
2747
|
return {
|
|
2730
2748
|
type: 'JSXClosingFragment',
|
|
2731
2749
|
start,
|
|
@@ -2934,7 +2952,8 @@ function deserializeJSXExpression(pos) {
|
|
|
2934
2952
|
}
|
|
2935
2953
|
|
|
2936
2954
|
function deserializeJSXEmptyExpression(pos) {
|
|
2937
|
-
let start = deserializeU32(pos),
|
|
2955
|
+
let start = deserializeU32(pos),
|
|
2956
|
+
end = deserializeU32(pos + 4);
|
|
2938
2957
|
return {
|
|
2939
2958
|
type: 'JSXEmptyExpression',
|
|
2940
2959
|
start,
|
|
@@ -3011,7 +3030,8 @@ function deserializeJSXAttributeValue(pos) {
|
|
|
3011
3030
|
}
|
|
3012
3031
|
|
|
3013
3032
|
function deserializeJSXIdentifier(pos) {
|
|
3014
|
-
let start = deserializeU32(pos),
|
|
3033
|
+
let start = deserializeU32(pos),
|
|
3034
|
+
end = deserializeU32(pos + 4);
|
|
3015
3035
|
return {
|
|
3016
3036
|
type: 'JSXIdentifier',
|
|
3017
3037
|
name: deserializeStr(pos + 8),
|
|
@@ -3053,7 +3073,8 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3053
3073
|
}
|
|
3054
3074
|
|
|
3055
3075
|
function deserializeJSXText(pos) {
|
|
3056
|
-
let start = deserializeU32(pos),
|
|
3076
|
+
let start = deserializeU32(pos),
|
|
3077
|
+
end = deserializeU32(pos + 4);
|
|
3057
3078
|
return {
|
|
3058
3079
|
type: 'JSXText',
|
|
3059
3080
|
value: deserializeStr(pos + 8),
|
|
@@ -3332,8 +3353,8 @@ function deserializeTSParenthesizedType(pos) {
|
|
|
3332
3353
|
node = {
|
|
3333
3354
|
type: 'TSParenthesizedType',
|
|
3334
3355
|
typeAnnotation: null,
|
|
3335
|
-
start: start = deserializeU32(pos),
|
|
3336
|
-
end: end = deserializeU32(pos + 4),
|
|
3356
|
+
start: (start = deserializeU32(pos)),
|
|
3357
|
+
end: (end = deserializeU32(pos + 4)),
|
|
3337
3358
|
range: [start, end],
|
|
3338
3359
|
};
|
|
3339
3360
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
@@ -3544,7 +3565,8 @@ function deserializeTSTupleElement(pos) {
|
|
|
3544
3565
|
}
|
|
3545
3566
|
|
|
3546
3567
|
function deserializeTSAnyKeyword(pos) {
|
|
3547
|
-
let start = deserializeU32(pos),
|
|
3568
|
+
let start = deserializeU32(pos),
|
|
3569
|
+
end = deserializeU32(pos + 4);
|
|
3548
3570
|
return {
|
|
3549
3571
|
type: 'TSAnyKeyword',
|
|
3550
3572
|
start,
|
|
@@ -3554,7 +3576,8 @@ function deserializeTSAnyKeyword(pos) {
|
|
|
3554
3576
|
}
|
|
3555
3577
|
|
|
3556
3578
|
function deserializeTSStringKeyword(pos) {
|
|
3557
|
-
let start = deserializeU32(pos),
|
|
3579
|
+
let start = deserializeU32(pos),
|
|
3580
|
+
end = deserializeU32(pos + 4);
|
|
3558
3581
|
return {
|
|
3559
3582
|
type: 'TSStringKeyword',
|
|
3560
3583
|
start,
|
|
@@ -3564,7 +3587,8 @@ function deserializeTSStringKeyword(pos) {
|
|
|
3564
3587
|
}
|
|
3565
3588
|
|
|
3566
3589
|
function deserializeTSBooleanKeyword(pos) {
|
|
3567
|
-
let start = deserializeU32(pos),
|
|
3590
|
+
let start = deserializeU32(pos),
|
|
3591
|
+
end = deserializeU32(pos + 4);
|
|
3568
3592
|
return {
|
|
3569
3593
|
type: 'TSBooleanKeyword',
|
|
3570
3594
|
start,
|
|
@@ -3574,7 +3598,8 @@ function deserializeTSBooleanKeyword(pos) {
|
|
|
3574
3598
|
}
|
|
3575
3599
|
|
|
3576
3600
|
function deserializeTSNumberKeyword(pos) {
|
|
3577
|
-
let start = deserializeU32(pos),
|
|
3601
|
+
let start = deserializeU32(pos),
|
|
3602
|
+
end = deserializeU32(pos + 4);
|
|
3578
3603
|
return {
|
|
3579
3604
|
type: 'TSNumberKeyword',
|
|
3580
3605
|
start,
|
|
@@ -3584,7 +3609,8 @@ function deserializeTSNumberKeyword(pos) {
|
|
|
3584
3609
|
}
|
|
3585
3610
|
|
|
3586
3611
|
function deserializeTSNeverKeyword(pos) {
|
|
3587
|
-
let start = deserializeU32(pos),
|
|
3612
|
+
let start = deserializeU32(pos),
|
|
3613
|
+
end = deserializeU32(pos + 4);
|
|
3588
3614
|
return {
|
|
3589
3615
|
type: 'TSNeverKeyword',
|
|
3590
3616
|
start,
|
|
@@ -3594,7 +3620,8 @@ function deserializeTSNeverKeyword(pos) {
|
|
|
3594
3620
|
}
|
|
3595
3621
|
|
|
3596
3622
|
function deserializeTSIntrinsicKeyword(pos) {
|
|
3597
|
-
let start = deserializeU32(pos),
|
|
3623
|
+
let start = deserializeU32(pos),
|
|
3624
|
+
end = deserializeU32(pos + 4);
|
|
3598
3625
|
return {
|
|
3599
3626
|
type: 'TSIntrinsicKeyword',
|
|
3600
3627
|
start,
|
|
@@ -3604,7 +3631,8 @@ function deserializeTSIntrinsicKeyword(pos) {
|
|
|
3604
3631
|
}
|
|
3605
3632
|
|
|
3606
3633
|
function deserializeTSUnknownKeyword(pos) {
|
|
3607
|
-
let start = deserializeU32(pos),
|
|
3634
|
+
let start = deserializeU32(pos),
|
|
3635
|
+
end = deserializeU32(pos + 4);
|
|
3608
3636
|
return {
|
|
3609
3637
|
type: 'TSUnknownKeyword',
|
|
3610
3638
|
start,
|
|
@@ -3614,7 +3642,8 @@ function deserializeTSUnknownKeyword(pos) {
|
|
|
3614
3642
|
}
|
|
3615
3643
|
|
|
3616
3644
|
function deserializeTSNullKeyword(pos) {
|
|
3617
|
-
let start = deserializeU32(pos),
|
|
3645
|
+
let start = deserializeU32(pos),
|
|
3646
|
+
end = deserializeU32(pos + 4);
|
|
3618
3647
|
return {
|
|
3619
3648
|
type: 'TSNullKeyword',
|
|
3620
3649
|
start,
|
|
@@ -3624,7 +3653,8 @@ function deserializeTSNullKeyword(pos) {
|
|
|
3624
3653
|
}
|
|
3625
3654
|
|
|
3626
3655
|
function deserializeTSUndefinedKeyword(pos) {
|
|
3627
|
-
let start = deserializeU32(pos),
|
|
3656
|
+
let start = deserializeU32(pos),
|
|
3657
|
+
end = deserializeU32(pos + 4);
|
|
3628
3658
|
return {
|
|
3629
3659
|
type: 'TSUndefinedKeyword',
|
|
3630
3660
|
start,
|
|
@@ -3634,7 +3664,8 @@ function deserializeTSUndefinedKeyword(pos) {
|
|
|
3634
3664
|
}
|
|
3635
3665
|
|
|
3636
3666
|
function deserializeTSVoidKeyword(pos) {
|
|
3637
|
-
let start = deserializeU32(pos),
|
|
3667
|
+
let start = deserializeU32(pos),
|
|
3668
|
+
end = deserializeU32(pos + 4);
|
|
3638
3669
|
return {
|
|
3639
3670
|
type: 'TSVoidKeyword',
|
|
3640
3671
|
start,
|
|
@@ -3644,7 +3675,8 @@ function deserializeTSVoidKeyword(pos) {
|
|
|
3644
3675
|
}
|
|
3645
3676
|
|
|
3646
3677
|
function deserializeTSSymbolKeyword(pos) {
|
|
3647
|
-
let start = deserializeU32(pos),
|
|
3678
|
+
let start = deserializeU32(pos),
|
|
3679
|
+
end = deserializeU32(pos + 4);
|
|
3648
3680
|
return {
|
|
3649
3681
|
type: 'TSSymbolKeyword',
|
|
3650
3682
|
start,
|
|
@@ -3654,7 +3686,8 @@ function deserializeTSSymbolKeyword(pos) {
|
|
|
3654
3686
|
}
|
|
3655
3687
|
|
|
3656
3688
|
function deserializeTSThisType(pos) {
|
|
3657
|
-
let start = deserializeU32(pos),
|
|
3689
|
+
let start = deserializeU32(pos),
|
|
3690
|
+
end = deserializeU32(pos + 4);
|
|
3658
3691
|
return {
|
|
3659
3692
|
type: 'TSThisType',
|
|
3660
3693
|
start,
|
|
@@ -3664,7 +3697,8 @@ function deserializeTSThisType(pos) {
|
|
|
3664
3697
|
}
|
|
3665
3698
|
|
|
3666
3699
|
function deserializeTSObjectKeyword(pos) {
|
|
3667
|
-
let start = deserializeU32(pos),
|
|
3700
|
+
let start = deserializeU32(pos),
|
|
3701
|
+
end = deserializeU32(pos + 4);
|
|
3668
3702
|
return {
|
|
3669
3703
|
type: 'TSObjectKeyword',
|
|
3670
3704
|
start,
|
|
@@ -3674,7 +3708,8 @@ function deserializeTSObjectKeyword(pos) {
|
|
|
3674
3708
|
}
|
|
3675
3709
|
|
|
3676
3710
|
function deserializeTSBigIntKeyword(pos) {
|
|
3677
|
-
let start = deserializeU32(pos),
|
|
3711
|
+
let start = deserializeU32(pos),
|
|
3712
|
+
end = deserializeU32(pos + 4);
|
|
3678
3713
|
return {
|
|
3679
3714
|
type: 'TSBigIntKeyword',
|
|
3680
3715
|
start,
|
|
@@ -3849,7 +3884,6 @@ function deserializeTSPropertySignature(pos) {
|
|
|
3849
3884
|
};
|
|
3850
3885
|
node.key = deserializePropertyKey(pos + 8);
|
|
3851
3886
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24);
|
|
3852
|
-
node.accessibility = null;
|
|
3853
3887
|
node.static = false;
|
|
3854
3888
|
return node;
|
|
3855
3889
|
}
|
|
@@ -3887,7 +3921,6 @@ function deserializeTSIndexSignature(pos) {
|
|
|
3887
3921
|
};
|
|
3888
3922
|
node.parameters = deserializeVecTSIndexSignatureName(pos + 8);
|
|
3889
3923
|
node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 32);
|
|
3890
|
-
node.accessibility = null;
|
|
3891
3924
|
return node;
|
|
3892
3925
|
}
|
|
3893
3926
|
|
|
@@ -3951,7 +3984,6 @@ function deserializeTSMethodSignature(pos) {
|
|
|
3951
3984
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 24);
|
|
3952
3985
|
node.params = params;
|
|
3953
3986
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 48);
|
|
3954
|
-
node.accessibility = null;
|
|
3955
3987
|
node.readonly = false;
|
|
3956
3988
|
node.static = false;
|
|
3957
3989
|
return node;
|
|
@@ -4080,8 +4112,8 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4080
4112
|
type: 'TSQualifiedName',
|
|
4081
4113
|
left: id,
|
|
4082
4114
|
right: innerId,
|
|
4083
|
-
start: start = id.start,
|
|
4084
|
-
end: end = innerId.end,
|
|
4115
|
+
start: (start = id.start),
|
|
4116
|
+
end: (end = innerId.end),
|
|
4085
4117
|
range: [start, end],
|
|
4086
4118
|
};
|
|
4087
4119
|
} else {
|
|
@@ -4094,13 +4126,14 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4094
4126
|
if (innerId.left.type === 'Identifier') break;
|
|
4095
4127
|
innerId = innerId.left;
|
|
4096
4128
|
}
|
|
4097
|
-
let end,
|
|
4129
|
+
let end,
|
|
4130
|
+
right = innerId.left;
|
|
4098
4131
|
innerId.left = {
|
|
4099
4132
|
type: 'TSQualifiedName',
|
|
4100
4133
|
left: id,
|
|
4101
4134
|
right,
|
|
4102
4135
|
start,
|
|
4103
|
-
end: end = right.end,
|
|
4136
|
+
end: (end = right.end),
|
|
4104
4137
|
range: [start, end],
|
|
4105
4138
|
};
|
|
4106
4139
|
}
|
|
@@ -4296,7 +4329,7 @@ function deserializeTSConstructorType(pos) {
|
|
|
4296
4329
|
end = deserializeU32(pos + 4),
|
|
4297
4330
|
node = {
|
|
4298
4331
|
type: 'TSConstructorType',
|
|
4299
|
-
abstract: deserializeBool(pos +
|
|
4332
|
+
abstract: deserializeBool(pos + 36),
|
|
4300
4333
|
typeParameters: null,
|
|
4301
4334
|
params: null,
|
|
4302
4335
|
returnType: null,
|
|
@@ -4575,7 +4608,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4575
4608
|
}
|
|
4576
4609
|
|
|
4577
4610
|
function deserializeJSDocUnknownType(pos) {
|
|
4578
|
-
let start = deserializeU32(pos),
|
|
4611
|
+
let start = deserializeU32(pos),
|
|
4612
|
+
end = deserializeU32(pos + 4);
|
|
4579
4613
|
return {
|
|
4580
4614
|
type: 'TSJSDocUnknownType',
|
|
4581
4615
|
start,
|
|
@@ -4598,21 +4632,19 @@ function deserializeCommentKind(pos) {
|
|
|
4598
4632
|
function deserializeComment(pos) {
|
|
4599
4633
|
let type = deserializeCommentKind(pos + 12),
|
|
4600
4634
|
start = deserializeU32(pos),
|
|
4601
|
-
end = deserializeU32(pos + 4)
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
endCut = type === 'Line' ? 0 : 2;
|
|
4610
|
-
node.value = sourceText.slice(start + 2, end - endCut);
|
|
4611
|
-
return node;
|
|
4635
|
+
end = deserializeU32(pos + 4);
|
|
4636
|
+
return {
|
|
4637
|
+
type,
|
|
4638
|
+
value: sourceText.slice(start + 2, end - (type === 'Line' ? 0 : 2)),
|
|
4639
|
+
start,
|
|
4640
|
+
end,
|
|
4641
|
+
range: [start, end],
|
|
4642
|
+
};
|
|
4612
4643
|
}
|
|
4613
4644
|
|
|
4614
4645
|
function deserializeNameSpan(pos) {
|
|
4615
|
-
let start = deserializeU32(pos),
|
|
4646
|
+
let start = deserializeU32(pos),
|
|
4647
|
+
end = deserializeU32(pos + 4);
|
|
4616
4648
|
return {
|
|
4617
4649
|
value: deserializeStr(pos + 8),
|
|
4618
4650
|
start,
|
|
@@ -4663,7 +4695,8 @@ function deserializeImportImportName(pos) {
|
|
|
4663
4695
|
}
|
|
4664
4696
|
|
|
4665
4697
|
function deserializeExportEntry(pos) {
|
|
4666
|
-
let start = deserializeU32(pos),
|
|
4698
|
+
let start = deserializeU32(pos),
|
|
4699
|
+
end = deserializeU32(pos + 4);
|
|
4667
4700
|
return {
|
|
4668
4701
|
moduleRequest: deserializeOptionNameSpan(pos + 16),
|
|
4669
4702
|
importName: deserializeExportImportName(pos + 40),
|
|
@@ -4783,7 +4816,8 @@ function deserializeExportLocalName(pos) {
|
|
|
4783
4816
|
}
|
|
4784
4817
|
|
|
4785
4818
|
function deserializeDynamicImport(pos) {
|
|
4786
|
-
let start = deserializeU32(pos),
|
|
4819
|
+
let start = deserializeU32(pos),
|
|
4820
|
+
end = deserializeU32(pos + 4);
|
|
4787
4821
|
return {
|
|
4788
4822
|
moduleRequest: deserializeSpan(pos + 8),
|
|
4789
4823
|
start,
|
|
@@ -4978,7 +5012,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
4978
5012
|
}
|
|
4979
5013
|
|
|
4980
5014
|
function deserializeErrorLabel(pos) {
|
|
4981
|
-
let start = deserializeU32(pos),
|
|
5015
|
+
let start = deserializeU32(pos),
|
|
5016
|
+
end = deserializeU32(pos + 4);
|
|
4982
5017
|
return {
|
|
4983
5018
|
message: deserializeOptionStr(pos + 8),
|
|
4984
5019
|
start,
|
|
@@ -4998,7 +5033,8 @@ function deserializeEcmaScriptModule(pos) {
|
|
|
4998
5033
|
}
|
|
4999
5034
|
|
|
5000
5035
|
function deserializeStaticImport(pos) {
|
|
5001
|
-
let start = deserializeU32(pos),
|
|
5036
|
+
let start = deserializeU32(pos),
|
|
5037
|
+
end = deserializeU32(pos + 4);
|
|
5002
5038
|
return {
|
|
5003
5039
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
5004
5040
|
entries: deserializeVecImportEntry(pos + 32),
|
|
@@ -5009,7 +5045,8 @@ function deserializeStaticImport(pos) {
|
|
|
5009
5045
|
}
|
|
5010
5046
|
|
|
5011
5047
|
function deserializeStaticExport(pos) {
|
|
5012
|
-
let start = deserializeU32(pos),
|
|
5048
|
+
let start = deserializeU32(pos),
|
|
5049
|
+
end = deserializeU32(pos + 4);
|
|
5013
5050
|
return {
|
|
5014
5051
|
entries: deserializeVecExportEntry(pos + 8),
|
|
5015
5052
|
start,
|
|
@@ -5027,7 +5064,8 @@ function deserializeU8(pos) {
|
|
|
5027
5064
|
}
|
|
5028
5065
|
|
|
5029
5066
|
function deserializeStr(pos) {
|
|
5030
|
-
let pos32 = pos >> 2,
|
|
5067
|
+
let pos32 = pos >> 2,
|
|
5068
|
+
len = uint32[pos32 + 2];
|
|
5031
5069
|
if (len === 0) return '';
|
|
5032
5070
|
pos = uint32[pos32];
|
|
5033
5071
|
if (sourceIsAscii && pos < sourceByteLen) return sourceText.substr(pos, len);
|
|
@@ -5036,7 +5074,8 @@ function deserializeStr(pos) {
|
|
|
5036
5074
|
let end = pos + len;
|
|
5037
5075
|
if (len > 50) return decodeStr(uint8.subarray(pos, end));
|
|
5038
5076
|
// Shorter strings decode by hand to avoid native call
|
|
5039
|
-
let out = '',
|
|
5077
|
+
let out = '',
|
|
5078
|
+
c;
|
|
5040
5079
|
do {
|
|
5041
5080
|
c = uint8[pos++];
|
|
5042
5081
|
if (c < 128) out += fromCodePoint(c);
|
|
@@ -5049,10 +5088,11 @@ function deserializeStr(pos) {
|
|
|
5049
5088
|
}
|
|
5050
5089
|
|
|
5051
5090
|
function deserializeVecComment(pos) {
|
|
5052
|
-
let arr = [],
|
|
5091
|
+
let arr = [],
|
|
5092
|
+
pos32 = pos >> 2;
|
|
5053
5093
|
pos = uint32[pos32];
|
|
5054
5094
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5055
|
-
for (; pos !== endPos;) {
|
|
5095
|
+
for (; pos !== endPos; ) {
|
|
5056
5096
|
arr.push(deserializeComment(pos));
|
|
5057
5097
|
pos += 16;
|
|
5058
5098
|
}
|
|
@@ -5060,15 +5100,16 @@ function deserializeVecComment(pos) {
|
|
|
5060
5100
|
}
|
|
5061
5101
|
|
|
5062
5102
|
function deserializeOptionHashbang(pos) {
|
|
5063
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5103
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5064
5104
|
return deserializeHashbang(pos);
|
|
5065
5105
|
}
|
|
5066
5106
|
|
|
5067
5107
|
function deserializeVecDirective(pos) {
|
|
5068
|
-
let arr = [],
|
|
5108
|
+
let arr = [],
|
|
5109
|
+
pos32 = pos >> 2;
|
|
5069
5110
|
pos = uint32[pos32];
|
|
5070
5111
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5071
|
-
for (; pos !== endPos;) {
|
|
5112
|
+
for (; pos !== endPos; ) {
|
|
5072
5113
|
arr.push(deserializeDirective(pos));
|
|
5073
5114
|
pos += 72;
|
|
5074
5115
|
}
|
|
@@ -5076,10 +5117,11 @@ function deserializeVecDirective(pos) {
|
|
|
5076
5117
|
}
|
|
5077
5118
|
|
|
5078
5119
|
function deserializeVecStatement(pos) {
|
|
5079
|
-
let arr = [],
|
|
5120
|
+
let arr = [],
|
|
5121
|
+
pos32 = pos >> 2;
|
|
5080
5122
|
pos = uint32[pos32];
|
|
5081
5123
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5082
|
-
for (; pos !== endPos;) {
|
|
5124
|
+
for (; pos !== endPos; ) {
|
|
5083
5125
|
arr.push(deserializeStatement(pos));
|
|
5084
5126
|
pos += 16;
|
|
5085
5127
|
}
|
|
@@ -5247,10 +5289,11 @@ function deserializeBoxV8IntrinsicExpression(pos) {
|
|
|
5247
5289
|
}
|
|
5248
5290
|
|
|
5249
5291
|
function deserializeVecArrayExpressionElement(pos) {
|
|
5250
|
-
let arr = [],
|
|
5292
|
+
let arr = [],
|
|
5293
|
+
pos32 = pos >> 2;
|
|
5251
5294
|
pos = uint32[pos32];
|
|
5252
5295
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5253
|
-
for (; pos !== endPos;) {
|
|
5296
|
+
for (; pos !== endPos; ) {
|
|
5254
5297
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
5255
5298
|
pos += 16;
|
|
5256
5299
|
}
|
|
@@ -5262,10 +5305,11 @@ function deserializeBoxSpreadElement(pos) {
|
|
|
5262
5305
|
}
|
|
5263
5306
|
|
|
5264
5307
|
function deserializeVecObjectPropertyKind(pos) {
|
|
5265
|
-
let arr = [],
|
|
5308
|
+
let arr = [],
|
|
5309
|
+
pos32 = pos >> 2;
|
|
5266
5310
|
pos = uint32[pos32];
|
|
5267
5311
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5268
|
-
for (; pos !== endPos;) {
|
|
5312
|
+
for (; pos !== endPos; ) {
|
|
5269
5313
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
5270
5314
|
pos += 16;
|
|
5271
5315
|
}
|
|
@@ -5289,10 +5333,11 @@ function deserializeBoxPrivateIdentifier(pos) {
|
|
|
5289
5333
|
}
|
|
5290
5334
|
|
|
5291
5335
|
function deserializeVecTemplateElement(pos) {
|
|
5292
|
-
let arr = [],
|
|
5336
|
+
let arr = [],
|
|
5337
|
+
pos32 = pos >> 2;
|
|
5293
5338
|
pos = uint32[pos32];
|
|
5294
5339
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5295
|
-
for (; pos !== endPos;) {
|
|
5340
|
+
for (; pos !== endPos; ) {
|
|
5296
5341
|
arr.push(deserializeTemplateElement(pos));
|
|
5297
5342
|
pos += 48;
|
|
5298
5343
|
}
|
|
@@ -5300,10 +5345,11 @@ function deserializeVecTemplateElement(pos) {
|
|
|
5300
5345
|
}
|
|
5301
5346
|
|
|
5302
5347
|
function deserializeVecExpression(pos) {
|
|
5303
|
-
let arr = [],
|
|
5348
|
+
let arr = [],
|
|
5349
|
+
pos32 = pos >> 2;
|
|
5304
5350
|
pos = uint32[pos32];
|
|
5305
5351
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5306
|
-
for (; pos !== endPos;) {
|
|
5352
|
+
for (; pos !== endPos; ) {
|
|
5307
5353
|
arr.push(deserializeExpression(pos));
|
|
5308
5354
|
pos += 16;
|
|
5309
5355
|
}
|
|
@@ -5315,12 +5361,12 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
5315
5361
|
}
|
|
5316
5362
|
|
|
5317
5363
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5318
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5364
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5319
5365
|
return deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5320
5366
|
}
|
|
5321
5367
|
|
|
5322
5368
|
function deserializeOptionStr(pos) {
|
|
5323
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5369
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5324
5370
|
return deserializeStr(pos);
|
|
5325
5371
|
}
|
|
5326
5372
|
|
|
@@ -5337,10 +5383,11 @@ function deserializeBoxPrivateFieldExpression(pos) {
|
|
|
5337
5383
|
}
|
|
5338
5384
|
|
|
5339
5385
|
function deserializeVecArgument(pos) {
|
|
5340
|
-
let arr = [],
|
|
5386
|
+
let arr = [],
|
|
5387
|
+
pos32 = pos >> 2;
|
|
5341
5388
|
pos = uint32[pos32];
|
|
5342
5389
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5343
|
-
for (; pos !== endPos;) {
|
|
5390
|
+
for (; pos !== endPos; ) {
|
|
5344
5391
|
arr.push(deserializeArgument(pos));
|
|
5345
5392
|
pos += 16;
|
|
5346
5393
|
}
|
|
@@ -5361,10 +5408,11 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5361
5408
|
}
|
|
5362
5409
|
|
|
5363
5410
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
5364
|
-
let arr = [],
|
|
5411
|
+
let arr = [],
|
|
5412
|
+
pos32 = pos >> 2;
|
|
5365
5413
|
pos = uint32[pos32];
|
|
5366
5414
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5367
|
-
for (; pos !== endPos;) {
|
|
5415
|
+
for (; pos !== endPos; ) {
|
|
5368
5416
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
5369
5417
|
pos += 16;
|
|
5370
5418
|
}
|
|
@@ -5376,15 +5424,16 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
5376
5424
|
}
|
|
5377
5425
|
|
|
5378
5426
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5379
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5427
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5380
5428
|
return deserializeBoxAssignmentTargetRest(pos);
|
|
5381
5429
|
}
|
|
5382
5430
|
|
|
5383
5431
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
5384
|
-
let arr = [],
|
|
5432
|
+
let arr = [],
|
|
5433
|
+
pos32 = pos >> 2;
|
|
5385
5434
|
pos = uint32[pos32];
|
|
5386
5435
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5387
|
-
for (; pos !== endPos;) {
|
|
5436
|
+
for (; pos !== endPos; ) {
|
|
5388
5437
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
5389
5438
|
pos += 16;
|
|
5390
5439
|
}
|
|
@@ -5505,10 +5554,11 @@ function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
|
5505
5554
|
}
|
|
5506
5555
|
|
|
5507
5556
|
function deserializeVecVariableDeclarator(pos) {
|
|
5508
|
-
let arr = [],
|
|
5557
|
+
let arr = [],
|
|
5558
|
+
pos32 = pos >> 2;
|
|
5509
5559
|
pos = uint32[pos32];
|
|
5510
5560
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5511
|
-
for (; pos !== endPos;) {
|
|
5561
|
+
for (; pos !== endPos; ) {
|
|
5512
5562
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5513
5563
|
pos += 64;
|
|
5514
5564
|
}
|
|
@@ -5526,15 +5576,16 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5526
5576
|
}
|
|
5527
5577
|
|
|
5528
5578
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5529
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5579
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5530
5580
|
return deserializeLabelIdentifier(pos);
|
|
5531
5581
|
}
|
|
5532
5582
|
|
|
5533
5583
|
function deserializeVecSwitchCase(pos) {
|
|
5534
|
-
let arr = [],
|
|
5584
|
+
let arr = [],
|
|
5585
|
+
pos32 = pos >> 2;
|
|
5535
5586
|
pos = uint32[pos32];
|
|
5536
5587
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5537
|
-
for (; pos !== endPos;) {
|
|
5588
|
+
for (; pos !== endPos; ) {
|
|
5538
5589
|
arr.push(deserializeSwitchCase(pos));
|
|
5539
5590
|
pos += 48;
|
|
5540
5591
|
}
|
|
@@ -5546,12 +5597,12 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5546
5597
|
}
|
|
5547
5598
|
|
|
5548
5599
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5549
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5600
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5550
5601
|
return deserializeBoxCatchClause(pos);
|
|
5551
5602
|
}
|
|
5552
5603
|
|
|
5553
5604
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5554
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5605
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5555
5606
|
return deserializeBoxBlockStatement(pos);
|
|
5556
5607
|
}
|
|
5557
5608
|
|
|
@@ -5565,7 +5616,7 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5565
5616
|
}
|
|
5566
5617
|
|
|
5567
5618
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5568
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5619
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5569
5620
|
return deserializeBoxTSTypeAnnotation(pos);
|
|
5570
5621
|
}
|
|
5571
5622
|
|
|
@@ -5586,10 +5637,11 @@ function deserializeBoxAssignmentPattern(pos) {
|
|
|
5586
5637
|
}
|
|
5587
5638
|
|
|
5588
5639
|
function deserializeVecBindingProperty(pos) {
|
|
5589
|
-
let arr = [],
|
|
5640
|
+
let arr = [],
|
|
5641
|
+
pos32 = pos >> 2;
|
|
5590
5642
|
pos = uint32[pos32];
|
|
5591
5643
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5592
|
-
for (; pos !== endPos;) {
|
|
5644
|
+
for (; pos !== endPos; ) {
|
|
5593
5645
|
arr.push(deserializeBindingProperty(pos));
|
|
5594
5646
|
pos += 64;
|
|
5595
5647
|
}
|
|
@@ -5601,7 +5653,7 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5601
5653
|
}
|
|
5602
5654
|
|
|
5603
5655
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5604
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5656
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5605
5657
|
return deserializeBoxBindingRestElement(pos);
|
|
5606
5658
|
}
|
|
5607
5659
|
|
|
@@ -5611,10 +5663,11 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5611
5663
|
}
|
|
5612
5664
|
|
|
5613
5665
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5614
|
-
let arr = [],
|
|
5666
|
+
let arr = [],
|
|
5667
|
+
pos32 = pos >> 2;
|
|
5615
5668
|
pos = uint32[pos32];
|
|
5616
5669
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5617
|
-
for (; pos !== endPos;) {
|
|
5670
|
+
for (; pos !== endPos; ) {
|
|
5618
5671
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5619
5672
|
pos += 32;
|
|
5620
5673
|
}
|
|
@@ -5622,7 +5675,7 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5622
5675
|
}
|
|
5623
5676
|
|
|
5624
5677
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5625
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5678
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5626
5679
|
return deserializeBindingIdentifier(pos);
|
|
5627
5680
|
}
|
|
5628
5681
|
|
|
@@ -5631,7 +5684,7 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5631
5684
|
}
|
|
5632
5685
|
|
|
5633
5686
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5634
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5687
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5635
5688
|
return deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5636
5689
|
}
|
|
5637
5690
|
|
|
@@ -5640,7 +5693,7 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5640
5693
|
}
|
|
5641
5694
|
|
|
5642
5695
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5643
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5696
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5644
5697
|
return deserializeBoxTSThisParameter(pos);
|
|
5645
5698
|
}
|
|
5646
5699
|
|
|
@@ -5653,15 +5706,16 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5653
5706
|
}
|
|
5654
5707
|
|
|
5655
5708
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5656
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5709
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5657
5710
|
return deserializeBoxFunctionBody(pos);
|
|
5658
5711
|
}
|
|
5659
5712
|
|
|
5660
5713
|
function deserializeVecFormalParameter(pos) {
|
|
5661
|
-
let arr = [],
|
|
5714
|
+
let arr = [],
|
|
5715
|
+
pos32 = pos >> 2;
|
|
5662
5716
|
pos = uint32[pos32];
|
|
5663
5717
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5664
|
-
for (; pos !== endPos;) {
|
|
5718
|
+
for (; pos !== endPos; ) {
|
|
5665
5719
|
arr.push(deserializeFormalParameter(pos));
|
|
5666
5720
|
pos += 72;
|
|
5667
5721
|
}
|
|
@@ -5669,10 +5723,11 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5669
5723
|
}
|
|
5670
5724
|
|
|
5671
5725
|
function deserializeVecDecorator(pos) {
|
|
5672
|
-
let arr = [],
|
|
5726
|
+
let arr = [],
|
|
5727
|
+
pos32 = pos >> 2;
|
|
5673
5728
|
pos = uint32[pos32];
|
|
5674
5729
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
5675
|
-
for (; pos !== endPos;) {
|
|
5730
|
+
for (; pos !== endPos; ) {
|
|
5676
5731
|
arr.push(deserializeDecorator(pos));
|
|
5677
5732
|
pos += 24;
|
|
5678
5733
|
}
|
|
@@ -5684,10 +5739,11 @@ function deserializeBoxClassBody(pos) {
|
|
|
5684
5739
|
}
|
|
5685
5740
|
|
|
5686
5741
|
function deserializeVecClassElement(pos) {
|
|
5687
|
-
let arr = [],
|
|
5742
|
+
let arr = [],
|
|
5743
|
+
pos32 = pos >> 2;
|
|
5688
5744
|
pos = uint32[pos32];
|
|
5689
5745
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5690
|
-
for (; pos !== endPos;) {
|
|
5746
|
+
for (; pos !== endPos; ) {
|
|
5691
5747
|
arr.push(deserializeClassElement(pos));
|
|
5692
5748
|
pos += 16;
|
|
5693
5749
|
}
|
|
@@ -5744,10 +5800,11 @@ function deserializeOptionImportPhase(pos) {
|
|
|
5744
5800
|
}
|
|
5745
5801
|
|
|
5746
5802
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
5747
|
-
let arr = [],
|
|
5803
|
+
let arr = [],
|
|
5804
|
+
pos32 = pos >> 2;
|
|
5748
5805
|
pos = uint32[pos32];
|
|
5749
5806
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5750
|
-
for (; pos !== endPos;) {
|
|
5807
|
+
for (; pos !== endPos; ) {
|
|
5751
5808
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
5752
5809
|
pos += 16;
|
|
5753
5810
|
}
|
|
@@ -5755,7 +5812,7 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5755
5812
|
}
|
|
5756
5813
|
|
|
5757
5814
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5758
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5815
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5759
5816
|
return deserializeVecImportDeclarationSpecifier(pos);
|
|
5760
5817
|
}
|
|
5761
5818
|
|
|
@@ -5764,7 +5821,7 @@ function deserializeBoxWithClause(pos) {
|
|
|
5764
5821
|
}
|
|
5765
5822
|
|
|
5766
5823
|
function deserializeOptionBoxWithClause(pos) {
|
|
5767
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5824
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5768
5825
|
return deserializeBoxWithClause(pos);
|
|
5769
5826
|
}
|
|
5770
5827
|
|
|
@@ -5781,10 +5838,11 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
|
5781
5838
|
}
|
|
5782
5839
|
|
|
5783
5840
|
function deserializeVecImportAttribute(pos) {
|
|
5784
|
-
let arr = [],
|
|
5841
|
+
let arr = [],
|
|
5842
|
+
pos32 = pos >> 2;
|
|
5785
5843
|
pos = uint32[pos32];
|
|
5786
5844
|
let endPos = pos + uint32[pos32 + 2] * 112;
|
|
5787
|
-
for (; pos !== endPos;) {
|
|
5845
|
+
for (; pos !== endPos; ) {
|
|
5788
5846
|
arr.push(deserializeImportAttribute(pos));
|
|
5789
5847
|
pos += 112;
|
|
5790
5848
|
}
|
|
@@ -5797,10 +5855,11 @@ function deserializeOptionDeclaration(pos) {
|
|
|
5797
5855
|
}
|
|
5798
5856
|
|
|
5799
5857
|
function deserializeVecExportSpecifier(pos) {
|
|
5800
|
-
let arr = [],
|
|
5858
|
+
let arr = [],
|
|
5859
|
+
pos32 = pos >> 2;
|
|
5801
5860
|
pos = uint32[pos32];
|
|
5802
5861
|
let endPos = pos + uint32[pos32 + 2] * 128;
|
|
5803
|
-
for (; pos !== endPos;) {
|
|
5862
|
+
for (; pos !== endPos; ) {
|
|
5804
5863
|
arr.push(deserializeExportSpecifier(pos));
|
|
5805
5864
|
pos += 128;
|
|
5806
5865
|
}
|
|
@@ -5826,10 +5885,11 @@ function deserializeBoxJSXOpeningElement(pos) {
|
|
|
5826
5885
|
}
|
|
5827
5886
|
|
|
5828
5887
|
function deserializeVecJSXChild(pos) {
|
|
5829
|
-
let arr = [],
|
|
5888
|
+
let arr = [],
|
|
5889
|
+
pos32 = pos >> 2;
|
|
5830
5890
|
pos = uint32[pos32];
|
|
5831
5891
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5832
|
-
for (; pos !== endPos;) {
|
|
5892
|
+
for (; pos !== endPos; ) {
|
|
5833
5893
|
arr.push(deserializeJSXChild(pos));
|
|
5834
5894
|
pos += 16;
|
|
5835
5895
|
}
|
|
@@ -5841,15 +5901,16 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
5841
5901
|
}
|
|
5842
5902
|
|
|
5843
5903
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5844
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5904
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5845
5905
|
return deserializeBoxJSXClosingElement(pos);
|
|
5846
5906
|
}
|
|
5847
5907
|
|
|
5848
5908
|
function deserializeVecJSXAttributeItem(pos) {
|
|
5849
|
-
let arr = [],
|
|
5909
|
+
let arr = [],
|
|
5910
|
+
pos32 = pos >> 2;
|
|
5850
5911
|
pos = uint32[pos32];
|
|
5851
5912
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5852
|
-
for (; pos !== endPos;) {
|
|
5913
|
+
for (; pos !== endPos; ) {
|
|
5853
5914
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
5854
5915
|
pos += 16;
|
|
5855
5916
|
}
|
|
@@ -5894,10 +5955,11 @@ function deserializeBoxJSXSpreadChild(pos) {
|
|
|
5894
5955
|
}
|
|
5895
5956
|
|
|
5896
5957
|
function deserializeVecTSEnumMember(pos) {
|
|
5897
|
-
let arr = [],
|
|
5958
|
+
let arr = [],
|
|
5959
|
+
pos32 = pos >> 2;
|
|
5898
5960
|
pos = uint32[pos32];
|
|
5899
5961
|
let endPos = pos + uint32[pos32 + 2] * 40;
|
|
5900
|
-
for (; pos !== endPos;) {
|
|
5962
|
+
for (; pos !== endPos; ) {
|
|
5901
5963
|
arr.push(deserializeTSEnumMember(pos));
|
|
5902
5964
|
pos += 40;
|
|
5903
5965
|
}
|
|
@@ -6053,10 +6115,11 @@ function deserializeBoxJSDocUnknownType(pos) {
|
|
|
6053
6115
|
}
|
|
6054
6116
|
|
|
6055
6117
|
function deserializeVecTSType(pos) {
|
|
6056
|
-
let arr = [],
|
|
6118
|
+
let arr = [],
|
|
6119
|
+
pos32 = pos >> 2;
|
|
6057
6120
|
pos = uint32[pos32];
|
|
6058
6121
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6059
|
-
for (; pos !== endPos;) {
|
|
6122
|
+
for (; pos !== endPos; ) {
|
|
6060
6123
|
arr.push(deserializeTSType(pos));
|
|
6061
6124
|
pos += 16;
|
|
6062
6125
|
}
|
|
@@ -6064,10 +6127,11 @@ function deserializeVecTSType(pos) {
|
|
|
6064
6127
|
}
|
|
6065
6128
|
|
|
6066
6129
|
function deserializeVecTSTupleElement(pos) {
|
|
6067
|
-
let arr = [],
|
|
6130
|
+
let arr = [],
|
|
6131
|
+
pos32 = pos >> 2;
|
|
6068
6132
|
pos = uint32[pos32];
|
|
6069
6133
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6070
|
-
for (; pos !== endPos;) {
|
|
6134
|
+
for (; pos !== endPos; ) {
|
|
6071
6135
|
arr.push(deserializeTSTupleElement(pos));
|
|
6072
6136
|
pos += 16;
|
|
6073
6137
|
}
|
|
@@ -6092,10 +6156,11 @@ function deserializeOptionTSType(pos) {
|
|
|
6092
6156
|
}
|
|
6093
6157
|
|
|
6094
6158
|
function deserializeVecTSTypeParameter(pos) {
|
|
6095
|
-
let arr = [],
|
|
6159
|
+
let arr = [],
|
|
6160
|
+
pos32 = pos >> 2;
|
|
6096
6161
|
pos = uint32[pos32];
|
|
6097
6162
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6098
|
-
for (; pos !== endPos;) {
|
|
6163
|
+
for (; pos !== endPos; ) {
|
|
6099
6164
|
arr.push(deserializeTSTypeParameter(pos));
|
|
6100
6165
|
pos += 80;
|
|
6101
6166
|
}
|
|
@@ -6103,10 +6168,11 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
6103
6168
|
}
|
|
6104
6169
|
|
|
6105
6170
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
6106
|
-
let arr = [],
|
|
6171
|
+
let arr = [],
|
|
6172
|
+
pos32 = pos >> 2;
|
|
6107
6173
|
pos = uint32[pos32];
|
|
6108
6174
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6109
|
-
for (; pos !== endPos;) {
|
|
6175
|
+
for (; pos !== endPos; ) {
|
|
6110
6176
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
6111
6177
|
pos += 32;
|
|
6112
6178
|
}
|
|
@@ -6118,10 +6184,11 @@ function deserializeBoxTSInterfaceBody(pos) {
|
|
|
6118
6184
|
}
|
|
6119
6185
|
|
|
6120
6186
|
function deserializeVecTSSignature(pos) {
|
|
6121
|
-
let arr = [],
|
|
6187
|
+
let arr = [],
|
|
6188
|
+
pos32 = pos >> 2;
|
|
6122
6189
|
pos = uint32[pos32];
|
|
6123
6190
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6124
|
-
for (; pos !== endPos;) {
|
|
6191
|
+
for (; pos !== endPos; ) {
|
|
6125
6192
|
arr.push(deserializeTSSignature(pos));
|
|
6126
6193
|
pos += 16;
|
|
6127
6194
|
}
|
|
@@ -6145,10 +6212,11 @@ function deserializeBoxTSMethodSignature(pos) {
|
|
|
6145
6212
|
}
|
|
6146
6213
|
|
|
6147
6214
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
6148
|
-
let arr = [],
|
|
6215
|
+
let arr = [],
|
|
6216
|
+
pos32 = pos >> 2;
|
|
6149
6217
|
pos = uint32[pos32];
|
|
6150
6218
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6151
|
-
for (; pos !== endPos;) {
|
|
6219
|
+
for (; pos !== endPos; ) {
|
|
6152
6220
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
6153
6221
|
pos += 32;
|
|
6154
6222
|
}
|
|
@@ -6169,7 +6237,7 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
6169
6237
|
}
|
|
6170
6238
|
|
|
6171
6239
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6172
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6240
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6173
6241
|
return deserializeBoxObjectExpression(pos);
|
|
6174
6242
|
}
|
|
6175
6243
|
|
|
@@ -6192,15 +6260,16 @@ function deserializeBoxTSExternalModuleReference(pos) {
|
|
|
6192
6260
|
}
|
|
6193
6261
|
|
|
6194
6262
|
function deserializeOptionNameSpan(pos) {
|
|
6195
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
6263
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
6196
6264
|
return deserializeNameSpan(pos);
|
|
6197
6265
|
}
|
|
6198
6266
|
|
|
6199
6267
|
function deserializeVecError(pos) {
|
|
6200
|
-
let arr = [],
|
|
6268
|
+
let arr = [],
|
|
6269
|
+
pos32 = pos >> 2;
|
|
6201
6270
|
pos = uint32[pos32];
|
|
6202
6271
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6203
|
-
for (; pos !== endPos;) {
|
|
6272
|
+
for (; pos !== endPos; ) {
|
|
6204
6273
|
arr.push(deserializeError(pos));
|
|
6205
6274
|
pos += 80;
|
|
6206
6275
|
}
|
|
@@ -6208,10 +6277,11 @@ function deserializeVecError(pos) {
|
|
|
6208
6277
|
}
|
|
6209
6278
|
|
|
6210
6279
|
function deserializeVecErrorLabel(pos) {
|
|
6211
|
-
let arr = [],
|
|
6280
|
+
let arr = [],
|
|
6281
|
+
pos32 = pos >> 2;
|
|
6212
6282
|
pos = uint32[pos32];
|
|
6213
6283
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
6214
|
-
for (; pos !== endPos;) {
|
|
6284
|
+
for (; pos !== endPos; ) {
|
|
6215
6285
|
arr.push(deserializeErrorLabel(pos));
|
|
6216
6286
|
pos += 24;
|
|
6217
6287
|
}
|
|
@@ -6219,10 +6289,11 @@ function deserializeVecErrorLabel(pos) {
|
|
|
6219
6289
|
}
|
|
6220
6290
|
|
|
6221
6291
|
function deserializeVecStaticImport(pos) {
|
|
6222
|
-
let arr = [],
|
|
6292
|
+
let arr = [],
|
|
6293
|
+
pos32 = pos >> 2;
|
|
6223
6294
|
pos = uint32[pos32];
|
|
6224
6295
|
let endPos = pos + uint32[pos32 + 2] * 56;
|
|
6225
|
-
for (; pos !== endPos;) {
|
|
6296
|
+
for (; pos !== endPos; ) {
|
|
6226
6297
|
arr.push(deserializeStaticImport(pos));
|
|
6227
6298
|
pos += 56;
|
|
6228
6299
|
}
|
|
@@ -6230,10 +6301,11 @@ function deserializeVecStaticImport(pos) {
|
|
|
6230
6301
|
}
|
|
6231
6302
|
|
|
6232
6303
|
function deserializeVecStaticExport(pos) {
|
|
6233
|
-
let arr = [],
|
|
6304
|
+
let arr = [],
|
|
6305
|
+
pos32 = pos >> 2;
|
|
6234
6306
|
pos = uint32[pos32];
|
|
6235
6307
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6236
|
-
for (; pos !== endPos;) {
|
|
6308
|
+
for (; pos !== endPos; ) {
|
|
6237
6309
|
arr.push(deserializeStaticExport(pos));
|
|
6238
6310
|
pos += 32;
|
|
6239
6311
|
}
|
|
@@ -6241,10 +6313,11 @@ function deserializeVecStaticExport(pos) {
|
|
|
6241
6313
|
}
|
|
6242
6314
|
|
|
6243
6315
|
function deserializeVecDynamicImport(pos) {
|
|
6244
|
-
let arr = [],
|
|
6316
|
+
let arr = [],
|
|
6317
|
+
pos32 = pos >> 2;
|
|
6245
6318
|
pos = uint32[pos32];
|
|
6246
6319
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6247
|
-
for (; pos !== endPos;) {
|
|
6320
|
+
for (; pos !== endPos; ) {
|
|
6248
6321
|
arr.push(deserializeDynamicImport(pos));
|
|
6249
6322
|
pos += 16;
|
|
6250
6323
|
}
|
|
@@ -6252,10 +6325,11 @@ function deserializeVecDynamicImport(pos) {
|
|
|
6252
6325
|
}
|
|
6253
6326
|
|
|
6254
6327
|
function deserializeVecSpan(pos) {
|
|
6255
|
-
let arr = [],
|
|
6328
|
+
let arr = [],
|
|
6329
|
+
pos32 = pos >> 2;
|
|
6256
6330
|
pos = uint32[pos32];
|
|
6257
6331
|
let endPos = pos + uint32[pos32 + 2] * 8;
|
|
6258
|
-
for (; pos !== endPos;) {
|
|
6332
|
+
for (; pos !== endPos; ) {
|
|
6259
6333
|
arr.push(deserializeSpan(pos));
|
|
6260
6334
|
pos += 8;
|
|
6261
6335
|
}
|
|
@@ -6263,10 +6337,11 @@ function deserializeVecSpan(pos) {
|
|
|
6263
6337
|
}
|
|
6264
6338
|
|
|
6265
6339
|
function deserializeVecImportEntry(pos) {
|
|
6266
|
-
let arr = [],
|
|
6340
|
+
let arr = [],
|
|
6341
|
+
pos32 = pos >> 2;
|
|
6267
6342
|
pos = uint32[pos32];
|
|
6268
6343
|
let endPos = pos + uint32[pos32 + 2] * 96;
|
|
6269
|
-
for (; pos !== endPos;) {
|
|
6344
|
+
for (; pos !== endPos; ) {
|
|
6270
6345
|
arr.push(deserializeImportEntry(pos));
|
|
6271
6346
|
pos += 96;
|
|
6272
6347
|
}
|
|
@@ -6274,10 +6349,11 @@ function deserializeVecImportEntry(pos) {
|
|
|
6274
6349
|
}
|
|
6275
6350
|
|
|
6276
6351
|
function deserializeVecExportEntry(pos) {
|
|
6277
|
-
let arr = [],
|
|
6352
|
+
let arr = [],
|
|
6353
|
+
pos32 = pos >> 2;
|
|
6278
6354
|
pos = uint32[pos32];
|
|
6279
6355
|
let endPos = pos + uint32[pos32 + 2] * 144;
|
|
6280
|
-
for (; pos !== endPos;) {
|
|
6356
|
+
for (; pos !== endPos; ) {
|
|
6281
6357
|
arr.push(deserializeExportEntry(pos));
|
|
6282
6358
|
pos += 144;
|
|
6283
6359
|
}
|