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