oxc-parser 0.123.0 → 0.124.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/package.json +24 -24
- package/src-js/bindings.js +52 -52
- package/src-js/generated/deserialize/js.js +161 -115
- package/src-js/generated/deserialize/js_range.js +158 -120
- package/src-js/generated/deserialize/ts.js +162 -117
- package/src-js/generated/deserialize/ts_range.js +159 -122
|
@@ -1,31 +1,46 @@
|
|
|
1
1
|
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
2
2
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/raw_transfer.rs`.
|
|
3
3
|
|
|
4
|
-
let uint8,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
let uint8,
|
|
5
|
+
uint32,
|
|
6
|
+
float64,
|
|
7
|
+
sourceText,
|
|
8
|
+
sourceTextLatin,
|
|
9
|
+
sourceEndPos = 0,
|
|
10
|
+
firstNonAsciiPos = 0;
|
|
11
|
+
|
|
12
|
+
const { fromCharCode } = String,
|
|
13
|
+
{ utf8Slice, latin1Slice } = Buffer.prototype,
|
|
14
|
+
stringDecodeArrays = Array(65).fill(null);
|
|
15
|
+
for (let i = 0; i <= 64; i++) stringDecodeArrays[i] = Array(i).fill(0);
|
|
9
16
|
|
|
10
17
|
export function deserialize(buffer, sourceText, sourceByteLen) {
|
|
11
18
|
sourceEndPos = sourceByteLen;
|
|
12
|
-
|
|
13
|
-
resetBuffer();
|
|
14
|
-
return data;
|
|
19
|
+
return deserializeWith(buffer, sourceText, sourceByteLen, deserializeRawTransferData);
|
|
15
20
|
}
|
|
16
21
|
|
|
17
|
-
function deserializeWith(buffer, sourceTextInput, sourceByteLen,
|
|
22
|
+
function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
|
|
18
23
|
uint8 = buffer;
|
|
19
24
|
uint32 = buffer.uint32;
|
|
20
25
|
float64 = buffer.float64;
|
|
21
26
|
sourceText = sourceTextInput;
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
if (sourceText.length === sourceByteLen) {
|
|
28
|
+
firstNonAsciiPos = sourceByteLen;
|
|
29
|
+
sourceTextLatin = sourceText;
|
|
30
|
+
} else {
|
|
31
|
+
let i = 0;
|
|
32
|
+
for (; i < sourceByteLen && uint8[i] < 128; i++);
|
|
33
|
+
firstNonAsciiPos = i;
|
|
34
|
+
sourceTextLatin = latin1Slice.call(uint8, 0, sourceByteLen);
|
|
35
|
+
}
|
|
36
|
+
let data = deserialize(uint32[536870900]);
|
|
37
|
+
resetBuffer();
|
|
38
|
+
return data;
|
|
24
39
|
}
|
|
25
40
|
|
|
26
41
|
export function resetBuffer() {
|
|
27
|
-
// Clear buffer and source text
|
|
28
|
-
uint8 = uint32 = float64 = sourceText = void 0;
|
|
42
|
+
// Clear buffer and source text strings to allow them to be garbage collected
|
|
43
|
+
uint8 = uint32 = float64 = sourceText = sourceTextLatin = void 0;
|
|
29
44
|
}
|
|
30
45
|
|
|
31
46
|
function deserializeProgram(pos) {
|
|
@@ -2306,22 +2321,32 @@ function deserializeNullLiteral(pos) {
|
|
|
2306
2321
|
}
|
|
2307
2322
|
|
|
2308
2323
|
function deserializeNumericLiteral(pos) {
|
|
2324
|
+
let start = deserializeU32(pos),
|
|
2325
|
+
end = deserializeU32(pos + 4);
|
|
2309
2326
|
return {
|
|
2310
2327
|
type: "Literal",
|
|
2311
2328
|
value: deserializeF64(pos + 32),
|
|
2312
|
-
raw:
|
|
2313
|
-
|
|
2314
|
-
|
|
2329
|
+
raw:
|
|
2330
|
+
uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
2331
|
+
? null
|
|
2332
|
+
: sourceText.slice(start, end),
|
|
2333
|
+
start,
|
|
2334
|
+
end,
|
|
2315
2335
|
};
|
|
2316
2336
|
}
|
|
2317
2337
|
|
|
2318
2338
|
function deserializeStringLiteral(pos) {
|
|
2319
|
-
let
|
|
2339
|
+
let start = deserializeU32(pos),
|
|
2340
|
+
end = deserializeU32(pos + 4),
|
|
2341
|
+
node = {
|
|
2320
2342
|
type: "Literal",
|
|
2321
2343
|
value: null,
|
|
2322
|
-
raw:
|
|
2323
|
-
|
|
2324
|
-
|
|
2344
|
+
raw:
|
|
2345
|
+
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
2346
|
+
? null
|
|
2347
|
+
: sourceText.slice(start, end),
|
|
2348
|
+
start,
|
|
2349
|
+
end,
|
|
2325
2350
|
},
|
|
2326
2351
|
value = deserializeStr(pos + 16);
|
|
2327
2352
|
deserializeBool(pos + 12) &&
|
|
@@ -2331,13 +2356,18 @@ function deserializeStringLiteral(pos) {
|
|
|
2331
2356
|
}
|
|
2332
2357
|
|
|
2333
2358
|
function deserializeBigIntLiteral(pos) {
|
|
2334
|
-
let
|
|
2359
|
+
let start = deserializeU32(pos),
|
|
2360
|
+
end = deserializeU32(pos + 4),
|
|
2361
|
+
node = {
|
|
2335
2362
|
type: "Literal",
|
|
2336
2363
|
value: null,
|
|
2337
|
-
raw:
|
|
2364
|
+
raw:
|
|
2365
|
+
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
2366
|
+
? null
|
|
2367
|
+
: sourceText.slice(start, end),
|
|
2338
2368
|
bigint: null,
|
|
2339
|
-
start
|
|
2340
|
-
end
|
|
2369
|
+
start,
|
|
2370
|
+
end,
|
|
2341
2371
|
},
|
|
2342
2372
|
bigint = deserializeStr(pos + 16);
|
|
2343
2373
|
node.value = BigInt(bigint);
|
|
@@ -2346,13 +2376,18 @@ function deserializeBigIntLiteral(pos) {
|
|
|
2346
2376
|
}
|
|
2347
2377
|
|
|
2348
2378
|
function deserializeRegExpLiteral(pos) {
|
|
2349
|
-
let
|
|
2379
|
+
let start = deserializeU32(pos),
|
|
2380
|
+
end = deserializeU32(pos + 4),
|
|
2381
|
+
node = {
|
|
2350
2382
|
type: "Literal",
|
|
2351
2383
|
value: null,
|
|
2352
|
-
raw:
|
|
2384
|
+
raw:
|
|
2385
|
+
uint32[(pos + 48) >> 2] === 0 && uint32[(pos + 52) >> 2] === 0
|
|
2386
|
+
? null
|
|
2387
|
+
: sourceText.slice(start, end),
|
|
2353
2388
|
regex: null,
|
|
2354
|
-
start
|
|
2355
|
-
end
|
|
2389
|
+
start,
|
|
2390
|
+
end,
|
|
2356
2391
|
},
|
|
2357
2392
|
regex = deserializeRegExp(pos + 16),
|
|
2358
2393
|
value = null;
|
|
@@ -2759,12 +2794,17 @@ function deserializeJSXSpreadChild(pos) {
|
|
|
2759
2794
|
}
|
|
2760
2795
|
|
|
2761
2796
|
function deserializeJSXText(pos) {
|
|
2797
|
+
let start = deserializeU32(pos),
|
|
2798
|
+
end = deserializeU32(pos + 4);
|
|
2762
2799
|
return {
|
|
2763
2800
|
type: "JSXText",
|
|
2764
2801
|
value: deserializeStr(pos + 16),
|
|
2765
|
-
raw:
|
|
2766
|
-
|
|
2767
|
-
|
|
2802
|
+
raw:
|
|
2803
|
+
uint32[(pos + 32) >> 2] === 0 && uint32[(pos + 36) >> 2] === 0
|
|
2804
|
+
? null
|
|
2805
|
+
: sourceText.slice(start, end),
|
|
2806
|
+
start,
|
|
2807
|
+
end,
|
|
2768
2808
|
};
|
|
2769
2809
|
}
|
|
2770
2810
|
|
|
@@ -4513,23 +4553,27 @@ function deserializeStr(pos) {
|
|
|
4513
4553
|
len = uint32[pos32 + 2];
|
|
4514
4554
|
if (len === 0) return "";
|
|
4515
4555
|
pos = uint32[pos32];
|
|
4516
|
-
if (sourceIsAscii && pos < sourceEndPos) return sourceText.substr(pos, len);
|
|
4517
|
-
// Longer strings use `TextDecoder`
|
|
4518
|
-
// TODO: Find best switch-over point
|
|
4519
4556
|
let end = pos + len;
|
|
4520
|
-
if (
|
|
4521
|
-
//
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4557
|
+
if (end <= firstNonAsciiPos) return sourceTextLatin.substr(pos, len);
|
|
4558
|
+
// Use `utf8Slice` for strings longer than 64 bytes
|
|
4559
|
+
if (len > 64) return utf8Slice.call(uint8, pos, end);
|
|
4560
|
+
if (pos < sourceEndPos) {
|
|
4561
|
+
// Check if all bytes are ASCII, use `utf8Slice` if not
|
|
4562
|
+
for (let i = pos; i < end; i++) if (uint8[i] >= 128) return utf8Slice.call(uint8, pos, end);
|
|
4563
|
+
// String is all ASCII, so slice from `sourceTextLatin`
|
|
4564
|
+
return sourceTextLatin.substr(pos, len);
|
|
4565
|
+
}
|
|
4566
|
+
// String is not in source region - use `fromCharCode.apply` with a temp array of correct length.
|
|
4567
|
+
// Copy bytes into temp array.
|
|
4568
|
+
// If any byte is non-ASCII, use `utf8Slice`.
|
|
4569
|
+
let arr = stringDecodeArrays[len];
|
|
4570
|
+
for (let i = 0; i < len; i++) {
|
|
4571
|
+
let b = uint8[pos + i];
|
|
4572
|
+
if (b >= 128) return utf8Slice.call(uint8, pos, end);
|
|
4573
|
+
arr[i] = b;
|
|
4574
|
+
}
|
|
4575
|
+
// Call `fromCharCode` with temp array
|
|
4576
|
+
return fromCharCode.apply(null, arr);
|
|
4533
4577
|
}
|
|
4534
4578
|
|
|
4535
4579
|
function deserializeVecComment(pos) {
|
|
@@ -4545,8 +4589,9 @@ function deserializeVecComment(pos) {
|
|
|
4545
4589
|
}
|
|
4546
4590
|
|
|
4547
4591
|
function deserializeOptionHashbang(pos) {
|
|
4548
|
-
|
|
4549
|
-
|
|
4592
|
+
return uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
4593
|
+
? null
|
|
4594
|
+
: deserializeHashbang(pos);
|
|
4550
4595
|
}
|
|
4551
4596
|
|
|
4552
4597
|
function deserializeVecDirective(pos) {
|
|
@@ -4806,13 +4851,13 @@ function deserializeBoxTSTypeParameterInstantiation(pos) {
|
|
|
4806
4851
|
}
|
|
4807
4852
|
|
|
4808
4853
|
function deserializeOptionBoxTSTypeParameterInstantiation(pos) {
|
|
4809
|
-
|
|
4810
|
-
|
|
4854
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
4855
|
+
? null
|
|
4856
|
+
: deserializeBoxTSTypeParameterInstantiation(pos);
|
|
4811
4857
|
}
|
|
4812
4858
|
|
|
4813
4859
|
function deserializeOptionStr(pos) {
|
|
4814
|
-
|
|
4815
|
-
return deserializeStr(pos);
|
|
4860
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0 ? null : deserializeStr(pos);
|
|
4816
4861
|
}
|
|
4817
4862
|
|
|
4818
4863
|
function deserializeBoxComputedMemberExpression(pos) {
|
|
@@ -4848,8 +4893,7 @@ function deserializeBoxObjectAssignmentTarget(pos) {
|
|
|
4848
4893
|
}
|
|
4849
4894
|
|
|
4850
4895
|
function deserializeOptionAssignmentTargetMaybeDefault(pos) {
|
|
4851
|
-
|
|
4852
|
-
return deserializeAssignmentTargetMaybeDefault(pos);
|
|
4896
|
+
return uint8[pos] === 51 ? null : deserializeAssignmentTargetMaybeDefault(pos);
|
|
4853
4897
|
}
|
|
4854
4898
|
|
|
4855
4899
|
function deserializeVecOptionAssignmentTargetMaybeDefault(pos) {
|
|
@@ -4869,8 +4913,9 @@ function deserializeBoxAssignmentTargetRest(pos) {
|
|
|
4869
4913
|
}
|
|
4870
4914
|
|
|
4871
4915
|
function deserializeOptionBoxAssignmentTargetRest(pos) {
|
|
4872
|
-
|
|
4873
|
-
|
|
4916
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
4917
|
+
? null
|
|
4918
|
+
: deserializeBoxAssignmentTargetRest(pos);
|
|
4874
4919
|
}
|
|
4875
4920
|
|
|
4876
4921
|
function deserializeVecAssignmentTargetProperty(pos) {
|
|
@@ -4898,8 +4943,7 @@ function deserializeBoxAssignmentTargetPropertyProperty(pos) {
|
|
|
4898
4943
|
}
|
|
4899
4944
|
|
|
4900
4945
|
function deserializeOptionExpression(pos) {
|
|
4901
|
-
|
|
4902
|
-
return deserializeExpression(pos);
|
|
4946
|
+
return uint8[pos] === 51 ? null : deserializeExpression(pos);
|
|
4903
4947
|
}
|
|
4904
4948
|
|
|
4905
4949
|
function deserializeBoxBlockStatement(pos) {
|
|
@@ -5019,23 +5063,23 @@ function deserializeBoxTSTypeAnnotation(pos) {
|
|
|
5019
5063
|
}
|
|
5020
5064
|
|
|
5021
5065
|
function deserializeOptionBoxTSTypeAnnotation(pos) {
|
|
5022
|
-
|
|
5023
|
-
|
|
5066
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5067
|
+
? null
|
|
5068
|
+
: deserializeBoxTSTypeAnnotation(pos);
|
|
5024
5069
|
}
|
|
5025
5070
|
|
|
5026
5071
|
function deserializeOptionStatement(pos) {
|
|
5027
|
-
|
|
5028
|
-
return deserializeStatement(pos);
|
|
5072
|
+
return uint8[pos] === 70 ? null : deserializeStatement(pos);
|
|
5029
5073
|
}
|
|
5030
5074
|
|
|
5031
5075
|
function deserializeOptionForStatementInit(pos) {
|
|
5032
|
-
|
|
5033
|
-
return deserializeForStatementInit(pos);
|
|
5076
|
+
return uint8[pos] === 65 ? null : deserializeForStatementInit(pos);
|
|
5034
5077
|
}
|
|
5035
5078
|
|
|
5036
5079
|
function deserializeOptionLabelIdentifier(pos) {
|
|
5037
|
-
|
|
5038
|
-
|
|
5080
|
+
return uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
5081
|
+
? null
|
|
5082
|
+
: deserializeLabelIdentifier(pos);
|
|
5039
5083
|
}
|
|
5040
5084
|
|
|
5041
5085
|
function deserializeVecSwitchCase(pos) {
|
|
@@ -5055,18 +5099,19 @@ function deserializeBoxCatchClause(pos) {
|
|
|
5055
5099
|
}
|
|
5056
5100
|
|
|
5057
5101
|
function deserializeOptionBoxCatchClause(pos) {
|
|
5058
|
-
|
|
5059
|
-
|
|
5102
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5103
|
+
? null
|
|
5104
|
+
: deserializeBoxCatchClause(pos);
|
|
5060
5105
|
}
|
|
5061
5106
|
|
|
5062
5107
|
function deserializeOptionBoxBlockStatement(pos) {
|
|
5063
|
-
|
|
5064
|
-
|
|
5108
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5109
|
+
? null
|
|
5110
|
+
: deserializeBoxBlockStatement(pos);
|
|
5065
5111
|
}
|
|
5066
5112
|
|
|
5067
5113
|
function deserializeOptionCatchParameter(pos) {
|
|
5068
|
-
|
|
5069
|
-
return deserializeCatchParameter(pos);
|
|
5114
|
+
return uint8[pos + 16] === 4 ? null : deserializeCatchParameter(pos);
|
|
5070
5115
|
}
|
|
5071
5116
|
|
|
5072
5117
|
function deserializeBoxBindingIdentifier(pos) {
|
|
@@ -5102,13 +5147,13 @@ function deserializeBoxBindingRestElement(pos) {
|
|
|
5102
5147
|
}
|
|
5103
5148
|
|
|
5104
5149
|
function deserializeOptionBoxBindingRestElement(pos) {
|
|
5105
|
-
|
|
5106
|
-
|
|
5150
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5151
|
+
? null
|
|
5152
|
+
: deserializeBoxBindingRestElement(pos);
|
|
5107
5153
|
}
|
|
5108
5154
|
|
|
5109
5155
|
function deserializeOptionBindingPattern(pos) {
|
|
5110
|
-
|
|
5111
|
-
return deserializeBindingPattern(pos);
|
|
5156
|
+
return uint8[pos] === 4 ? null : deserializeBindingPattern(pos);
|
|
5112
5157
|
}
|
|
5113
5158
|
|
|
5114
5159
|
function deserializeVecOptionBindingPattern(pos) {
|
|
@@ -5124,8 +5169,9 @@ function deserializeVecOptionBindingPattern(pos) {
|
|
|
5124
5169
|
}
|
|
5125
5170
|
|
|
5126
5171
|
function deserializeOptionBindingIdentifier(pos) {
|
|
5127
|
-
|
|
5128
|
-
|
|
5172
|
+
return uint32[(pos + 16) >> 2] === 0 && uint32[(pos + 20) >> 2] === 0
|
|
5173
|
+
? null
|
|
5174
|
+
: deserializeBindingIdentifier(pos);
|
|
5129
5175
|
}
|
|
5130
5176
|
|
|
5131
5177
|
function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
@@ -5133,8 +5179,9 @@ function deserializeBoxTSTypeParameterDeclaration(pos) {
|
|
|
5133
5179
|
}
|
|
5134
5180
|
|
|
5135
5181
|
function deserializeOptionBoxTSTypeParameterDeclaration(pos) {
|
|
5136
|
-
|
|
5137
|
-
|
|
5182
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5183
|
+
? null
|
|
5184
|
+
: deserializeBoxTSTypeParameterDeclaration(pos);
|
|
5138
5185
|
}
|
|
5139
5186
|
|
|
5140
5187
|
function deserializeBoxTSThisParameter(pos) {
|
|
@@ -5142,8 +5189,9 @@ function deserializeBoxTSThisParameter(pos) {
|
|
|
5142
5189
|
}
|
|
5143
5190
|
|
|
5144
5191
|
function deserializeOptionBoxTSThisParameter(pos) {
|
|
5145
|
-
|
|
5146
|
-
|
|
5192
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5193
|
+
? null
|
|
5194
|
+
: deserializeBoxTSThisParameter(pos);
|
|
5147
5195
|
}
|
|
5148
5196
|
|
|
5149
5197
|
function deserializeBoxFormalParameters(pos) {
|
|
@@ -5155,8 +5203,9 @@ function deserializeBoxFunctionBody(pos) {
|
|
|
5155
5203
|
}
|
|
5156
5204
|
|
|
5157
5205
|
function deserializeOptionBoxFunctionBody(pos) {
|
|
5158
|
-
|
|
5159
|
-
|
|
5206
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5207
|
+
? null
|
|
5208
|
+
: deserializeBoxFunctionBody(pos);
|
|
5160
5209
|
}
|
|
5161
5210
|
|
|
5162
5211
|
function deserializeVecFormalParameter(pos) {
|
|
@@ -5188,8 +5237,9 @@ function deserializeBoxExpression(pos) {
|
|
|
5188
5237
|
}
|
|
5189
5238
|
|
|
5190
5239
|
function deserializeOptionBoxExpression(pos) {
|
|
5191
|
-
|
|
5192
|
-
|
|
5240
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5241
|
+
? null
|
|
5242
|
+
: deserializeBoxExpression(pos);
|
|
5193
5243
|
}
|
|
5194
5244
|
|
|
5195
5245
|
function deserializeBoxClassBody(pos) {
|
|
@@ -5253,8 +5303,7 @@ function deserializeBoxTSNamespaceExportDeclaration(pos) {
|
|
|
5253
5303
|
}
|
|
5254
5304
|
|
|
5255
5305
|
function deserializeOptionImportPhase(pos) {
|
|
5256
|
-
|
|
5257
|
-
return deserializeImportPhase(pos);
|
|
5306
|
+
return uint8[pos] === 2 ? null : deserializeImportPhase(pos);
|
|
5258
5307
|
}
|
|
5259
5308
|
|
|
5260
5309
|
function deserializeVecImportDeclarationSpecifier(pos) {
|
|
@@ -5270,8 +5319,9 @@ function deserializeVecImportDeclarationSpecifier(pos) {
|
|
|
5270
5319
|
}
|
|
5271
5320
|
|
|
5272
5321
|
function deserializeOptionVecImportDeclarationSpecifier(pos) {
|
|
5273
|
-
|
|
5274
|
-
|
|
5322
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5323
|
+
? null
|
|
5324
|
+
: deserializeVecImportDeclarationSpecifier(pos);
|
|
5275
5325
|
}
|
|
5276
5326
|
|
|
5277
5327
|
function deserializeBoxWithClause(pos) {
|
|
@@ -5279,8 +5329,9 @@ function deserializeBoxWithClause(pos) {
|
|
|
5279
5329
|
}
|
|
5280
5330
|
|
|
5281
5331
|
function deserializeOptionBoxWithClause(pos) {
|
|
5282
|
-
|
|
5283
|
-
|
|
5332
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5333
|
+
? null
|
|
5334
|
+
: deserializeBoxWithClause(pos);
|
|
5284
5335
|
}
|
|
5285
5336
|
|
|
5286
5337
|
function deserializeBoxImportSpecifier(pos) {
|
|
@@ -5308,8 +5359,7 @@ function deserializeVecImportAttribute(pos) {
|
|
|
5308
5359
|
}
|
|
5309
5360
|
|
|
5310
5361
|
function deserializeOptionDeclaration(pos) {
|
|
5311
|
-
|
|
5312
|
-
return deserializeDeclaration(pos);
|
|
5362
|
+
return uint8[pos] === 31 ? null : deserializeDeclaration(pos);
|
|
5313
5363
|
}
|
|
5314
5364
|
|
|
5315
5365
|
function deserializeVecExportSpecifier(pos) {
|
|
@@ -5325,13 +5375,11 @@ function deserializeVecExportSpecifier(pos) {
|
|
|
5325
5375
|
}
|
|
5326
5376
|
|
|
5327
5377
|
function deserializeOptionStringLiteral(pos) {
|
|
5328
|
-
|
|
5329
|
-
return deserializeStringLiteral(pos);
|
|
5378
|
+
return uint8[pos + 12] === 2 ? null : deserializeStringLiteral(pos);
|
|
5330
5379
|
}
|
|
5331
5380
|
|
|
5332
5381
|
function deserializeOptionModuleExportName(pos) {
|
|
5333
|
-
|
|
5334
|
-
return deserializeModuleExportName(pos);
|
|
5382
|
+
return uint8[pos] === 3 ? null : deserializeModuleExportName(pos);
|
|
5335
5383
|
}
|
|
5336
5384
|
|
|
5337
5385
|
function deserializeF64(pos) {
|
|
@@ -5363,8 +5411,9 @@ function deserializeBoxJSXClosingElement(pos) {
|
|
|
5363
5411
|
}
|
|
5364
5412
|
|
|
5365
5413
|
function deserializeOptionBoxJSXClosingElement(pos) {
|
|
5366
|
-
|
|
5367
|
-
|
|
5414
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5415
|
+
? null
|
|
5416
|
+
: deserializeBoxJSXClosingElement(pos);
|
|
5368
5417
|
}
|
|
5369
5418
|
|
|
5370
5419
|
function deserializeVecJSXAttributeItem(pos) {
|
|
@@ -5400,8 +5449,7 @@ function deserializeBoxJSXSpreadAttribute(pos) {
|
|
|
5400
5449
|
}
|
|
5401
5450
|
|
|
5402
5451
|
function deserializeOptionJSXAttributeValue(pos) {
|
|
5403
|
-
|
|
5404
|
-
return deserializeJSXAttributeValue(pos);
|
|
5452
|
+
return uint8[pos] === 4 ? null : deserializeJSXAttributeValue(pos);
|
|
5405
5453
|
}
|
|
5406
5454
|
|
|
5407
5455
|
function deserializeBoxJSXExpressionContainer(pos) {
|
|
@@ -5613,8 +5661,7 @@ function deserializeBoxTSQualifiedName(pos) {
|
|
|
5613
5661
|
}
|
|
5614
5662
|
|
|
5615
5663
|
function deserializeOptionTSType(pos) {
|
|
5616
|
-
|
|
5617
|
-
return deserializeTSType(pos);
|
|
5664
|
+
return uint8[pos] === 38 ? null : deserializeTSType(pos);
|
|
5618
5665
|
}
|
|
5619
5666
|
|
|
5620
5667
|
function deserializeVecTSTypeParameter(pos) {
|
|
@@ -5686,8 +5733,7 @@ function deserializeVecTSIndexSignatureName(pos) {
|
|
|
5686
5733
|
}
|
|
5687
5734
|
|
|
5688
5735
|
function deserializeOptionTSModuleDeclarationBody(pos) {
|
|
5689
|
-
|
|
5690
|
-
return deserializeTSModuleDeclarationBody(pos);
|
|
5736
|
+
return uint8[pos] === 2 ? null : deserializeTSModuleDeclarationBody(pos);
|
|
5691
5737
|
}
|
|
5692
5738
|
|
|
5693
5739
|
function deserializeBoxTSModuleBlock(pos) {
|
|
@@ -5699,13 +5745,13 @@ function deserializeBoxTSTypeParameter(pos) {
|
|
|
5699
5745
|
}
|
|
5700
5746
|
|
|
5701
5747
|
function deserializeOptionBoxObjectExpression(pos) {
|
|
5702
|
-
|
|
5703
|
-
|
|
5748
|
+
return uint32[pos >> 2] === 0 && uint32[(pos + 4) >> 2] === 0
|
|
5749
|
+
? null
|
|
5750
|
+
: deserializeBoxObjectExpression(pos);
|
|
5704
5751
|
}
|
|
5705
5752
|
|
|
5706
5753
|
function deserializeOptionTSImportTypeQualifier(pos) {
|
|
5707
|
-
|
|
5708
|
-
return deserializeTSImportTypeQualifier(pos);
|
|
5754
|
+
return uint8[pos] === 2 ? null : deserializeTSImportTypeQualifier(pos);
|
|
5709
5755
|
}
|
|
5710
5756
|
|
|
5711
5757
|
function deserializeBoxTSImportTypeQualifiedName(pos) {
|
|
@@ -5713,8 +5759,7 @@ function deserializeBoxTSImportTypeQualifiedName(pos) {
|
|
|
5713
5759
|
}
|
|
5714
5760
|
|
|
5715
5761
|
function deserializeOptionTSMappedTypeModifierOperator(pos) {
|
|
5716
|
-
|
|
5717
|
-
return deserializeTSMappedTypeModifierOperator(pos);
|
|
5762
|
+
return uint8[pos] === 3 ? null : deserializeTSMappedTypeModifierOperator(pos);
|
|
5718
5763
|
}
|
|
5719
5764
|
|
|
5720
5765
|
function deserializeBoxTSExternalModuleReference(pos) {
|
|
@@ -5726,8 +5771,9 @@ function deserializeU32(pos) {
|
|
|
5726
5771
|
}
|
|
5727
5772
|
|
|
5728
5773
|
function deserializeOptionNameSpan(pos) {
|
|
5729
|
-
|
|
5730
|
-
|
|
5774
|
+
return uint32[(pos + 8) >> 2] === 0 && uint32[(pos + 12) >> 2] === 0
|
|
5775
|
+
? null
|
|
5776
|
+
: deserializeNameSpan(pos);
|
|
5731
5777
|
}
|
|
5732
5778
|
|
|
5733
5779
|
function deserializeVecError(pos) {
|