oxc-parser 0.95.0 → 0.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/deserialize/js.js +203 -152
- package/generated/deserialize/js_range.js +259 -183
- package/generated/deserialize/ts.js +208 -172
- package/generated/deserialize/ts_range.js +272 -210
- package/generated/lazy/constructors.js +119 -347
- package/generated/lazy/walk.js +581 -312
- package/generated/visit/walk.js +279 -140
- package/package.json +20 -19
- package/src-js/bindings.js +53 -53
- package/src-js/raw-transfer/common.js +2 -1
- package/src-js/raw-transfer/eager.js +1 -1
- package/src-js/raw-transfer/lazy.js +2 -3
- package/src-js/raw-transfer/node-array.js +2 -2
- package/src-js/raw-transfer/supported.js +1 -1
- package/src-js/raw-transfer/visitor.js +2 -2
- package/src-js/visit/index.js +4 -1
- package/src-js/visit/visitor.js +1 -1
- package/src-js/webcontainer-fallback.cjs +1 -3
- package/src-js/wrap.js +1 -1
|
@@ -8,11 +8,9 @@ const textDecoder = new TextDecoder('utf-8', { ignoreBOM: true }),
|
|
|
8
8
|
{ fromCodePoint } = String;
|
|
9
9
|
|
|
10
10
|
export function deserialize(buffer, sourceText, sourceByteLen) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export function deserializeProgramOnly(buffer, sourceText, sourceByteLen, getLoc) {
|
|
15
|
-
return deserializeWith(buffer, sourceText, sourceByteLen, getLoc, deserializeProgram);
|
|
11
|
+
let data = deserializeWith(buffer, sourceText, sourceByteLen, null, deserializeRawTransferData);
|
|
12
|
+
resetBuffer();
|
|
13
|
+
return data;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
function deserializeWith(buffer, sourceTextInput, sourceByteLenInput, getLocInput, deserialize) {
|
|
@@ -22,13 +20,12 @@ function deserializeWith(buffer, sourceTextInput, sourceByteLenInput, getLocInpu
|
|
|
22
20
|
sourceText = sourceTextInput;
|
|
23
21
|
sourceByteLen = sourceByteLenInput;
|
|
24
22
|
sourceIsAscii = sourceText.length === sourceByteLen;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return data;
|
|
23
|
+
return deserialize(uint32[536870902]);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function resetBuffer() {
|
|
27
|
+
// Clear buffer and source text string to allow them to be garbage collected
|
|
28
|
+
uint8 = uint32 = float64 = sourceText = void 0;
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
function deserializeProgram(pos) {
|
|
@@ -43,7 +40,7 @@ function deserializeProgram(pos) {
|
|
|
43
40
|
range: [0, end],
|
|
44
41
|
};
|
|
45
42
|
program.hashbang = deserializeOptionHashbang(pos + 48);
|
|
46
|
-
let body = program.body = deserializeVecDirective(pos + 72);
|
|
43
|
+
let body = (program.body = deserializeVecDirective(pos + 72));
|
|
47
44
|
body.push(...deserializeVecStatement(pos + 96));
|
|
48
45
|
{
|
|
49
46
|
let start;
|
|
@@ -171,7 +168,6 @@ function deserializeIdentifierName(pos) {
|
|
|
171
168
|
};
|
|
172
169
|
node.decorators = [];
|
|
173
170
|
node.optional = false;
|
|
174
|
-
node.typeAnnotation = null;
|
|
175
171
|
return node;
|
|
176
172
|
}
|
|
177
173
|
|
|
@@ -190,7 +186,6 @@ function deserializeIdentifierReference(pos) {
|
|
|
190
186
|
};
|
|
191
187
|
node.decorators = [];
|
|
192
188
|
node.optional = false;
|
|
193
|
-
node.typeAnnotation = null;
|
|
194
189
|
return node;
|
|
195
190
|
}
|
|
196
191
|
|
|
@@ -209,7 +204,6 @@ function deserializeBindingIdentifier(pos) {
|
|
|
209
204
|
};
|
|
210
205
|
node.decorators = [];
|
|
211
206
|
node.optional = false;
|
|
212
|
-
node.typeAnnotation = null;
|
|
213
207
|
return node;
|
|
214
208
|
}
|
|
215
209
|
|
|
@@ -228,12 +222,12 @@ function deserializeLabelIdentifier(pos) {
|
|
|
228
222
|
};
|
|
229
223
|
node.decorators = [];
|
|
230
224
|
node.optional = false;
|
|
231
|
-
node.typeAnnotation = null;
|
|
232
225
|
return node;
|
|
233
226
|
}
|
|
234
227
|
|
|
235
228
|
function deserializeThisExpression(pos) {
|
|
236
|
-
let start = deserializeU32(pos),
|
|
229
|
+
let start = deserializeU32(pos),
|
|
230
|
+
end = deserializeU32(pos + 4);
|
|
237
231
|
return {
|
|
238
232
|
type: 'ThisExpression',
|
|
239
233
|
start,
|
|
@@ -553,7 +547,8 @@ function deserializeTemplateElement(pos) {
|
|
|
553
547
|
start = deserializeU32(pos) - 1,
|
|
554
548
|
end = deserializeU32(pos + 4) + 2 - tail,
|
|
555
549
|
value = deserializeTemplateElementValue(pos + 8);
|
|
556
|
-
value.cooked !== null &&
|
|
550
|
+
value.cooked !== null &&
|
|
551
|
+
deserializeBool(pos + 41) &&
|
|
557
552
|
(value.cooked = value.cooked.replace(/\uFFFD(.{4})/g, (_, hex) => String.fromCodePoint(parseInt(hex, 16))));
|
|
558
553
|
return {
|
|
559
554
|
type: 'TemplateElement',
|
|
@@ -980,7 +975,6 @@ function deserializeArrayAssignmentTarget(pos) {
|
|
|
980
975
|
node.decorators = [];
|
|
981
976
|
node.elements = elements;
|
|
982
977
|
node.optional = false;
|
|
983
|
-
node.typeAnnotation = null;
|
|
984
978
|
return node;
|
|
985
979
|
}
|
|
986
980
|
|
|
@@ -1003,7 +997,6 @@ function deserializeObjectAssignmentTarget(pos) {
|
|
|
1003
997
|
node.decorators = [];
|
|
1004
998
|
node.properties = properties;
|
|
1005
999
|
node.optional = false;
|
|
1006
|
-
node.typeAnnotation = null;
|
|
1007
1000
|
return node;
|
|
1008
1001
|
}
|
|
1009
1002
|
|
|
@@ -1024,8 +1017,6 @@ function deserializeAssignmentTargetRest(pos) {
|
|
|
1024
1017
|
node.decorators = [];
|
|
1025
1018
|
node.argument = deserializeAssignmentTarget(pos + 8);
|
|
1026
1019
|
node.optional = false;
|
|
1027
|
-
node.typeAnnotation = null;
|
|
1028
|
-
node.value = null;
|
|
1029
1020
|
return node;
|
|
1030
1021
|
}
|
|
1031
1022
|
|
|
@@ -1076,7 +1067,6 @@ function deserializeAssignmentTargetWithDefault(pos) {
|
|
|
1076
1067
|
node.left = deserializeAssignmentTarget(pos + 8);
|
|
1077
1068
|
node.right = deserializeExpression(pos + 24);
|
|
1078
1069
|
node.optional = false;
|
|
1079
|
-
node.typeAnnotation = null;
|
|
1080
1070
|
return node;
|
|
1081
1071
|
}
|
|
1082
1072
|
|
|
@@ -1108,19 +1098,31 @@ function deserializeAssignmentTargetPropertyIdentifier(pos) {
|
|
|
1108
1098
|
range: [start, end],
|
|
1109
1099
|
},
|
|
1110
1100
|
key = deserializeIdentifierReference(pos + 8),
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1101
|
+
keyStart,
|
|
1102
|
+
keyEnd,
|
|
1103
|
+
value = {
|
|
1104
|
+
type: 'Identifier',
|
|
1105
|
+
decorators: [],
|
|
1106
|
+
name: key.name,
|
|
1107
|
+
optional: false,
|
|
1108
|
+
typeAnnotation: null,
|
|
1109
|
+
start: (keyStart = key.start),
|
|
1110
|
+
end: (keyEnd = key.end),
|
|
1111
|
+
range: [keyStart, keyEnd],
|
|
1112
|
+
},
|
|
1113
|
+
init = deserializeOptionExpression(pos + 40);
|
|
1114
|
+
init !== null &&
|
|
1115
|
+
(value = {
|
|
1116
|
+
type: 'AssignmentPattern',
|
|
1117
|
+
decorators: [],
|
|
1118
|
+
left: value,
|
|
1119
|
+
right: init,
|
|
1120
|
+
optional: false,
|
|
1121
|
+
typeAnnotation: null,
|
|
1122
|
+
start,
|
|
1123
|
+
end,
|
|
1124
|
+
range: [start, end],
|
|
1125
|
+
});
|
|
1124
1126
|
node.kind = 'init';
|
|
1125
1127
|
node.key = key;
|
|
1126
1128
|
node.value = value;
|
|
@@ -1171,7 +1173,8 @@ function deserializeSequenceExpression(pos) {
|
|
|
1171
1173
|
}
|
|
1172
1174
|
|
|
1173
1175
|
function deserializeSuper(pos) {
|
|
1174
|
-
let start = deserializeU32(pos),
|
|
1176
|
+
let start = deserializeU32(pos),
|
|
1177
|
+
end = deserializeU32(pos + 4);
|
|
1175
1178
|
return {
|
|
1176
1179
|
type: 'Super',
|
|
1177
1180
|
start,
|
|
@@ -1232,8 +1235,8 @@ function deserializeParenthesizedExpression(pos) {
|
|
|
1232
1235
|
node = {
|
|
1233
1236
|
type: 'ParenthesizedExpression',
|
|
1234
1237
|
expression: null,
|
|
1235
|
-
start: start = deserializeU32(pos),
|
|
1236
|
-
end: end = deserializeU32(pos + 4),
|
|
1238
|
+
start: (start = deserializeU32(pos)),
|
|
1239
|
+
end: (end = deserializeU32(pos + 4)),
|
|
1237
1240
|
range: [start, end],
|
|
1238
1241
|
};
|
|
1239
1242
|
node.expression = deserializeExpression(pos + 8);
|
|
@@ -1328,7 +1331,8 @@ function deserializeDirective(pos) {
|
|
|
1328
1331
|
}
|
|
1329
1332
|
|
|
1330
1333
|
function deserializeHashbang(pos) {
|
|
1331
|
-
let start = deserializeU32(pos),
|
|
1334
|
+
let start = deserializeU32(pos),
|
|
1335
|
+
end = deserializeU32(pos + 4);
|
|
1332
1336
|
return {
|
|
1333
1337
|
type: 'Hashbang',
|
|
1334
1338
|
value: deserializeStr(pos + 8),
|
|
@@ -1426,7 +1430,8 @@ function deserializeVariableDeclarator(pos) {
|
|
|
1426
1430
|
}
|
|
1427
1431
|
|
|
1428
1432
|
function deserializeEmptyStatement(pos) {
|
|
1429
|
-
let start = deserializeU32(pos),
|
|
1433
|
+
let start = deserializeU32(pos),
|
|
1434
|
+
end = deserializeU32(pos + 4);
|
|
1430
1435
|
return {
|
|
1431
1436
|
type: 'EmptyStatement',
|
|
1432
1437
|
start,
|
|
@@ -1447,7 +1452,6 @@ function deserializeExpressionStatement(pos) {
|
|
|
1447
1452
|
range: [start, end],
|
|
1448
1453
|
};
|
|
1449
1454
|
node.expression = deserializeExpression(pos + 8);
|
|
1450
|
-
node.directive = null;
|
|
1451
1455
|
return node;
|
|
1452
1456
|
}
|
|
1453
1457
|
|
|
@@ -1841,7 +1845,8 @@ function deserializeCatchParameter(pos) {
|
|
|
1841
1845
|
}
|
|
1842
1846
|
|
|
1843
1847
|
function deserializeDebuggerStatement(pos) {
|
|
1844
|
-
let start = deserializeU32(pos),
|
|
1848
|
+
let start = deserializeU32(pos),
|
|
1849
|
+
end = deserializeU32(pos + 4);
|
|
1845
1850
|
return {
|
|
1846
1851
|
type: 'DebuggerStatement',
|
|
1847
1852
|
start,
|
|
@@ -1890,7 +1895,6 @@ function deserializeAssignmentPattern(pos) {
|
|
|
1890
1895
|
node.left = deserializeBindingPattern(pos + 8);
|
|
1891
1896
|
node.right = deserializeExpression(pos + 40);
|
|
1892
1897
|
node.optional = false;
|
|
1893
|
-
node.typeAnnotation = null;
|
|
1894
1898
|
return node;
|
|
1895
1899
|
}
|
|
1896
1900
|
|
|
@@ -1913,7 +1917,6 @@ function deserializeObjectPattern(pos) {
|
|
|
1913
1917
|
node.decorators = [];
|
|
1914
1918
|
node.properties = properties;
|
|
1915
1919
|
node.optional = false;
|
|
1916
|
-
node.typeAnnotation = null;
|
|
1917
1920
|
return node;
|
|
1918
1921
|
}
|
|
1919
1922
|
|
|
@@ -1960,7 +1963,6 @@ function deserializeArrayPattern(pos) {
|
|
|
1960
1963
|
node.decorators = [];
|
|
1961
1964
|
node.elements = elements;
|
|
1962
1965
|
node.optional = false;
|
|
1963
|
-
node.typeAnnotation = null;
|
|
1964
1966
|
return node;
|
|
1965
1967
|
}
|
|
1966
1968
|
|
|
@@ -1981,8 +1983,6 @@ function deserializeBindingRestElement(pos) {
|
|
|
1981
1983
|
node.decorators = [];
|
|
1982
1984
|
node.argument = deserializeBindingPattern(pos + 8);
|
|
1983
1985
|
node.optional = false;
|
|
1984
|
-
node.typeAnnotation = null;
|
|
1985
|
-
node.value = null;
|
|
1986
1986
|
return node;
|
|
1987
1987
|
}
|
|
1988
1988
|
|
|
@@ -2035,8 +2035,8 @@ function deserializeFunctionType(pos) {
|
|
|
2035
2035
|
|
|
2036
2036
|
function deserializeFormalParameters(pos) {
|
|
2037
2037
|
let params = deserializeVecFormalParameter(pos + 8);
|
|
2038
|
-
if (uint32[pos + 32 >> 2] !== 0 && uint32[pos + 36 >> 2] !== 0) {
|
|
2039
|
-
pos = uint32[pos + 32 >> 2];
|
|
2038
|
+
if (uint32[(pos + 32) >> 2] !== 0 && uint32[(pos + 36) >> 2] !== 0) {
|
|
2039
|
+
pos = uint32[(pos + 32) >> 2];
|
|
2040
2040
|
let start,
|
|
2041
2041
|
end,
|
|
2042
2042
|
rest = {
|
|
@@ -2046,8 +2046,8 @@ function deserializeFormalParameters(pos) {
|
|
|
2046
2046
|
optional: deserializeBool(pos + 32),
|
|
2047
2047
|
typeAnnotation: null,
|
|
2048
2048
|
value: null,
|
|
2049
|
-
start: start = deserializeU32(pos),
|
|
2050
|
-
end: end = deserializeU32(pos + 4),
|
|
2049
|
+
start: (start = deserializeU32(pos)),
|
|
2050
|
+
end: (end = deserializeU32(pos + 4)),
|
|
2051
2051
|
range: [start, end],
|
|
2052
2052
|
};
|
|
2053
2053
|
rest.argument = deserializeBindingPatternKind(pos + 8);
|
|
@@ -2078,8 +2078,8 @@ function deserializeFormalParameter(pos) {
|
|
|
2078
2078
|
parameter: null,
|
|
2079
2079
|
readonly,
|
|
2080
2080
|
static: false,
|
|
2081
|
-
start: start = deserializeU32(pos),
|
|
2082
|
-
end: end = deserializeU32(pos + 4),
|
|
2081
|
+
start: (start = deserializeU32(pos)),
|
|
2082
|
+
end: (end = deserializeU32(pos + 4)),
|
|
2083
2083
|
range: [start, end],
|
|
2084
2084
|
};
|
|
2085
2085
|
param.decorators = deserializeVecDecorator(pos + 8);
|
|
@@ -2129,7 +2129,6 @@ function deserializeArrowFunctionExpression(pos) {
|
|
|
2129
2129
|
node.params = deserializeBoxFormalParameters(pos + 16);
|
|
2130
2130
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 24);
|
|
2131
2131
|
node.body = body;
|
|
2132
|
-
node.id = null;
|
|
2133
2132
|
node.generator = false;
|
|
2134
2133
|
return node;
|
|
2135
2134
|
}
|
|
@@ -2309,7 +2308,8 @@ function deserializeMethodDefinitionKind(pos) {
|
|
|
2309
2308
|
}
|
|
2310
2309
|
|
|
2311
2310
|
function deserializePrivateIdentifier(pos) {
|
|
2312
|
-
let start = deserializeU32(pos),
|
|
2311
|
+
let start = deserializeU32(pos),
|
|
2312
|
+
end = deserializeU32(pos + 4);
|
|
2313
2313
|
return {
|
|
2314
2314
|
type: 'PrivateIdentifier',
|
|
2315
2315
|
name: deserializeStr(pos + 8),
|
|
@@ -2745,13 +2745,13 @@ function deserializeNullLiteral(pos) {
|
|
|
2745
2745
|
end,
|
|
2746
2746
|
range: [start, end],
|
|
2747
2747
|
};
|
|
2748
|
-
node.value = null;
|
|
2749
2748
|
node.raw = start === 0 && end === 0 ? null : 'null';
|
|
2750
2749
|
return node;
|
|
2751
2750
|
}
|
|
2752
2751
|
|
|
2753
2752
|
function deserializeNumericLiteral(pos) {
|
|
2754
|
-
let start = deserializeU32(pos),
|
|
2753
|
+
let start = deserializeU32(pos),
|
|
2754
|
+
end = deserializeU32(pos + 4);
|
|
2755
2755
|
return {
|
|
2756
2756
|
type: 'Literal',
|
|
2757
2757
|
value: deserializeF64(pos + 8),
|
|
@@ -2828,7 +2828,8 @@ function deserializeRegExp(pos) {
|
|
|
2828
2828
|
}
|
|
2829
2829
|
|
|
2830
2830
|
function deserializeRegExpFlags(pos) {
|
|
2831
|
-
let flagBits = deserializeU8(pos),
|
|
2831
|
+
let flagBits = deserializeU8(pos),
|
|
2832
|
+
flags = '';
|
|
2832
2833
|
// Alphabetical order
|
|
2833
2834
|
flagBits & 64 && (flags += 'd');
|
|
2834
2835
|
flagBits & 1 && (flags += 'g');
|
|
@@ -2915,7 +2916,8 @@ function deserializeJSXFragment(pos) {
|
|
|
2915
2916
|
}
|
|
2916
2917
|
|
|
2917
2918
|
function deserializeJSXOpeningFragment(pos) {
|
|
2918
|
-
let start = deserializeU32(pos),
|
|
2919
|
+
let start = deserializeU32(pos),
|
|
2920
|
+
end = deserializeU32(pos + 4);
|
|
2919
2921
|
return {
|
|
2920
2922
|
type: 'JSXOpeningFragment',
|
|
2921
2923
|
start,
|
|
@@ -2925,7 +2927,8 @@ function deserializeJSXOpeningFragment(pos) {
|
|
|
2925
2927
|
}
|
|
2926
2928
|
|
|
2927
2929
|
function deserializeJSXClosingFragment(pos) {
|
|
2928
|
-
let start = deserializeU32(pos),
|
|
2930
|
+
let start = deserializeU32(pos),
|
|
2931
|
+
end = deserializeU32(pos + 4);
|
|
2929
2932
|
return {
|
|
2930
2933
|
type: 'JSXClosingFragment',
|
|
2931
2934
|
start,
|
|
@@ -3134,7 +3137,8 @@ function deserializeJSXExpression(pos) {
|
|
|
3134
3137
|
}
|
|
3135
3138
|
|
|
3136
3139
|
function deserializeJSXEmptyExpression(pos) {
|
|
3137
|
-
let start = deserializeU32(pos),
|
|
3140
|
+
let start = deserializeU32(pos),
|
|
3141
|
+
end = deserializeU32(pos + 4);
|
|
3138
3142
|
return {
|
|
3139
3143
|
type: 'JSXEmptyExpression',
|
|
3140
3144
|
start,
|
|
@@ -3211,7 +3215,8 @@ function deserializeJSXAttributeValue(pos) {
|
|
|
3211
3215
|
}
|
|
3212
3216
|
|
|
3213
3217
|
function deserializeJSXIdentifier(pos) {
|
|
3214
|
-
let start = deserializeU32(pos),
|
|
3218
|
+
let start = deserializeU32(pos),
|
|
3219
|
+
end = deserializeU32(pos + 4);
|
|
3215
3220
|
return {
|
|
3216
3221
|
type: 'JSXIdentifier',
|
|
3217
3222
|
name: deserializeStr(pos + 8),
|
|
@@ -3253,7 +3258,8 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
3253
3258
|
}
|
|
3254
3259
|
|
|
3255
3260
|
function deserializeJSXText(pos) {
|
|
3256
|
-
let start = deserializeU32(pos),
|
|
3261
|
+
let start = deserializeU32(pos),
|
|
3262
|
+
end = deserializeU32(pos + 4);
|
|
3257
3263
|
return {
|
|
3258
3264
|
type: 'JSXText',
|
|
3259
3265
|
value: deserializeStr(pos + 8),
|
|
@@ -3532,8 +3538,8 @@ function deserializeTSParenthesizedType(pos) {
|
|
|
3532
3538
|
node = {
|
|
3533
3539
|
type: 'TSParenthesizedType',
|
|
3534
3540
|
typeAnnotation: null,
|
|
3535
|
-
start: start = deserializeU32(pos),
|
|
3536
|
-
end: end = deserializeU32(pos + 4),
|
|
3541
|
+
start: (start = deserializeU32(pos)),
|
|
3542
|
+
end: (end = deserializeU32(pos + 4)),
|
|
3537
3543
|
range: [start, end],
|
|
3538
3544
|
};
|
|
3539
3545
|
node.typeAnnotation = deserializeTSType(pos + 8);
|
|
@@ -3744,7 +3750,8 @@ function deserializeTSTupleElement(pos) {
|
|
|
3744
3750
|
}
|
|
3745
3751
|
|
|
3746
3752
|
function deserializeTSAnyKeyword(pos) {
|
|
3747
|
-
let start = deserializeU32(pos),
|
|
3753
|
+
let start = deserializeU32(pos),
|
|
3754
|
+
end = deserializeU32(pos + 4);
|
|
3748
3755
|
return {
|
|
3749
3756
|
type: 'TSAnyKeyword',
|
|
3750
3757
|
start,
|
|
@@ -3754,7 +3761,8 @@ function deserializeTSAnyKeyword(pos) {
|
|
|
3754
3761
|
}
|
|
3755
3762
|
|
|
3756
3763
|
function deserializeTSStringKeyword(pos) {
|
|
3757
|
-
let start = deserializeU32(pos),
|
|
3764
|
+
let start = deserializeU32(pos),
|
|
3765
|
+
end = deserializeU32(pos + 4);
|
|
3758
3766
|
return {
|
|
3759
3767
|
type: 'TSStringKeyword',
|
|
3760
3768
|
start,
|
|
@@ -3764,7 +3772,8 @@ function deserializeTSStringKeyword(pos) {
|
|
|
3764
3772
|
}
|
|
3765
3773
|
|
|
3766
3774
|
function deserializeTSBooleanKeyword(pos) {
|
|
3767
|
-
let start = deserializeU32(pos),
|
|
3775
|
+
let start = deserializeU32(pos),
|
|
3776
|
+
end = deserializeU32(pos + 4);
|
|
3768
3777
|
return {
|
|
3769
3778
|
type: 'TSBooleanKeyword',
|
|
3770
3779
|
start,
|
|
@@ -3774,7 +3783,8 @@ function deserializeTSBooleanKeyword(pos) {
|
|
|
3774
3783
|
}
|
|
3775
3784
|
|
|
3776
3785
|
function deserializeTSNumberKeyword(pos) {
|
|
3777
|
-
let start = deserializeU32(pos),
|
|
3786
|
+
let start = deserializeU32(pos),
|
|
3787
|
+
end = deserializeU32(pos + 4);
|
|
3778
3788
|
return {
|
|
3779
3789
|
type: 'TSNumberKeyword',
|
|
3780
3790
|
start,
|
|
@@ -3784,7 +3794,8 @@ function deserializeTSNumberKeyword(pos) {
|
|
|
3784
3794
|
}
|
|
3785
3795
|
|
|
3786
3796
|
function deserializeTSNeverKeyword(pos) {
|
|
3787
|
-
let start = deserializeU32(pos),
|
|
3797
|
+
let start = deserializeU32(pos),
|
|
3798
|
+
end = deserializeU32(pos + 4);
|
|
3788
3799
|
return {
|
|
3789
3800
|
type: 'TSNeverKeyword',
|
|
3790
3801
|
start,
|
|
@@ -3794,7 +3805,8 @@ function deserializeTSNeverKeyword(pos) {
|
|
|
3794
3805
|
}
|
|
3795
3806
|
|
|
3796
3807
|
function deserializeTSIntrinsicKeyword(pos) {
|
|
3797
|
-
let start = deserializeU32(pos),
|
|
3808
|
+
let start = deserializeU32(pos),
|
|
3809
|
+
end = deserializeU32(pos + 4);
|
|
3798
3810
|
return {
|
|
3799
3811
|
type: 'TSIntrinsicKeyword',
|
|
3800
3812
|
start,
|
|
@@ -3804,7 +3816,8 @@ function deserializeTSIntrinsicKeyword(pos) {
|
|
|
3804
3816
|
}
|
|
3805
3817
|
|
|
3806
3818
|
function deserializeTSUnknownKeyword(pos) {
|
|
3807
|
-
let start = deserializeU32(pos),
|
|
3819
|
+
let start = deserializeU32(pos),
|
|
3820
|
+
end = deserializeU32(pos + 4);
|
|
3808
3821
|
return {
|
|
3809
3822
|
type: 'TSUnknownKeyword',
|
|
3810
3823
|
start,
|
|
@@ -3814,7 +3827,8 @@ function deserializeTSUnknownKeyword(pos) {
|
|
|
3814
3827
|
}
|
|
3815
3828
|
|
|
3816
3829
|
function deserializeTSNullKeyword(pos) {
|
|
3817
|
-
let start = deserializeU32(pos),
|
|
3830
|
+
let start = deserializeU32(pos),
|
|
3831
|
+
end = deserializeU32(pos + 4);
|
|
3818
3832
|
return {
|
|
3819
3833
|
type: 'TSNullKeyword',
|
|
3820
3834
|
start,
|
|
@@ -3824,7 +3838,8 @@ function deserializeTSNullKeyword(pos) {
|
|
|
3824
3838
|
}
|
|
3825
3839
|
|
|
3826
3840
|
function deserializeTSUndefinedKeyword(pos) {
|
|
3827
|
-
let start = deserializeU32(pos),
|
|
3841
|
+
let start = deserializeU32(pos),
|
|
3842
|
+
end = deserializeU32(pos + 4);
|
|
3828
3843
|
return {
|
|
3829
3844
|
type: 'TSUndefinedKeyword',
|
|
3830
3845
|
start,
|
|
@@ -3834,7 +3849,8 @@ function deserializeTSUndefinedKeyword(pos) {
|
|
|
3834
3849
|
}
|
|
3835
3850
|
|
|
3836
3851
|
function deserializeTSVoidKeyword(pos) {
|
|
3837
|
-
let start = deserializeU32(pos),
|
|
3852
|
+
let start = deserializeU32(pos),
|
|
3853
|
+
end = deserializeU32(pos + 4);
|
|
3838
3854
|
return {
|
|
3839
3855
|
type: 'TSVoidKeyword',
|
|
3840
3856
|
start,
|
|
@@ -3844,7 +3860,8 @@ function deserializeTSVoidKeyword(pos) {
|
|
|
3844
3860
|
}
|
|
3845
3861
|
|
|
3846
3862
|
function deserializeTSSymbolKeyword(pos) {
|
|
3847
|
-
let start = deserializeU32(pos),
|
|
3863
|
+
let start = deserializeU32(pos),
|
|
3864
|
+
end = deserializeU32(pos + 4);
|
|
3848
3865
|
return {
|
|
3849
3866
|
type: 'TSSymbolKeyword',
|
|
3850
3867
|
start,
|
|
@@ -3854,7 +3871,8 @@ function deserializeTSSymbolKeyword(pos) {
|
|
|
3854
3871
|
}
|
|
3855
3872
|
|
|
3856
3873
|
function deserializeTSThisType(pos) {
|
|
3857
|
-
let start = deserializeU32(pos),
|
|
3874
|
+
let start = deserializeU32(pos),
|
|
3875
|
+
end = deserializeU32(pos + 4);
|
|
3858
3876
|
return {
|
|
3859
3877
|
type: 'TSThisType',
|
|
3860
3878
|
start,
|
|
@@ -3864,7 +3882,8 @@ function deserializeTSThisType(pos) {
|
|
|
3864
3882
|
}
|
|
3865
3883
|
|
|
3866
3884
|
function deserializeTSObjectKeyword(pos) {
|
|
3867
|
-
let start = deserializeU32(pos),
|
|
3885
|
+
let start = deserializeU32(pos),
|
|
3886
|
+
end = deserializeU32(pos + 4);
|
|
3868
3887
|
return {
|
|
3869
3888
|
type: 'TSObjectKeyword',
|
|
3870
3889
|
start,
|
|
@@ -3874,7 +3893,8 @@ function deserializeTSObjectKeyword(pos) {
|
|
|
3874
3893
|
}
|
|
3875
3894
|
|
|
3876
3895
|
function deserializeTSBigIntKeyword(pos) {
|
|
3877
|
-
let start = deserializeU32(pos),
|
|
3896
|
+
let start = deserializeU32(pos),
|
|
3897
|
+
end = deserializeU32(pos + 4);
|
|
3878
3898
|
return {
|
|
3879
3899
|
type: 'TSBigIntKeyword',
|
|
3880
3900
|
start,
|
|
@@ -4026,17 +4046,17 @@ function deserializeTSClassImplements(pos) {
|
|
|
4026
4046
|
{ right } = expression,
|
|
4027
4047
|
start,
|
|
4028
4048
|
end,
|
|
4029
|
-
previous = expression = {
|
|
4049
|
+
previous = (expression = {
|
|
4030
4050
|
type: 'MemberExpression',
|
|
4031
4051
|
object,
|
|
4032
4052
|
property: right,
|
|
4033
4053
|
optional: false,
|
|
4034
4054
|
computed: false,
|
|
4035
|
-
start: start = expression.start,
|
|
4036
|
-
end: end = expression.end,
|
|
4055
|
+
start: (start = expression.start),
|
|
4056
|
+
end: (end = expression.end),
|
|
4037
4057
|
range: [start, end],
|
|
4038
|
-
};
|
|
4039
|
-
for (; object.type === 'TSQualifiedName';) {
|
|
4058
|
+
});
|
|
4059
|
+
for (; object.type === 'TSQualifiedName'; ) {
|
|
4040
4060
|
let { left, right } = object;
|
|
4041
4061
|
previous = previous.object = {
|
|
4042
4062
|
type: 'MemberExpression',
|
|
@@ -4044,8 +4064,8 @@ function deserializeTSClassImplements(pos) {
|
|
|
4044
4064
|
property: right,
|
|
4045
4065
|
optional: false,
|
|
4046
4066
|
computed: false,
|
|
4047
|
-
start: start = object.start,
|
|
4048
|
-
end: end = object.end,
|
|
4067
|
+
start: (start = object.start),
|
|
4068
|
+
end: (end = object.end),
|
|
4049
4069
|
range: [start, end],
|
|
4050
4070
|
};
|
|
4051
4071
|
object = left;
|
|
@@ -4109,7 +4129,6 @@ function deserializeTSPropertySignature(pos) {
|
|
|
4109
4129
|
};
|
|
4110
4130
|
node.key = deserializePropertyKey(pos + 8);
|
|
4111
4131
|
node.typeAnnotation = deserializeOptionBoxTSTypeAnnotation(pos + 24);
|
|
4112
|
-
node.accessibility = null;
|
|
4113
4132
|
node.static = false;
|
|
4114
4133
|
return node;
|
|
4115
4134
|
}
|
|
@@ -4147,7 +4166,6 @@ function deserializeTSIndexSignature(pos) {
|
|
|
4147
4166
|
};
|
|
4148
4167
|
node.parameters = deserializeVecTSIndexSignatureName(pos + 8);
|
|
4149
4168
|
node.typeAnnotation = deserializeBoxTSTypeAnnotation(pos + 32);
|
|
4150
|
-
node.accessibility = null;
|
|
4151
4169
|
return node;
|
|
4152
4170
|
}
|
|
4153
4171
|
|
|
@@ -4211,7 +4229,6 @@ function deserializeTSMethodSignature(pos) {
|
|
|
4211
4229
|
node.typeParameters = deserializeOptionBoxTSTypeParameterDeclaration(pos + 24);
|
|
4212
4230
|
node.params = params;
|
|
4213
4231
|
node.returnType = deserializeOptionBoxTSTypeAnnotation(pos + 48);
|
|
4214
|
-
node.accessibility = null;
|
|
4215
4232
|
node.readonly = false;
|
|
4216
4233
|
node.static = false;
|
|
4217
4234
|
return node;
|
|
@@ -4340,8 +4357,8 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4340
4357
|
type: 'TSQualifiedName',
|
|
4341
4358
|
left: id,
|
|
4342
4359
|
right: innerId,
|
|
4343
|
-
start: start = id.start,
|
|
4344
|
-
end: end = innerId.end,
|
|
4360
|
+
start: (start = id.start),
|
|
4361
|
+
end: (end = innerId.end),
|
|
4345
4362
|
range: [start, end],
|
|
4346
4363
|
};
|
|
4347
4364
|
} else {
|
|
@@ -4354,13 +4371,14 @@ function deserializeTSModuleDeclaration(pos) {
|
|
|
4354
4371
|
if (innerId.left.type === 'Identifier') break;
|
|
4355
4372
|
innerId = innerId.left;
|
|
4356
4373
|
}
|
|
4357
|
-
let end,
|
|
4374
|
+
let end,
|
|
4375
|
+
right = innerId.left;
|
|
4358
4376
|
innerId.left = {
|
|
4359
4377
|
type: 'TSQualifiedName',
|
|
4360
4378
|
left: id,
|
|
4361
4379
|
right,
|
|
4362
4380
|
start,
|
|
4363
|
-
end: end = right.end,
|
|
4381
|
+
end: (end = right.end),
|
|
4364
4382
|
range: [start, end],
|
|
4365
4383
|
};
|
|
4366
4384
|
}
|
|
@@ -4556,7 +4574,7 @@ function deserializeTSConstructorType(pos) {
|
|
|
4556
4574
|
end = deserializeU32(pos + 4),
|
|
4557
4575
|
node = {
|
|
4558
4576
|
type: 'TSConstructorType',
|
|
4559
|
-
abstract: deserializeBool(pos +
|
|
4577
|
+
abstract: deserializeBool(pos + 36),
|
|
4560
4578
|
typeParameters: null,
|
|
4561
4579
|
params: null,
|
|
4562
4580
|
returnType: null,
|
|
@@ -4835,7 +4853,8 @@ function deserializeJSDocNonNullableType(pos) {
|
|
|
4835
4853
|
}
|
|
4836
4854
|
|
|
4837
4855
|
function deserializeJSDocUnknownType(pos) {
|
|
4838
|
-
let start = deserializeU32(pos),
|
|
4856
|
+
let start = deserializeU32(pos),
|
|
4857
|
+
end = deserializeU32(pos + 4);
|
|
4839
4858
|
return {
|
|
4840
4859
|
type: 'TSJSDocUnknownType',
|
|
4841
4860
|
start,
|
|
@@ -4858,21 +4877,19 @@ function deserializeCommentKind(pos) {
|
|
|
4858
4877
|
function deserializeComment(pos) {
|
|
4859
4878
|
let type = deserializeCommentKind(pos + 12),
|
|
4860
4879
|
start = deserializeU32(pos),
|
|
4861
|
-
end = deserializeU32(pos + 4)
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
endCut = type === 'Line' ? 0 : 2;
|
|
4870
|
-
node.value = sourceText.slice(start + 2, end - endCut);
|
|
4871
|
-
return node;
|
|
4880
|
+
end = deserializeU32(pos + 4);
|
|
4881
|
+
return {
|
|
4882
|
+
type,
|
|
4883
|
+
value: sourceText.slice(start + 2, end - (type === 'Line' ? 0 : 2)),
|
|
4884
|
+
start,
|
|
4885
|
+
end,
|
|
4886
|
+
range: [start, end],
|
|
4887
|
+
};
|
|
4872
4888
|
}
|
|
4873
4889
|
|
|
4874
4890
|
function deserializeNameSpan(pos) {
|
|
4875
|
-
let start = deserializeU32(pos),
|
|
4891
|
+
let start = deserializeU32(pos),
|
|
4892
|
+
end = deserializeU32(pos + 4);
|
|
4876
4893
|
return {
|
|
4877
4894
|
value: deserializeStr(pos + 8),
|
|
4878
4895
|
start,
|
|
@@ -4923,7 +4940,8 @@ function deserializeImportImportName(pos) {
|
|
|
4923
4940
|
}
|
|
4924
4941
|
|
|
4925
4942
|
function deserializeExportEntry(pos) {
|
|
4926
|
-
let start = deserializeU32(pos),
|
|
4943
|
+
let start = deserializeU32(pos),
|
|
4944
|
+
end = deserializeU32(pos + 4);
|
|
4927
4945
|
return {
|
|
4928
4946
|
moduleRequest: deserializeOptionNameSpan(pos + 16),
|
|
4929
4947
|
importName: deserializeExportImportName(pos + 40),
|
|
@@ -5043,7 +5061,8 @@ function deserializeExportLocalName(pos) {
|
|
|
5043
5061
|
}
|
|
5044
5062
|
|
|
5045
5063
|
function deserializeDynamicImport(pos) {
|
|
5046
|
-
let start = deserializeU32(pos),
|
|
5064
|
+
let start = deserializeU32(pos),
|
|
5065
|
+
end = deserializeU32(pos + 4);
|
|
5047
5066
|
return {
|
|
5048
5067
|
moduleRequest: deserializeSpan(pos + 8),
|
|
5049
5068
|
start,
|
|
@@ -5238,7 +5257,8 @@ function deserializeErrorSeverity(pos) {
|
|
|
5238
5257
|
}
|
|
5239
5258
|
|
|
5240
5259
|
function deserializeErrorLabel(pos) {
|
|
5241
|
-
let start = deserializeU32(pos),
|
|
5260
|
+
let start = deserializeU32(pos),
|
|
5261
|
+
end = deserializeU32(pos + 4);
|
|
5242
5262
|
return {
|
|
5243
5263
|
message: deserializeOptionStr(pos + 8),
|
|
5244
5264
|
start,
|
|
@@ -5258,7 +5278,8 @@ function deserializeEcmaScriptModule(pos) {
|
|
|
5258
5278
|
}
|
|
5259
5279
|
|
|
5260
5280
|
function deserializeStaticImport(pos) {
|
|
5261
|
-
let start = deserializeU32(pos),
|
|
5281
|
+
let start = deserializeU32(pos),
|
|
5282
|
+
end = deserializeU32(pos + 4);
|
|
5262
5283
|
return {
|
|
5263
5284
|
moduleRequest: deserializeNameSpan(pos + 8),
|
|
5264
5285
|
entries: deserializeVecImportEntry(pos + 32),
|
|
@@ -5269,7 +5290,8 @@ function deserializeStaticImport(pos) {
|
|
|
5269
5290
|
}
|
|
5270
5291
|
|
|
5271
5292
|
function deserializeStaticExport(pos) {
|
|
5272
|
-
let start = deserializeU32(pos),
|
|
5293
|
+
let start = deserializeU32(pos),
|
|
5294
|
+
end = deserializeU32(pos + 4);
|
|
5273
5295
|
return {
|
|
5274
5296
|
entries: deserializeVecExportEntry(pos + 8),
|
|
5275
5297
|
start,
|
|
@@ -5287,7 +5309,8 @@ function deserializeU8(pos) {
|
|
|
5287
5309
|
}
|
|
5288
5310
|
|
|
5289
5311
|
function deserializeStr(pos) {
|
|
5290
|
-
let pos32 = pos >> 2,
|
|
5312
|
+
let pos32 = pos >> 2,
|
|
5313
|
+
len = uint32[pos32 + 2];
|
|
5291
5314
|
if (len === 0) return '';
|
|
5292
5315
|
pos = uint32[pos32];
|
|
5293
5316
|
if (sourceIsAscii && pos < sourceByteLen) return sourceText.substr(pos, len);
|
|
@@ -5296,7 +5319,8 @@ function deserializeStr(pos) {
|
|
|
5296
5319
|
let end = pos + len;
|
|
5297
5320
|
if (len > 50) return decodeStr(uint8.subarray(pos, end));
|
|
5298
5321
|
// Shorter strings decode by hand to avoid native call
|
|
5299
|
-
let out = '',
|
|
5322
|
+
let out = '',
|
|
5323
|
+
c;
|
|
5300
5324
|
do {
|
|
5301
5325
|
c = uint8[pos++];
|
|
5302
5326
|
if (c < 128) out += fromCodePoint(c);
|
|
@@ -5309,10 +5333,11 @@ function deserializeStr(pos) {
|
|
|
5309
5333
|
}
|
|
5310
5334
|
|
|
5311
5335
|
function deserializeVecComment(pos) {
|
|
5312
|
-
let arr = [],
|
|
5336
|
+
let arr = [],
|
|
5337
|
+
pos32 = pos >> 2;
|
|
5313
5338
|
pos = uint32[pos32];
|
|
5314
5339
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5315
|
-
for (; pos !== endPos;) {
|
|
5340
|
+
for (; pos !== endPos; ) {
|
|
5316
5341
|
arr.push(deserializeComment(pos));
|
|
5317
5342
|
pos += 16;
|
|
5318
5343
|
}
|
|
@@ -5320,15 +5345,16 @@ function deserializeVecComment(pos) {
|
|
|
5320
5345
|
}
|
|
5321
5346
|
|
|
5322
5347
|
function deserializeOptionHashbang(pos) {
|
|
5323
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5348
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5324
5349
|
return deserializeHashbang(pos);
|
|
5325
5350
|
}
|
|
5326
5351
|
|
|
5327
5352
|
function deserializeVecDirective(pos) {
|
|
5328
|
-
let arr = [],
|
|
5353
|
+
let arr = [],
|
|
5354
|
+
pos32 = pos >> 2;
|
|
5329
5355
|
pos = uint32[pos32];
|
|
5330
5356
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5331
|
-
for (; pos !== endPos;) {
|
|
5357
|
+
for (; pos !== endPos; ) {
|
|
5332
5358
|
arr.push(deserializeDirective(pos));
|
|
5333
5359
|
pos += 72;
|
|
5334
5360
|
}
|
|
@@ -5336,10 +5362,11 @@ function deserializeVecDirective(pos) {
|
|
|
5336
5362
|
}
|
|
5337
5363
|
|
|
5338
5364
|
function deserializeVecStatement(pos) {
|
|
5339
|
-
let arr = [],
|
|
5365
|
+
let arr = [],
|
|
5366
|
+
pos32 = pos >> 2;
|
|
5340
5367
|
pos = uint32[pos32];
|
|
5341
5368
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5342
|
-
for (; pos !== endPos;) {
|
|
5369
|
+
for (; pos !== endPos; ) {
|
|
5343
5370
|
arr.push(deserializeStatement(pos));
|
|
5344
5371
|
pos += 16;
|
|
5345
5372
|
}
|
|
@@ -5507,10 +5534,11 @@ function deserializeBoxV8IntrinsicExpression(pos) {
|
|
|
5507
5534
|
}
|
|
5508
5535
|
|
|
5509
5536
|
function deserializeVecArrayExpressionElement(pos) {
|
|
5510
|
-
let arr = [],
|
|
5537
|
+
let arr = [],
|
|
5538
|
+
pos32 = pos >> 2;
|
|
5511
5539
|
pos = uint32[pos32];
|
|
5512
5540
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5513
|
-
for (; pos !== endPos;) {
|
|
5541
|
+
for (; pos !== endPos; ) {
|
|
5514
5542
|
arr.push(deserializeArrayExpressionElement(pos));
|
|
5515
5543
|
pos += 16;
|
|
5516
5544
|
}
|
|
@@ -5522,10 +5550,11 @@ function deserializeBoxSpreadElement(pos) {
|
|
|
5522
5550
|
}
|
|
5523
5551
|
|
|
5524
5552
|
function deserializeVecObjectPropertyKind(pos) {
|
|
5525
|
-
let arr = [],
|
|
5553
|
+
let arr = [],
|
|
5554
|
+
pos32 = pos >> 2;
|
|
5526
5555
|
pos = uint32[pos32];
|
|
5527
5556
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5528
|
-
for (; pos !== endPos;) {
|
|
5557
|
+
for (; pos !== endPos; ) {
|
|
5529
5558
|
arr.push(deserializeObjectPropertyKind(pos));
|
|
5530
5559
|
pos += 16;
|
|
5531
5560
|
}
|
|
@@ -5549,10 +5578,11 @@ function deserializeBoxPrivateIdentifier(pos) {
|
|
|
5549
5578
|
}
|
|
5550
5579
|
|
|
5551
5580
|
function deserializeVecTemplateElement(pos) {
|
|
5552
|
-
let arr = [],
|
|
5581
|
+
let arr = [],
|
|
5582
|
+
pos32 = pos >> 2;
|
|
5553
5583
|
pos = uint32[pos32];
|
|
5554
5584
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5555
|
-
for (; pos !== endPos;) {
|
|
5585
|
+
for (; pos !== endPos; ) {
|
|
5556
5586
|
arr.push(deserializeTemplateElement(pos));
|
|
5557
5587
|
pos += 48;
|
|
5558
5588
|
}
|
|
@@ -5560,10 +5590,11 @@ function deserializeVecTemplateElement(pos) {
|
|
|
5560
5590
|
}
|
|
5561
5591
|
|
|
5562
5592
|
function deserializeVecExpression(pos) {
|
|
5563
|
-
let arr = [],
|
|
5593
|
+
let arr = [],
|
|
5594
|
+
pos32 = pos >> 2;
|
|
5564
5595
|
pos = uint32[pos32];
|
|
5565
5596
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5566
|
-
for (; pos !== endPos;) {
|
|
5597
|
+
for (; pos !== endPos; ) {
|
|
5567
5598
|
arr.push(deserializeExpression(pos));
|
|
5568
5599
|
pos += 16;
|
|
5569
5600
|
}
|
|
@@ -5575,12 +5606,12 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
5575
5606
|
}
|
|
5576
5607
|
|
|
5577
5608
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
5578
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5609
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5579
5610
|
return deserializeBoxTSTypeParameterInstantiation(pos);
|
|
5580
5611
|
}
|
|
5581
5612
|
|
|
5582
5613
|
function deserializeOptionStr(pos) {
|
|
5583
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5614
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5584
5615
|
return deserializeStr(pos);
|
|
5585
5616
|
}
|
|
5586
5617
|
|
|
@@ -5597,10 +5628,11 @@ function deserializeBoxPrivateFieldExpression(pos) {
|
|
|
5597
5628
|
}
|
|
5598
5629
|
|
|
5599
5630
|
function deserializeVecArgument(pos) {
|
|
5600
|
-
let arr = [],
|
|
5631
|
+
let arr = [],
|
|
5632
|
+
pos32 = pos >> 2;
|
|
5601
5633
|
pos = uint32[pos32];
|
|
5602
5634
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5603
|
-
for (; pos !== endPos;) {
|
|
5635
|
+
for (; pos !== endPos; ) {
|
|
5604
5636
|
arr.push(deserializeArgument(pos));
|
|
5605
5637
|
pos += 16;
|
|
5606
5638
|
}
|
|
@@ -5621,10 +5653,11 @@ function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
|
5621
5653
|
}
|
|
5622
5654
|
|
|
5623
5655
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
5624
|
-
let arr = [],
|
|
5656
|
+
let arr = [],
|
|
5657
|
+
pos32 = pos >> 2;
|
|
5625
5658
|
pos = uint32[pos32];
|
|
5626
5659
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5627
|
-
for (; pos !== endPos;) {
|
|
5660
|
+
for (; pos !== endPos; ) {
|
|
5628
5661
|
arr.push(deserializeOptionAssignmentTargetMaybeDefault(pos));
|
|
5629
5662
|
pos += 16;
|
|
5630
5663
|
}
|
|
@@ -5636,15 +5669,16 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
5636
5669
|
}
|
|
5637
5670
|
|
|
5638
5671
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
5639
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5672
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5640
5673
|
return deserializeBoxAssignmentTargetRest(pos);
|
|
5641
5674
|
}
|
|
5642
5675
|
|
|
5643
5676
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
5644
|
-
let arr = [],
|
|
5677
|
+
let arr = [],
|
|
5678
|
+
pos32 = pos >> 2;
|
|
5645
5679
|
pos = uint32[pos32];
|
|
5646
5680
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5647
|
-
for (; pos !== endPos;) {
|
|
5681
|
+
for (; pos !== endPos; ) {
|
|
5648
5682
|
arr.push(deserializeAssignmentTargetProperty(pos));
|
|
5649
5683
|
pos += 16;
|
|
5650
5684
|
}
|
|
@@ -5765,10 +5799,11 @@ function deserializeBoxTSImportEqualsDeclaration(pos) {
|
|
|
5765
5799
|
}
|
|
5766
5800
|
|
|
5767
5801
|
function deserializeVecVariableDeclarator(pos) {
|
|
5768
|
-
let arr = [],
|
|
5802
|
+
let arr = [],
|
|
5803
|
+
pos32 = pos >> 2;
|
|
5769
5804
|
pos = uint32[pos32];
|
|
5770
5805
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5771
|
-
for (; pos !== endPos;) {
|
|
5806
|
+
for (; pos !== endPos; ) {
|
|
5772
5807
|
arr.push(deserializeVariableDeclarator(pos));
|
|
5773
5808
|
pos += 64;
|
|
5774
5809
|
}
|
|
@@ -5786,15 +5821,16 @@ function deserializeOptionForStatementInit(pos) {
|
|
|
5786
5821
|
}
|
|
5787
5822
|
|
|
5788
5823
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5789
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5824
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5790
5825
|
return deserializeLabelIdentifier(pos);
|
|
5791
5826
|
}
|
|
5792
5827
|
|
|
5793
5828
|
function deserializeVecSwitchCase(pos) {
|
|
5794
|
-
let arr = [],
|
|
5829
|
+
let arr = [],
|
|
5830
|
+
pos32 = pos >> 2;
|
|
5795
5831
|
pos = uint32[pos32];
|
|
5796
5832
|
let endPos = pos + uint32[pos32 + 2] * 48;
|
|
5797
|
-
for (; pos !== endPos;) {
|
|
5833
|
+
for (; pos !== endPos; ) {
|
|
5798
5834
|
arr.push(deserializeSwitchCase(pos));
|
|
5799
5835
|
pos += 48;
|
|
5800
5836
|
}
|
|
@@ -5806,12 +5842,12 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5806
5842
|
}
|
|
5807
5843
|
|
|
5808
5844
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5809
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5845
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5810
5846
|
return deserializeBoxCatchClause(pos);
|
|
5811
5847
|
}
|
|
5812
5848
|
|
|
5813
5849
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5814
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5850
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5815
5851
|
return deserializeBoxBlockStatement(pos);
|
|
5816
5852
|
}
|
|
5817
5853
|
|
|
@@ -5825,7 +5861,7 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5825
5861
|
}
|
|
5826
5862
|
|
|
5827
5863
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5828
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5864
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5829
5865
|
return deserializeBoxTSTypeAnnotation(pos);
|
|
5830
5866
|
}
|
|
5831
5867
|
|
|
@@ -5846,10 +5882,11 @@ function deserializeBoxAssignmentPattern(pos) {
|
|
|
5846
5882
|
}
|
|
5847
5883
|
|
|
5848
5884
|
function deserializeVecBindingProperty(pos) {
|
|
5849
|
-
let arr = [],
|
|
5885
|
+
let arr = [],
|
|
5886
|
+
pos32 = pos >> 2;
|
|
5850
5887
|
pos = uint32[pos32];
|
|
5851
5888
|
let endPos = pos + uint32[pos32 + 2] * 64;
|
|
5852
|
-
for (; pos !== endPos;) {
|
|
5889
|
+
for (; pos !== endPos; ) {
|
|
5853
5890
|
arr.push(deserializeBindingProperty(pos));
|
|
5854
5891
|
pos += 64;
|
|
5855
5892
|
}
|
|
@@ -5861,7 +5898,7 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5861
5898
|
}
|
|
5862
5899
|
|
|
5863
5900
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5864
|
-
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;
|
|
5865
5902
|
return deserializeBoxBindingRestElement(pos);
|
|
5866
5903
|
}
|
|
5867
5904
|
|
|
@@ -5871,10 +5908,11 @@ function deserializeOptionBindingPattern(pos) {
|
|
|
5871
5908
|
}
|
|
5872
5909
|
|
|
5873
5910
|
function deserializeVecOptionBindingPattern(pos) {
|
|
5874
|
-
let arr = [],
|
|
5911
|
+
let arr = [],
|
|
5912
|
+
pos32 = pos >> 2;
|
|
5875
5913
|
pos = uint32[pos32];
|
|
5876
5914
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5877
|
-
for (; pos !== endPos;) {
|
|
5915
|
+
for (; pos !== endPos; ) {
|
|
5878
5916
|
arr.push(deserializeOptionBindingPattern(pos));
|
|
5879
5917
|
pos += 32;
|
|
5880
5918
|
}
|
|
@@ -5882,7 +5920,7 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5882
5920
|
}
|
|
5883
5921
|
|
|
5884
5922
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5885
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
5923
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
5886
5924
|
return deserializeBindingIdentifier(pos);
|
|
5887
5925
|
}
|
|
5888
5926
|
|
|
@@ -5891,7 +5929,7 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5891
5929
|
}
|
|
5892
5930
|
|
|
5893
5931
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5894
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5932
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5895
5933
|
return deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5896
5934
|
}
|
|
5897
5935
|
|
|
@@ -5900,7 +5938,7 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5900
5938
|
}
|
|
5901
5939
|
|
|
5902
5940
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5903
|
-
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;
|
|
5904
5942
|
return deserializeBoxTSThisParameter(pos);
|
|
5905
5943
|
}
|
|
5906
5944
|
|
|
@@ -5913,15 +5951,16 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5913
5951
|
}
|
|
5914
5952
|
|
|
5915
5953
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5916
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
5954
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
5917
5955
|
return deserializeBoxFunctionBody(pos);
|
|
5918
5956
|
}
|
|
5919
5957
|
|
|
5920
5958
|
function deserializeVecFormalParameter(pos) {
|
|
5921
|
-
let arr = [],
|
|
5959
|
+
let arr = [],
|
|
5960
|
+
pos32 = pos >> 2;
|
|
5922
5961
|
pos = uint32[pos32];
|
|
5923
5962
|
let endPos = pos + uint32[pos32 + 2] * 72;
|
|
5924
|
-
for (; pos !== endPos;) {
|
|
5963
|
+
for (; pos !== endPos; ) {
|
|
5925
5964
|
arr.push(deserializeFormalParameter(pos));
|
|
5926
5965
|
pos += 72;
|
|
5927
5966
|
}
|
|
@@ -5929,10 +5968,11 @@ function deserializeVecFormalParameter(pos) {
|
|
|
5929
5968
|
}
|
|
5930
5969
|
|
|
5931
5970
|
function deserializeVecDecorator(pos) {
|
|
5932
|
-
let arr = [],
|
|
5971
|
+
let arr = [],
|
|
5972
|
+
pos32 = pos >> 2;
|
|
5933
5973
|
pos = uint32[pos32];
|
|
5934
5974
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
5935
|
-
for (; pos !== endPos;) {
|
|
5975
|
+
for (; pos !== endPos; ) {
|
|
5936
5976
|
arr.push(deserializeDecorator(pos));
|
|
5937
5977
|
pos += 24;
|
|
5938
5978
|
}
|
|
@@ -5945,10 +5985,11 @@ function deserializeOptionTSAccessibility(pos) {
|
|
|
5945
5985
|
}
|
|
5946
5986
|
|
|
5947
5987
|
function deserializeVecTSClassImplements(pos) {
|
|
5948
|
-
let arr = [],
|
|
5988
|
+
let arr = [],
|
|
5989
|
+
pos32 = pos >> 2;
|
|
5949
5990
|
pos = uint32[pos32];
|
|
5950
5991
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
5951
|
-
for (; pos !== endPos;) {
|
|
5992
|
+
for (; pos !== endPos; ) {
|
|
5952
5993
|
arr.push(deserializeTSClassImplements(pos));
|
|
5953
5994
|
pos += 32;
|
|
5954
5995
|
}
|
|
@@ -5960,10 +6001,11 @@ function deserializeBoxClassBody(pos) {
|
|
|
5960
6001
|
}
|
|
5961
6002
|
|
|
5962
6003
|
function deserializeVecClassElement(pos) {
|
|
5963
|
-
let arr = [],
|
|
6004
|
+
let arr = [],
|
|
6005
|
+
pos32 = pos >> 2;
|
|
5964
6006
|
pos = uint32[pos32];
|
|
5965
6007
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
5966
|
-
for (; pos !== endPos;) {
|
|
6008
|
+
for (; pos !== endPos; ) {
|
|
5967
6009
|
arr.push(deserializeClassElement(pos));
|
|
5968
6010
|
pos += 16;
|
|
5969
6011
|
}
|
|
@@ -6020,10 +6062,11 @@ function deserializeOptionImportPhase(pos) {
|
|
|
6020
6062
|
}
|
|
6021
6063
|
|
|
6022
6064
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
6023
|
-
let arr = [],
|
|
6065
|
+
let arr = [],
|
|
6066
|
+
pos32 = pos >> 2;
|
|
6024
6067
|
pos = uint32[pos32];
|
|
6025
6068
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6026
|
-
for (; pos !== endPos;) {
|
|
6069
|
+
for (; pos !== endPos; ) {
|
|
6027
6070
|
arr.push(deserializeImportDeclarationSpecifier(pos));
|
|
6028
6071
|
pos += 16;
|
|
6029
6072
|
}
|
|
@@ -6031,7 +6074,7 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
6031
6074
|
}
|
|
6032
6075
|
|
|
6033
6076
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
6034
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6077
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6035
6078
|
return deserializeVecImportDeclarationSpecifier(pos);
|
|
6036
6079
|
}
|
|
6037
6080
|
|
|
@@ -6040,7 +6083,7 @@ function deserializeBoxWithClause(pos) {
|
|
|
6040
6083
|
}
|
|
6041
6084
|
|
|
6042
6085
|
function deserializeOptionBoxWithClause(pos) {
|
|
6043
|
-
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;
|
|
6044
6087
|
return deserializeBoxWithClause(pos);
|
|
6045
6088
|
}
|
|
6046
6089
|
|
|
@@ -6057,10 +6100,11 @@ function deserializeBoxImportNamespaceSpecifier(pos) {
|
|
|
6057
6100
|
}
|
|
6058
6101
|
|
|
6059
6102
|
function deserializeVecImportAttribute(pos) {
|
|
6060
|
-
let arr = [],
|
|
6103
|
+
let arr = [],
|
|
6104
|
+
pos32 = pos >> 2;
|
|
6061
6105
|
pos = uint32[pos32];
|
|
6062
6106
|
let endPos = pos + uint32[pos32 + 2] * 112;
|
|
6063
|
-
for (; pos !== endPos;) {
|
|
6107
|
+
for (; pos !== endPos; ) {
|
|
6064
6108
|
arr.push(deserializeImportAttribute(pos));
|
|
6065
6109
|
pos += 112;
|
|
6066
6110
|
}
|
|
@@ -6073,10 +6117,11 @@ function deserializeOptionDeclaration(pos) {
|
|
|
6073
6117
|
}
|
|
6074
6118
|
|
|
6075
6119
|
function deserializeVecExportSpecifier(pos) {
|
|
6076
|
-
let arr = [],
|
|
6120
|
+
let arr = [],
|
|
6121
|
+
pos32 = pos >> 2;
|
|
6077
6122
|
pos = uint32[pos32];
|
|
6078
6123
|
let endPos = pos + uint32[pos32 + 2] * 128;
|
|
6079
|
-
for (; pos !== endPos;) {
|
|
6124
|
+
for (; pos !== endPos; ) {
|
|
6080
6125
|
arr.push(deserializeExportSpecifier(pos));
|
|
6081
6126
|
pos += 128;
|
|
6082
6127
|
}
|
|
@@ -6102,10 +6147,11 @@ function deserializeBoxJSXOpeningElement(pos) {
|
|
|
6102
6147
|
}
|
|
6103
6148
|
|
|
6104
6149
|
function deserializeVecJSXChild(pos) {
|
|
6105
|
-
let arr = [],
|
|
6150
|
+
let arr = [],
|
|
6151
|
+
pos32 = pos >> 2;
|
|
6106
6152
|
pos = uint32[pos32];
|
|
6107
6153
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6108
|
-
for (; pos !== endPos;) {
|
|
6154
|
+
for (; pos !== endPos; ) {
|
|
6109
6155
|
arr.push(deserializeJSXChild(pos));
|
|
6110
6156
|
pos += 16;
|
|
6111
6157
|
}
|
|
@@ -6117,15 +6163,16 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
6117
6163
|
}
|
|
6118
6164
|
|
|
6119
6165
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
6120
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6166
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6121
6167
|
return deserializeBoxJSXClosingElement(pos);
|
|
6122
6168
|
}
|
|
6123
6169
|
|
|
6124
6170
|
function deserializeVecJSXAttributeItem(pos) {
|
|
6125
|
-
let arr = [],
|
|
6171
|
+
let arr = [],
|
|
6172
|
+
pos32 = pos >> 2;
|
|
6126
6173
|
pos = uint32[pos32];
|
|
6127
6174
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6128
|
-
for (; pos !== endPos;) {
|
|
6175
|
+
for (; pos !== endPos; ) {
|
|
6129
6176
|
arr.push(deserializeJSXAttributeItem(pos));
|
|
6130
6177
|
pos += 16;
|
|
6131
6178
|
}
|
|
@@ -6170,10 +6217,11 @@ function deserializeBoxJSXSpreadChild(pos) {
|
|
|
6170
6217
|
}
|
|
6171
6218
|
|
|
6172
6219
|
function deserializeVecTSEnumMember(pos) {
|
|
6173
|
-
let arr = [],
|
|
6220
|
+
let arr = [],
|
|
6221
|
+
pos32 = pos >> 2;
|
|
6174
6222
|
pos = uint32[pos32];
|
|
6175
6223
|
let endPos = pos + uint32[pos32 + 2] * 40;
|
|
6176
|
-
for (; pos !== endPos;) {
|
|
6224
|
+
for (; pos !== endPos; ) {
|
|
6177
6225
|
arr.push(deserializeTSEnumMember(pos));
|
|
6178
6226
|
pos += 40;
|
|
6179
6227
|
}
|
|
@@ -6329,10 +6377,11 @@ function deserializeBoxJSDocUnknownType(pos) {
|
|
|
6329
6377
|
}
|
|
6330
6378
|
|
|
6331
6379
|
function deserializeVecTSType(pos) {
|
|
6332
|
-
let arr = [],
|
|
6380
|
+
let arr = [],
|
|
6381
|
+
pos32 = pos >> 2;
|
|
6333
6382
|
pos = uint32[pos32];
|
|
6334
6383
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6335
|
-
for (; pos !== endPos;) {
|
|
6384
|
+
for (; pos !== endPos; ) {
|
|
6336
6385
|
arr.push(deserializeTSType(pos));
|
|
6337
6386
|
pos += 16;
|
|
6338
6387
|
}
|
|
@@ -6340,10 +6389,11 @@ function deserializeVecTSType(pos) {
|
|
|
6340
6389
|
}
|
|
6341
6390
|
|
|
6342
6391
|
function deserializeVecTSTupleElement(pos) {
|
|
6343
|
-
let arr = [],
|
|
6392
|
+
let arr = [],
|
|
6393
|
+
pos32 = pos >> 2;
|
|
6344
6394
|
pos = uint32[pos32];
|
|
6345
6395
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6346
|
-
for (; pos !== endPos;) {
|
|
6396
|
+
for (; pos !== endPos; ) {
|
|
6347
6397
|
arr.push(deserializeTSTupleElement(pos));
|
|
6348
6398
|
pos += 16;
|
|
6349
6399
|
}
|
|
@@ -6368,10 +6418,11 @@ function deserializeOptionTSType(pos) {
|
|
|
6368
6418
|
}
|
|
6369
6419
|
|
|
6370
6420
|
function deserializeVecTSTypeParameter(pos) {
|
|
6371
|
-
let arr = [],
|
|
6421
|
+
let arr = [],
|
|
6422
|
+
pos32 = pos >> 2;
|
|
6372
6423
|
pos = uint32[pos32];
|
|
6373
6424
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6374
|
-
for (; pos !== endPos;) {
|
|
6425
|
+
for (; pos !== endPos; ) {
|
|
6375
6426
|
arr.push(deserializeTSTypeParameter(pos));
|
|
6376
6427
|
pos += 80;
|
|
6377
6428
|
}
|
|
@@ -6379,10 +6430,11 @@ function deserializeVecTSTypeParameter(pos) {
|
|
|
6379
6430
|
}
|
|
6380
6431
|
|
|
6381
6432
|
function deserializeVecTSInterfaceHeritage(pos) {
|
|
6382
|
-
let arr = [],
|
|
6433
|
+
let arr = [],
|
|
6434
|
+
pos32 = pos >> 2;
|
|
6383
6435
|
pos = uint32[pos32];
|
|
6384
6436
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6385
|
-
for (; pos !== endPos;) {
|
|
6437
|
+
for (; pos !== endPos; ) {
|
|
6386
6438
|
arr.push(deserializeTSInterfaceHeritage(pos));
|
|
6387
6439
|
pos += 32;
|
|
6388
6440
|
}
|
|
@@ -6394,10 +6446,11 @@ function deserializeBoxTSInterfaceBody(pos) {
|
|
|
6394
6446
|
}
|
|
6395
6447
|
|
|
6396
6448
|
function deserializeVecTSSignature(pos) {
|
|
6397
|
-
let arr = [],
|
|
6449
|
+
let arr = [],
|
|
6450
|
+
pos32 = pos >> 2;
|
|
6398
6451
|
pos = uint32[pos32];
|
|
6399
6452
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6400
|
-
for (; pos !== endPos;) {
|
|
6453
|
+
for (; pos !== endPos; ) {
|
|
6401
6454
|
arr.push(deserializeTSSignature(pos));
|
|
6402
6455
|
pos += 16;
|
|
6403
6456
|
}
|
|
@@ -6421,10 +6474,11 @@ function deserializeBoxTSMethodSignature(pos) {
|
|
|
6421
6474
|
}
|
|
6422
6475
|
|
|
6423
6476
|
function deserializeVecTSIndexSignatureName(pos) {
|
|
6424
|
-
let arr = [],
|
|
6477
|
+
let arr = [],
|
|
6478
|
+
pos32 = pos >> 2;
|
|
6425
6479
|
pos = uint32[pos32];
|
|
6426
6480
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6427
|
-
for (; pos !== endPos;) {
|
|
6481
|
+
for (; pos !== endPos; ) {
|
|
6428
6482
|
arr.push(deserializeTSIndexSignatureName(pos));
|
|
6429
6483
|
pos += 32;
|
|
6430
6484
|
}
|
|
@@ -6445,7 +6499,7 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
6445
6499
|
}
|
|
6446
6500
|
|
|
6447
6501
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
6448
|
-
if (uint32[pos >> 2] === 0 && uint32[pos + 4 >> 2] === 0) return null;
|
|
6502
|
+
if (uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0) return null;
|
|
6449
6503
|
return deserializeBoxObjectExpression(pos);
|
|
6450
6504
|
}
|
|
6451
6505
|
|
|
@@ -6468,15 +6522,16 @@ function deserializeBoxTSExternalModuleReference(pos) {
|
|
|
6468
6522
|
}
|
|
6469
6523
|
|
|
6470
6524
|
function deserializeOptionNameSpan(pos) {
|
|
6471
|
-
if (uint32[pos + 8 >> 2] === 0 && uint32[pos + 12 >> 2] === 0) return null;
|
|
6525
|
+
if (uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0) return null;
|
|
6472
6526
|
return deserializeNameSpan(pos);
|
|
6473
6527
|
}
|
|
6474
6528
|
|
|
6475
6529
|
function deserializeVecError(pos) {
|
|
6476
|
-
let arr = [],
|
|
6530
|
+
let arr = [],
|
|
6531
|
+
pos32 = pos >> 2;
|
|
6477
6532
|
pos = uint32[pos32];
|
|
6478
6533
|
let endPos = pos + uint32[pos32 + 2] * 80;
|
|
6479
|
-
for (; pos !== endPos;) {
|
|
6534
|
+
for (; pos !== endPos; ) {
|
|
6480
6535
|
arr.push(deserializeError(pos));
|
|
6481
6536
|
pos += 80;
|
|
6482
6537
|
}
|
|
@@ -6484,10 +6539,11 @@ function deserializeVecError(pos) {
|
|
|
6484
6539
|
}
|
|
6485
6540
|
|
|
6486
6541
|
function deserializeVecErrorLabel(pos) {
|
|
6487
|
-
let arr = [],
|
|
6542
|
+
let arr = [],
|
|
6543
|
+
pos32 = pos >> 2;
|
|
6488
6544
|
pos = uint32[pos32];
|
|
6489
6545
|
let endPos = pos + uint32[pos32 + 2] * 24;
|
|
6490
|
-
for (; pos !== endPos;) {
|
|
6546
|
+
for (; pos !== endPos; ) {
|
|
6491
6547
|
arr.push(deserializeErrorLabel(pos));
|
|
6492
6548
|
pos += 24;
|
|
6493
6549
|
}
|
|
@@ -6495,10 +6551,11 @@ function deserializeVecErrorLabel(pos) {
|
|
|
6495
6551
|
}
|
|
6496
6552
|
|
|
6497
6553
|
function deserializeVecStaticImport(pos) {
|
|
6498
|
-
let arr = [],
|
|
6554
|
+
let arr = [],
|
|
6555
|
+
pos32 = pos >> 2;
|
|
6499
6556
|
pos = uint32[pos32];
|
|
6500
6557
|
let endPos = pos + uint32[pos32 + 2] * 56;
|
|
6501
|
-
for (; pos !== endPos;) {
|
|
6558
|
+
for (; pos !== endPos; ) {
|
|
6502
6559
|
arr.push(deserializeStaticImport(pos));
|
|
6503
6560
|
pos += 56;
|
|
6504
6561
|
}
|
|
@@ -6506,10 +6563,11 @@ function deserializeVecStaticImport(pos) {
|
|
|
6506
6563
|
}
|
|
6507
6564
|
|
|
6508
6565
|
function deserializeVecStaticExport(pos) {
|
|
6509
|
-
let arr = [],
|
|
6566
|
+
let arr = [],
|
|
6567
|
+
pos32 = pos >> 2;
|
|
6510
6568
|
pos = uint32[pos32];
|
|
6511
6569
|
let endPos = pos + uint32[pos32 + 2] * 32;
|
|
6512
|
-
for (; pos !== endPos;) {
|
|
6570
|
+
for (; pos !== endPos; ) {
|
|
6513
6571
|
arr.push(deserializeStaticExport(pos));
|
|
6514
6572
|
pos += 32;
|
|
6515
6573
|
}
|
|
@@ -6517,10 +6575,11 @@ function deserializeVecStaticExport(pos) {
|
|
|
6517
6575
|
}
|
|
6518
6576
|
|
|
6519
6577
|
function deserializeVecDynamicImport(pos) {
|
|
6520
|
-
let arr = [],
|
|
6578
|
+
let arr = [],
|
|
6579
|
+
pos32 = pos >> 2;
|
|
6521
6580
|
pos = uint32[pos32];
|
|
6522
6581
|
let endPos = pos + uint32[pos32 + 2] * 16;
|
|
6523
|
-
for (; pos !== endPos;) {
|
|
6582
|
+
for (; pos !== endPos; ) {
|
|
6524
6583
|
arr.push(deserializeDynamicImport(pos));
|
|
6525
6584
|
pos += 16;
|
|
6526
6585
|
}
|
|
@@ -6528,10 +6587,11 @@ function deserializeVecDynamicImport(pos) {
|
|
|
6528
6587
|
}
|
|
6529
6588
|
|
|
6530
6589
|
function deserializeVecSpan(pos) {
|
|
6531
|
-
let arr = [],
|
|
6590
|
+
let arr = [],
|
|
6591
|
+
pos32 = pos >> 2;
|
|
6532
6592
|
pos = uint32[pos32];
|
|
6533
6593
|
let endPos = pos + uint32[pos32 + 2] * 8;
|
|
6534
|
-
for (; pos !== endPos;) {
|
|
6594
|
+
for (; pos !== endPos; ) {
|
|
6535
6595
|
arr.push(deserializeSpan(pos));
|
|
6536
6596
|
pos += 8;
|
|
6537
6597
|
}
|
|
@@ -6539,10 +6599,11 @@ function deserializeVecSpan(pos) {
|
|
|
6539
6599
|
}
|
|
6540
6600
|
|
|
6541
6601
|
function deserializeVecImportEntry(pos) {
|
|
6542
|
-
let arr = [],
|
|
6602
|
+
let arr = [],
|
|
6603
|
+
pos32 = pos >> 2;
|
|
6543
6604
|
pos = uint32[pos32];
|
|
6544
6605
|
let endPos = pos + uint32[pos32 + 2] * 96;
|
|
6545
|
-
for (; pos !== endPos;) {
|
|
6606
|
+
for (; pos !== endPos; ) {
|
|
6546
6607
|
arr.push(deserializeImportEntry(pos));
|
|
6547
6608
|
pos += 96;
|
|
6548
6609
|
}
|
|
@@ -6550,10 +6611,11 @@ function deserializeVecImportEntry(pos) {
|
|
|
6550
6611
|
}
|
|
6551
6612
|
|
|
6552
6613
|
function deserializeVecExportEntry(pos) {
|
|
6553
|
-
let arr = [],
|
|
6614
|
+
let arr = [],
|
|
6615
|
+
pos32 = pos >> 2;
|
|
6554
6616
|
pos = uint32[pos32];
|
|
6555
6617
|
let endPos = pos + uint32[pos32 + 2] * 144;
|
|
6556
|
-
for (; pos !== endPos;) {
|
|
6618
|
+
for (; pos !== endPos; ) {
|
|
6557
6619
|
arr.push(deserializeExportEntry(pos));
|
|
6558
6620
|
pos += 144;
|
|
6559
6621
|
}
|