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) {
|
|
@@ -142,7 +139,8 @@ function deserializeExpression(pos) {
|
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
function deserializeIdentifierName(pos) {
|
|
145
|
-
let start = deserializeU32(pos),
|
|
142
|
+
let start = deserializeU32(pos),
|
|
143
|
+
end = deserializeU32(pos + 4);
|
|
146
144
|
return {
|
|
147
145
|
type: 'Identifier',
|
|
148
146
|
name: deserializeStr(pos + 8),
|
|
@@ -153,7 +151,8 @@ function deserializeIdentifierName(pos) {
|
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
function deserializeIdentifierReference(pos) {
|
|
156
|
-
let start = deserializeU32(pos),
|
|
154
|
+
let start = deserializeU32(pos),
|
|
155
|
+
end = deserializeU32(pos + 4);
|
|
157
156
|
return {
|
|
158
157
|
type: 'Identifier',
|
|
159
158
|
name: deserializeStr(pos + 8),
|
|
@@ -164,7 +163,8 @@ function deserializeIdentifierReference(pos) {
|
|
|
164
163
|
}
|
|
165
164
|
|
|
166
165
|
function deserializeBindingIdentifier(pos) {
|
|
167
|
-
let start = deserializeU32(pos),
|
|
166
|
+
let start = deserializeU32(pos),
|
|
167
|
+
end = deserializeU32(pos + 4);
|
|
168
168
|
return {
|
|
169
169
|
type: 'Identifier',
|
|
170
170
|
name: deserializeStr(pos + 8),
|
|
@@ -175,7 +175,8 @@ function deserializeBindingIdentifier(pos) {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
function deserializeLabelIdentifier(pos) {
|
|
178
|
-
let start = deserializeU32(pos),
|
|
178
|
+
let start = deserializeU32(pos),
|
|
179
|
+
end = deserializeU32(pos + 4);
|
|
179
180
|
return {
|
|
180
181
|
type: 'Identifier',
|
|
181
182
|
name: deserializeStr(pos + 8),
|
|
@@ -186,7 +187,8 @@ function deserializeLabelIdentifier(pos) {
|
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
function deserializeThisExpression(pos) {
|
|
189
|
-
let start = deserializeU32(pos),
|
|
190
|
+
let start = deserializeU32(pos),
|
|
191
|
+
end = deserializeU32(pos + 4);
|
|
190
192
|
return {
|
|
191
193
|
type: 'ThisExpression',
|
|
192
194
|
start,
|
|
@@ -502,7 +504,8 @@ function deserializeTemplateElement(pos) {
|
|
|
502
504
|
start = deserializeU32(pos),
|
|
503
505
|
end = deserializeU32(pos + 4),
|
|
504
506
|
value = deserializeTemplateElementValue(pos + 8);
|
|
505
|
-
value.cooked !== null &&
|
|
507
|
+
value.cooked !== null &&
|
|
508
|
+
deserializeBool(pos + 41) &&
|
|
506
509
|
(value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))));
|
|
507
510
|
return {
|
|
508
511
|
type: 'TemplateElement',
|
|
@@ -1028,14 +1031,15 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
1028
1031
|
key = deserializeIdentifierReference(pos + 8),
|
|
1029
1032
|
init = deserializeOptionExpression(pos + 40),
|
|
1030
1033
|
value = { ...key };
|
|
1031
|
-
init !== null &&
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1034
|
+
init !== null &&
|
|
1035
|
+
(value = {
|
|
1036
|
+
type: 'AssignmentPattern',
|
|
1037
|
+
left: value,
|
|
1038
|
+
right: init,
|
|
1039
|
+
start,
|
|
1040
|
+
end,
|
|
1041
|
+
range: [start, end],
|
|
1042
|
+
});
|
|
1039
1043
|
node.kind = 'init';
|
|
1040
1044
|
node.key = key;
|
|
1041
1045
|
node.value = value;
|
|
@@ -1083,7 +1087,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1083
1087
|
}
|
|
1084
1088
|
|
|
1085
1089
|
function deserializeSuper(pos) {
|
|
1086
|
-
let start = deserializeU32(pos),
|
|
1090
|
+
let start = deserializeU32(pos),
|
|
1091
|
+
end = deserializeU32(pos + 4);
|
|
1087
1092
|
return {
|
|
1088
1093
|
type: 'Super',
|
|
1089
1094
|
start,
|
|
@@ -1144,8 +1149,8 @@ function deserializeParenthesizedExpression(pos) {
|
|
|
1144
1149
|
node = {
|
|
1145
1150
|
type: 'ParenthesizedExpression',
|
|
1146
1151
|
expression: null,
|
|
1147
|
-
start: start = deserializeU32(pos),
|
|
1148
|
-
end: end = deserializeU32(pos + 4),
|
|
1152
|
+
start: (start = deserializeU32(pos)),
|
|
1153
|
+
end: (end = deserializeU32(pos + 4)),
|
|
1149
1154
|
range: [start, end],
|
|
1150
1155
|
};
|
|
1151
1156
|
node.expression = deserializeExpression(pos + 8);
|
|
@@ -1240,7 +1245,8 @@ function deserializeDirective(pos) {
|
|
|
1240
1245
|
}
|
|
1241
1246
|
|
|
1242
1247
|
function deserializeHashbang(pos) {
|
|
1243
|
-
let start = deserializeU32(pos),
|
|
1248
|
+
let start = deserializeU32(pos),
|
|
1249
|
+
end = deserializeU32(pos + 4);
|
|
1244
1250
|
return {
|
|
1245
1251
|
type: 'Hashbang',
|
|
1246
1252
|
value: deserializeStr(pos + 8),
|
|
@@ -1336,7 +1342,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1336
1342
|
}
|
|
1337
1343
|
|
|
1338
1344
|
function deserializeEmptyStatement(pos) {
|
|
1339
|
-
let start = deserializeU32(pos),
|
|
1345
|
+
let start = deserializeU32(pos),
|
|
1346
|
+
end = deserializeU32(pos + 4);
|
|
1340
1347
|
return {
|
|
1341
1348
|
type: 'EmptyStatement',
|
|
1342
1349
|
start,
|
|
@@ -1749,7 +1756,8 @@ function deserializeCatchParameter(pos) {
|
|
|
1749
1756
|
}
|
|
1750
1757
|
|
|
1751
1758
|
function deserializeDebuggerStatement(pos) {
|
|
1752
|
-
let start = deserializeU32(pos),
|
|
1759
|
+
let start = deserializeU32(pos),
|
|
1760
|
+
end = deserializeU32(pos + 4);
|
|
1753
1761
|
return {
|
|
1754
1762
|
type: 'DebuggerStatement',
|
|
1755
1763
|
start,
|
|
@@ -1903,15 +1911,15 @@ function deserializeFunctionType(pos) {
|
|
|
1903
1911
|
|
|
1904
1912
|
function deserializeFormalParameters(pos) {
|
|
1905
1913
|
let params = deserializeVecFormalParameter(pos + 8);
|
|
1906
|
-
if (uint32[pos + 32 >> 2] !== 0 && uint32[pos + 36 >> 2] !== 0) {
|
|
1907
|
-
pos = uint32[pos + 32 >> 2];
|
|
1914
|
+
if (uint32[(pos + 32) >> 2] !== 0 && uint32[(pos + 36) >> 2] !== 0) {
|
|
1915
|
+
pos = uint32[(pos + 32) >> 2];
|
|
1908
1916
|
let start,
|
|
1909
1917
|
end,
|
|
1910
1918
|
rest = {
|
|
1911
1919
|
type: 'RestElement',
|
|
1912
1920
|
argument: null,
|
|
1913
|
-
start: start = deserializeU32(pos),
|
|
1914
|
-
end: end = deserializeU32(pos + 4),
|
|
1921
|
+
start: (start = deserializeU32(pos)),
|
|
1922
|
+
end: (end = deserializeU32(pos + 4)),
|
|
1915
1923
|
range: [start, end],
|
|
1916
1924
|
};
|
|
1917
1925
|
rest.argument = deserializeBindingPatternKind(pos + 8);
|
|
@@ -2123,7 +2131,8 @@ function deserializeMethodDefinitionKind(pos) {
|
|
|
2123
2131
|
}
|
|
2124
2132
|
|
|
2125
2133
|
function deserializePrivateIdentifier(pos) {
|
|
2126
|
-
let start = deserializeU32(pos),
|
|
2134
|
+
let start = deserializeU32(pos),
|
|
2135
|
+
end = deserializeU32(pos + 4);
|
|
2127
2136
|
return {
|
|
2128
2137
|
type: 'PrivateIdentifier',
|
|
2129
2138
|
name: deserializeStr(pos + 8),
|
|
@@ -2547,7 +2556,8 @@ function deserializeNullLiteral(pos) {
|
|
|
2547
2556
|
}
|
|
2548
2557
|
|
|
2549
2558
|
function deserializeNumericLiteral(pos) {
|
|
2550
|
-
let start = deserializeU32(pos),
|
|
2559
|
+
let start = deserializeU32(pos),
|
|
2560
|
+
end = deserializeU32(pos + 4);
|
|
2551
2561
|
return {
|
|
2552
2562
|
type: 'Literal',
|
|
2553
2563
|
value: deserializeF64(pos + 8),
|
|
@@ -2624,7 +2634,8 @@ function deserializeRegExp(pos) {
|
|
|
2624
2634
|
}
|
|
2625
2635
|
|
|
2626
2636
|
function deserializeRegExpFlags(pos) {
|
|
2627
|
-
let flagBits = deserializeU8(pos),
|
|
2637
|
+
let flagBits = deserializeU8(pos),
|
|
2638
|
+
flags = '';
|
|
2628
2639
|
// Alphabetical order
|
|
2629
2640
|
flagBits & 64 && (flags += 'd');
|
|
2630
2641
|
flagBits & 1 && (flags += 'g');
|
|
@@ -2725,7 +2736,8 @@ function deserializeJSXOpeningFragment(pos) {
|
|
|
2725
2736
|
}
|
|
2726
2737
|
|
|
2727
2738
|
function deserializeJSXClosingFragment(pos) {
|
|
2728
|
-
let start = deserializeU32(pos),
|
|
2739
|
+
let start = deserializeU32(pos),
|
|
2740
|
+
end = deserializeU32(pos + 4);
|
|
2729
2741
|
return {
|
|
2730
2742
|
type: 'JSXClosingFragment',
|
|
2731
2743
|
start,
|
|
@@ -2934,7 +2946,8 @@ function deserializeJSXExpression(pos) {
|
|
|
2934
2946
|
}
|
|
2935
2947
|
|
|
2936
2948
|
function deserializeJSXEmptyExpression(pos) {
|
|
2937
|
-
let start = deserializeU32(pos),
|
|
2949
|
+
let start = deserializeU32(pos),
|
|
2950
|
+
end = deserializeU32(pos + 4);
|
|
2938
2951
|
return {
|
|
2939
2952
|
type: 'JSXEmptyExpression',
|
|
2940
2953
|
start,
|
|
@@ -3011,7 +3024,8 @@ function deserializeJSXAttributeValue(pos) {
|
|
|
3011
3024
|
}
|
|
3012
3025
|
|
|
3013
3026
|
function deserializeJSXIdentifier(pos) {
|
|
3014
|
-
let start = deserializeU32(pos),
|
|
3027
|
+
let start = deserializeU32(pos),
|
|
3028
|
+
end = deserializeU32(pos + 4);
|
|
3015
3029
|
return {
|
|
3016
3030
|
type: 'JSXIdentifier',
|
|
3017
3031
|
name: deserializeStr(pos + 8),
|
|
@@ -3053,7 +3067,8 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3053
3067
|
}
|
|
3054
3068
|
|
|
3055
3069
|
function deserializeJSXText(pos) {
|
|
3056
|
-
let start = deserializeU32(pos),
|
|
3070
|
+
let start = deserializeU32(pos),
|
|
3071
|
+
end = deserializeU32(pos + 4);
|
|
3057
3072
|
return {
|
|
3058
3073
|
type: 'JSXText',
|
|
3059
3074
|
value: deserializeStr(pos + 8),
|
|
@@ -3332,8 +3347,8 @@ function deserializeTSParenthesizedType(pos) {
|
|
|
3332
3347
|
node = {
|
|
3333
3348
|
type: 'TSParenthesizedType',
|
|
3334
3349
|
typeAnnotation: null,
|
|
3335
|
-
start: start = deserializeU32(pos),
|
|
3336
|
-
end: end = deserializeU32(pos + 4),
|
|
3350
|
+
start: (start = deserializeU32(pos)),
|
|
3351
|
+
end: (end = deserializeU32(pos + 4)),
|
|
3337
3352
|
range: [start, end],
|
|
3338
3353
|
};
|
|
3339
3354
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
@@ -3544,7 +3559,8 @@ function deserializeTSTupleElement(pos) {
|
|
|
3544
3559
|
}
|
|
3545
3560
|
|
|
3546
3561
|
function deserializeTSAnyKeyword(pos) {
|
|
3547
|
-
let start = deserializeU32(pos),
|
|
3562
|
+
let start = deserializeU32(pos),
|
|
3563
|
+
end = deserializeU32(pos + 4);
|
|
3548
3564
|
return {
|
|
3549
3565
|
type: 'TSAnyKeyword',
|
|
3550
3566
|
start,
|
|
@@ -3554,7 +3570,8 @@ function deserializeTSAnyKeyword(pos) {
|
|
|
3554
3570
|
}
|
|
3555
3571
|
|
|
3556
3572
|
function deserializeTSStringKeyword(pos) {
|
|
3557
|
-
let start = deserializeU32(pos),
|
|
3573
|
+
let start = deserializeU32(pos),
|
|
3574
|
+
end = deserializeU32(pos + 4);
|
|
3558
3575
|
return {
|
|
3559
3576
|
type: 'TSStringKeyword',
|
|
3560
3577
|
start,
|
|
@@ -3564,7 +3581,8 @@ function deserializeTSStringKeyword(pos) {
|
|
|
3564
3581
|
}
|
|
3565
3582
|
|
|
3566
3583
|
function deserializeTSBooleanKeyword(pos) {
|
|
3567
|
-
let start = deserializeU32(pos),
|
|
3584
|
+
let start = deserializeU32(pos),
|
|
3585
|
+
end = deserializeU32(pos + 4);
|
|
3568
3586
|
return {
|
|
3569
3587
|
type: 'TSBooleanKeyword',
|
|
3570
3588
|
start,
|
|
@@ -3574,7 +3592,8 @@ function deserializeTSBooleanKeyword(pos) {
|
|
|
3574
3592
|
}
|
|
3575
3593
|
|
|
3576
3594
|
function deserializeTSNumberKeyword(pos) {
|
|
3577
|
-
let start = deserializeU32(pos),
|
|
3595
|
+
let start = deserializeU32(pos),
|
|
3596
|
+
end = deserializeU32(pos + 4);
|
|
3578
3597
|
return {
|
|
3579
3598
|
type: 'TSNumberKeyword',
|
|
3580
3599
|
start,
|
|
@@ -3584,7 +3603,8 @@ function deserializeTSNumberKeyword(pos) {
|
|
|
3584
3603
|
}
|
|
3585
3604
|
|
|
3586
3605
|
function deserializeTSNeverKeyword(pos) {
|
|
3587
|
-
let start = deserializeU32(pos),
|
|
3606
|
+
let start = deserializeU32(pos),
|
|
3607
|
+
end = deserializeU32(pos + 4);
|
|
3588
3608
|
return {
|
|
3589
3609
|
type: 'TSNeverKeyword',
|
|
3590
3610
|
start,
|
|
@@ -3594,7 +3614,8 @@ function deserializeTSNeverKeyword(pos) {
|
|
|
3594
3614
|
}
|
|
3595
3615
|
|
|
3596
3616
|
function deserializeTSIntrinsicKeyword(pos) {
|
|
3597
|
-
let start = deserializeU32(pos),
|
|
3617
|
+
let start = deserializeU32(pos),
|
|
3618
|
+
end = deserializeU32(pos + 4);
|
|
3598
3619
|
return {
|
|
3599
3620
|
type: 'TSIntrinsicKeyword',
|
|
3600
3621
|
start,
|
|
@@ -3604,7 +3625,8 @@ function deserializeTSIntrinsicKeyword(pos) {
|
|
|
3604
3625
|
}
|
|
3605
3626
|
|
|
3606
3627
|
function deserializeTSUnknownKeyword(pos) {
|
|
3607
|
-
let start = deserializeU32(pos),
|
|
3628
|
+
let start = deserializeU32(pos),
|
|
3629
|
+
end = deserializeU32(pos + 4);
|
|
3608
3630
|
return {
|
|
3609
3631
|
type: 'TSUnknownKeyword',
|
|
3610
3632
|
start,
|
|
@@ -3614,7 +3636,8 @@ function deserializeTSUnknownKeyword(pos) {
|
|
|
3614
3636
|
}
|
|
3615
3637
|
|
|
3616
3638
|
function deserializeTSNullKeyword(pos) {
|
|
3617
|
-
let start = deserializeU32(pos),
|
|
3639
|
+
let start = deserializeU32(pos),
|
|
3640
|
+
end = deserializeU32(pos + 4);
|
|
3618
3641
|
return {
|
|
3619
3642
|
type: 'TSNullKeyword',
|
|
3620
3643
|
start,
|
|
@@ -3624,7 +3647,8 @@ function deserializeTSNullKeyword(pos) {
|
|
|
3624
3647
|
}
|
|
3625
3648
|
|
|
3626
3649
|
function deserializeTSUndefinedKeyword(pos) {
|
|
3627
|
-
let start = deserializeU32(pos),
|
|
3650
|
+
let start = deserializeU32(pos),
|
|
3651
|
+
end = deserializeU32(pos + 4);
|
|
3628
3652
|
return {
|
|
3629
3653
|
type: 'TSUndefinedKeyword',
|
|
3630
3654
|
start,
|
|
@@ -3634,7 +3658,8 @@ function deserializeTSUndefinedKeyword(pos) {
|
|
|
3634
3658
|
}
|
|
3635
3659
|
|
|
3636
3660
|
function deserializeTSVoidKeyword(pos) {
|
|
3637
|
-
let start = deserializeU32(pos),
|
|
3661
|
+
let start = deserializeU32(pos),
|
|
3662
|
+
end = deserializeU32(pos + 4);
|
|
3638
3663
|
return {
|
|
3639
3664
|
type: 'TSVoidKeyword',
|
|
3640
3665
|
start,
|
|
@@ -3644,7 +3669,8 @@ function deserializeTSVoidKeyword(pos) {
|
|
|
3644
3669
|
}
|
|
3645
3670
|
|
|
3646
3671
|
function deserializeTSSymbolKeyword(pos) {
|
|
3647
|
-
let start = deserializeU32(pos),
|
|
3672
|
+
let start = deserializeU32(pos),
|
|
3673
|
+
end = deserializeU32(pos + 4);
|
|
3648
3674
|
return {
|
|
3649
3675
|
type: 'TSSymbolKeyword',
|
|
3650
3676
|
start,
|
|
@@ -3654,7 +3680,8 @@ function deserializeTSSymbolKeyword(pos) {
|
|
|
3654
3680
|
}
|
|
3655
3681
|
|
|
3656
3682
|
function deserializeTSThisType(pos) {
|
|
3657
|
-
let start = deserializeU32(pos),
|
|
3683
|
+
let start = deserializeU32(pos),
|
|
3684
|
+
end = deserializeU32(pos + 4);
|
|
3658
3685
|
return {
|
|
3659
3686
|
type: 'TSThisType',
|
|
3660
3687
|
start,
|
|
@@ -3664,7 +3691,8 @@ function deserializeTSThisType(pos) {
|
|
|
3664
3691
|
}
|
|
3665
3692
|
|
|
3666
3693
|
function deserializeTSObjectKeyword(pos) {
|
|
3667
|
-
let start = deserializeU32(pos),
|
|
3694
|
+
let start = deserializeU32(pos),
|
|
3695
|
+
end = deserializeU32(pos + 4);
|
|
3668
3696
|
return {
|
|
3669
3697
|
type: 'TSObjectKeyword',
|
|
3670
3698
|
start,
|
|
@@ -3674,7 +3702,8 @@ function deserializeTSObjectKeyword(pos) {
|
|
|
3674
3702
|
}
|
|
3675
3703
|
|
|
3676
3704
|
function deserializeTSBigIntKeyword(pos) {
|
|
3677
|
-
let start = deserializeU32(pos),
|
|
3705
|
+
let start = deserializeU32(pos),
|
|
3706
|
+
end = deserializeU32(pos + 4);
|
|
3678
3707
|
return {
|
|
3679
3708
|
type: 'TSBigIntKeyword',
|
|
3680
3709
|
start,
|
|
@@ -4080,8 +4109,8 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4080
4109
|
type: 'TSQualifiedName',
|
|
4081
4110
|
left: id,
|
|
4082
4111
|
right: innerId,
|
|
4083
|
-
start: start = id.start,
|
|
4084
|
-
end: end = innerId.end,
|
|
4112
|
+
start: (start = id.start),
|
|
4113
|
+
end: (end = innerId.end),
|
|
4085
4114
|
range: [start, end],
|
|
4086
4115
|
};
|
|
4087
4116
|
} else {
|
|
@@ -4094,13 +4123,14 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4094
4123
|
if (innerId.left.type === 'Identifier') break;
|
|
4095
4124
|
innerId = innerId.left;
|
|
4096
4125
|
}
|
|
4097
|
-
let end,
|
|
4126
|
+
let end,
|
|
4127
|
+
right = innerId.left;
|
|
4098
4128
|
innerId.left = {
|
|
4099
4129
|
type: 'TSQualifiedName',
|
|
4100
4130
|
left: id,
|
|
4101
4131
|
right,
|
|
4102
4132
|
start,
|
|
4103
|
-
end: end = right.end,
|
|
4133
|
+
end: (end = right.end),
|
|
4104
4134
|
range: [start, end],
|
|
4105
4135
|
};
|
|
4106
4136
|
}
|
|
@@ -4296,7 +4326,7 @@ function deserializeTSConstructorType(pos) {
|
|
|
4296
4326
|
end = deserializeU32(pos + 4),
|
|
4297
4327
|
node = {
|
|
4298
4328
|
type: 'TSConstructorType',
|
|
4299
|
-
abstract: deserializeBool(pos +
|
|
4329
|
+
abstract: deserializeBool(pos + 36),
|
|
4300
4330
|
typeParameters: null,
|
|
4301
4331
|
params: null,
|
|
4302
4332
|
returnType: null,
|
|
@@ -4575,7 +4605,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4575
4605
|
}
|
|
4576
4606
|
|
|
4577
4607
|
function deserializeJSDocUnknownType(pos) {
|
|
4578
|
-
let start = deserializeU32(pos),
|
|
4608
|
+
let start = deserializeU32(pos),
|
|
4609
|
+
end = deserializeU32(pos + 4);
|
|
4579
4610
|
return {
|
|
4580
4611
|
type: 'TSJSDocUnknownType',
|
|
4581
4612
|
start,
|
|
@@ -4598,21 +4629,19 @@ function deserializeCommentKind(pos) {
|
|
|
4598
4629
|
function deserializeComment(pos) {
|
|
4599
4630
|
let type = deserializeCommentKind(pos + 12),
|
|
4600
4631
|
start = deserializeU32(pos),
|
|
4601
|
-
end = deserializeU32(pos + 4)
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
endCut = type === 'Line' ? 0 : 2;
|
|
4610
|
-
node.value = sourceText.slice(start + 2, end - endCut);
|
|
4611
|
-
return node;
|
|
4632
|
+
end = deserializeU32(pos + 4);
|
|
4633
|
+
return {
|
|
4634
|
+
type,
|
|
4635
|
+
value: sourceText.slice(start + 2, end - (type === 'Line' ? 0 : 2)),
|
|
4636
|
+
start,
|
|
4637
|
+
end,
|
|
4638
|
+
range: [start, end],
|
|
4639
|
+
};
|
|
4612
4640
|
}
|
|
4613
4641
|
|
|
4614
4642
|
function deserializeNameSpan(pos) {
|
|
4615
|
-
let start = deserializeU32(pos),
|
|
4643
|
+
let start = deserializeU32(pos),
|
|
4644
|
+
end = deserializeU32(pos + 4);
|
|
4616
4645
|
return {
|
|
4617
4646
|
value: deserializeStr(pos + 8),
|
|
4618
4647
|
start,
|
|
@@ -4663,7 +4692,8 @@ function deserializeImportImportName(pos) {
|
|
|
4663
4692
|
}
|
|
4664
4693
|
|
|
4665
4694
|
function deserializeExportEntry(pos) {
|
|
4666
|
-
let start = deserializeU32(pos),
|
|
4695
|
+
let start = deserializeU32(pos),
|
|
4696
|
+
end = deserializeU32(pos + 4);
|
|
4667
4697
|
return {
|
|
4668
4698
|
moduleRequest: deserializeOptionNameSpan(pos + 16),
|
|
4669
4699
|
importName: deserializeExportImportName(pos + 40),
|
|
@@ -4783,7 +4813,8 @@ function deserializeExportLocalName(pos) {
|
|
|
4783
4813
|
}
|
|
4784
4814
|
|
|
4785
4815
|
function deserializeDynamicImport(pos) {
|
|
4786
|
-
let start = deserializeU32(pos),
|
|
4816
|
+
let start = deserializeU32(pos),
|
|
4817
|
+
end = deserializeU32(pos + 4);
|
|
4787
4818
|
return {
|
|
4788
4819
|
moduleRequest: deserializeSpan(pos + 8),
|
|
4789
4820
|
start,
|
|
@@ -4978,7 +5009,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
4978
5009
|
}
|
|
4979
5010
|
|
|
4980
5011
|
function deserializeErrorLabel(pos) {
|
|
4981
|
-
let start = deserializeU32(pos),
|
|
5012
|
+
let start = deserializeU32(pos),
|
|
5013
|
+
end = deserializeU32(pos + 4);
|
|
4982
5014
|
return {
|
|
4983
5015
|
message: deserializeOptionStr(pos + 8),
|
|
4984
5016
|
start,
|
|
@@ -4998,7 +5030,8 @@ function deserializeEcmaScriptModule(pos) {
|
|
|
4998
5030
|
}
|
|
4999
5031
|
|
|
5000
5032
|
function deserializeStaticImport(pos) {
|
|
5001
|
-
let start = deserializeU32(pos),
|
|
5033
|
+
let start = deserializeU32(pos),
|
|
5034
|
+
end = deserializeU32(pos + 4);
|
|
5002
5035
|
return {
|
|
5003
5036
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
5004
5037
|
entries: deserializeVecImportEntry(pos + 32),
|
|
@@ -5009,7 +5042,8 @@ function deserializeStaticImport(pos) {
|
|
|
5009
5042
|
}
|
|
5010
5043
|
|
|
5011
5044
|
function deserializeStaticExport(pos) {
|
|
5012
|
-
let start = deserializeU32(pos),
|
|
5045
|
+
let start = deserializeU32(pos),
|
|
5046
|
+
end = deserializeU32(pos + 4);
|
|
5013
5047
|
return {
|
|
5014
5048
|
entries: deserializeVecExportEntry(pos + 8),
|
|
5015
5049
|
start,
|
|
@@ -5027,7 +5061,8 @@ function deserializeU8(pos) {
|
|
|
5027
5061
|
}
|
|
5028
5062
|
|
|
5029
5063
|
function deserializeStr(pos) {
|
|
5030
|
-
let pos32 = pos >> 2,
|
|
5064
|
+
let pos32 = pos >> 2,
|
|
5065
|
+
len = uint32[pos32 + 2];
|
|
5031
5066
|
if (len === 0) return '';
|
|
5032
5067
|
pos = uint32[pos32];
|
|
5033
5068
|
if (sourceIsAscii && pos < sourceByteLen) return sourceText.substr(pos, len);
|
|
@@ -5036,7 +5071,8 @@ function deserializeStr(pos) {
|
|
|
5036
5071
|
let end = pos + len;
|
|
5037
5072
|
if (len > 50) return decodeStr(uint8.subarray(pos, end));
|
|
5038
5073
|
// Shorter strings decode by hand to avoid native call
|
|
5039
|
-
let out = '',
|
|
5074
|
+
let out = '',
|
|
5075
|
+
c;
|
|
5040
5076
|
do {
|
|
5041
5077
|
c = uint8[pos++];
|
|
5042
5078
|
if (c < 128) out += fromCodePoint(c);
|
|
@@ -5049,10 +5085,11 @@ function deserializeStr(pos) {
|
|
|
5049
5085
|
}
|
|
5050
5086
|
|
|
5051
5087
|
function deserializeVecComment(pos) {
|
|
5052
|
-
let arr = [],
|
|
5088
|
+
let arr = [],
|
|
5089
|
+
pos32 = pos >> 2;
|
|
5053
5090
|
pos = uint32[pos32];
|
|
5054
5091
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5055
|
-
for (; pos !== endPos;) {
|
|
5092
|
+
for (; pos !== endPos; ) {
|
|
5056
5093
|
arr.push(deserializeComment(pos));
|
|
5057
5094
|
pos += 16;
|
|
5058
5095
|
}
|
|
@@ -5060,15 +5097,16 @@ function deserializeVecComment(pos) {
|
|
|
5060
5097
|
}
|
|
5061
5098
|
|
|
5062
5099
|
function deserializeOptionHashbang(pos) {
|
|
5063
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5100
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5064
5101
|
return deserializeHashbang(pos);
|
|
5065
5102
|
}
|
|
5066
5103
|
|
|
5067
5104
|
function deserializeVecDirective(pos) {
|
|
5068
|
-
let arr = [],
|
|
5105
|
+
let arr = [],
|
|
5106
|
+
pos32 = pos >> 2;
|
|
5069
5107
|
pos = uint32[pos32];
|
|
5070
5108
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5071
|
-
for (; pos !== endPos;) {
|
|
5109
|
+
for (; pos !== endPos; ) {
|
|
5072
5110
|
arr.push(deserializeDirective(pos));
|
|
5073
5111
|
pos += 72;
|
|
5074
5112
|
}
|
|
@@ -5076,10 +5114,11 @@ function deserializeVecDirective(pos) {
|
|
|
5076
5114
|
}
|
|
5077
5115
|
|
|
5078
5116
|
function deserializeVecStatement(pos) {
|
|
5079
|
-
let arr = [],
|
|
5117
|
+
let arr = [],
|
|
5118
|
+
pos32 = pos >> 2;
|
|
5080
5119
|
pos = uint32[pos32];
|
|
5081
5120
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5082
|
-
for (; pos !== endPos;) {
|
|
5121
|
+
for (; pos !== endPos; ) {
|
|
5083
5122
|
arr.push(deserializeStatement(pos));
|
|
5084
5123
|
pos += 16;
|
|
5085
5124
|
}
|
|
@@ -5247,10 +5286,11 @@ function deserializeBoxV8IntrinsicExpression(pos) {
|
|
|
5247
5286
|
}
|
|
5248
5287
|
|
|
5249
5288
|
function deserializeVecArrayExpressionElement(pos) {
|
|
5250
|
-
let arr = [],
|
|
5289
|
+
let arr = [],
|
|
5290
|
+
pos32 = pos >> 2;
|
|
5251
5291
|
pos = uint32[pos32];
|
|
5252
5292
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5253
|
-
for (; pos !== endPos;) {
|
|
5293
|
+
for (; pos !== endPos; ) {
|
|
5254
5294
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
5255
5295
|
pos += 16;
|
|
5256
5296
|
}
|
|
@@ -5262,10 +5302,11 @@ function deserializeBoxSpreadElement(pos) {
|
|
|
5262
5302
|
}
|
|
5263
5303
|
|
|
5264
5304
|
function deserializeVecObjectPropertyKind(pos) {
|
|
5265
|
-
let arr = [],
|
|
5305
|
+
let arr = [],
|
|
5306
|
+
pos32 = pos >> 2;
|
|
5266
5307
|
pos = uint32[pos32];
|
|
5267
5308
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5268
|
-
for (; pos !== endPos;) {
|
|
5309
|
+
for (; pos !== endPos; ) {
|
|
5269
5310
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
5270
5311
|
pos += 16;
|
|
5271
5312
|
}
|
|
@@ -5289,10 +5330,11 @@ function deserializeBoxPrivateIdentifier(pos) {
|
|
|
5289
5330
|
}
|
|
5290
5331
|
|
|
5291
5332
|
function deserializeVecTemplateElement(pos) {
|
|
5292
|
-
let arr = [],
|
|
5333
|
+
let arr = [],
|
|
5334
|
+
pos32 = pos >> 2;
|
|
5293
5335
|
pos = uint32[pos32];
|
|
5294
5336
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5295
|
-
for (; pos !== endPos;) {
|
|
5337
|
+
for (; pos !== endPos; ) {
|
|
5296
5338
|
arr.push(deserializeTemplateElement(pos));
|
|
5297
5339
|
pos += 48;
|
|
5298
5340
|
}
|
|
@@ -5300,10 +5342,11 @@ function deserializeVecTemplateElement(pos) {
|
|
|
5300
5342
|
}
|
|
5301
5343
|
|
|
5302
5344
|
function deserializeVecExpression(pos) {
|
|
5303
|
-
let arr = [],
|
|
5345
|
+
let arr = [],
|
|
5346
|
+
pos32 = pos >> 2;
|
|
5304
5347
|
pos = uint32[pos32];
|
|
5305
5348
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5306
|
-
for (; pos !== endPos;) {
|
|
5349
|
+
for (; pos !== endPos; ) {
|
|
5307
5350
|
arr.push(deserializeExpression(pos));
|
|
5308
5351
|
pos += 16;
|
|
5309
5352
|
}
|
|
@@ -5315,12 +5358,12 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
5315
5358
|
}
|
|
5316
5359
|
|
|
5317
5360
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5318
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5361
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5319
5362
|
return deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5320
5363
|
}
|
|
5321
5364
|
|
|
5322
5365
|
function deserializeOptionStr(pos) {
|
|
5323
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5366
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5324
5367
|
return deserializeStr(pos);
|
|
5325
5368
|
}
|
|
5326
5369
|
|
|
@@ -5337,10 +5380,11 @@ function deserializeBoxPrivateFieldExpression(pos) {
|
|
|
5337
5380
|
}
|
|
5338
5381
|
|
|
5339
5382
|
function deserializeVecArgument(pos) {
|
|
5340
|
-
let arr = [],
|
|
5383
|
+
let arr = [],
|
|
5384
|
+
pos32 = pos >> 2;
|
|
5341
5385
|
pos = uint32[pos32];
|
|
5342
5386
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5343
|
-
for (; pos !== endPos;) {
|
|
5387
|
+
for (; pos !== endPos; ) {
|
|
5344
5388
|
arr.push(deserializeArgument(pos));
|
|
5345
5389
|
pos += 16;
|
|
5346
5390
|
}
|
|
@@ -5361,10 +5405,11 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5361
5405
|
}
|
|
5362
5406
|
|
|
5363
5407
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
5364
|
-
let arr = [],
|
|
5408
|
+
let arr = [],
|
|
5409
|
+
pos32 = pos >> 2;
|
|
5365
5410
|
pos = uint32[pos32];
|
|
5366
5411
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5367
|
-
for (; pos !== endPos;) {
|
|
5412
|
+
for (; pos !== endPos; ) {
|
|
5368
5413
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
5369
5414
|
pos += 16;
|
|
5370
5415
|
}
|
|
@@ -5376,15 +5421,16 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
5376
5421
|
}
|
|
5377
5422
|
|
|
5378
5423
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5379
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5424
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5380
5425
|
return deserializeBoxAssignmentTargetRest(pos);
|
|
5381
5426
|
}
|
|
5382
5427
|
|
|
5383
5428
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
5384
|
-
let arr = [],
|
|
5429
|
+
let arr = [],
|
|
5430
|
+
pos32 = pos >> 2;
|
|
5385
5431
|
pos = uint32[pos32];
|
|
5386
5432
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5387
|
-
for (; pos !== endPos;) {
|
|
5433
|
+
for (; pos !== endPos; ) {
|
|
5388
5434
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
5389
5435
|
pos += 16;
|
|
5390
5436
|
}
|
|
@@ -5505,10 +5551,11 @@ function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
|
5505
5551
|
}
|
|
5506
5552
|
|
|
5507
5553
|
function deserializeVecVariableDeclarator(pos) {
|
|
5508
|
-
let arr = [],
|
|
5554
|
+
let arr = [],
|
|
5555
|
+
pos32 = pos >> 2;
|
|
5509
5556
|
pos = uint32[pos32];
|
|
5510
5557
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5511
|
-
for (; pos !== endPos;) {
|
|
5558
|
+
for (; pos !== endPos; ) {
|
|
5512
5559
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5513
5560
|
pos += 64;
|
|
5514
5561
|
}
|
|
@@ -5526,15 +5573,16 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5526
5573
|
}
|
|
5527
5574
|
|
|
5528
5575
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5529
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5576
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5530
5577
|
return deserializeLabelIdentifier(pos);
|
|
5531
5578
|
}
|
|
5532
5579
|
|
|
5533
5580
|
function deserializeVecSwitchCase(pos) {
|
|
5534
|
-
let arr = [],
|
|
5581
|
+
let arr = [],
|
|
5582
|
+
pos32 = pos >> 2;
|
|
5535
5583
|
pos = uint32[pos32];
|
|
5536
5584
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5537
|
-
for (; pos !== endPos;) {
|
|
5585
|
+
for (; pos !== endPos; ) {
|
|
5538
5586
|
arr.push(deserializeSwitchCase(pos));
|
|
5539
5587
|
pos += 48;
|
|
5540
5588
|
}
|
|
@@ -5546,12 +5594,12 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5546
5594
|
}
|
|
5547
5595
|
|
|
5548
5596
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5549
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5597
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5550
5598
|
return deserializeBoxCatchClause(pos);
|
|
5551
5599
|
}
|
|
5552
5600
|
|
|
5553
5601
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5554
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5602
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5555
5603
|
return deserializeBoxBlockStatement(pos);
|
|
5556
5604
|
}
|
|
5557
5605
|
|
|
@@ -5565,7 +5613,7 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5565
5613
|
}
|
|
5566
5614
|
|
|
5567
5615
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5568
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5616
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5569
5617
|
return deserializeBoxTSTypeAnnotation(pos);
|
|
5570
5618
|
}
|
|
5571
5619
|
|
|
@@ -5586,10 +5634,11 @@ function deserializeBoxAssignmentPattern(pos) {
|
|
|
5586
5634
|
}
|
|
5587
5635
|
|
|
5588
5636
|
function deserializeVecBindingProperty(pos) {
|
|
5589
|
-
let arr = [],
|
|
5637
|
+
let arr = [],
|
|
5638
|
+
pos32 = pos >> 2;
|
|
5590
5639
|
pos = uint32[pos32];
|
|
5591
5640
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5592
|
-
for (; pos !== endPos;) {
|
|
5641
|
+
for (; pos !== endPos; ) {
|
|
5593
5642
|
arr.push(deserializeBindingProperty(pos));
|
|
5594
5643
|
pos += 64;
|
|
5595
5644
|
}
|
|
@@ -5601,7 +5650,7 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5601
5650
|
}
|
|
5602
5651
|
|
|
5603
5652
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5604
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5653
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5605
5654
|
return deserializeBoxBindingRestElement(pos);
|
|
5606
5655
|
}
|
|
5607
5656
|
|
|
@@ -5611,10 +5660,11 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5611
5660
|
}
|
|
5612
5661
|
|
|
5613
5662
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5614
|
-
let arr = [],
|
|
5663
|
+
let arr = [],
|
|
5664
|
+
pos32 = pos >> 2;
|
|
5615
5665
|
pos = uint32[pos32];
|
|
5616
5666
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5617
|
-
for (; pos !== endPos;) {
|
|
5667
|
+
for (; pos !== endPos; ) {
|
|
5618
5668
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5619
5669
|
pos += 32;
|
|
5620
5670
|
}
|
|
@@ -5622,7 +5672,7 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5622
5672
|
}
|
|
5623
5673
|
|
|
5624
5674
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5625
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5675
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5626
5676
|
return deserializeBindingIdentifier(pos);
|
|
5627
5677
|
}
|
|
5628
5678
|
|
|
@@ -5631,7 +5681,7 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5631
5681
|
}
|
|
5632
5682
|
|
|
5633
5683
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5634
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5684
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5635
5685
|
return deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5636
5686
|
}
|
|
5637
5687
|
|
|
@@ -5640,7 +5690,7 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5640
5690
|
}
|
|
5641
5691
|
|
|
5642
5692
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5643
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5693
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5644
5694
|
return deserializeBoxTSThisParameter(pos);
|
|
5645
5695
|
}
|
|
5646
5696
|
|
|
@@ -5653,15 +5703,16 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5653
5703
|
}
|
|
5654
5704
|
|
|
5655
5705
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5656
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5706
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5657
5707
|
return deserializeBoxFunctionBody(pos);
|
|
5658
5708
|
}
|
|
5659
5709
|
|
|
5660
5710
|
function deserializeVecFormalParameter(pos) {
|
|
5661
|
-
let arr = [],
|
|
5711
|
+
let arr = [],
|
|
5712
|
+
pos32 = pos >> 2;
|
|
5662
5713
|
pos = uint32[pos32];
|
|
5663
5714
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5664
|
-
for (; pos !== endPos;) {
|
|
5715
|
+
for (; pos !== endPos; ) {
|
|
5665
5716
|
arr.push(deserializeFormalParameter(pos));
|
|
5666
5717
|
pos += 72;
|
|
5667
5718
|
}
|
|
@@ -5669,10 +5720,11 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5669
5720
|
}
|
|
5670
5721
|
|
|
5671
5722
|
function deserializeVecDecorator(pos) {
|
|
5672
|
-
let arr = [],
|
|
5723
|
+
let arr = [],
|
|
5724
|
+
pos32 = pos >> 2;
|
|
5673
5725
|
pos = uint32[pos32];
|
|
5674
5726
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
5675
|
-
for (; pos !== endPos;) {
|
|
5727
|
+
for (; pos !== endPos; ) {
|
|
5676
5728
|
arr.push(deserializeDecorator(pos));
|
|
5677
5729
|
pos += 24;
|
|
5678
5730
|
}
|
|
@@ -5684,10 +5736,11 @@ function deserializeBoxClassBody(pos) {
|
|
|
5684
5736
|
}
|
|
5685
5737
|
|
|
5686
5738
|
function deserializeVecClassElement(pos) {
|
|
5687
|
-
let arr = [],
|
|
5739
|
+
let arr = [],
|
|
5740
|
+
pos32 = pos >> 2;
|
|
5688
5741
|
pos = uint32[pos32];
|
|
5689
5742
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5690
|
-
for (; pos !== endPos;) {
|
|
5743
|
+
for (; pos !== endPos; ) {
|
|
5691
5744
|
arr.push(deserializeClassElement(pos));
|
|
5692
5745
|
pos += 16;
|
|
5693
5746
|
}
|
|
@@ -5744,10 +5797,11 @@ function deserializeOptionImportPhase(pos) {
|
|
|
5744
5797
|
}
|
|
5745
5798
|
|
|
5746
5799
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
5747
|
-
let arr = [],
|
|
5800
|
+
let arr = [],
|
|
5801
|
+
pos32 = pos >> 2;
|
|
5748
5802
|
pos = uint32[pos32];
|
|
5749
5803
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5750
|
-
for (; pos !== endPos;) {
|
|
5804
|
+
for (; pos !== endPos; ) {
|
|
5751
5805
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
5752
5806
|
pos += 16;
|
|
5753
5807
|
}
|
|
@@ -5755,7 +5809,7 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5755
5809
|
}
|
|
5756
5810
|
|
|
5757
5811
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5758
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5812
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5759
5813
|
return deserializeVecImportDeclarationSpecifier(pos);
|
|
5760
5814
|
}
|
|
5761
5815
|
|
|
@@ -5764,7 +5818,7 @@ function deserializeBoxWithClause(pos) {
|
|
|
5764
5818
|
}
|
|
5765
5819
|
|
|
5766
5820
|
function deserializeOptionBoxWithClause(pos) {
|
|
5767
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5821
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5768
5822
|
return deserializeBoxWithClause(pos);
|
|
5769
5823
|
}
|
|
5770
5824
|
|
|
@@ -5781,10 +5835,11 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
|
5781
5835
|
}
|
|
5782
5836
|
|
|
5783
5837
|
function deserializeVecImportAttribute(pos) {
|
|
5784
|
-
let arr = [],
|
|
5838
|
+
let arr = [],
|
|
5839
|
+
pos32 = pos >> 2;
|
|
5785
5840
|
pos = uint32[pos32];
|
|
5786
5841
|
let endPos = pos + uint32[pos32 + 2] * 112;
|
|
5787
|
-
for (; pos !== endPos;) {
|
|
5842
|
+
for (; pos !== endPos; ) {
|
|
5788
5843
|
arr.push(deserializeImportAttribute(pos));
|
|
5789
5844
|
pos += 112;
|
|
5790
5845
|
}
|
|
@@ -5797,10 +5852,11 @@ function deserializeOptionDeclaration(pos) {
|
|
|
5797
5852
|
}
|
|
5798
5853
|
|
|
5799
5854
|
function deserializeVecExportSpecifier(pos) {
|
|
5800
|
-
let arr = [],
|
|
5855
|
+
let arr = [],
|
|
5856
|
+
pos32 = pos >> 2;
|
|
5801
5857
|
pos = uint32[pos32];
|
|
5802
5858
|
let endPos = pos + uint32[pos32 + 2] * 128;
|
|
5803
|
-
for (; pos !== endPos;) {
|
|
5859
|
+
for (; pos !== endPos; ) {
|
|
5804
5860
|
arr.push(deserializeExportSpecifier(pos));
|
|
5805
5861
|
pos += 128;
|
|
5806
5862
|
}
|
|
@@ -5826,10 +5882,11 @@ function deserializeBoxJSXOpeningElement(pos) {
|
|
|
5826
5882
|
}
|
|
5827
5883
|
|
|
5828
5884
|
function deserializeVecJSXChild(pos) {
|
|
5829
|
-
let arr = [],
|
|
5885
|
+
let arr = [],
|
|
5886
|
+
pos32 = pos >> 2;
|
|
5830
5887
|
pos = uint32[pos32];
|
|
5831
5888
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5832
|
-
for (; pos !== endPos;) {
|
|
5889
|
+
for (; pos !== endPos; ) {
|
|
5833
5890
|
arr.push(deserializeJSXChild(pos));
|
|
5834
5891
|
pos += 16;
|
|
5835
5892
|
}
|
|
@@ -5841,15 +5898,16 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
5841
5898
|
}
|
|
5842
5899
|
|
|
5843
5900
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5844
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5901
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5845
5902
|
return deserializeBoxJSXClosingElement(pos);
|
|
5846
5903
|
}
|
|
5847
5904
|
|
|
5848
5905
|
function deserializeVecJSXAttributeItem(pos) {
|
|
5849
|
-
let arr = [],
|
|
5906
|
+
let arr = [],
|
|
5907
|
+
pos32 = pos >> 2;
|
|
5850
5908
|
pos = uint32[pos32];
|
|
5851
5909
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5852
|
-
for (; pos !== endPos;) {
|
|
5910
|
+
for (; pos !== endPos; ) {
|
|
5853
5911
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
5854
5912
|
pos += 16;
|
|
5855
5913
|
}
|
|
@@ -5894,10 +5952,11 @@ function deserializeBoxJSXSpreadChild(pos) {
|
|
|
5894
5952
|
}
|
|
5895
5953
|
|
|
5896
5954
|
function deserializeVecTSEnumMember(pos) {
|
|
5897
|
-
let arr = [],
|
|
5955
|
+
let arr = [],
|
|
5956
|
+
pos32 = pos >> 2;
|
|
5898
5957
|
pos = uint32[pos32];
|
|
5899
5958
|
let endPos = pos + uint32[pos32 + 2] * 40;
|
|
5900
|
-
for (; pos !== endPos;) {
|
|
5959
|
+
for (; pos !== endPos; ) {
|
|
5901
5960
|
arr.push(deserializeTSEnumMember(pos));
|
|
5902
5961
|
pos += 40;
|
|
5903
5962
|
}
|
|
@@ -6053,10 +6112,11 @@ function deserializeBoxJSDocUnknownType(pos) {
|
|
|
6053
6112
|
}
|
|
6054
6113
|
|
|
6055
6114
|
function deserializeVecTSType(pos) {
|
|
6056
|
-
let arr = [],
|
|
6115
|
+
let arr = [],
|
|
6116
|
+
pos32 = pos >> 2;
|
|
6057
6117
|
pos = uint32[pos32];
|
|
6058
6118
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6059
|
-
for (; pos !== endPos;) {
|
|
6119
|
+
for (; pos !== endPos; ) {
|
|
6060
6120
|
arr.push(deserializeTSType(pos));
|
|
6061
6121
|
pos += 16;
|
|
6062
6122
|
}
|
|
@@ -6064,10 +6124,11 @@ function deserializeVecTSType(pos) {
|
|
|
6064
6124
|
}
|
|
6065
6125
|
|
|
6066
6126
|
function deserializeVecTSTupleElement(pos) {
|
|
6067
|
-
let arr = [],
|
|
6127
|
+
let arr = [],
|
|
6128
|
+
pos32 = pos >> 2;
|
|
6068
6129
|
pos = uint32[pos32];
|
|
6069
6130
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6070
|
-
for (; pos !== endPos;) {
|
|
6131
|
+
for (; pos !== endPos; ) {
|
|
6071
6132
|
arr.push(deserializeTSTupleElement(pos));
|
|
6072
6133
|
pos += 16;
|
|
6073
6134
|
}
|
|
@@ -6092,10 +6153,11 @@ function deserializeOptionTSType(pos) {
|
|
|
6092
6153
|
}
|
|
6093
6154
|
|
|
6094
6155
|
function deserializeVecTSTypeParameter(pos) {
|
|
6095
|
-
let arr = [],
|
|
6156
|
+
let arr = [],
|
|
6157
|
+
pos32 = pos >> 2;
|
|
6096
6158
|
pos = uint32[pos32];
|
|
6097
6159
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6098
|
-
for (; pos !== endPos;) {
|
|
6160
|
+
for (; pos !== endPos; ) {
|
|
6099
6161
|
arr.push(deserializeTSTypeParameter(pos));
|
|
6100
6162
|
pos += 80;
|
|
6101
6163
|
}
|
|
@@ -6103,10 +6165,11 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
6103
6165
|
}
|
|
6104
6166
|
|
|
6105
6167
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
6106
|
-
let arr = [],
|
|
6168
|
+
let arr = [],
|
|
6169
|
+
pos32 = pos >> 2;
|
|
6107
6170
|
pos = uint32[pos32];
|
|
6108
6171
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6109
|
-
for (; pos !== endPos;) {
|
|
6172
|
+
for (; pos !== endPos; ) {
|
|
6110
6173
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
6111
6174
|
pos += 32;
|
|
6112
6175
|
}
|
|
@@ -6118,10 +6181,11 @@ function deserializeBoxTSInterfaceBody(pos) {
|
|
|
6118
6181
|
}
|
|
6119
6182
|
|
|
6120
6183
|
function deserializeVecTSSignature(pos) {
|
|
6121
|
-
let arr = [],
|
|
6184
|
+
let arr = [],
|
|
6185
|
+
pos32 = pos >> 2;
|
|
6122
6186
|
pos = uint32[pos32];
|
|
6123
6187
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6124
|
-
for (; pos !== endPos;) {
|
|
6188
|
+
for (; pos !== endPos; ) {
|
|
6125
6189
|
arr.push(deserializeTSSignature(pos));
|
|
6126
6190
|
pos += 16;
|
|
6127
6191
|
}
|
|
@@ -6145,10 +6209,11 @@ function deserializeBoxTSMethodSignature(pos) {
|
|
|
6145
6209
|
}
|
|
6146
6210
|
|
|
6147
6211
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
6148
|
-
let arr = [],
|
|
6212
|
+
let arr = [],
|
|
6213
|
+
pos32 = pos >> 2;
|
|
6149
6214
|
pos = uint32[pos32];
|
|
6150
6215
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6151
|
-
for (; pos !== endPos;) {
|
|
6216
|
+
for (; pos !== endPos; ) {
|
|
6152
6217
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
6153
6218
|
pos += 32;
|
|
6154
6219
|
}
|
|
@@ -6169,7 +6234,7 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
6169
6234
|
}
|
|
6170
6235
|
|
|
6171
6236
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6172
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6237
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6173
6238
|
return deserializeBoxObjectExpression(pos);
|
|
6174
6239
|
}
|
|
6175
6240
|
|
|
@@ -6192,15 +6257,16 @@ function deserializeBoxTSExternalModuleReference(pos) {
|
|
|
6192
6257
|
}
|
|
6193
6258
|
|
|
6194
6259
|
function deserializeOptionNameSpan(pos) {
|
|
6195
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
6260
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
6196
6261
|
return deserializeNameSpan(pos);
|
|
6197
6262
|
}
|
|
6198
6263
|
|
|
6199
6264
|
function deserializeVecError(pos) {
|
|
6200
|
-
let arr = [],
|
|
6265
|
+
let arr = [],
|
|
6266
|
+
pos32 = pos >> 2;
|
|
6201
6267
|
pos = uint32[pos32];
|
|
6202
6268
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6203
|
-
for (; pos !== endPos;) {
|
|
6269
|
+
for (; pos !== endPos; ) {
|
|
6204
6270
|
arr.push(deserializeError(pos));
|
|
6205
6271
|
pos += 80;
|
|
6206
6272
|
}
|
|
@@ -6208,10 +6274,11 @@ function deserializeVecError(pos) {
|
|
|
6208
6274
|
}
|
|
6209
6275
|
|
|
6210
6276
|
function deserializeVecErrorLabel(pos) {
|
|
6211
|
-
let arr = [],
|
|
6277
|
+
let arr = [],
|
|
6278
|
+
pos32 = pos >> 2;
|
|
6212
6279
|
pos = uint32[pos32];
|
|
6213
6280
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
6214
|
-
for (; pos !== endPos;) {
|
|
6281
|
+
for (; pos !== endPos; ) {
|
|
6215
6282
|
arr.push(deserializeErrorLabel(pos));
|
|
6216
6283
|
pos += 24;
|
|
6217
6284
|
}
|
|
@@ -6219,10 +6286,11 @@ function deserializeVecErrorLabel(pos) {
|
|
|
6219
6286
|
}
|
|
6220
6287
|
|
|
6221
6288
|
function deserializeVecStaticImport(pos) {
|
|
6222
|
-
let arr = [],
|
|
6289
|
+
let arr = [],
|
|
6290
|
+
pos32 = pos >> 2;
|
|
6223
6291
|
pos = uint32[pos32];
|
|
6224
6292
|
let endPos = pos + uint32[pos32 + 2] * 56;
|
|
6225
|
-
for (; pos !== endPos;) {
|
|
6293
|
+
for (; pos !== endPos; ) {
|
|
6226
6294
|
arr.push(deserializeStaticImport(pos));
|
|
6227
6295
|
pos += 56;
|
|
6228
6296
|
}
|
|
@@ -6230,10 +6298,11 @@ function deserializeVecStaticImport(pos) {
|
|
|
6230
6298
|
}
|
|
6231
6299
|
|
|
6232
6300
|
function deserializeVecStaticExport(pos) {
|
|
6233
|
-
let arr = [],
|
|
6301
|
+
let arr = [],
|
|
6302
|
+
pos32 = pos >> 2;
|
|
6234
6303
|
pos = uint32[pos32];
|
|
6235
6304
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6236
|
-
for (; pos !== endPos;) {
|
|
6305
|
+
for (; pos !== endPos; ) {
|
|
6237
6306
|
arr.push(deserializeStaticExport(pos));
|
|
6238
6307
|
pos += 32;
|
|
6239
6308
|
}
|
|
@@ -6241,10 +6310,11 @@ function deserializeVecStaticExport(pos) {
|
|
|
6241
6310
|
}
|
|
6242
6311
|
|
|
6243
6312
|
function deserializeVecDynamicImport(pos) {
|
|
6244
|
-
let arr = [],
|
|
6313
|
+
let arr = [],
|
|
6314
|
+
pos32 = pos >> 2;
|
|
6245
6315
|
pos = uint32[pos32];
|
|
6246
6316
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6247
|
-
for (; pos !== endPos;) {
|
|
6317
|
+
for (; pos !== endPos; ) {
|
|
6248
6318
|
arr.push(deserializeDynamicImport(pos));
|
|
6249
6319
|
pos += 16;
|
|
6250
6320
|
}
|
|
@@ -6252,10 +6322,11 @@ function deserializeVecDynamicImport(pos) {
|
|
|
6252
6322
|
}
|
|
6253
6323
|
|
|
6254
6324
|
function deserializeVecSpan(pos) {
|
|
6255
|
-
let arr = [],
|
|
6325
|
+
let arr = [],
|
|
6326
|
+
pos32 = pos >> 2;
|
|
6256
6327
|
pos = uint32[pos32];
|
|
6257
6328
|
let endPos = pos + uint32[pos32 + 2] * 8;
|
|
6258
|
-
for (; pos !== endPos;) {
|
|
6329
|
+
for (; pos !== endPos; ) {
|
|
6259
6330
|
arr.push(deserializeSpan(pos));
|
|
6260
6331
|
pos += 8;
|
|
6261
6332
|
}
|
|
@@ -6263,10 +6334,11 @@ function deserializeVecSpan(pos) {
|
|
|
6263
6334
|
}
|
|
6264
6335
|
|
|
6265
6336
|
function deserializeVecImportEntry(pos) {
|
|
6266
|
-
let arr = [],
|
|
6337
|
+
let arr = [],
|
|
6338
|
+
pos32 = pos >> 2;
|
|
6267
6339
|
pos = uint32[pos32];
|
|
6268
6340
|
let endPos = pos + uint32[pos32 + 2] * 96;
|
|
6269
|
-
for (; pos !== endPos;) {
|
|
6341
|
+
for (; pos !== endPos; ) {
|
|
6270
6342
|
arr.push(deserializeImportEntry(pos));
|
|
6271
6343
|
pos += 96;
|
|
6272
6344
|
}
|
|
@@ -6274,10 +6346,11 @@ function deserializeVecImportEntry(pos) {
|
|
|
6274
6346
|
}
|
|
6275
6347
|
|
|
6276
6348
|
function deserializeVecExportEntry(pos) {
|
|
6277
|
-
let arr = [],
|
|
6349
|
+
let arr = [],
|
|
6350
|
+
pos32 = pos >> 2;
|
|
6278
6351
|
pos = uint32[pos32];
|
|
6279
6352
|
let endPos = pos + uint32[pos32 + 2] * 144;
|
|
6280
|
-
for (; pos !== endPos;) {
|
|
6353
|
+
for (; pos !== endPos; ) {
|
|
6281
6354
|
arr.push(deserializeExportEntry(pos));
|
|
6282
6355
|
pos += 144;
|
|
6283
6356
|
}
|