oxc-parser 0.95.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 +196 -145
- package/generated/deserialize/js_range.js +249 -176
- package/generated/deserialize/ts.js +198 -150
- package/generated/deserialize/ts_range.js +259 -188
- 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) {
|
|
@@ -43,7 +40,7 @@ function deserializeProgram(pos) {
|
|
|
43
40
|
range: [0, end],
|
|
44
41
|
};
|
|
45
42
|
program.hashbang = deserializeOptionHashbang(pos + 48);
|
|
46
|
-
let body = program.body = deserializeVecDirective(pos + 72);
|
|
43
|
+
let body = (program.body = deserializeVecDirective(pos + 72));
|
|
47
44
|
body.push(...deserializeVecStatement(pos + 96));
|
|
48
45
|
{
|
|
49
46
|
let start;
|
|
@@ -233,7 +230,8 @@ function deserializeLabelIdentifier(pos) {
|
|
|
233
230
|
}
|
|
234
231
|
|
|
235
232
|
function deserializeThisExpression(pos) {
|
|
236
|
-
let start = deserializeU32(pos),
|
|
233
|
+
let start = deserializeU32(pos),
|
|
234
|
+
end = deserializeU32(pos + 4);
|
|
237
235
|
return {
|
|
238
236
|
type: 'ThisExpression',
|
|
239
237
|
start,
|
|
@@ -553,7 +551,8 @@ function deserializeTemplateElement(pos) {
|
|
|
553
551
|
start = deserializeU32(pos) - 1,
|
|
554
552
|
end = deserializeU32(pos + 4) + 2 - tail,
|
|
555
553
|
value = deserializeTemplateElementValue(pos + 8);
|
|
556
|
-
value.cooked !== null &&
|
|
554
|
+
value.cooked !== null &&
|
|
555
|
+
deserializeBool(pos + 41) &&
|
|
557
556
|
(value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))));
|
|
558
557
|
return {
|
|
559
558
|
type: 'TemplateElement',
|
|
@@ -1110,17 +1109,18 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
1110
1109
|
key = deserializeIdentifierReference(pos + 8),
|
|
1111
1110
|
init = deserializeOptionExpression(pos + 40),
|
|
1112
1111
|
value = { ...key };
|
|
1113
|
-
init !== null &&
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1112
|
+
init !== null &&
|
|
1113
|
+
(value = {
|
|
1114
|
+
type: 'AssignmentPattern',
|
|
1115
|
+
decorators: [],
|
|
1116
|
+
left: value,
|
|
1117
|
+
right: init,
|
|
1118
|
+
optional: false,
|
|
1119
|
+
typeAnnotation: null,
|
|
1120
|
+
start,
|
|
1121
|
+
end,
|
|
1122
|
+
range: [start, end],
|
|
1123
|
+
});
|
|
1124
1124
|
node.kind = 'init';
|
|
1125
1125
|
node.key = key;
|
|
1126
1126
|
node.value = value;
|
|
@@ -1171,7 +1171,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
|
|
1173
1173
|
function deserializeSuper(pos) {
|
|
1174
|
-
let start = deserializeU32(pos),
|
|
1174
|
+
let start = deserializeU32(pos),
|
|
1175
|
+
end = deserializeU32(pos + 4);
|
|
1175
1176
|
return {
|
|
1176
1177
|
type: 'Super',
|
|
1177
1178
|
start,
|
|
@@ -1232,8 +1233,8 @@ function deserializeParenthesizedExpression(pos) {
|
|
|
1232
1233
|
node = {
|
|
1233
1234
|
type: 'ParenthesizedExpression',
|
|
1234
1235
|
expression: null,
|
|
1235
|
-
start: start = deserializeU32(pos),
|
|
1236
|
-
end: end = deserializeU32(pos + 4),
|
|
1236
|
+
start: (start = deserializeU32(pos)),
|
|
1237
|
+
end: (end = deserializeU32(pos + 4)),
|
|
1237
1238
|
range: [start, end],
|
|
1238
1239
|
};
|
|
1239
1240
|
node.expression = deserializeExpression(pos + 8);
|
|
@@ -1328,7 +1329,8 @@ function deserializeDirective(pos) {
|
|
|
1328
1329
|
}
|
|
1329
1330
|
|
|
1330
1331
|
function deserializeHashbang(pos) {
|
|
1331
|
-
let start = deserializeU32(pos),
|
|
1332
|
+
let start = deserializeU32(pos),
|
|
1333
|
+
end = deserializeU32(pos + 4);
|
|
1332
1334
|
return {
|
|
1333
1335
|
type: 'Hashbang',
|
|
1334
1336
|
value: deserializeStr(pos + 8),
|
|
@@ -1426,7 +1428,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1426
1428
|
}
|
|
1427
1429
|
|
|
1428
1430
|
function deserializeEmptyStatement(pos) {
|
|
1429
|
-
let start = deserializeU32(pos),
|
|
1431
|
+
let start = deserializeU32(pos),
|
|
1432
|
+
end = deserializeU32(pos + 4);
|
|
1430
1433
|
return {
|
|
1431
1434
|
type: 'EmptyStatement',
|
|
1432
1435
|
start,
|
|
@@ -1841,7 +1844,8 @@ function deserializeCatchParameter(pos) {
|
|
|
1841
1844
|
}
|
|
1842
1845
|
|
|
1843
1846
|
function deserializeDebuggerStatement(pos) {
|
|
1844
|
-
let start = deserializeU32(pos),
|
|
1847
|
+
let start = deserializeU32(pos),
|
|
1848
|
+
end = deserializeU32(pos + 4);
|
|
1845
1849
|
return {
|
|
1846
1850
|
type: 'DebuggerStatement',
|
|
1847
1851
|
start,
|
|
@@ -2035,8 +2039,8 @@ function deserializeFunctionType(pos) {
|
|
|
2035
2039
|
|
|
2036
2040
|
function deserializeFormalParameters(pos) {
|
|
2037
2041
|
let params = deserializeVecFormalParameter(pos + 8);
|
|
2038
|
-
if (uint32[pos + 32 >> 2] !== 0 && uint32[pos + 36 >> 2] !== 0) {
|
|
2039
|
-
pos = uint32[pos + 32 >> 2];
|
|
2042
|
+
if (uint32[(pos + 32) >> 2] !== 0 && uint32[(pos + 36) >> 2] !== 0) {
|
|
2043
|
+
pos = uint32[(pos + 32) >> 2];
|
|
2040
2044
|
let start,
|
|
2041
2045
|
end,
|
|
2042
2046
|
rest = {
|
|
@@ -2046,8 +2050,8 @@ function deserializeFormalParameters(pos) {
|
|
|
2046
2050
|
optional: deserializeBool(pos + 32),
|
|
2047
2051
|
typeAnnotation: null,
|
|
2048
2052
|
value: null,
|
|
2049
|
-
start: start = deserializeU32(pos),
|
|
2050
|
-
end: end = deserializeU32(pos + 4),
|
|
2053
|
+
start: (start = deserializeU32(pos)),
|
|
2054
|
+
end: (end = deserializeU32(pos + 4)),
|
|
2051
2055
|
range: [start, end],
|
|
2052
2056
|
};
|
|
2053
2057
|
rest.argument = deserializeBindingPatternKind(pos + 8);
|
|
@@ -2078,8 +2082,8 @@ function deserializeFormalParameter(pos) {
|
|
|
2078
2082
|
parameter: null,
|
|
2079
2083
|
readonly,
|
|
2080
2084
|
static: false,
|
|
2081
|
-
start: start = deserializeU32(pos),
|
|
2082
|
-
end: end = deserializeU32(pos + 4),
|
|
2085
|
+
start: (start = deserializeU32(pos)),
|
|
2086
|
+
end: (end = deserializeU32(pos + 4)),
|
|
2083
2087
|
range: [start, end],
|
|
2084
2088
|
};
|
|
2085
2089
|
param.decorators = deserializeVecDecorator(pos + 8);
|
|
@@ -2309,7 +2313,8 @@ function deserializeMethodDefinitionKind(pos) {
|
|
|
2309
2313
|
}
|
|
2310
2314
|
|
|
2311
2315
|
function deserializePrivateIdentifier(pos) {
|
|
2312
|
-
let start = deserializeU32(pos),
|
|
2316
|
+
let start = deserializeU32(pos),
|
|
2317
|
+
end = deserializeU32(pos + 4);
|
|
2313
2318
|
return {
|
|
2314
2319
|
type: 'PrivateIdentifier',
|
|
2315
2320
|
name: deserializeStr(pos + 8),
|
|
@@ -2751,7 +2756,8 @@ function deserializeNullLiteral(pos) {
|
|
|
2751
2756
|
}
|
|
2752
2757
|
|
|
2753
2758
|
function deserializeNumericLiteral(pos) {
|
|
2754
|
-
let start = deserializeU32(pos),
|
|
2759
|
+
let start = deserializeU32(pos),
|
|
2760
|
+
end = deserializeU32(pos + 4);
|
|
2755
2761
|
return {
|
|
2756
2762
|
type: 'Literal',
|
|
2757
2763
|
value: deserializeF64(pos + 8),
|
|
@@ -2828,7 +2834,8 @@ function deserializeRegExp(pos) {
|
|
|
2828
2834
|
}
|
|
2829
2835
|
|
|
2830
2836
|
function deserializeRegExpFlags(pos) {
|
|
2831
|
-
let flagBits = deserializeU8(pos),
|
|
2837
|
+
let flagBits = deserializeU8(pos),
|
|
2838
|
+
flags = '';
|
|
2832
2839
|
// Alphabetical order
|
|
2833
2840
|
flagBits & 64 && (flags += 'd');
|
|
2834
2841
|
flagBits & 1 && (flags += 'g');
|
|
@@ -2915,7 +2922,8 @@ function deserializeJSXFragment(pos) {
|
|
|
2915
2922
|
}
|
|
2916
2923
|
|
|
2917
2924
|
function deserializeJSXOpeningFragment(pos) {
|
|
2918
|
-
let start = deserializeU32(pos),
|
|
2925
|
+
let start = deserializeU32(pos),
|
|
2926
|
+
end = deserializeU32(pos + 4);
|
|
2919
2927
|
return {
|
|
2920
2928
|
type: 'JSXOpeningFragment',
|
|
2921
2929
|
start,
|
|
@@ -2925,7 +2933,8 @@ function deserializeJSXOpeningFragment(pos) {
|
|
|
2925
2933
|
}
|
|
2926
2934
|
|
|
2927
2935
|
function deserializeJSXClosingFragment(pos) {
|
|
2928
|
-
let start = deserializeU32(pos),
|
|
2936
|
+
let start = deserializeU32(pos),
|
|
2937
|
+
end = deserializeU32(pos + 4);
|
|
2929
2938
|
return {
|
|
2930
2939
|
type: 'JSXClosingFragment',
|
|
2931
2940
|
start,
|
|
@@ -3134,7 +3143,8 @@ function deserializeJSXExpression(pos) {
|
|
|
3134
3143
|
}
|
|
3135
3144
|
|
|
3136
3145
|
function deserializeJSXEmptyExpression(pos) {
|
|
3137
|
-
let start = deserializeU32(pos),
|
|
3146
|
+
let start = deserializeU32(pos),
|
|
3147
|
+
end = deserializeU32(pos + 4);
|
|
3138
3148
|
return {
|
|
3139
3149
|
type: 'JSXEmptyExpression',
|
|
3140
3150
|
start,
|
|
@@ -3211,7 +3221,8 @@ function deserializeJSXAttributeValue(pos) {
|
|
|
3211
3221
|
}
|
|
3212
3222
|
|
|
3213
3223
|
function deserializeJSXIdentifier(pos) {
|
|
3214
|
-
let start = deserializeU32(pos),
|
|
3224
|
+
let start = deserializeU32(pos),
|
|
3225
|
+
end = deserializeU32(pos + 4);
|
|
3215
3226
|
return {
|
|
3216
3227
|
type: 'JSXIdentifier',
|
|
3217
3228
|
name: deserializeStr(pos + 8),
|
|
@@ -3253,7 +3264,8 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3253
3264
|
}
|
|
3254
3265
|
|
|
3255
3266
|
function deserializeJSXText(pos) {
|
|
3256
|
-
let start = deserializeU32(pos),
|
|
3267
|
+
let start = deserializeU32(pos),
|
|
3268
|
+
end = deserializeU32(pos + 4);
|
|
3257
3269
|
return {
|
|
3258
3270
|
type: 'JSXText',
|
|
3259
3271
|
value: deserializeStr(pos + 8),
|
|
@@ -3532,8 +3544,8 @@ function deserializeTSParenthesizedType(pos) {
|
|
|
3532
3544
|
node = {
|
|
3533
3545
|
type: 'TSParenthesizedType',
|
|
3534
3546
|
typeAnnotation: null,
|
|
3535
|
-
start: start = deserializeU32(pos),
|
|
3536
|
-
end: end = deserializeU32(pos + 4),
|
|
3547
|
+
start: (start = deserializeU32(pos)),
|
|
3548
|
+
end: (end = deserializeU32(pos + 4)),
|
|
3537
3549
|
range: [start, end],
|
|
3538
3550
|
};
|
|
3539
3551
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
@@ -3744,7 +3756,8 @@ function deserializeTSTupleElement(pos) {
|
|
|
3744
3756
|
}
|
|
3745
3757
|
|
|
3746
3758
|
function deserializeTSAnyKeyword(pos) {
|
|
3747
|
-
let start = deserializeU32(pos),
|
|
3759
|
+
let start = deserializeU32(pos),
|
|
3760
|
+
end = deserializeU32(pos + 4);
|
|
3748
3761
|
return {
|
|
3749
3762
|
type: 'TSAnyKeyword',
|
|
3750
3763
|
start,
|
|
@@ -3754,7 +3767,8 @@ function deserializeTSAnyKeyword(pos) {
|
|
|
3754
3767
|
}
|
|
3755
3768
|
|
|
3756
3769
|
function deserializeTSStringKeyword(pos) {
|
|
3757
|
-
let start = deserializeU32(pos),
|
|
3770
|
+
let start = deserializeU32(pos),
|
|
3771
|
+
end = deserializeU32(pos + 4);
|
|
3758
3772
|
return {
|
|
3759
3773
|
type: 'TSStringKeyword',
|
|
3760
3774
|
start,
|
|
@@ -3764,7 +3778,8 @@ function deserializeTSStringKeyword(pos) {
|
|
|
3764
3778
|
}
|
|
3765
3779
|
|
|
3766
3780
|
function deserializeTSBooleanKeyword(pos) {
|
|
3767
|
-
let start = deserializeU32(pos),
|
|
3781
|
+
let start = deserializeU32(pos),
|
|
3782
|
+
end = deserializeU32(pos + 4);
|
|
3768
3783
|
return {
|
|
3769
3784
|
type: 'TSBooleanKeyword',
|
|
3770
3785
|
start,
|
|
@@ -3774,7 +3789,8 @@ function deserializeTSBooleanKeyword(pos) {
|
|
|
3774
3789
|
}
|
|
3775
3790
|
|
|
3776
3791
|
function deserializeTSNumberKeyword(pos) {
|
|
3777
|
-
let start = deserializeU32(pos),
|
|
3792
|
+
let start = deserializeU32(pos),
|
|
3793
|
+
end = deserializeU32(pos + 4);
|
|
3778
3794
|
return {
|
|
3779
3795
|
type: 'TSNumberKeyword',
|
|
3780
3796
|
start,
|
|
@@ -3784,7 +3800,8 @@ function deserializeTSNumberKeyword(pos) {
|
|
|
3784
3800
|
}
|
|
3785
3801
|
|
|
3786
3802
|
function deserializeTSNeverKeyword(pos) {
|
|
3787
|
-
let start = deserializeU32(pos),
|
|
3803
|
+
let start = deserializeU32(pos),
|
|
3804
|
+
end = deserializeU32(pos + 4);
|
|
3788
3805
|
return {
|
|
3789
3806
|
type: 'TSNeverKeyword',
|
|
3790
3807
|
start,
|
|
@@ -3794,7 +3811,8 @@ function deserializeTSNeverKeyword(pos) {
|
|
|
3794
3811
|
}
|
|
3795
3812
|
|
|
3796
3813
|
function deserializeTSIntrinsicKeyword(pos) {
|
|
3797
|
-
let start = deserializeU32(pos),
|
|
3814
|
+
let start = deserializeU32(pos),
|
|
3815
|
+
end = deserializeU32(pos + 4);
|
|
3798
3816
|
return {
|
|
3799
3817
|
type: 'TSIntrinsicKeyword',
|
|
3800
3818
|
start,
|
|
@@ -3804,7 +3822,8 @@ function deserializeTSIntrinsicKeyword(pos) {
|
|
|
3804
3822
|
}
|
|
3805
3823
|
|
|
3806
3824
|
function deserializeTSUnknownKeyword(pos) {
|
|
3807
|
-
let start = deserializeU32(pos),
|
|
3825
|
+
let start = deserializeU32(pos),
|
|
3826
|
+
end = deserializeU32(pos + 4);
|
|
3808
3827
|
return {
|
|
3809
3828
|
type: 'TSUnknownKeyword',
|
|
3810
3829
|
start,
|
|
@@ -3814,7 +3833,8 @@ function deserializeTSUnknownKeyword(pos) {
|
|
|
3814
3833
|
}
|
|
3815
3834
|
|
|
3816
3835
|
function deserializeTSNullKeyword(pos) {
|
|
3817
|
-
let start = deserializeU32(pos),
|
|
3836
|
+
let start = deserializeU32(pos),
|
|
3837
|
+
end = deserializeU32(pos + 4);
|
|
3818
3838
|
return {
|
|
3819
3839
|
type: 'TSNullKeyword',
|
|
3820
3840
|
start,
|
|
@@ -3824,7 +3844,8 @@ function deserializeTSNullKeyword(pos) {
|
|
|
3824
3844
|
}
|
|
3825
3845
|
|
|
3826
3846
|
function deserializeTSUndefinedKeyword(pos) {
|
|
3827
|
-
let start = deserializeU32(pos),
|
|
3847
|
+
let start = deserializeU32(pos),
|
|
3848
|
+
end = deserializeU32(pos + 4);
|
|
3828
3849
|
return {
|
|
3829
3850
|
type: 'TSUndefinedKeyword',
|
|
3830
3851
|
start,
|
|
@@ -3834,7 +3855,8 @@ function deserializeTSUndefinedKeyword(pos) {
|
|
|
3834
3855
|
}
|
|
3835
3856
|
|
|
3836
3857
|
function deserializeTSVoidKeyword(pos) {
|
|
3837
|
-
let start = deserializeU32(pos),
|
|
3858
|
+
let start = deserializeU32(pos),
|
|
3859
|
+
end = deserializeU32(pos + 4);
|
|
3838
3860
|
return {
|
|
3839
3861
|
type: 'TSVoidKeyword',
|
|
3840
3862
|
start,
|
|
@@ -3844,7 +3866,8 @@ function deserializeTSVoidKeyword(pos) {
|
|
|
3844
3866
|
}
|
|
3845
3867
|
|
|
3846
3868
|
function deserializeTSSymbolKeyword(pos) {
|
|
3847
|
-
let start = deserializeU32(pos),
|
|
3869
|
+
let start = deserializeU32(pos),
|
|
3870
|
+
end = deserializeU32(pos + 4);
|
|
3848
3871
|
return {
|
|
3849
3872
|
type: 'TSSymbolKeyword',
|
|
3850
3873
|
start,
|
|
@@ -3854,7 +3877,8 @@ function deserializeTSSymbolKeyword(pos) {
|
|
|
3854
3877
|
}
|
|
3855
3878
|
|
|
3856
3879
|
function deserializeTSThisType(pos) {
|
|
3857
|
-
let start = deserializeU32(pos),
|
|
3880
|
+
let start = deserializeU32(pos),
|
|
3881
|
+
end = deserializeU32(pos + 4);
|
|
3858
3882
|
return {
|
|
3859
3883
|
type: 'TSThisType',
|
|
3860
3884
|
start,
|
|
@@ -3864,7 +3888,8 @@ function deserializeTSThisType(pos) {
|
|
|
3864
3888
|
}
|
|
3865
3889
|
|
|
3866
3890
|
function deserializeTSObjectKeyword(pos) {
|
|
3867
|
-
let start = deserializeU32(pos),
|
|
3891
|
+
let start = deserializeU32(pos),
|
|
3892
|
+
end = deserializeU32(pos + 4);
|
|
3868
3893
|
return {
|
|
3869
3894
|
type: 'TSObjectKeyword',
|
|
3870
3895
|
start,
|
|
@@ -3874,7 +3899,8 @@ function deserializeTSObjectKeyword(pos) {
|
|
|
3874
3899
|
}
|
|
3875
3900
|
|
|
3876
3901
|
function deserializeTSBigIntKeyword(pos) {
|
|
3877
|
-
let start = deserializeU32(pos),
|
|
3902
|
+
let start = deserializeU32(pos),
|
|
3903
|
+
end = deserializeU32(pos + 4);
|
|
3878
3904
|
return {
|
|
3879
3905
|
type: 'TSBigIntKeyword',
|
|
3880
3906
|
start,
|
|
@@ -4026,17 +4052,17 @@ function deserializeTSClassImplements(pos) {
|
|
|
4026
4052
|
{ right } = expression,
|
|
4027
4053
|
start,
|
|
4028
4054
|
end,
|
|
4029
|
-
previous = expression = {
|
|
4055
|
+
previous = (expression = {
|
|
4030
4056
|
type: 'MemberExpression',
|
|
4031
4057
|
object,
|
|
4032
4058
|
property: right,
|
|
4033
4059
|
optional: false,
|
|
4034
4060
|
computed: false,
|
|
4035
|
-
start: start = expression.start,
|
|
4036
|
-
end: end = expression.end,
|
|
4061
|
+
start: (start = expression.start),
|
|
4062
|
+
end: (end = expression.end),
|
|
4037
4063
|
range: [start, end],
|
|
4038
|
-
};
|
|
4039
|
-
for (; object.type === 'TSQualifiedName';) {
|
|
4064
|
+
});
|
|
4065
|
+
for (; object.type === 'TSQualifiedName'; ) {
|
|
4040
4066
|
let { left, right } = object;
|
|
4041
4067
|
previous = previous.object = {
|
|
4042
4068
|
type: 'MemberExpression',
|
|
@@ -4044,8 +4070,8 @@ function deserializeTSClassImplements(pos) {
|
|
|
4044
4070
|
property: right,
|
|
4045
4071
|
optional: false,
|
|
4046
4072
|
computed: false,
|
|
4047
|
-
start: start = object.start,
|
|
4048
|
-
end: end = object.end,
|
|
4073
|
+
start: (start = object.start),
|
|
4074
|
+
end: (end = object.end),
|
|
4049
4075
|
range: [start, end],
|
|
4050
4076
|
};
|
|
4051
4077
|
object = left;
|
|
@@ -4340,8 +4366,8 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4340
4366
|
type: 'TSQualifiedName',
|
|
4341
4367
|
left: id,
|
|
4342
4368
|
right: innerId,
|
|
4343
|
-
start: start = id.start,
|
|
4344
|
-
end: end = innerId.end,
|
|
4369
|
+
start: (start = id.start),
|
|
4370
|
+
end: (end = innerId.end),
|
|
4345
4371
|
range: [start, end],
|
|
4346
4372
|
};
|
|
4347
4373
|
} else {
|
|
@@ -4354,13 +4380,14 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4354
4380
|
if (innerId.left.type === 'Identifier') break;
|
|
4355
4381
|
innerId = innerId.left;
|
|
4356
4382
|
}
|
|
4357
|
-
let end,
|
|
4383
|
+
let end,
|
|
4384
|
+
right = innerId.left;
|
|
4358
4385
|
innerId.left = {
|
|
4359
4386
|
type: 'TSQualifiedName',
|
|
4360
4387
|
left: id,
|
|
4361
4388
|
right,
|
|
4362
4389
|
start,
|
|
4363
|
-
end: end = right.end,
|
|
4390
|
+
end: (end = right.end),
|
|
4364
4391
|
range: [start, end],
|
|
4365
4392
|
};
|
|
4366
4393
|
}
|
|
@@ -4556,7 +4583,7 @@ function deserializeTSConstructorType(pos) {
|
|
|
4556
4583
|
end = deserializeU32(pos + 4),
|
|
4557
4584
|
node = {
|
|
4558
4585
|
type: 'TSConstructorType',
|
|
4559
|
-
abstract: deserializeBool(pos +
|
|
4586
|
+
abstract: deserializeBool(pos + 36),
|
|
4560
4587
|
typeParameters: null,
|
|
4561
4588
|
params: null,
|
|
4562
4589
|
returnType: null,
|
|
@@ -4835,7 +4862,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4835
4862
|
}
|
|
4836
4863
|
|
|
4837
4864
|
function deserializeJSDocUnknownType(pos) {
|
|
4838
|
-
let start = deserializeU32(pos),
|
|
4865
|
+
let start = deserializeU32(pos),
|
|
4866
|
+
end = deserializeU32(pos + 4);
|
|
4839
4867
|
return {
|
|
4840
4868
|
type: 'TSJSDocUnknownType',
|
|
4841
4869
|
start,
|
|
@@ -4858,21 +4886,19 @@ function deserializeCommentKind(pos) {
|
|
|
4858
4886
|
function deserializeComment(pos) {
|
|
4859
4887
|
let type = deserializeCommentKind(pos + 12),
|
|
4860
4888
|
start = deserializeU32(pos),
|
|
4861
|
-
end = deserializeU32(pos + 4)
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
endCut = type === 'Line' ? 0 : 2;
|
|
4870
|
-
node.value = sourceText.slice(start + 2, end - endCut);
|
|
4871
|
-
return node;
|
|
4889
|
+
end = deserializeU32(pos + 4);
|
|
4890
|
+
return {
|
|
4891
|
+
type,
|
|
4892
|
+
value: sourceText.slice(start + 2, end - (type === 'Line' ? 0 : 2)),
|
|
4893
|
+
start,
|
|
4894
|
+
end,
|
|
4895
|
+
range: [start, end],
|
|
4896
|
+
};
|
|
4872
4897
|
}
|
|
4873
4898
|
|
|
4874
4899
|
function deserializeNameSpan(pos) {
|
|
4875
|
-
let start = deserializeU32(pos),
|
|
4900
|
+
let start = deserializeU32(pos),
|
|
4901
|
+
end = deserializeU32(pos + 4);
|
|
4876
4902
|
return {
|
|
4877
4903
|
value: deserializeStr(pos + 8),
|
|
4878
4904
|
start,
|
|
@@ -4923,7 +4949,8 @@ function deserializeImportImportName(pos) {
|
|
|
4923
4949
|
}
|
|
4924
4950
|
|
|
4925
4951
|
function deserializeExportEntry(pos) {
|
|
4926
|
-
let start = deserializeU32(pos),
|
|
4952
|
+
let start = deserializeU32(pos),
|
|
4953
|
+
end = deserializeU32(pos + 4);
|
|
4927
4954
|
return {
|
|
4928
4955
|
moduleRequest: deserializeOptionNameSpan(pos + 16),
|
|
4929
4956
|
importName: deserializeExportImportName(pos + 40),
|
|
@@ -5043,7 +5070,8 @@ function deserializeExportLocalName(pos) {
|
|
|
5043
5070
|
}
|
|
5044
5071
|
|
|
5045
5072
|
function deserializeDynamicImport(pos) {
|
|
5046
|
-
let start = deserializeU32(pos),
|
|
5073
|
+
let start = deserializeU32(pos),
|
|
5074
|
+
end = deserializeU32(pos + 4);
|
|
5047
5075
|
return {
|
|
5048
5076
|
moduleRequest: deserializeSpan(pos + 8),
|
|
5049
5077
|
start,
|
|
@@ -5238,7 +5266,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
5238
5266
|
}
|
|
5239
5267
|
|
|
5240
5268
|
function deserializeErrorLabel(pos) {
|
|
5241
|
-
let start = deserializeU32(pos),
|
|
5269
|
+
let start = deserializeU32(pos),
|
|
5270
|
+
end = deserializeU32(pos + 4);
|
|
5242
5271
|
return {
|
|
5243
5272
|
message: deserializeOptionStr(pos + 8),
|
|
5244
5273
|
start,
|
|
@@ -5258,7 +5287,8 @@ function deserializeEcmaScriptModule(pos) {
|
|
|
5258
5287
|
}
|
|
5259
5288
|
|
|
5260
5289
|
function deserializeStaticImport(pos) {
|
|
5261
|
-
let start = deserializeU32(pos),
|
|
5290
|
+
let start = deserializeU32(pos),
|
|
5291
|
+
end = deserializeU32(pos + 4);
|
|
5262
5292
|
return {
|
|
5263
5293
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
5264
5294
|
entries: deserializeVecImportEntry(pos + 32),
|
|
@@ -5269,7 +5299,8 @@ function deserializeStaticImport(pos) {
|
|
|
5269
5299
|
}
|
|
5270
5300
|
|
|
5271
5301
|
function deserializeStaticExport(pos) {
|
|
5272
|
-
let start = deserializeU32(pos),
|
|
5302
|
+
let start = deserializeU32(pos),
|
|
5303
|
+
end = deserializeU32(pos + 4);
|
|
5273
5304
|
return {
|
|
5274
5305
|
entries: deserializeVecExportEntry(pos + 8),
|
|
5275
5306
|
start,
|
|
@@ -5287,7 +5318,8 @@ function deserializeU8(pos) {
|
|
|
5287
5318
|
}
|
|
5288
5319
|
|
|
5289
5320
|
function deserializeStr(pos) {
|
|
5290
|
-
let pos32 = pos >> 2,
|
|
5321
|
+
let pos32 = pos >> 2,
|
|
5322
|
+
len = uint32[pos32 + 2];
|
|
5291
5323
|
if (len === 0) return '';
|
|
5292
5324
|
pos = uint32[pos32];
|
|
5293
5325
|
if (sourceIsAscii && pos < sourceByteLen) return sourceText.substr(pos, len);
|
|
@@ -5296,7 +5328,8 @@ function deserializeStr(pos) {
|
|
|
5296
5328
|
let end = pos + len;
|
|
5297
5329
|
if (len > 50) return decodeStr(uint8.subarray(pos, end));
|
|
5298
5330
|
// Shorter strings decode by hand to avoid native call
|
|
5299
|
-
let out = '',
|
|
5331
|
+
let out = '',
|
|
5332
|
+
c;
|
|
5300
5333
|
do {
|
|
5301
5334
|
c = uint8[pos++];
|
|
5302
5335
|
if (c < 128) out += fromCodePoint(c);
|
|
@@ -5309,10 +5342,11 @@ function deserializeStr(pos) {
|
|
|
5309
5342
|
}
|
|
5310
5343
|
|
|
5311
5344
|
function deserializeVecComment(pos) {
|
|
5312
|
-
let arr = [],
|
|
5345
|
+
let arr = [],
|
|
5346
|
+
pos32 = pos >> 2;
|
|
5313
5347
|
pos = uint32[pos32];
|
|
5314
5348
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5315
|
-
for (; pos !== endPos;) {
|
|
5349
|
+
for (; pos !== endPos; ) {
|
|
5316
5350
|
arr.push(deserializeComment(pos));
|
|
5317
5351
|
pos += 16;
|
|
5318
5352
|
}
|
|
@@ -5320,15 +5354,16 @@ function deserializeVecComment(pos) {
|
|
|
5320
5354
|
}
|
|
5321
5355
|
|
|
5322
5356
|
function deserializeOptionHashbang(pos) {
|
|
5323
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5357
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5324
5358
|
return deserializeHashbang(pos);
|
|
5325
5359
|
}
|
|
5326
5360
|
|
|
5327
5361
|
function deserializeVecDirective(pos) {
|
|
5328
|
-
let arr = [],
|
|
5362
|
+
let arr = [],
|
|
5363
|
+
pos32 = pos >> 2;
|
|
5329
5364
|
pos = uint32[pos32];
|
|
5330
5365
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5331
|
-
for (; pos !== endPos;) {
|
|
5366
|
+
for (; pos !== endPos; ) {
|
|
5332
5367
|
arr.push(deserializeDirective(pos));
|
|
5333
5368
|
pos += 72;
|
|
5334
5369
|
}
|
|
@@ -5336,10 +5371,11 @@ function deserializeVecDirective(pos) {
|
|
|
5336
5371
|
}
|
|
5337
5372
|
|
|
5338
5373
|
function deserializeVecStatement(pos) {
|
|
5339
|
-
let arr = [],
|
|
5374
|
+
let arr = [],
|
|
5375
|
+
pos32 = pos >> 2;
|
|
5340
5376
|
pos = uint32[pos32];
|
|
5341
5377
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5342
|
-
for (; pos !== endPos;) {
|
|
5378
|
+
for (; pos !== endPos; ) {
|
|
5343
5379
|
arr.push(deserializeStatement(pos));
|
|
5344
5380
|
pos += 16;
|
|
5345
5381
|
}
|
|
@@ -5507,10 +5543,11 @@ function deserializeBoxV8IntrinsicExpression(pos) {
|
|
|
5507
5543
|
}
|
|
5508
5544
|
|
|
5509
5545
|
function deserializeVecArrayExpressionElement(pos) {
|
|
5510
|
-
let arr = [],
|
|
5546
|
+
let arr = [],
|
|
5547
|
+
pos32 = pos >> 2;
|
|
5511
5548
|
pos = uint32[pos32];
|
|
5512
5549
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5513
|
-
for (; pos !== endPos;) {
|
|
5550
|
+
for (; pos !== endPos; ) {
|
|
5514
5551
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
5515
5552
|
pos += 16;
|
|
5516
5553
|
}
|
|
@@ -5522,10 +5559,11 @@ function deserializeBoxSpreadElement(pos) {
|
|
|
5522
5559
|
}
|
|
5523
5560
|
|
|
5524
5561
|
function deserializeVecObjectPropertyKind(pos) {
|
|
5525
|
-
let arr = [],
|
|
5562
|
+
let arr = [],
|
|
5563
|
+
pos32 = pos >> 2;
|
|
5526
5564
|
pos = uint32[pos32];
|
|
5527
5565
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5528
|
-
for (; pos !== endPos;) {
|
|
5566
|
+
for (; pos !== endPos; ) {
|
|
5529
5567
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
5530
5568
|
pos += 16;
|
|
5531
5569
|
}
|
|
@@ -5549,10 +5587,11 @@ function deserializeBoxPrivateIdentifier(pos) {
|
|
|
5549
5587
|
}
|
|
5550
5588
|
|
|
5551
5589
|
function deserializeVecTemplateElement(pos) {
|
|
5552
|
-
let arr = [],
|
|
5590
|
+
let arr = [],
|
|
5591
|
+
pos32 = pos >> 2;
|
|
5553
5592
|
pos = uint32[pos32];
|
|
5554
5593
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5555
|
-
for (; pos !== endPos;) {
|
|
5594
|
+
for (; pos !== endPos; ) {
|
|
5556
5595
|
arr.push(deserializeTemplateElement(pos));
|
|
5557
5596
|
pos += 48;
|
|
5558
5597
|
}
|
|
@@ -5560,10 +5599,11 @@ function deserializeVecTemplateElement(pos) {
|
|
|
5560
5599
|
}
|
|
5561
5600
|
|
|
5562
5601
|
function deserializeVecExpression(pos) {
|
|
5563
|
-
let arr = [],
|
|
5602
|
+
let arr = [],
|
|
5603
|
+
pos32 = pos >> 2;
|
|
5564
5604
|
pos = uint32[pos32];
|
|
5565
5605
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5566
|
-
for (; pos !== endPos;) {
|
|
5606
|
+
for (; pos !== endPos; ) {
|
|
5567
5607
|
arr.push(deserializeExpression(pos));
|
|
5568
5608
|
pos += 16;
|
|
5569
5609
|
}
|
|
@@ -5575,12 +5615,12 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
5575
5615
|
}
|
|
5576
5616
|
|
|
5577
5617
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5578
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5618
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5579
5619
|
return deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5580
5620
|
}
|
|
5581
5621
|
|
|
5582
5622
|
function deserializeOptionStr(pos) {
|
|
5583
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5623
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5584
5624
|
return deserializeStr(pos);
|
|
5585
5625
|
}
|
|
5586
5626
|
|
|
@@ -5597,10 +5637,11 @@ function deserializeBoxPrivateFieldExpression(pos) {
|
|
|
5597
5637
|
}
|
|
5598
5638
|
|
|
5599
5639
|
function deserializeVecArgument(pos) {
|
|
5600
|
-
let arr = [],
|
|
5640
|
+
let arr = [],
|
|
5641
|
+
pos32 = pos >> 2;
|
|
5601
5642
|
pos = uint32[pos32];
|
|
5602
5643
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5603
|
-
for (; pos !== endPos;) {
|
|
5644
|
+
for (; pos !== endPos; ) {
|
|
5604
5645
|
arr.push(deserializeArgument(pos));
|
|
5605
5646
|
pos += 16;
|
|
5606
5647
|
}
|
|
@@ -5621,10 +5662,11 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5621
5662
|
}
|
|
5622
5663
|
|
|
5623
5664
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
5624
|
-
let arr = [],
|
|
5665
|
+
let arr = [],
|
|
5666
|
+
pos32 = pos >> 2;
|
|
5625
5667
|
pos = uint32[pos32];
|
|
5626
5668
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5627
|
-
for (; pos !== endPos;) {
|
|
5669
|
+
for (; pos !== endPos; ) {
|
|
5628
5670
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
5629
5671
|
pos += 16;
|
|
5630
5672
|
}
|
|
@@ -5636,15 +5678,16 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
5636
5678
|
}
|
|
5637
5679
|
|
|
5638
5680
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5639
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5681
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5640
5682
|
return deserializeBoxAssignmentTargetRest(pos);
|
|
5641
5683
|
}
|
|
5642
5684
|
|
|
5643
5685
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
5644
|
-
let arr = [],
|
|
5686
|
+
let arr = [],
|
|
5687
|
+
pos32 = pos >> 2;
|
|
5645
5688
|
pos = uint32[pos32];
|
|
5646
5689
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5647
|
-
for (; pos !== endPos;) {
|
|
5690
|
+
for (; pos !== endPos; ) {
|
|
5648
5691
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
5649
5692
|
pos += 16;
|
|
5650
5693
|
}
|
|
@@ -5765,10 +5808,11 @@ function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
|
5765
5808
|
}
|
|
5766
5809
|
|
|
5767
5810
|
function deserializeVecVariableDeclarator(pos) {
|
|
5768
|
-
let arr = [],
|
|
5811
|
+
let arr = [],
|
|
5812
|
+
pos32 = pos >> 2;
|
|
5769
5813
|
pos = uint32[pos32];
|
|
5770
5814
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5771
|
-
for (; pos !== endPos;) {
|
|
5815
|
+
for (; pos !== endPos; ) {
|
|
5772
5816
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5773
5817
|
pos += 64;
|
|
5774
5818
|
}
|
|
@@ -5786,15 +5830,16 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5786
5830
|
}
|
|
5787
5831
|
|
|
5788
5832
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5789
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5833
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5790
5834
|
return deserializeLabelIdentifier(pos);
|
|
5791
5835
|
}
|
|
5792
5836
|
|
|
5793
5837
|
function deserializeVecSwitchCase(pos) {
|
|
5794
|
-
let arr = [],
|
|
5838
|
+
let arr = [],
|
|
5839
|
+
pos32 = pos >> 2;
|
|
5795
5840
|
pos = uint32[pos32];
|
|
5796
5841
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5797
|
-
for (; pos !== endPos;) {
|
|
5842
|
+
for (; pos !== endPos; ) {
|
|
5798
5843
|
arr.push(deserializeSwitchCase(pos));
|
|
5799
5844
|
pos += 48;
|
|
5800
5845
|
}
|
|
@@ -5806,12 +5851,12 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5806
5851
|
}
|
|
5807
5852
|
|
|
5808
5853
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5809
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5854
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5810
5855
|
return deserializeBoxCatchClause(pos);
|
|
5811
5856
|
}
|
|
5812
5857
|
|
|
5813
5858
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5814
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5859
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5815
5860
|
return deserializeBoxBlockStatement(pos);
|
|
5816
5861
|
}
|
|
5817
5862
|
|
|
@@ -5825,7 +5870,7 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5825
5870
|
}
|
|
5826
5871
|
|
|
5827
5872
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5828
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5873
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5829
5874
|
return deserializeBoxTSTypeAnnotation(pos);
|
|
5830
5875
|
}
|
|
5831
5876
|
|
|
@@ -5846,10 +5891,11 @@ function deserializeBoxAssignmentPattern(pos) {
|
|
|
5846
5891
|
}
|
|
5847
5892
|
|
|
5848
5893
|
function deserializeVecBindingProperty(pos) {
|
|
5849
|
-
let arr = [],
|
|
5894
|
+
let arr = [],
|
|
5895
|
+
pos32 = pos >> 2;
|
|
5850
5896
|
pos = uint32[pos32];
|
|
5851
5897
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5852
|
-
for (; pos !== endPos;) {
|
|
5898
|
+
for (; pos !== endPos; ) {
|
|
5853
5899
|
arr.push(deserializeBindingProperty(pos));
|
|
5854
5900
|
pos += 64;
|
|
5855
5901
|
}
|
|
@@ -5861,7 +5907,7 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5861
5907
|
}
|
|
5862
5908
|
|
|
5863
5909
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5864
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5910
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5865
5911
|
return deserializeBoxBindingRestElement(pos);
|
|
5866
5912
|
}
|
|
5867
5913
|
|
|
@@ -5871,10 +5917,11 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5871
5917
|
}
|
|
5872
5918
|
|
|
5873
5919
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5874
|
-
let arr = [],
|
|
5920
|
+
let arr = [],
|
|
5921
|
+
pos32 = pos >> 2;
|
|
5875
5922
|
pos = uint32[pos32];
|
|
5876
5923
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5877
|
-
for (; pos !== endPos;) {
|
|
5924
|
+
for (; pos !== endPos; ) {
|
|
5878
5925
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5879
5926
|
pos += 32;
|
|
5880
5927
|
}
|
|
@@ -5882,7 +5929,7 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5882
5929
|
}
|
|
5883
5930
|
|
|
5884
5931
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5885
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5932
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5886
5933
|
return deserializeBindingIdentifier(pos);
|
|
5887
5934
|
}
|
|
5888
5935
|
|
|
@@ -5891,7 +5938,7 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5891
5938
|
}
|
|
5892
5939
|
|
|
5893
5940
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5894
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5941
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5895
5942
|
return deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5896
5943
|
}
|
|
5897
5944
|
|
|
@@ -5900,7 +5947,7 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5900
5947
|
}
|
|
5901
5948
|
|
|
5902
5949
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5903
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5950
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5904
5951
|
return deserializeBoxTSThisParameter(pos);
|
|
5905
5952
|
}
|
|
5906
5953
|
|
|
@@ -5913,15 +5960,16 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5913
5960
|
}
|
|
5914
5961
|
|
|
5915
5962
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5916
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5963
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5917
5964
|
return deserializeBoxFunctionBody(pos);
|
|
5918
5965
|
}
|
|
5919
5966
|
|
|
5920
5967
|
function deserializeVecFormalParameter(pos) {
|
|
5921
|
-
let arr = [],
|
|
5968
|
+
let arr = [],
|
|
5969
|
+
pos32 = pos >> 2;
|
|
5922
5970
|
pos = uint32[pos32];
|
|
5923
5971
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5924
|
-
for (; pos !== endPos;) {
|
|
5972
|
+
for (; pos !== endPos; ) {
|
|
5925
5973
|
arr.push(deserializeFormalParameter(pos));
|
|
5926
5974
|
pos += 72;
|
|
5927
5975
|
}
|
|
@@ -5929,10 +5977,11 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5929
5977
|
}
|
|
5930
5978
|
|
|
5931
5979
|
function deserializeVecDecorator(pos) {
|
|
5932
|
-
let arr = [],
|
|
5980
|
+
let arr = [],
|
|
5981
|
+
pos32 = pos >> 2;
|
|
5933
5982
|
pos = uint32[pos32];
|
|
5934
5983
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
5935
|
-
for (; pos !== endPos;) {
|
|
5984
|
+
for (; pos !== endPos; ) {
|
|
5936
5985
|
arr.push(deserializeDecorator(pos));
|
|
5937
5986
|
pos += 24;
|
|
5938
5987
|
}
|
|
@@ -5945,10 +5994,11 @@ function deserializeOptionTSAccessibility(pos) {
|
|
|
5945
5994
|
}
|
|
5946
5995
|
|
|
5947
5996
|
function deserializeVecTSClassImplements(pos) {
|
|
5948
|
-
let arr = [],
|
|
5997
|
+
let arr = [],
|
|
5998
|
+
pos32 = pos >> 2;
|
|
5949
5999
|
pos = uint32[pos32];
|
|
5950
6000
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5951
|
-
for (; pos !== endPos;) {
|
|
6001
|
+
for (; pos !== endPos; ) {
|
|
5952
6002
|
arr.push(deserializeTSClassImplements(pos));
|
|
5953
6003
|
pos += 32;
|
|
5954
6004
|
}
|
|
@@ -5960,10 +6010,11 @@ function deserializeBoxClassBody(pos) {
|
|
|
5960
6010
|
}
|
|
5961
6011
|
|
|
5962
6012
|
function deserializeVecClassElement(pos) {
|
|
5963
|
-
let arr = [],
|
|
6013
|
+
let arr = [],
|
|
6014
|
+
pos32 = pos >> 2;
|
|
5964
6015
|
pos = uint32[pos32];
|
|
5965
6016
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5966
|
-
for (; pos !== endPos;) {
|
|
6017
|
+
for (; pos !== endPos; ) {
|
|
5967
6018
|
arr.push(deserializeClassElement(pos));
|
|
5968
6019
|
pos += 16;
|
|
5969
6020
|
}
|
|
@@ -6020,10 +6071,11 @@ function deserializeOptionImportPhase(pos) {
|
|
|
6020
6071
|
}
|
|
6021
6072
|
|
|
6022
6073
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
6023
|
-
let arr = [],
|
|
6074
|
+
let arr = [],
|
|
6075
|
+
pos32 = pos >> 2;
|
|
6024
6076
|
pos = uint32[pos32];
|
|
6025
6077
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6026
|
-
for (; pos !== endPos;) {
|
|
6078
|
+
for (; pos !== endPos; ) {
|
|
6027
6079
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
6028
6080
|
pos += 16;
|
|
6029
6081
|
}
|
|
@@ -6031,7 +6083,7 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
6031
6083
|
}
|
|
6032
6084
|
|
|
6033
6085
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
6034
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6086
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6035
6087
|
return deserializeVecImportDeclarationSpecifier(pos);
|
|
6036
6088
|
}
|
|
6037
6089
|
|
|
@@ -6040,7 +6092,7 @@ function deserializeBoxWithClause(pos) {
|
|
|
6040
6092
|
}
|
|
6041
6093
|
|
|
6042
6094
|
function deserializeOptionBoxWithClause(pos) {
|
|
6043
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6095
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6044
6096
|
return deserializeBoxWithClause(pos);
|
|
6045
6097
|
}
|
|
6046
6098
|
|
|
@@ -6057,10 +6109,11 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
|
6057
6109
|
}
|
|
6058
6110
|
|
|
6059
6111
|
function deserializeVecImportAttribute(pos) {
|
|
6060
|
-
let arr = [],
|
|
6112
|
+
let arr = [],
|
|
6113
|
+
pos32 = pos >> 2;
|
|
6061
6114
|
pos = uint32[pos32];
|
|
6062
6115
|
let endPos = pos + uint32[pos32 + 2] * 112;
|
|
6063
|
-
for (; pos !== endPos;) {
|
|
6116
|
+
for (; pos !== endPos; ) {
|
|
6064
6117
|
arr.push(deserializeImportAttribute(pos));
|
|
6065
6118
|
pos += 112;
|
|
6066
6119
|
}
|
|
@@ -6073,10 +6126,11 @@ function deserializeOptionDeclaration(pos) {
|
|
|
6073
6126
|
}
|
|
6074
6127
|
|
|
6075
6128
|
function deserializeVecExportSpecifier(pos) {
|
|
6076
|
-
let arr = [],
|
|
6129
|
+
let arr = [],
|
|
6130
|
+
pos32 = pos >> 2;
|
|
6077
6131
|
pos = uint32[pos32];
|
|
6078
6132
|
let endPos = pos + uint32[pos32 + 2] * 128;
|
|
6079
|
-
for (; pos !== endPos;) {
|
|
6133
|
+
for (; pos !== endPos; ) {
|
|
6080
6134
|
arr.push(deserializeExportSpecifier(pos));
|
|
6081
6135
|
pos += 128;
|
|
6082
6136
|
}
|
|
@@ -6102,10 +6156,11 @@ function deserializeBoxJSXOpeningElement(pos) {
|
|
|
6102
6156
|
}
|
|
6103
6157
|
|
|
6104
6158
|
function deserializeVecJSXChild(pos) {
|
|
6105
|
-
let arr = [],
|
|
6159
|
+
let arr = [],
|
|
6160
|
+
pos32 = pos >> 2;
|
|
6106
6161
|
pos = uint32[pos32];
|
|
6107
6162
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6108
|
-
for (; pos !== endPos;) {
|
|
6163
|
+
for (; pos !== endPos; ) {
|
|
6109
6164
|
arr.push(deserializeJSXChild(pos));
|
|
6110
6165
|
pos += 16;
|
|
6111
6166
|
}
|
|
@@ -6117,15 +6172,16 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
6117
6172
|
}
|
|
6118
6173
|
|
|
6119
6174
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
6120
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6175
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6121
6176
|
return deserializeBoxJSXClosingElement(pos);
|
|
6122
6177
|
}
|
|
6123
6178
|
|
|
6124
6179
|
function deserializeVecJSXAttributeItem(pos) {
|
|
6125
|
-
let arr = [],
|
|
6180
|
+
let arr = [],
|
|
6181
|
+
pos32 = pos >> 2;
|
|
6126
6182
|
pos = uint32[pos32];
|
|
6127
6183
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6128
|
-
for (; pos !== endPos;) {
|
|
6184
|
+
for (; pos !== endPos; ) {
|
|
6129
6185
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
6130
6186
|
pos += 16;
|
|
6131
6187
|
}
|
|
@@ -6170,10 +6226,11 @@ function deserializeBoxJSXSpreadChild(pos) {
|
|
|
6170
6226
|
}
|
|
6171
6227
|
|
|
6172
6228
|
function deserializeVecTSEnumMember(pos) {
|
|
6173
|
-
let arr = [],
|
|
6229
|
+
let arr = [],
|
|
6230
|
+
pos32 = pos >> 2;
|
|
6174
6231
|
pos = uint32[pos32];
|
|
6175
6232
|
let endPos = pos + uint32[pos32 + 2] * 40;
|
|
6176
|
-
for (; pos !== endPos;) {
|
|
6233
|
+
for (; pos !== endPos; ) {
|
|
6177
6234
|
arr.push(deserializeTSEnumMember(pos));
|
|
6178
6235
|
pos += 40;
|
|
6179
6236
|
}
|
|
@@ -6329,10 +6386,11 @@ function deserializeBoxJSDocUnknownType(pos) {
|
|
|
6329
6386
|
}
|
|
6330
6387
|
|
|
6331
6388
|
function deserializeVecTSType(pos) {
|
|
6332
|
-
let arr = [],
|
|
6389
|
+
let arr = [],
|
|
6390
|
+
pos32 = pos >> 2;
|
|
6333
6391
|
pos = uint32[pos32];
|
|
6334
6392
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6335
|
-
for (; pos !== endPos;) {
|
|
6393
|
+
for (; pos !== endPos; ) {
|
|
6336
6394
|
arr.push(deserializeTSType(pos));
|
|
6337
6395
|
pos += 16;
|
|
6338
6396
|
}
|
|
@@ -6340,10 +6398,11 @@ function deserializeVecTSType(pos) {
|
|
|
6340
6398
|
}
|
|
6341
6399
|
|
|
6342
6400
|
function deserializeVecTSTupleElement(pos) {
|
|
6343
|
-
let arr = [],
|
|
6401
|
+
let arr = [],
|
|
6402
|
+
pos32 = pos >> 2;
|
|
6344
6403
|
pos = uint32[pos32];
|
|
6345
6404
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6346
|
-
for (; pos !== endPos;) {
|
|
6405
|
+
for (; pos !== endPos; ) {
|
|
6347
6406
|
arr.push(deserializeTSTupleElement(pos));
|
|
6348
6407
|
pos += 16;
|
|
6349
6408
|
}
|
|
@@ -6368,10 +6427,11 @@ function deserializeOptionTSType(pos) {
|
|
|
6368
6427
|
}
|
|
6369
6428
|
|
|
6370
6429
|
function deserializeVecTSTypeParameter(pos) {
|
|
6371
|
-
let arr = [],
|
|
6430
|
+
let arr = [],
|
|
6431
|
+
pos32 = pos >> 2;
|
|
6372
6432
|
pos = uint32[pos32];
|
|
6373
6433
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6374
|
-
for (; pos !== endPos;) {
|
|
6434
|
+
for (; pos !== endPos; ) {
|
|
6375
6435
|
arr.push(deserializeTSTypeParameter(pos));
|
|
6376
6436
|
pos += 80;
|
|
6377
6437
|
}
|
|
@@ -6379,10 +6439,11 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
6379
6439
|
}
|
|
6380
6440
|
|
|
6381
6441
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
6382
|
-
let arr = [],
|
|
6442
|
+
let arr = [],
|
|
6443
|
+
pos32 = pos >> 2;
|
|
6383
6444
|
pos = uint32[pos32];
|
|
6384
6445
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6385
|
-
for (; pos !== endPos;) {
|
|
6446
|
+
for (; pos !== endPos; ) {
|
|
6386
6447
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
6387
6448
|
pos += 32;
|
|
6388
6449
|
}
|
|
@@ -6394,10 +6455,11 @@ function deserializeBoxTSInterfaceBody(pos) {
|
|
|
6394
6455
|
}
|
|
6395
6456
|
|
|
6396
6457
|
function deserializeVecTSSignature(pos) {
|
|
6397
|
-
let arr = [],
|
|
6458
|
+
let arr = [],
|
|
6459
|
+
pos32 = pos >> 2;
|
|
6398
6460
|
pos = uint32[pos32];
|
|
6399
6461
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6400
|
-
for (; pos !== endPos;) {
|
|
6462
|
+
for (; pos !== endPos; ) {
|
|
6401
6463
|
arr.push(deserializeTSSignature(pos));
|
|
6402
6464
|
pos += 16;
|
|
6403
6465
|
}
|
|
@@ -6421,10 +6483,11 @@ function deserializeBoxTSMethodSignature(pos) {
|
|
|
6421
6483
|
}
|
|
6422
6484
|
|
|
6423
6485
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
6424
|
-
let arr = [],
|
|
6486
|
+
let arr = [],
|
|
6487
|
+
pos32 = pos >> 2;
|
|
6425
6488
|
pos = uint32[pos32];
|
|
6426
6489
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6427
|
-
for (; pos !== endPos;) {
|
|
6490
|
+
for (; pos !== endPos; ) {
|
|
6428
6491
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
6429
6492
|
pos += 32;
|
|
6430
6493
|
}
|
|
@@ -6445,7 +6508,7 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
6445
6508
|
}
|
|
6446
6509
|
|
|
6447
6510
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6448
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6511
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6449
6512
|
return deserializeBoxObjectExpression(pos);
|
|
6450
6513
|
}
|
|
6451
6514
|
|
|
@@ -6468,15 +6531,16 @@ function deserializeBoxTSExternalModuleReference(pos) {
|
|
|
6468
6531
|
}
|
|
6469
6532
|
|
|
6470
6533
|
function deserializeOptionNameSpan(pos) {
|
|
6471
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
6534
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
6472
6535
|
return deserializeNameSpan(pos);
|
|
6473
6536
|
}
|
|
6474
6537
|
|
|
6475
6538
|
function deserializeVecError(pos) {
|
|
6476
|
-
let arr = [],
|
|
6539
|
+
let arr = [],
|
|
6540
|
+
pos32 = pos >> 2;
|
|
6477
6541
|
pos = uint32[pos32];
|
|
6478
6542
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6479
|
-
for (; pos !== endPos;) {
|
|
6543
|
+
for (; pos !== endPos; ) {
|
|
6480
6544
|
arr.push(deserializeError(pos));
|
|
6481
6545
|
pos += 80;
|
|
6482
6546
|
}
|
|
@@ -6484,10 +6548,11 @@ function deserializeVecError(pos) {
|
|
|
6484
6548
|
}
|
|
6485
6549
|
|
|
6486
6550
|
function deserializeVecErrorLabel(pos) {
|
|
6487
|
-
let arr = [],
|
|
6551
|
+
let arr = [],
|
|
6552
|
+
pos32 = pos >> 2;
|
|
6488
6553
|
pos = uint32[pos32];
|
|
6489
6554
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
6490
|
-
for (; pos !== endPos;) {
|
|
6555
|
+
for (; pos !== endPos; ) {
|
|
6491
6556
|
arr.push(deserializeErrorLabel(pos));
|
|
6492
6557
|
pos += 24;
|
|
6493
6558
|
}
|
|
@@ -6495,10 +6560,11 @@ function deserializeVecErrorLabel(pos) {
|
|
|
6495
6560
|
}
|
|
6496
6561
|
|
|
6497
6562
|
function deserializeVecStaticImport(pos) {
|
|
6498
|
-
let arr = [],
|
|
6563
|
+
let arr = [],
|
|
6564
|
+
pos32 = pos >> 2;
|
|
6499
6565
|
pos = uint32[pos32];
|
|
6500
6566
|
let endPos = pos + uint32[pos32 + 2] * 56;
|
|
6501
|
-
for (; pos !== endPos;) {
|
|
6567
|
+
for (; pos !== endPos; ) {
|
|
6502
6568
|
arr.push(deserializeStaticImport(pos));
|
|
6503
6569
|
pos += 56;
|
|
6504
6570
|
}
|
|
@@ -6506,10 +6572,11 @@ function deserializeVecStaticImport(pos) {
|
|
|
6506
6572
|
}
|
|
6507
6573
|
|
|
6508
6574
|
function deserializeVecStaticExport(pos) {
|
|
6509
|
-
let arr = [],
|
|
6575
|
+
let arr = [],
|
|
6576
|
+
pos32 = pos >> 2;
|
|
6510
6577
|
pos = uint32[pos32];
|
|
6511
6578
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6512
|
-
for (; pos !== endPos;) {
|
|
6579
|
+
for (; pos !== endPos; ) {
|
|
6513
6580
|
arr.push(deserializeStaticExport(pos));
|
|
6514
6581
|
pos += 32;
|
|
6515
6582
|
}
|
|
@@ -6517,10 +6584,11 @@ function deserializeVecStaticExport(pos) {
|
|
|
6517
6584
|
}
|
|
6518
6585
|
|
|
6519
6586
|
function deserializeVecDynamicImport(pos) {
|
|
6520
|
-
let arr = [],
|
|
6587
|
+
let arr = [],
|
|
6588
|
+
pos32 = pos >> 2;
|
|
6521
6589
|
pos = uint32[pos32];
|
|
6522
6590
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6523
|
-
for (; pos !== endPos;) {
|
|
6591
|
+
for (; pos !== endPos; ) {
|
|
6524
6592
|
arr.push(deserializeDynamicImport(pos));
|
|
6525
6593
|
pos += 16;
|
|
6526
6594
|
}
|
|
@@ -6528,10 +6596,11 @@ function deserializeVecDynamicImport(pos) {
|
|
|
6528
6596
|
}
|
|
6529
6597
|
|
|
6530
6598
|
function deserializeVecSpan(pos) {
|
|
6531
|
-
let arr = [],
|
|
6599
|
+
let arr = [],
|
|
6600
|
+
pos32 = pos >> 2;
|
|
6532
6601
|
pos = uint32[pos32];
|
|
6533
6602
|
let endPos = pos + uint32[pos32 + 2] * 8;
|
|
6534
|
-
for (; pos !== endPos;) {
|
|
6603
|
+
for (; pos !== endPos; ) {
|
|
6535
6604
|
arr.push(deserializeSpan(pos));
|
|
6536
6605
|
pos += 8;
|
|
6537
6606
|
}
|
|
@@ -6539,10 +6608,11 @@ function deserializeVecSpan(pos) {
|
|
|
6539
6608
|
}
|
|
6540
6609
|
|
|
6541
6610
|
function deserializeVecImportEntry(pos) {
|
|
6542
|
-
let arr = [],
|
|
6611
|
+
let arr = [],
|
|
6612
|
+
pos32 = pos >> 2;
|
|
6543
6613
|
pos = uint32[pos32];
|
|
6544
6614
|
let endPos = pos + uint32[pos32 + 2] * 96;
|
|
6545
|
-
for (; pos !== endPos;) {
|
|
6615
|
+
for (; pos !== endPos; ) {
|
|
6546
6616
|
arr.push(deserializeImportEntry(pos));
|
|
6547
6617
|
pos += 96;
|
|
6548
6618
|
}
|
|
@@ -6550,10 +6620,11 @@ function deserializeVecImportEntry(pos) {
|
|
|
6550
6620
|
}
|
|
6551
6621
|
|
|
6552
6622
|
function deserializeVecExportEntry(pos) {
|
|
6553
|
-
let arr = [],
|
|
6623
|
+
let arr = [],
|
|
6624
|
+
pos32 = pos >> 2;
|
|
6554
6625
|
pos = uint32[pos32];
|
|
6555
6626
|
let endPos = pos + uint32[pos32 + 2] * 144;
|
|
6556
|
-
for (; pos !== endPos;) {
|
|
6627
|
+
for (; pos !== endPos; ) {
|
|
6557
6628
|
arr.push(deserializeExportEntry(pos));
|
|
6558
6629
|
pos += 144;
|
|
6559
6630
|
}
|