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) {
|
|
@@ -141,7 +138,8 @@ function deserializeExpression(pos) {
|
|
|
141
138
|
}
|
|
142
139
|
|
|
143
140
|
function deserializeIdentifierName(pos) {
|
|
144
|
-
let start = deserializeU32(pos),
|
|
141
|
+
let start = deserializeU32(pos),
|
|
142
|
+
end = deserializeU32(pos + 4);
|
|
145
143
|
return {
|
|
146
144
|
type: 'Identifier',
|
|
147
145
|
name: deserializeStr(pos + 8),
|
|
@@ -151,7 +149,8 @@ function deserializeIdentifierName(pos) {
|
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
function deserializeIdentifierReference(pos) {
|
|
154
|
-
let start = deserializeU32(pos),
|
|
152
|
+
let start = deserializeU32(pos),
|
|
153
|
+
end = deserializeU32(pos + 4);
|
|
155
154
|
return {
|
|
156
155
|
type: 'Identifier',
|
|
157
156
|
name: deserializeStr(pos + 8),
|
|
@@ -161,7 +160,8 @@ function deserializeIdentifierReference(pos) {
|
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
function deserializeBindingIdentifier(pos) {
|
|
164
|
-
let start = deserializeU32(pos),
|
|
163
|
+
let start = deserializeU32(pos),
|
|
164
|
+
end = deserializeU32(pos + 4);
|
|
165
165
|
return {
|
|
166
166
|
type: 'Identifier',
|
|
167
167
|
name: deserializeStr(pos + 8),
|
|
@@ -171,7 +171,8 @@ function deserializeBindingIdentifier(pos) {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
function deserializeLabelIdentifier(pos) {
|
|
174
|
-
let start = deserializeU32(pos),
|
|
174
|
+
let start = deserializeU32(pos),
|
|
175
|
+
end = deserializeU32(pos + 4);
|
|
175
176
|
return {
|
|
176
177
|
type: 'Identifier',
|
|
177
178
|
name: deserializeStr(pos + 8),
|
|
@@ -482,7 +483,8 @@ function deserializeTemplateElement(pos) {
|
|
|
482
483
|
start = deserializeU32(pos),
|
|
483
484
|
end = deserializeU32(pos + 4),
|
|
484
485
|
value = deserializeTemplateElementValue(pos + 8);
|
|
485
|
-
value.cooked !== null &&
|
|
486
|
+
value.cooked !== null &&
|
|
487
|
+
deserializeBool(pos + 41) &&
|
|
486
488
|
(value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))));
|
|
487
489
|
return {
|
|
488
490
|
type: 'TemplateElement',
|
|
@@ -970,13 +972,14 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
970
972
|
key = deserializeIdentifierReference(pos + 8),
|
|
971
973
|
init = deserializeOptionExpression(pos + 40),
|
|
972
974
|
value = { ...key };
|
|
973
|
-
init !== null &&
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
975
|
+
init !== null &&
|
|
976
|
+
(value = {
|
|
977
|
+
type: 'AssignmentPattern',
|
|
978
|
+
left: value,
|
|
979
|
+
right: init,
|
|
980
|
+
start,
|
|
981
|
+
end,
|
|
982
|
+
});
|
|
980
983
|
node.kind = 'init';
|
|
981
984
|
node.key = key;
|
|
982
985
|
node.value = value;
|
|
@@ -1164,7 +1167,8 @@ function deserializeDirective(pos) {
|
|
|
1164
1167
|
}
|
|
1165
1168
|
|
|
1166
1169
|
function deserializeHashbang(pos) {
|
|
1167
|
-
let start = deserializeU32(pos),
|
|
1170
|
+
let start = deserializeU32(pos),
|
|
1171
|
+
end = deserializeU32(pos + 4);
|
|
1168
1172
|
return {
|
|
1169
1173
|
type: 'Hashbang',
|
|
1170
1174
|
value: deserializeStr(pos + 8),
|
|
@@ -1752,8 +1756,8 @@ function deserializeFunctionType(pos) {
|
|
|
1752
1756
|
|
|
1753
1757
|
function deserializeFormalParameters(pos) {
|
|
1754
1758
|
let params = deserializeVecFormalParameter(pos + 8);
|
|
1755
|
-
if (uint32[pos + 32 >> 2] !== 0 && uint32[pos + 36 >> 2] !== 0) {
|
|
1756
|
-
pos = uint32[pos + 32 >> 2];
|
|
1759
|
+
if (uint32[(pos + 32) >> 2] !== 0 && uint32[(pos + 36) >> 2] !== 0) {
|
|
1760
|
+
pos = uint32[(pos + 32) >> 2];
|
|
1757
1761
|
let rest = {
|
|
1758
1762
|
type: 'RestElement',
|
|
1759
1763
|
argument: null,
|
|
@@ -1958,7 +1962,8 @@ function deserializeMethodDefinitionKind(pos) {
|
|
|
1958
1962
|
}
|
|
1959
1963
|
|
|
1960
1964
|
function deserializePrivateIdentifier(pos) {
|
|
1961
|
-
let start = deserializeU32(pos),
|
|
1965
|
+
let start = deserializeU32(pos),
|
|
1966
|
+
end = deserializeU32(pos + 4);
|
|
1962
1967
|
return {
|
|
1963
1968
|
type: 'PrivateIdentifier',
|
|
1964
1969
|
name: deserializeStr(pos + 8),
|
|
@@ -2346,7 +2351,8 @@ function deserializeNullLiteral(pos) {
|
|
|
2346
2351
|
}
|
|
2347
2352
|
|
|
2348
2353
|
function deserializeNumericLiteral(pos) {
|
|
2349
|
-
let start = deserializeU32(pos),
|
|
2354
|
+
let start = deserializeU32(pos),
|
|
2355
|
+
end = deserializeU32(pos + 4);
|
|
2350
2356
|
return {
|
|
2351
2357
|
type: 'Literal',
|
|
2352
2358
|
value: deserializeF64(pos + 8),
|
|
@@ -2419,7 +2425,8 @@ function deserializeRegExp(pos) {
|
|
|
2419
2425
|
}
|
|
2420
2426
|
|
|
2421
2427
|
function deserializeRegExpFlags(pos) {
|
|
2422
|
-
let flagBits = deserializeU8(pos),
|
|
2428
|
+
let flagBits = deserializeU8(pos),
|
|
2429
|
+
flags = '';
|
|
2423
2430
|
// Alphabetical order
|
|
2424
2431
|
flagBits & 64 && (flags += 'd');
|
|
2425
2432
|
flagBits & 1 && (flags += 'g');
|
|
@@ -2768,7 +2775,8 @@ function deserializeJSXAttributeValue(pos) {
|
|
|
2768
2775
|
}
|
|
2769
2776
|
|
|
2770
2777
|
function deserializeJSXIdentifier(pos) {
|
|
2771
|
-
let start = deserializeU32(pos),
|
|
2778
|
+
let start = deserializeU32(pos),
|
|
2779
|
+
end = deserializeU32(pos + 4);
|
|
2772
2780
|
return {
|
|
2773
2781
|
type: 'JSXIdentifier',
|
|
2774
2782
|
name: deserializeStr(pos + 8),
|
|
@@ -2806,7 +2814,8 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
2806
2814
|
}
|
|
2807
2815
|
|
|
2808
2816
|
function deserializeJSXText(pos) {
|
|
2809
|
-
let start = deserializeU32(pos),
|
|
2817
|
+
let start = deserializeU32(pos),
|
|
2818
|
+
end = deserializeU32(pos + 4);
|
|
2810
2819
|
return {
|
|
2811
2820
|
type: 'JSXText',
|
|
2812
2821
|
value: deserializeStr(pos + 8),
|
|
@@ -3718,7 +3727,7 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
3718
3727
|
if (body.type === 'TSModuleBlock') node.id = id;
|
|
3719
3728
|
else {
|
|
3720
3729
|
let innerId = body.id;
|
|
3721
|
-
if (innerId.type === 'Identifier')
|
|
3730
|
+
if (innerId.type === 'Identifier')
|
|
3722
3731
|
node.id = {
|
|
3723
3732
|
type: 'TSQualifiedName',
|
|
3724
3733
|
left: id,
|
|
@@ -3726,7 +3735,7 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
3726
3735
|
start: id.start,
|
|
3727
3736
|
end: innerId.end,
|
|
3728
3737
|
};
|
|
3729
|
-
|
|
3738
|
+
else {
|
|
3730
3739
|
// Replace `left` of innermost `TSQualifiedName` with a nested `TSQualifiedName` with `id` of
|
|
3731
3740
|
// this module on left, and previous `left` of innermost `TSQualifiedName` on right
|
|
3732
3741
|
node.id = innerId;
|
|
@@ -3916,7 +3925,7 @@ function deserializeTSConstructorType(pos) {
|
|
|
3916
3925
|
end = deserializeU32(pos + 4),
|
|
3917
3926
|
node = {
|
|
3918
3927
|
type: 'TSConstructorType',
|
|
3919
|
-
abstract: deserializeBool(pos +
|
|
3928
|
+
abstract: deserializeBool(pos + 36),
|
|
3920
3929
|
typeParameters: null,
|
|
3921
3930
|
params: null,
|
|
3922
3931
|
returnType: null,
|
|
@@ -4181,20 +4190,18 @@ function deserializeCommentKind(pos) {
|
|
|
4181
4190
|
function deserializeComment(pos) {
|
|
4182
4191
|
let type = deserializeCommentKind(pos + 12),
|
|
4183
4192
|
start = deserializeU32(pos),
|
|
4184
|
-
end = deserializeU32(pos + 4)
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
endCut = type === 'Line' ? 0 : 2;
|
|
4192
|
-
node.value = sourceText.slice(start + 2, end - endCut);
|
|
4193
|
-
return node;
|
|
4193
|
+
end = deserializeU32(pos + 4);
|
|
4194
|
+
return {
|
|
4195
|
+
type,
|
|
4196
|
+
value: sourceText.slice(start + 2, end - (type === 'Line' ? 0 : 2)),
|
|
4197
|
+
start,
|
|
4198
|
+
end,
|
|
4199
|
+
};
|
|
4194
4200
|
}
|
|
4195
4201
|
|
|
4196
4202
|
function deserializeNameSpan(pos) {
|
|
4197
|
-
let start = deserializeU32(pos),
|
|
4203
|
+
let start = deserializeU32(pos),
|
|
4204
|
+
end = deserializeU32(pos + 4);
|
|
4198
4205
|
return {
|
|
4199
4206
|
value: deserializeStr(pos + 8),
|
|
4200
4207
|
start,
|
|
@@ -4241,7 +4248,8 @@ function deserializeImportImportName(pos) {
|
|
|
4241
4248
|
}
|
|
4242
4249
|
|
|
4243
4250
|
function deserializeExportEntry(pos) {
|
|
4244
|
-
let start = deserializeU32(pos),
|
|
4251
|
+
let start = deserializeU32(pos),
|
|
4252
|
+
end = deserializeU32(pos + 4);
|
|
4245
4253
|
return {
|
|
4246
4254
|
moduleRequest: deserializeOptionNameSpan(pos + 16),
|
|
4247
4255
|
importName: deserializeExportImportName(pos + 40),
|
|
@@ -4350,7 +4358,8 @@ function deserializeExportLocalName(pos) {
|
|
|
4350
4358
|
}
|
|
4351
4359
|
|
|
4352
4360
|
function deserializeDynamicImport(pos) {
|
|
4353
|
-
let start = deserializeU32(pos),
|
|
4361
|
+
let start = deserializeU32(pos),
|
|
4362
|
+
end = deserializeU32(pos + 4);
|
|
4354
4363
|
return {
|
|
4355
4364
|
moduleRequest: deserializeSpan(pos + 8),
|
|
4356
4365
|
start,
|
|
@@ -4544,7 +4553,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
4544
4553
|
}
|
|
4545
4554
|
|
|
4546
4555
|
function deserializeErrorLabel(pos) {
|
|
4547
|
-
let start = deserializeU32(pos),
|
|
4556
|
+
let start = deserializeU32(pos),
|
|
4557
|
+
end = deserializeU32(pos + 4);
|
|
4548
4558
|
return {
|
|
4549
4559
|
message: deserializeOptionStr(pos + 8),
|
|
4550
4560
|
start,
|
|
@@ -4563,7 +4573,8 @@ function deserializeEcmaScriptModule(pos) {
|
|
|
4563
4573
|
}
|
|
4564
4574
|
|
|
4565
4575
|
function deserializeStaticImport(pos) {
|
|
4566
|
-
let start = deserializeU32(pos),
|
|
4576
|
+
let start = deserializeU32(pos),
|
|
4577
|
+
end = deserializeU32(pos + 4);
|
|
4567
4578
|
return {
|
|
4568
4579
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
4569
4580
|
entries: deserializeVecImportEntry(pos + 32),
|
|
@@ -4573,7 +4584,8 @@ function deserializeStaticImport(pos) {
|
|
|
4573
4584
|
}
|
|
4574
4585
|
|
|
4575
4586
|
function deserializeStaticExport(pos) {
|
|
4576
|
-
let start = deserializeU32(pos),
|
|
4587
|
+
let start = deserializeU32(pos),
|
|
4588
|
+
end = deserializeU32(pos + 4);
|
|
4577
4589
|
return {
|
|
4578
4590
|
entries: deserializeVecExportEntry(pos + 8),
|
|
4579
4591
|
start,
|
|
@@ -4590,7 +4602,8 @@ function deserializeU8(pos) {
|
|
|
4590
4602
|
}
|
|
4591
4603
|
|
|
4592
4604
|
function deserializeStr(pos) {
|
|
4593
|
-
let pos32 = pos >> 2,
|
|
4605
|
+
let pos32 = pos >> 2,
|
|
4606
|
+
len = uint32[pos32 + 2];
|
|
4594
4607
|
if (len === 0) return '';
|
|
4595
4608
|
pos = uint32[pos32];
|
|
4596
4609
|
if (sourceIsAscii && pos < sourceByteLen) return sourceText.substr(pos, len);
|
|
@@ -4599,7 +4612,8 @@ function deserializeStr(pos) {
|
|
|
4599
4612
|
let end = pos + len;
|
|
4600
4613
|
if (len > 50) return decodeStr(uint8.subarray(pos, end));
|
|
4601
4614
|
// Shorter strings decode by hand to avoid native call
|
|
4602
|
-
let out = '',
|
|
4615
|
+
let out = '',
|
|
4616
|
+
c;
|
|
4603
4617
|
do {
|
|
4604
4618
|
c = uint8[pos++];
|
|
4605
4619
|
if (c < 128) out += fromCodePoint(c);
|
|
@@ -4612,10 +4626,11 @@ function deserializeStr(pos) {
|
|
|
4612
4626
|
}
|
|
4613
4627
|
|
|
4614
4628
|
function deserializeVecComment(pos) {
|
|
4615
|
-
let arr = [],
|
|
4629
|
+
let arr = [],
|
|
4630
|
+
pos32 = pos >> 2;
|
|
4616
4631
|
pos = uint32[pos32];
|
|
4617
4632
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4618
|
-
for (; pos !== endPos;) {
|
|
4633
|
+
for (; pos !== endPos; ) {
|
|
4619
4634
|
arr.push(deserializeComment(pos));
|
|
4620
4635
|
pos += 16;
|
|
4621
4636
|
}
|
|
@@ -4623,15 +4638,16 @@ function deserializeVecComment(pos) {
|
|
|
4623
4638
|
}
|
|
4624
4639
|
|
|
4625
4640
|
function deserializeOptionHashbang(pos) {
|
|
4626
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
4641
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
4627
4642
|
return deserializeHashbang(pos);
|
|
4628
4643
|
}
|
|
4629
4644
|
|
|
4630
4645
|
function deserializeVecDirective(pos) {
|
|
4631
|
-
let arr = [],
|
|
4646
|
+
let arr = [],
|
|
4647
|
+
pos32 = pos >> 2;
|
|
4632
4648
|
pos = uint32[pos32];
|
|
4633
4649
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
4634
|
-
for (; pos !== endPos;) {
|
|
4650
|
+
for (; pos !== endPos; ) {
|
|
4635
4651
|
arr.push(deserializeDirective(pos));
|
|
4636
4652
|
pos += 72;
|
|
4637
4653
|
}
|
|
@@ -4639,10 +4655,11 @@ function deserializeVecDirective(pos) {
|
|
|
4639
4655
|
}
|
|
4640
4656
|
|
|
4641
4657
|
function deserializeVecStatement(pos) {
|
|
4642
|
-
let arr = [],
|
|
4658
|
+
let arr = [],
|
|
4659
|
+
pos32 = pos >> 2;
|
|
4643
4660
|
pos = uint32[pos32];
|
|
4644
4661
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4645
|
-
for (; pos !== endPos;) {
|
|
4662
|
+
for (; pos !== endPos; ) {
|
|
4646
4663
|
arr.push(deserializeStatement(pos));
|
|
4647
4664
|
pos += 16;
|
|
4648
4665
|
}
|
|
@@ -4810,10 +4827,11 @@ function deserializeBoxV8IntrinsicExpression(pos) {
|
|
|
4810
4827
|
}
|
|
4811
4828
|
|
|
4812
4829
|
function deserializeVecArrayExpressionElement(pos) {
|
|
4813
|
-
let arr = [],
|
|
4830
|
+
let arr = [],
|
|
4831
|
+
pos32 = pos >> 2;
|
|
4814
4832
|
pos = uint32[pos32];
|
|
4815
4833
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4816
|
-
for (; pos !== endPos;) {
|
|
4834
|
+
for (; pos !== endPos; ) {
|
|
4817
4835
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
4818
4836
|
pos += 16;
|
|
4819
4837
|
}
|
|
@@ -4825,10 +4843,11 @@ function deserializeBoxSpreadElement(pos) {
|
|
|
4825
4843
|
}
|
|
4826
4844
|
|
|
4827
4845
|
function deserializeVecObjectPropertyKind(pos) {
|
|
4828
|
-
let arr = [],
|
|
4846
|
+
let arr = [],
|
|
4847
|
+
pos32 = pos >> 2;
|
|
4829
4848
|
pos = uint32[pos32];
|
|
4830
4849
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4831
|
-
for (; pos !== endPos;) {
|
|
4850
|
+
for (; pos !== endPos; ) {
|
|
4832
4851
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
4833
4852
|
pos += 16;
|
|
4834
4853
|
}
|
|
@@ -4852,10 +4871,11 @@ function deserializeBoxPrivateIdentifier(pos) {
|
|
|
4852
4871
|
}
|
|
4853
4872
|
|
|
4854
4873
|
function deserializeVecTemplateElement(pos) {
|
|
4855
|
-
let arr = [],
|
|
4874
|
+
let arr = [],
|
|
4875
|
+
pos32 = pos >> 2;
|
|
4856
4876
|
pos = uint32[pos32];
|
|
4857
4877
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
4858
|
-
for (; pos !== endPos;) {
|
|
4878
|
+
for (; pos !== endPos; ) {
|
|
4859
4879
|
arr.push(deserializeTemplateElement(pos));
|
|
4860
4880
|
pos += 48;
|
|
4861
4881
|
}
|
|
@@ -4863,10 +4883,11 @@ function deserializeVecTemplateElement(pos) {
|
|
|
4863
4883
|
}
|
|
4864
4884
|
|
|
4865
4885
|
function deserializeVecExpression(pos) {
|
|
4866
|
-
let arr = [],
|
|
4886
|
+
let arr = [],
|
|
4887
|
+
pos32 = pos >> 2;
|
|
4867
4888
|
pos = uint32[pos32];
|
|
4868
4889
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4869
|
-
for (; pos !== endPos;) {
|
|
4890
|
+
for (; pos !== endPos; ) {
|
|
4870
4891
|
arr.push(deserializeExpression(pos));
|
|
4871
4892
|
pos += 16;
|
|
4872
4893
|
}
|
|
@@ -4878,12 +4899,12 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
4878
4899
|
}
|
|
4879
4900
|
|
|
4880
4901
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
4881
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
4902
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
4882
4903
|
return deserializeBoxTSTypeParameterInstantiation(pos);
|
|
4883
4904
|
}
|
|
4884
4905
|
|
|
4885
4906
|
function deserializeOptionStr(pos) {
|
|
4886
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
4907
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
4887
4908
|
return deserializeStr(pos);
|
|
4888
4909
|
}
|
|
4889
4910
|
|
|
@@ -4900,10 +4921,11 @@ function deserializeBoxPrivateFieldExpression(pos) {
|
|
|
4900
4921
|
}
|
|
4901
4922
|
|
|
4902
4923
|
function deserializeVecArgument(pos) {
|
|
4903
|
-
let arr = [],
|
|
4924
|
+
let arr = [],
|
|
4925
|
+
pos32 = pos >> 2;
|
|
4904
4926
|
pos = uint32[pos32];
|
|
4905
4927
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4906
|
-
for (; pos !== endPos;) {
|
|
4928
|
+
for (; pos !== endPos; ) {
|
|
4907
4929
|
arr.push(deserializeArgument(pos));
|
|
4908
4930
|
pos += 16;
|
|
4909
4931
|
}
|
|
@@ -4924,10 +4946,11 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
4924
4946
|
}
|
|
4925
4947
|
|
|
4926
4948
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
4927
|
-
let arr = [],
|
|
4949
|
+
let arr = [],
|
|
4950
|
+
pos32 = pos >> 2;
|
|
4928
4951
|
pos = uint32[pos32];
|
|
4929
4952
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4930
|
-
for (; pos !== endPos;) {
|
|
4953
|
+
for (; pos !== endPos; ) {
|
|
4931
4954
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
4932
4955
|
pos += 16;
|
|
4933
4956
|
}
|
|
@@ -4939,15 +4962,16 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
4939
4962
|
}
|
|
4940
4963
|
|
|
4941
4964
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
4942
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
4965
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
4943
4966
|
return deserializeBoxAssignmentTargetRest(pos);
|
|
4944
4967
|
}
|
|
4945
4968
|
|
|
4946
4969
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
4947
|
-
let arr = [],
|
|
4970
|
+
let arr = [],
|
|
4971
|
+
pos32 = pos >> 2;
|
|
4948
4972
|
pos = uint32[pos32];
|
|
4949
4973
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
4950
|
-
for (; pos !== endPos;) {
|
|
4974
|
+
for (; pos !== endPos; ) {
|
|
4951
4975
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
4952
4976
|
pos += 16;
|
|
4953
4977
|
}
|
|
@@ -5068,10 +5092,11 @@ function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
|
5068
5092
|
}
|
|
5069
5093
|
|
|
5070
5094
|
function deserializeVecVariableDeclarator(pos) {
|
|
5071
|
-
let arr = [],
|
|
5095
|
+
let arr = [],
|
|
5096
|
+
pos32 = pos >> 2;
|
|
5072
5097
|
pos = uint32[pos32];
|
|
5073
5098
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5074
|
-
for (; pos !== endPos;) {
|
|
5099
|
+
for (; pos !== endPos; ) {
|
|
5075
5100
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5076
5101
|
pos += 64;
|
|
5077
5102
|
}
|
|
@@ -5089,15 +5114,16 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5089
5114
|
}
|
|
5090
5115
|
|
|
5091
5116
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5092
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5117
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5093
5118
|
return deserializeLabelIdentifier(pos);
|
|
5094
5119
|
}
|
|
5095
5120
|
|
|
5096
5121
|
function deserializeVecSwitchCase(pos) {
|
|
5097
|
-
let arr = [],
|
|
5122
|
+
let arr = [],
|
|
5123
|
+
pos32 = pos >> 2;
|
|
5098
5124
|
pos = uint32[pos32];
|
|
5099
5125
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5100
|
-
for (; pos !== endPos;) {
|
|
5126
|
+
for (; pos !== endPos; ) {
|
|
5101
5127
|
arr.push(deserializeSwitchCase(pos));
|
|
5102
5128
|
pos += 48;
|
|
5103
5129
|
}
|
|
@@ -5109,12 +5135,12 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5109
5135
|
}
|
|
5110
5136
|
|
|
5111
5137
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5112
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5138
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5113
5139
|
return deserializeBoxCatchClause(pos);
|
|
5114
5140
|
}
|
|
5115
5141
|
|
|
5116
5142
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5117
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5143
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5118
5144
|
return deserializeBoxBlockStatement(pos);
|
|
5119
5145
|
}
|
|
5120
5146
|
|
|
@@ -5128,7 +5154,7 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5128
5154
|
}
|
|
5129
5155
|
|
|
5130
5156
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5131
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5157
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5132
5158
|
return deserializeBoxTSTypeAnnotation(pos);
|
|
5133
5159
|
}
|
|
5134
5160
|
|
|
@@ -5149,10 +5175,11 @@ function deserializeBoxAssignmentPattern(pos) {
|
|
|
5149
5175
|
}
|
|
5150
5176
|
|
|
5151
5177
|
function deserializeVecBindingProperty(pos) {
|
|
5152
|
-
let arr = [],
|
|
5178
|
+
let arr = [],
|
|
5179
|
+
pos32 = pos >> 2;
|
|
5153
5180
|
pos = uint32[pos32];
|
|
5154
5181
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5155
|
-
for (; pos !== endPos;) {
|
|
5182
|
+
for (; pos !== endPos; ) {
|
|
5156
5183
|
arr.push(deserializeBindingProperty(pos));
|
|
5157
5184
|
pos += 64;
|
|
5158
5185
|
}
|
|
@@ -5164,7 +5191,7 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5164
5191
|
}
|
|
5165
5192
|
|
|
5166
5193
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5167
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5194
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5168
5195
|
return deserializeBoxBindingRestElement(pos);
|
|
5169
5196
|
}
|
|
5170
5197
|
|
|
@@ -5174,10 +5201,11 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5174
5201
|
}
|
|
5175
5202
|
|
|
5176
5203
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5177
|
-
let arr = [],
|
|
5204
|
+
let arr = [],
|
|
5205
|
+
pos32 = pos >> 2;
|
|
5178
5206
|
pos = uint32[pos32];
|
|
5179
5207
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5180
|
-
for (; pos !== endPos;) {
|
|
5208
|
+
for (; pos !== endPos; ) {
|
|
5181
5209
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5182
5210
|
pos += 32;
|
|
5183
5211
|
}
|
|
@@ -5185,7 +5213,7 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5185
5213
|
}
|
|
5186
5214
|
|
|
5187
5215
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5188
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5216
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5189
5217
|
return deserializeBindingIdentifier(pos);
|
|
5190
5218
|
}
|
|
5191
5219
|
|
|
@@ -5194,7 +5222,7 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5194
5222
|
}
|
|
5195
5223
|
|
|
5196
5224
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5197
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5225
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5198
5226
|
return deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5199
5227
|
}
|
|
5200
5228
|
|
|
@@ -5203,7 +5231,7 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5203
5231
|
}
|
|
5204
5232
|
|
|
5205
5233
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5206
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5234
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5207
5235
|
return deserializeBoxTSThisParameter(pos);
|
|
5208
5236
|
}
|
|
5209
5237
|
|
|
@@ -5216,15 +5244,16 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5216
5244
|
}
|
|
5217
5245
|
|
|
5218
5246
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5219
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5247
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5220
5248
|
return deserializeBoxFunctionBody(pos);
|
|
5221
5249
|
}
|
|
5222
5250
|
|
|
5223
5251
|
function deserializeVecFormalParameter(pos) {
|
|
5224
|
-
let arr = [],
|
|
5252
|
+
let arr = [],
|
|
5253
|
+
pos32 = pos >> 2;
|
|
5225
5254
|
pos = uint32[pos32];
|
|
5226
5255
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5227
|
-
for (; pos !== endPos;) {
|
|
5256
|
+
for (; pos !== endPos; ) {
|
|
5228
5257
|
arr.push(deserializeFormalParameter(pos));
|
|
5229
5258
|
pos += 72;
|
|
5230
5259
|
}
|
|
@@ -5232,10 +5261,11 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5232
5261
|
}
|
|
5233
5262
|
|
|
5234
5263
|
function deserializeVecDecorator(pos) {
|
|
5235
|
-
let arr = [],
|
|
5264
|
+
let arr = [],
|
|
5265
|
+
pos32 = pos >> 2;
|
|
5236
5266
|
pos = uint32[pos32];
|
|
5237
5267
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
5238
|
-
for (; pos !== endPos;) {
|
|
5268
|
+
for (; pos !== endPos; ) {
|
|
5239
5269
|
arr.push(deserializeDecorator(pos));
|
|
5240
5270
|
pos += 24;
|
|
5241
5271
|
}
|
|
@@ -5247,10 +5277,11 @@ function deserializeBoxClassBody(pos) {
|
|
|
5247
5277
|
}
|
|
5248
5278
|
|
|
5249
5279
|
function deserializeVecClassElement(pos) {
|
|
5250
|
-
let arr = [],
|
|
5280
|
+
let arr = [],
|
|
5281
|
+
pos32 = pos >> 2;
|
|
5251
5282
|
pos = uint32[pos32];
|
|
5252
5283
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5253
|
-
for (; pos !== endPos;) {
|
|
5284
|
+
for (; pos !== endPos; ) {
|
|
5254
5285
|
arr.push(deserializeClassElement(pos));
|
|
5255
5286
|
pos += 16;
|
|
5256
5287
|
}
|
|
@@ -5307,10 +5338,11 @@ function deserializeOptionImportPhase(pos) {
|
|
|
5307
5338
|
}
|
|
5308
5339
|
|
|
5309
5340
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
5310
|
-
let arr = [],
|
|
5341
|
+
let arr = [],
|
|
5342
|
+
pos32 = pos >> 2;
|
|
5311
5343
|
pos = uint32[pos32];
|
|
5312
5344
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5313
|
-
for (; pos !== endPos;) {
|
|
5345
|
+
for (; pos !== endPos; ) {
|
|
5314
5346
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
5315
5347
|
pos += 16;
|
|
5316
5348
|
}
|
|
@@ -5318,7 +5350,7 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5318
5350
|
}
|
|
5319
5351
|
|
|
5320
5352
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5321
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5353
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5322
5354
|
return deserializeVecImportDeclarationSpecifier(pos);
|
|
5323
5355
|
}
|
|
5324
5356
|
|
|
@@ -5327,7 +5359,7 @@ function deserializeBoxWithClause(pos) {
|
|
|
5327
5359
|
}
|
|
5328
5360
|
|
|
5329
5361
|
function deserializeOptionBoxWithClause(pos) {
|
|
5330
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5362
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5331
5363
|
return deserializeBoxWithClause(pos);
|
|
5332
5364
|
}
|
|
5333
5365
|
|
|
@@ -5344,10 +5376,11 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
|
5344
5376
|
}
|
|
5345
5377
|
|
|
5346
5378
|
function deserializeVecImportAttribute(pos) {
|
|
5347
|
-
let arr = [],
|
|
5379
|
+
let arr = [],
|
|
5380
|
+
pos32 = pos >> 2;
|
|
5348
5381
|
pos = uint32[pos32];
|
|
5349
5382
|
let endPos = pos + uint32[pos32 + 2] * 112;
|
|
5350
|
-
for (; pos !== endPos;) {
|
|
5383
|
+
for (; pos !== endPos; ) {
|
|
5351
5384
|
arr.push(deserializeImportAttribute(pos));
|
|
5352
5385
|
pos += 112;
|
|
5353
5386
|
}
|
|
@@ -5360,10 +5393,11 @@ function deserializeOptionDeclaration(pos) {
|
|
|
5360
5393
|
}
|
|
5361
5394
|
|
|
5362
5395
|
function deserializeVecExportSpecifier(pos) {
|
|
5363
|
-
let arr = [],
|
|
5396
|
+
let arr = [],
|
|
5397
|
+
pos32 = pos >> 2;
|
|
5364
5398
|
pos = uint32[pos32];
|
|
5365
5399
|
let endPos = pos + uint32[pos32 + 2] * 128;
|
|
5366
|
-
for (; pos !== endPos;) {
|
|
5400
|
+
for (; pos !== endPos; ) {
|
|
5367
5401
|
arr.push(deserializeExportSpecifier(pos));
|
|
5368
5402
|
pos += 128;
|
|
5369
5403
|
}
|
|
@@ -5389,10 +5423,11 @@ function deserializeBoxJSXOpeningElement(pos) {
|
|
|
5389
5423
|
}
|
|
5390
5424
|
|
|
5391
5425
|
function deserializeVecJSXChild(pos) {
|
|
5392
|
-
let arr = [],
|
|
5426
|
+
let arr = [],
|
|
5427
|
+
pos32 = pos >> 2;
|
|
5393
5428
|
pos = uint32[pos32];
|
|
5394
5429
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5395
|
-
for (; pos !== endPos;) {
|
|
5430
|
+
for (; pos !== endPos; ) {
|
|
5396
5431
|
arr.push(deserializeJSXChild(pos));
|
|
5397
5432
|
pos += 16;
|
|
5398
5433
|
}
|
|
@@ -5404,15 +5439,16 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
5404
5439
|
}
|
|
5405
5440
|
|
|
5406
5441
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5407
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5442
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5408
5443
|
return deserializeBoxJSXClosingElement(pos);
|
|
5409
5444
|
}
|
|
5410
5445
|
|
|
5411
5446
|
function deserializeVecJSXAttributeItem(pos) {
|
|
5412
|
-
let arr = [],
|
|
5447
|
+
let arr = [],
|
|
5448
|
+
pos32 = pos >> 2;
|
|
5413
5449
|
pos = uint32[pos32];
|
|
5414
5450
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5415
|
-
for (; pos !== endPos;) {
|
|
5451
|
+
for (; pos !== endPos; ) {
|
|
5416
5452
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
5417
5453
|
pos += 16;
|
|
5418
5454
|
}
|
|
@@ -5457,10 +5493,11 @@ function deserializeBoxJSXSpreadChild(pos) {
|
|
|
5457
5493
|
}
|
|
5458
5494
|
|
|
5459
5495
|
function deserializeVecTSEnumMember(pos) {
|
|
5460
|
-
let arr = [],
|
|
5496
|
+
let arr = [],
|
|
5497
|
+
pos32 = pos >> 2;
|
|
5461
5498
|
pos = uint32[pos32];
|
|
5462
5499
|
let endPos = pos + uint32[pos32 + 2] * 40;
|
|
5463
|
-
for (; pos !== endPos;) {
|
|
5500
|
+
for (; pos !== endPos; ) {
|
|
5464
5501
|
arr.push(deserializeTSEnumMember(pos));
|
|
5465
5502
|
pos += 40;
|
|
5466
5503
|
}
|
|
@@ -5616,10 +5653,11 @@ function deserializeBoxJSDocUnknownType(pos) {
|
|
|
5616
5653
|
}
|
|
5617
5654
|
|
|
5618
5655
|
function deserializeVecTSType(pos) {
|
|
5619
|
-
let arr = [],
|
|
5656
|
+
let arr = [],
|
|
5657
|
+
pos32 = pos >> 2;
|
|
5620
5658
|
pos = uint32[pos32];
|
|
5621
5659
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5622
|
-
for (; pos !== endPos;) {
|
|
5660
|
+
for (; pos !== endPos; ) {
|
|
5623
5661
|
arr.push(deserializeTSType(pos));
|
|
5624
5662
|
pos += 16;
|
|
5625
5663
|
}
|
|
@@ -5627,10 +5665,11 @@ function deserializeVecTSType(pos) {
|
|
|
5627
5665
|
}
|
|
5628
5666
|
|
|
5629
5667
|
function deserializeVecTSTupleElement(pos) {
|
|
5630
|
-
let arr = [],
|
|
5668
|
+
let arr = [],
|
|
5669
|
+
pos32 = pos >> 2;
|
|
5631
5670
|
pos = uint32[pos32];
|
|
5632
5671
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5633
|
-
for (; pos !== endPos;) {
|
|
5672
|
+
for (; pos !== endPos; ) {
|
|
5634
5673
|
arr.push(deserializeTSTupleElement(pos));
|
|
5635
5674
|
pos += 16;
|
|
5636
5675
|
}
|
|
@@ -5655,10 +5694,11 @@ function deserializeOptionTSType(pos) {
|
|
|
5655
5694
|
}
|
|
5656
5695
|
|
|
5657
5696
|
function deserializeVecTSTypeParameter(pos) {
|
|
5658
|
-
let arr = [],
|
|
5697
|
+
let arr = [],
|
|
5698
|
+
pos32 = pos >> 2;
|
|
5659
5699
|
pos = uint32[pos32];
|
|
5660
5700
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
5661
|
-
for (; pos !== endPos;) {
|
|
5701
|
+
for (; pos !== endPos; ) {
|
|
5662
5702
|
arr.push(deserializeTSTypeParameter(pos));
|
|
5663
5703
|
pos += 80;
|
|
5664
5704
|
}
|
|
@@ -5666,10 +5706,11 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
5666
5706
|
}
|
|
5667
5707
|
|
|
5668
5708
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
5669
|
-
let arr = [],
|
|
5709
|
+
let arr = [],
|
|
5710
|
+
pos32 = pos >> 2;
|
|
5670
5711
|
pos = uint32[pos32];
|
|
5671
5712
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5672
|
-
for (; pos !== endPos;) {
|
|
5713
|
+
for (; pos !== endPos; ) {
|
|
5673
5714
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
5674
5715
|
pos += 32;
|
|
5675
5716
|
}
|
|
@@ -5681,10 +5722,11 @@ function deserializeBoxTSInterfaceBody(pos) {
|
|
|
5681
5722
|
}
|
|
5682
5723
|
|
|
5683
5724
|
function deserializeVecTSSignature(pos) {
|
|
5684
|
-
let arr = [],
|
|
5725
|
+
let arr = [],
|
|
5726
|
+
pos32 = pos >> 2;
|
|
5685
5727
|
pos = uint32[pos32];
|
|
5686
5728
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5687
|
-
for (; pos !== endPos;) {
|
|
5729
|
+
for (; pos !== endPos; ) {
|
|
5688
5730
|
arr.push(deserializeTSSignature(pos));
|
|
5689
5731
|
pos += 16;
|
|
5690
5732
|
}
|
|
@@ -5708,10 +5750,11 @@ function deserializeBoxTSMethodSignature(pos) {
|
|
|
5708
5750
|
}
|
|
5709
5751
|
|
|
5710
5752
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
5711
|
-
let arr = [],
|
|
5753
|
+
let arr = [],
|
|
5754
|
+
pos32 = pos >> 2;
|
|
5712
5755
|
pos = uint32[pos32];
|
|
5713
5756
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5714
|
-
for (; pos !== endPos;) {
|
|
5757
|
+
for (; pos !== endPos; ) {
|
|
5715
5758
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
5716
5759
|
pos += 32;
|
|
5717
5760
|
}
|
|
@@ -5732,7 +5775,7 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
5732
5775
|
}
|
|
5733
5776
|
|
|
5734
5777
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
5735
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5778
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5736
5779
|
return deserializeBoxObjectExpression(pos);
|
|
5737
5780
|
}
|
|
5738
5781
|
|
|
@@ -5755,15 +5798,16 @@ function deserializeBoxTSExternalModuleReference(pos) {
|
|
|
5755
5798
|
}
|
|
5756
5799
|
|
|
5757
5800
|
function deserializeOptionNameSpan(pos) {
|
|
5758
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5801
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5759
5802
|
return deserializeNameSpan(pos);
|
|
5760
5803
|
}
|
|
5761
5804
|
|
|
5762
5805
|
function deserializeVecError(pos) {
|
|
5763
|
-
let arr = [],
|
|
5806
|
+
let arr = [],
|
|
5807
|
+
pos32 = pos >> 2;
|
|
5764
5808
|
pos = uint32[pos32];
|
|
5765
5809
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
5766
|
-
for (; pos !== endPos;) {
|
|
5810
|
+
for (; pos !== endPos; ) {
|
|
5767
5811
|
arr.push(deserializeError(pos));
|
|
5768
5812
|
pos += 80;
|
|
5769
5813
|
}
|
|
@@ -5771,10 +5815,11 @@ function deserializeVecError(pos) {
|
|
|
5771
5815
|
}
|
|
5772
5816
|
|
|
5773
5817
|
function deserializeVecErrorLabel(pos) {
|
|
5774
|
-
let arr = [],
|
|
5818
|
+
let arr = [],
|
|
5819
|
+
pos32 = pos >> 2;
|
|
5775
5820
|
pos = uint32[pos32];
|
|
5776
5821
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
5777
|
-
for (; pos !== endPos;) {
|
|
5822
|
+
for (; pos !== endPos; ) {
|
|
5778
5823
|
arr.push(deserializeErrorLabel(pos));
|
|
5779
5824
|
pos += 24;
|
|
5780
5825
|
}
|
|
@@ -5782,10 +5827,11 @@ function deserializeVecErrorLabel(pos) {
|
|
|
5782
5827
|
}
|
|
5783
5828
|
|
|
5784
5829
|
function deserializeVecStaticImport(pos) {
|
|
5785
|
-
let arr = [],
|
|
5830
|
+
let arr = [],
|
|
5831
|
+
pos32 = pos >> 2;
|
|
5786
5832
|
pos = uint32[pos32];
|
|
5787
5833
|
let endPos = pos + uint32[pos32 + 2] * 56;
|
|
5788
|
-
for (; pos !== endPos;) {
|
|
5834
|
+
for (; pos !== endPos; ) {
|
|
5789
5835
|
arr.push(deserializeStaticImport(pos));
|
|
5790
5836
|
pos += 56;
|
|
5791
5837
|
}
|
|
@@ -5793,10 +5839,11 @@ function deserializeVecStaticImport(pos) {
|
|
|
5793
5839
|
}
|
|
5794
5840
|
|
|
5795
5841
|
function deserializeVecStaticExport(pos) {
|
|
5796
|
-
let arr = [],
|
|
5842
|
+
let arr = [],
|
|
5843
|
+
pos32 = pos >> 2;
|
|
5797
5844
|
pos = uint32[pos32];
|
|
5798
5845
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5799
|
-
for (; pos !== endPos;) {
|
|
5846
|
+
for (; pos !== endPos; ) {
|
|
5800
5847
|
arr.push(deserializeStaticExport(pos));
|
|
5801
5848
|
pos += 32;
|
|
5802
5849
|
}
|
|
@@ -5804,10 +5851,11 @@ function deserializeVecStaticExport(pos) {
|
|
|
5804
5851
|
}
|
|
5805
5852
|
|
|
5806
5853
|
function deserializeVecDynamicImport(pos) {
|
|
5807
|
-
let arr = [],
|
|
5854
|
+
let arr = [],
|
|
5855
|
+
pos32 = pos >> 2;
|
|
5808
5856
|
pos = uint32[pos32];
|
|
5809
5857
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5810
|
-
for (; pos !== endPos;) {
|
|
5858
|
+
for (; pos !== endPos; ) {
|
|
5811
5859
|
arr.push(deserializeDynamicImport(pos));
|
|
5812
5860
|
pos += 16;
|
|
5813
5861
|
}
|
|
@@ -5815,10 +5863,11 @@ function deserializeVecDynamicImport(pos) {
|
|
|
5815
5863
|
}
|
|
5816
5864
|
|
|
5817
5865
|
function deserializeVecSpan(pos) {
|
|
5818
|
-
let arr = [],
|
|
5866
|
+
let arr = [],
|
|
5867
|
+
pos32 = pos >> 2;
|
|
5819
5868
|
pos = uint32[pos32];
|
|
5820
5869
|
let endPos = pos + uint32[pos32 + 2] * 8;
|
|
5821
|
-
for (; pos !== endPos;) {
|
|
5870
|
+
for (; pos !== endPos; ) {
|
|
5822
5871
|
arr.push(deserializeSpan(pos));
|
|
5823
5872
|
pos += 8;
|
|
5824
5873
|
}
|
|
@@ -5826,10 +5875,11 @@ function deserializeVecSpan(pos) {
|
|
|
5826
5875
|
}
|
|
5827
5876
|
|
|
5828
5877
|
function deserializeVecImportEntry(pos) {
|
|
5829
|
-
let arr = [],
|
|
5878
|
+
let arr = [],
|
|
5879
|
+
pos32 = pos >> 2;
|
|
5830
5880
|
pos = uint32[pos32];
|
|
5831
5881
|
let endPos = pos + uint32[pos32 + 2] * 96;
|
|
5832
|
-
for (; pos !== endPos;) {
|
|
5882
|
+
for (; pos !== endPos; ) {
|
|
5833
5883
|
arr.push(deserializeImportEntry(pos));
|
|
5834
5884
|
pos += 96;
|
|
5835
5885
|
}
|
|
@@ -5837,10 +5887,11 @@ function deserializeVecImportEntry(pos) {
|
|
|
5837
5887
|
}
|
|
5838
5888
|
|
|
5839
5889
|
function deserializeVecExportEntry(pos) {
|
|
5840
|
-
let arr = [],
|
|
5890
|
+
let arr = [],
|
|
5891
|
+
pos32 = pos >> 2;
|
|
5841
5892
|
pos = uint32[pos32];
|
|
5842
5893
|
let endPos = pos + uint32[pos32 + 2] * 144;
|
|
5843
|
-
for (; pos !== endPos;) {
|
|
5894
|
+
for (; pos !== endPos; ) {
|
|
5844
5895
|
arr.push(deserializeExportEntry(pos));
|
|
5845
5896
|
pos += 144;
|
|
5846
5897
|
}
|